linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file det.php

Documentation is available at det.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage theme
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages ////////////
  12. if (!class_exists('auth')){
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18.  
  19. //////////// Check Droits utilisateur ////////////
  20. if (!$l21auth->isSuperAdmin()) ReloadIndex('admin');
  21. ////////////
  22.  
  23. if (isset($_GET['id']))    $id=$_GET['id'];
  24. if (isset($_POST['id'])) $id=$_POST['id'];
  25.  
  26.  
  27. $root false;
  28.  
  29. if(is_string($id[0]&& $id[0]=='s'{
  30.   $is_sd=1;
  31.   $id=str_replace('s' ,''  $id);
  32.   $req_detSQL_getoneCompleteSDtheme($id);
  33.   $result=$sql_object->DBSelect($req_det);
  34.   $root true;
  35.   // formattage des donnĂ©es
  36.   $current_title=formatText($result[0]['theme_name']'2HTML');
  37.   $description=empty_nc(formatText($result[0]['theme_description'],'2HTML'));
  38.   $date_crea=$result[0]['theme_date_crea_display'];
  39.   $last_modify=$result[0]['theme_last_modify_display'];
  40.  
  41.   $link_det=$rub_link."&amp;todo=det&amp;id=";
  42.   $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  43.   $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  44.   ?>
  45. <div id="chemin">
  46. <ul>
  47.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a></li>
  48.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"><?php echo _t('menu','theme')?></a></li>
  49.     <li><span><?php echo formatNavTitle(_t('sdtheme','det')" : " .$current_title)?></span></li>
  50. </ul>
  51. </div>
  52. <!--end barre haute -->
  53.   <?php
  54.   include_once(THEME_ADMIN_PATH."quickicons.php");
  55.   ?>
  56. <div class="contentcontainer"><?php
  57. include_once(override($dir.'/menurub.php'THEME_ADMIN_PATH));
  58. ?>
  59. <div id="content"><?php
  60. echo "<h2>";
  61. echo formatTitleh2($current_title);
  62. echo "</h2>\n";
  63. echo "\t<a href=\"".$link_sup.'s'.$id."\" title=\""._t('theme','sup')."\" class=\"ico_sup2\"><i class=\"icon-trash\"></i><span>" _t('theme','sup'"</span></a>\n";
  64. echo "\t<a href=\"".$link_mod.'s'.$id."\" title=\""._t('theme','mod')."\" class=\"ico_mod2\"><i class=\"icon-pencil\"></i><span>" _t('theme','mod'"</span></a>\n";
  65. echo "<dl class=\"summary\">\n";
  66. echo "<dt>".mb_ucfirst(_t('theme','description'))." :</dt>\n";
  67. echo "<dd>".$description."</dd>\n";
  68. echo "<dt>".mb_ucfirst(_t('divers','last_modify'))." :</dt>\n";
  69. echo "<dd>"$last_modify."</dd>\n";
  70. echo "<dt>".mb_ucfirst(_t('divers','date_crea'))." :</dt>\n";
  71. echo "<dd>"$date_crea."</dd>\n";
  72. echo "</dl>\n";
  73.  
  74. }    else     {
  75.  
  76.   $req_detSQL_getonetheme($id);
  77.   $result=$sql_object->DBSelect($req_det);
  78.   $current_title=formatText($result[0]['theme_name'],'2HTML');
  79.  
  80.   // formattage des donnĂ©es
  81.   $desc_project=empty_none(formatText($result[0]['theme_desc_project']'2HTML'));
  82.   $desc_dashboard=empty_none(formatText($result[0]['theme_desc_dashboard']'2HTML'));
  83.   $desc_publi=empty_none(formatText($result[0]['theme_desc_publication']'2HTML'));
  84.   $desc_workshop=empty_none(formatText($result[0]['theme_desc_workshop']'2HTML'));
  85.   $desc_news=empty_none(formatText($result[0]['theme_desc_news']'2HTML'));
  86.   $date_crea=$result[0]['theme_date_crea'];
  87.   $last_modify=$result[0]['theme_last_modify'];
  88.  
  89.   $link_det=$rub_link."&amp;todo=det&amp;id=";
  90.   $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  91.   $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  92.   ?>
  93. <div id="chemin">
  94. <ul>
  95.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a></li>
  96.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"><?php echo _t('menu','theme');?></a></li>
  97.     <li><span><?php echo formatNavTitle(_t('theme','det')" : " .$current_title)?></span></li>
  98. </ul>
  99. </div>
  100. <!--end barre haute --> <?php
  101. include_once(THEME_ADMIN_PATH."quickicons.php");
  102. ?>
  103. <div class="contentcontainer"><?php
  104. include_once(override($dir.'/menurub.php'THEME_ADMIN_PATH));
  105. ?>
  106. <div id="content"><?php
  107. echo "<h2>";
  108. echo formatTitleh2($current_title);
  109. echo "</h2>\n";
  110. echo "\t<a href=\"".$link_sup.$id."\" title=\""._t('theme','sup')."\" class=\"ico_sup2\"><i class=\"icon-trash\"></i><span>" _t('theme','sup'"</span></a>\n";
  111. echo "\t<a href=\"".$link_mod.$id."\" title=\""._t('theme','mod')."\" class=\"ico_mod2\"><i class=\"icon-pencil\"></i><span>" _t('theme','mod'"</span></a>\n";
  112. echo "<dl class=\"summary\">\n";
  113. echo "<dt>".formatText(mb_ucfirst(_t('theme','sdtheme'))'2HTML')" :</dt>\n";
  114. echo "<dd><a href=\"".$link_det."s".$result[0]['sdtheme_id']."\">".formatText($result[0]['sdtheme_name'],'2HTML')."</a></dd>\n";
  115. if(defined('MOD_PROJECT')) {
  116.   echo "<dt>".formatText(mb_ucfirst(_t('theme','desc_det_project'))'2HTML')." :</dt>\n";
  117.   echo "<dd>".$desc_project."</dd>\n";
  118. }
  119. if(defined('MOD_SDI')) {
  120.   echo "<dt>".formatText(mb_ucfirst(_t('theme','desc_det_dashboard'))'2HTML')." :</dt>\n";
  121.   echo "<dd>".$desc_dashboard."</dd>\n";
  122. }
  123. if(defined('MOD_PUBLICATION')) {
  124.   echo "<dt>".formatText(mb_ucfirst(_t('theme','desc_det_publication'))'2HTML')." :</dt>\n";
  125.   echo "<dd>".$desc_publi."</dd>\n";
  126. }
  127. if(defined('MOD_WORKSHOP')) {
  128.   echo "<dt>".formatText(mb_ucfirst(_t('theme','desc_det_workshop'))'2HTML')." :</dt>\n";
  129.   echo "<dd>".$desc_workshop."</dd>\n";
  130. }
  131. if(defined('MOD_NEWS')) {
  132.   echo "<dt>".formatText(mb_ucfirst(_t('theme','desc_det_news'))'2HTML')." :</dt>\n";
  133.   echo "<dd>".$desc_news."</dd>\n";
  134. }
  135. echo "<dt>".formatText(mb_ucfirst(_t('divers','last_modify'))'2HTML')." :</dt>\n";
  136. echo "<dd>".$last_modify."</dd>\n";
  137. echo "<dt>".formatText(mb_ucfirst(_t('divers','date_crea'))'2HTML')." :</dt>\n";
  138. echo "<dd>".$date_crea."</dd>\n";
  139. /** PAS DE GESTION DES STATUTS
  140.  echo "<dt>".formatText(_t('divers','statut'), '2HTML') ." :</dt>\n";
  141.  echo "<dd>".display_statut($result[0]['theme_statut']). "</dd>\n";
  142.  **/
  143.  
  144. echo "</dl>\n";
  145. }
  146. ?></div>
  147. <?php include_once(override($dir.'/help.php'THEME_ADMIN_PATH))?></div>

Documentation generated on Thu, 20 Mar 2014 16:47:24 +0100 by phpDocumentor 1.4.1