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

Documentation generated on Thu, 03 May 2012 15:03:40 +0200 by phpDocumentor 1.4.1