* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ ?> isSuperAdmin()) ReloadIndex('admin'); //////////// // JS event when clicking #root field $js = '$( "#root" ).click( function( objEvent ){ var todo = this.checked; if(todo == true ) { $("#psdtheme").fadeOut("slow"); $("#pdesctheme").fadeOut("slow"); $("#description_ALL").click(); } else { $("#psdtheme").fadeIn("slow"); $("#pdesctheme").fadeIn("slow"); } } );'; footerAddInlineJS($js); ?>
AddTheme($data_table, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; if(is_numeric($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 le visuel de thème $table[2]=$_POST['sdtheme']; 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]=''; } // Rang des themes par catégorie $table[8]=0; $table[9]=0; $table[10]=0; $table[11]=0; $table[12]=0; $table[13]=$_POST['statut']; $root == true ? $table[14]=1 : $table[14]=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'; $form_denomination=formatText($_POST['denomination'], $format_text); $form_sdtheme=$_POST['sdtheme']; if($_POST['description']=='ALL') { $form_description_all=stripslashes($_POST['desc_for_all']); $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'])) $form_desc_project=formatText($_POST['desc_det_project'], $format_text); if(isset($_POST['desc_det_dashboard'])) $form_desc_dashboard=formatText($_POST['desc_det_dashboard'], $format_text); if(isset($_POST['desc_det_publication'])) $form_desc_publication=formatText($_POST['desc_det_publication'], $format_text); if(isset($_POST['desc_det_news'])) $form_desc_news=formatText($_POST['desc_det_news'], $format_text); if(isset($_POST['desc_det_workshop'])) $form_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\""; } 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)); } // preparation affichage detaillé $description_detail_form=''; 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"; } $js = "$('#description_ALL').click(function() { $('#det').fadeOut(); $('#all').fadeIn(); }); $('#description_DET').click(function() { $('#all').fadeOut(); $('#det').fadeIn(); });"; footerAddInlineJS($js); 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); ?>

: *
/> />
>

>
DBSelect($requete); $display_sdtheme_name=formatText($data[0]['sdtheme_name'],'2HTML'); ?>

"; echo "
".formatText(mb_ucfirst(_t('theme','denomination')),'2HTML')." :
"; echo "
". $form_denomination."
"; if($root == false) { echo "
". mb_ucfirst(_t('theme','sdtheme')). " :
"; echo "
".$display_sdtheme_name."
"; } if($_POST['description']=='ALL') { echo "
".formatText(mb_ucfirst(_t('theme','desc_all')), '2HTML')." :
"; echo "
". $form_description_all."
"; } if($_POST['description']=='DET') { if(defined('MOD_PROJECT')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_project')),'2HTML')." :
"; echo "
". $form_desc_project."
"; } if(defined('MOD_SDI')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_dashboard')), '2HTML')." :
"; echo "
". $form_desc_dashboard."
"; } if(defined('MOD_PUBLICATION')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_publication')), '2HTML')." :
"; echo "
". $form_desc_publication."
"; } if(defined('MOD_NEWS')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_news')), '2HTML')." :
"; echo "
". $form_desc_news."
"; } if(defined('MOD_WORKSHOP')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_workshop')), '2HTML')." :
"; echo "
". $form_desc_workshop."
"; } } /** PAS DE GESTION DES STATUTS echo "
"._t('divers','statut') ."
"; echo "
". display_statut($_POST['statut']). "
"; **/ echo ""; ?>