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 level
  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($_POST['id']))    $id=$_POST['id'];
  19. if(isset($_GET['id']))    $id=$_GET['id'];
  20.  
  21. $req_detSQL_getdetlevel($id);
  22.  
  23. $result=$sql_object->DBSelect($req_det);
  24. $current_title=$result[0]['level_name'];
  25. $display_desc=formatText($result[0]['level_description']'2HTML');
  26. $display_comment=formatText(empty_none($result[0]['level_comment']'2HTML'));
  27. $display_range=$result[0]['level_range'];
  28. $display_date_crea=$result[0]['level_date_crea'];
  29. $display_last_modify=$result[0]['level_last_modify'];
  30. $display_status=display_statut($result[0]['level_statut']);
  31.  
  32. // formattage des donnĂ©es
  33. if(!empty($result[0]['level_visual_identity'])) {
  34.   $complete_uri="../".$result[0]['level_visual_identity'];
  35.   $complete_uri=EnlargeImage($complete_uri);
  36. else $complete_uri=_t('divers','novisu');
  37.  
  38.  
  39. $link_det=$rub_link."&amp;todo=det&amp;id=";
  40. $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  41. ?>
  42. <div id="chemin">
  43. <ul>
  44.     <li><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a>
  45.     </li>
  46.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  47.         class="chemin_rub"><?php echo _t('menu','level')?></a></li>
  48.     <li><span><?php echo formatNavTitle(_t('level','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">
  60. <h2><?php echo formatTitleh2($current_title)?></h2>
  61. <?php
  62. echo "\t<a href=\"".$link_mod.$id."\" title=\""._t('level','mod')."\" class=\"ico_mod2\"></a>\n";
  63. ?>
  64. <dl class="dl3">
  65.     <dt><?php echo _t('level','description')?> :</dt>
  66.     <dd><?php echo $display_desc?></dd>
  67.     <dt><?php echo _t('level','comment')?> :</dt>
  68.     <dd><?php echo $display_comment;?></dd>
  69.     <dt><?php echo _t('level','visual_identity')?> :</dt>
  70.     <dd><?php echo $complete_uri?></dd>
  71.     <dt><?php echo _t('divers','range')?> :</dt>
  72.     <dd><?php echo $display_range;?></dd>
  73.     <dt><?php echo _t('divers','last_modify')?> :</dt>
  74.     <dd><?php echo $display_last_modify;?></dd>
  75.     <dt><?php echo _t('divers','date_crea')?> :</dt>
  76.     <dd><?php echo $display_date_crea?></dd>
  77.     <!--
  78.         <dt><?php echo _t('divers','statut')?>  :</dt>
  79.         <dd><?php echo $display_status;?></dd>
  80.         -->
  81. </dl>
  82. </div>
  83. <?php include_once($dir."/help.php")?></div>

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