* @version $Id$ * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!class_exists('auth')){ include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// //////////// Check Droits utilisateur //////////// if (!$l21auth->isSuperAdmin()) ReloadIndex('admin'); //////////// if (isset($_GET['id'])) $id=$_GET['id']; if (isset($_POST['id'])) $id=$_POST['id']; $root = false; if(is_string($id[0]) && $id[0]=='s') { $is_sd=1; $id=str_replace('s' ,'' , $id); $req_det= SQL_getoneCompleteSDtheme($id); $result=$sql_object->DBSelect($req_det); $root = true; // Do record exists? if(!isset($result[0]['theme_name'])) redirect_to('@module_default'); // formattage des données $current_title=formatText($result[0]['theme_name'], '2HTML'); $description=empty_nc(formatText($result[0]['theme_description'],'2HTML')); $date_crea=$result[0]['theme_date_crea_display']; $last_modify=$result[0]['theme_last_modify_display']; $link_det=$rub_link."&todo=det&id="; $link_sup=$rub_link."&todo=sup&id="; $link_mod=$rub_link."&todo=mod&id="; ?>
"; echo formatTitleh2($current_title); echo "\n"; echo "\t" . _t('theme','sup') . "\n"; echo "\t" . _t('theme','mod') . "\n"; echo "
\n"; echo "
".mb_ucfirst(_t('theme','description'))." :
\n"; echo "
".$description."
\n"; echo "
".mb_ucfirst(_t('divers','last_modify'))." :
\n"; echo "
". $last_modify."
\n"; echo "
".mb_ucfirst(_t('divers','date_crea'))." :
\n"; echo "
". $date_crea."
\n"; echo "
\n"; } else { $req_det= SQL_getonetheme($id); $result=$sql_object->DBSelect($req_det); // Do record exists? if(!isset($result[0]['theme_name'])) redirect_to('@module_default'); $current_title=formatText($result[0]['theme_name'],'2HTML'); // formattage des données $desc_project=empty_none(formatText($result[0]['theme_desc_project'], '2HTML')); $desc_dashboard=empty_none(formatText($result[0]['theme_desc_dashboard'], '2HTML')); $desc_publi=empty_none(formatText($result[0]['theme_desc_publication'], '2HTML')); $desc_workshop=empty_none(formatText($result[0]['theme_desc_workshop'], '2HTML')); $desc_news=empty_none(formatText($result[0]['theme_desc_news'], '2HTML')); $date_crea=$result[0]['theme_date_crea']; $last_modify=$result[0]['theme_last_modify']; $link_det=$rub_link."&todo=det&id="; $link_sup=$rub_link."&todo=sup&id="; $link_mod=$rub_link."&todo=mod&id="; ?>
"; echo formatTitleh2($current_title); echo "\n"; echo "\t" . _t('theme','sup') . "\n"; echo "\t" . _t('theme','mod') . "\n"; echo "
\n"; echo "
".formatText(mb_ucfirst(_t('theme','sdtheme')), '2HTML'). " :
\n"; echo "
".formatText($result[0]['sdtheme_name'],'2HTML')."
\n"; if(defined('MOD_PROJECT')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_project')), '2HTML')." :
\n"; echo "
".$desc_project."
\n"; } if(defined('MOD_SDI')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_dashboard')), '2HTML')." :
\n"; echo "
".$desc_dashboard."
\n"; } if(defined('MOD_PUBLICATION')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_publication')), '2HTML')." :
\n"; echo "
".$desc_publi."
\n"; } if(defined('MOD_WORKSHOP')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_workshop')), '2HTML')." :
\n"; echo "
".$desc_workshop."
\n"; } if(defined('MOD_NEWS')) { echo "
".formatText(mb_ucfirst(_t('theme','desc_det_news')), '2HTML')." :
\n"; echo "
".$desc_news."
\n"; } echo "
".formatText(mb_ucfirst(_t('divers','last_modify')), '2HTML')." :
\n"; echo "
".$last_modify."
\n"; echo "
".formatText(mb_ucfirst(_t('divers','date_crea')), '2HTML')." :
\n"; echo "
".$date_crea."
\n"; /** PAS DE GESTION DES STATUTS echo "
".formatText(_t('divers','statut'), '2HTML') ." :
\n"; echo "
".display_statut($result[0]['theme_statut']). "
\n"; **/ echo "
\n"; } ?>