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 (!function_exists('AuthenthificationProcess')){
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. if (isset($_GET['id']))    $id=$_GET['id'];
  19. if (isset($_POST['id'])) $id=$_POST['id'];
  20.  
  21. include_once("../lib/lib_common.php");
  22.  
  23. $root false;
  24.  
  25. if(is_string($id[0]&& $id[0]=='s'{
  26.   $is_sd=1;
  27.   $id=str_replace('s' ,''  $id);
  28.   $req_detSQL_getoneCompleteSDtheme($id);
  29.   $result=$sql_object->DBSelect($req_det);
  30.   $root true;
  31.   // formattage des donnĂ©es
  32.   $current_title=formatText($result[0]['theme_name']'2HTML');
  33.   $description=empty_nc(formatText($result[0]['theme_description'],'2HTML'));
  34.   $date_crea=$result[0]['theme_date_crea_display'];
  35.   $last_modify=$result[0]['theme_last_modify_display'];
  36.  
  37.   $link_det=$rub_link."&amp;todo=det&amp;id=";
  38.   $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  39.   $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  40.   ?>
  41. <div id="chemin">
  42. <ul>
  43.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a>
  44.     </li>
  45.     <li><a href="<?php echo $rub_link?>" id="chemin_<? echo $rub?>"
  46.         class="chemin_rub"><?php echo _t('menu','theme')?></a>
  47.     </li>
  48.     <li><span><?php echo formatNavTitle(_t('sdtheme','det')" : " .$current_title)?></span>
  49.     </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($dir."/menurub.php");
  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\"></a>\n";
  64. echo "\t<a href=\"".$link_mod.'s'.$id."\" title=\""._t('theme','mod')."\" class=\"ico_mod2\"></a>\n";
  65. echo "<dl class=\"dl3\">\n";
  66. echo "<dt>"._t('theme','description')." :</dt>\n";
  67. echo "<dd>".$description."</dd>\n";
  68. echo "<dt>"._t('divers','last_modify')."</dt>\n";
  69. echo "<dd>"$last_modify."</dd>\n";
  70. echo "<dt>"._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>
  96.     </li>
  97.     <li><a href="<?php echo $rub_link?>" id="chemin_<? echo $rub?>"
  98.         class="chemin_rub"><?php echo _t('menu','theme');?></a>
  99.     </li>
  100.     <li><span><?php echo formatNavTitle(_t('theme','det')" : " .$current_title)?></span>
  101.     </li>
  102. </ul>
  103. </div>
  104. <!--end barre haute --> <?php
  105. include_once(THEME_ADMIN_PATH."quickicons.php");
  106. ?>
  107. <div class="contentcontainer"><?php
  108. include_once($dir."/menurub.php");
  109. ?>
  110. <div id="content"><?php
  111. echo "<h2>";
  112. echo formatTitleh2($current_title);
  113. echo "</h2>\n";
  114. echo "\t<a href=\"".$link_sup.$id."\" title=\""._t('theme','sup')."\" class=\"ico_sup2\"></a>\n";
  115. echo "\t<a href=\"".$link_mod.$id."\" title=\""._t('theme','mod')."\" class=\"ico_mod2\"></a>\n";
  116. echo "<dl class=\"dl3\">\n";
  117. echo "<dt>".formatText(_t('theme','sdtheme')'2HTML')"</dt>\n";
  118. echo "<dd><a href=\"".$link_det."s".$result[0]['sdtheme_id']."\">".formatText($result[0]['sdtheme_name'],'2HTML')."</a></dd>\n";
  119. if(defined('MOD_PROJECT')) {
  120.   echo "<dt>".formatText(_t('theme','desc_det_project')'2HTML')."</dt>\n";
  121.   echo "<dd>".$desc_project."</dd>\n";
  122. }
  123. if(defined('MOD_SDI')) {
  124.   echo "<dt>".formatText(_t('theme','desc_det_dashboard')'2HTML')."</dt>\n";
  125.   echo "<dd>".$desc_dashboard."</dd>\n";
  126. }
  127. if(defined('MOD_PUBLICATION')) {
  128.   echo "<dt>".formatText(_t('theme','desc_det_publication')'2HTML')."</dt>\n";
  129.   echo "<dd>".$desc_publi."</dd>\n";
  130. }
  131. if(defined('MOD_WORKSHOP')) {
  132.   echo "<dt>".formatText(_t('theme','desc_det_workshop')'2HTML')."</dt>\n";
  133.   echo "<dd>".$desc_workshop."</dd>\n";
  134. }
  135. if(defined('MOD_NEWS')) {
  136.   echo "<dt>".formatText(_t('theme','desc_det_news')'2HTML')."</dt>\n";
  137.   echo "<dd>".$desc_news."</dd>\n";
  138. }
  139. echo "<dt>".formatText(_t('divers','last_modify')'2HTML')."</dt>\n";
  140. echo "<dd>".$last_modify."</dd>\n";
  141. echo "<dt>".formatText(_t('divers','date_crea')'2HTML')."</dt>\n";
  142. echo "<dd>".$date_crea."</dd>\n";
  143. /** PAS DE GESTION DES STATUTS
  144.  echo "<dt>".formatText(_t('divers','statut'), '2HTML') ."</dt>\n";
  145.  echo "<dd>".display_statut($result[0]['theme_statut']). "</dd>\n";
  146.  **/
  147.  
  148. echo "</dl>\n";
  149. }
  150. ?></div>
  151. <?php include_once($dir."/help.php")?></div>

Documentation generated on Fri, 16 Oct 2009 09:31:28 +0200 by phpDocumentor 1.4.1