* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!function_exists('AuthenthificationProcess')){ include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// if (isset($_GET['id'])) $id=$_GET['id']; if (isset($_POST['id'])) $id=$_POST['id']; if(is_string($id[0]) && $id[0]=='s') { $id=str_replace('s' ,'', $id); $query=SQL_getoneCompleteSDtheme($id); $root = true; } else { $query=SQL_getonetheme($id); $root = false; } $data=$sql_object->DBSelect($query); $display_title=formatText($data[0]['theme_name'],'2HTML'); $display_id=$data[0]['theme_id']; if($root == false) $current_sdthemeid=$data[0]['sdtheme_id']; if($root == false) $form_sdtheme=$data[0]['sdtheme_id']; if($root == false) $current_statut=$data[0]['theme_statut']; $form_description_all=''; $description_detail_form=''; $display_name=formatText($data[0]['theme_name'],'2FIELD'); if($root == true) $form_description_all=formatText($data[0]['theme_description'], '2FIELD'); if($root == false) $desc_project=formatText($data[0]['theme_desc_project'], '2FIELD'); if($root == false) $desc_dashboard=formatText($data[0]['theme_desc_dashboard'], '2FIELD'); if($root == false) $desc_publi=formatText($data[0]['theme_desc_publication'], '2FIELD'); if($root == false) $desc_workshop=formatText($data[0]['theme_desc_workshop'], '2FIELD'); if($root == false) $desc_news=formatText($data[0]['theme_desc_news'], '2FIELD'); $theme_object = new theme; ?>
ModifyTheme($id, $data_table, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; if($result) header("Location: ".$link_confirm); else system_error(); } if(isset($_POST['valider'])) { if(isset($_POST['root'])) $root = true; else $root = false; $table[0]=$_POST['denomination']; $table[1]=''; // anciennement visuel associé if(!$root) $table[2]=$_POST['sdtheme']; else $table[2]=''; if($_POST['description']=='ALL') { $table[3]=$_POST['desc_for_all']; $table[4]=$_POST['desc_for_all']; $table[5]=$_POST['desc_for_all']; $table[6]=$_POST['desc_for_all']; $table[7]=$_POST['desc_for_all']; } if($_POST['description']=='DET') { if(isset($_POST['desc_det_project'])) $table[3]=$_POST['desc_det_project']; else $table[3]=''; if(isset($_POST['desc_det_dashboard'])) $table[4]=$_POST['desc_det_dashboard']; else $table[4]=''; if(isset($_POST['desc_det_publication'])) $table[5]=$_POST['desc_det_publication']; else $table[5]=''; if(isset($_POST['desc_det_news'])) $table[6]=$_POST['desc_det_news']; else $table[6]=''; if(isset($_POST['desc_det_workshop'])) $table[7]=$_POST['desc_det_workshop']; else $table[7]=''; } $table[8]=$_POST['statut']; $root == true ? $table[9]=1 : $table[9]=0; $theme_object= new theme; if($root == true) $theme_object->SetRoot(); $integrity=$theme_object->CheckDataIntegrity($table); if(is_string($integrity)) $format_text='2FIELD'; else $format_text='2HTML'; if($root == false) $form_sdtheme=$_POST['sdtheme']; if($_POST['description']=='ALL') { $form_description_all=formatText($_POST['desc_for_all'],$format_text); $layer_all_style= "style=\"display:block;\""; $layer_det_style= "style=\"display:none;\""; $mask_desc_ALL="checked=\"checked\""; $mask_desc_DET=''; } if($_POST['description']=='DET') { if(isset($_POST['desc_det_project'])) $desc_project=formatText($_POST['desc_det_project'], $format_text); if(isset($_POST['desc_det_dashboard'])) $desc_dashboard=formatText($_POST['desc_det_dashboard'], $format_text); if(isset($_POST['desc_det_publication'])) $desc_publi=formatText($_POST['desc_det_publication'], $format_text); if(isset($_POST['desc_det_news'])) $desc_news=formatText($_POST['desc_det_news'], $format_text); if(isset($_POST['desc_det_workshop'])) $desc_workshop=formatText($_POST['desc_det_workshop'], $format_text); $layer_all_style= "style=\"display:none;\""; $layer_det_style= "style=\"display:block;\""; $mask_desc_ALL=''; $mask_desc_DET="checked=\"checked\""; } $display_name=$_POST['denomination']; if($_POST['statut']=='D') $mask_statut_D="checked=\"checked\""; else $mask_statut_D=''; if($_POST['statut']=='P') $mask_statut_P="checked=\"checked\""; else $mask_statut_P=''; $table=urlencode(serialize($table)); } if(!$root) { // preparation affichage detaillé if(defined('MOD_PROJECT')) { $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "
\n"; } if(defined('MOD_SDI')) { $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "
\n"; } if(defined('MOD_PUBLICATION')) { $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "
\n"; } if(defined('MOD_NEWS')) { $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "
\n"; } if(defined('MOD_WORKSHOP')) { $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "\n"; $description_detail_form.= "
\n"; } } include_once(THEME_ADMIN_PATH."quickicons.php"); if(!$root) { $data=$sql_object->DBSelect($req_listsdtheme); include_once("../lib/input_helpers.php"); // select-box des SD thèmes $data=$sql_object->DBSelect($req_listsdtheme); $select_sdtheme=SDThemeSelectBox($data, "sdtheme", $form_sdtheme); } ?>