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 scale
  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_det= SQL_getdetscale($id);
  22. $result=$sql_object->DBSelect($req_det);
  23. $current_title=$result[0]['scale_denomination'];
  24.  
  25. $root_id=$result[0]['scale_root'];
  26. $current_dep=$result[0]['scale_dependencies'];
  27. $display_root=formatText($result[0]['scale_denomination_root'], '2HTML');
  28. $display_surface=$result[0]['scale_surface'];
  29. $display_inhabitantsnumber=$result[0]['scale_inhabitantsnumber'];
  30. $display_comment=formatText(empty_nc($result[0]['scale_comment'], '2HTML'));
  31. $display_last_modify=$result[0]['scale_last_modify'];
  32. $display_date_crea=$result[0]['scale_date_crea'];
  33. $display_status=display_statut($result[0]['scale_statut']);
  34.  
  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>
  43.             <a href="index.php" class="chemin_home"><? echo _t('way','home') ?></a>
  44.         </li>
  45.         <li>
  46.                <a href="<?php echo $rub_link; ?>" id="chemin_<? echo $rub; ?>" class="chemin_rub"><? echo _t('menu','scale')?></a>
  47.         </li>
  48.         <li>
  49.             <span><? echo formatnavTitle(_t('scale','det') .' : '.$current_title); ?></span>
  50.         </li>
  51.     </ul>
  52. </div>
  53.   <!--end barre haute -->
  54. <?php
  55. include_once(THEME_ADMIN_PATH."quickicons.php");
  56. ?>
  57. <div class="contentcontainer">
  58. <?php
  59. include_once($dir."/menurub.php");
  60. ?>
  61. <div id="content">
  62.         <h2><? echo formatTitleh2($current_title); ?></h2>    
  63.         <? 
  64.         if ($root_id<>0) echo "<a href=\"".$link_sup.$id."\" title=\""._t('scale','sup')."\" class=\"ico_sup2\"></a>";
  65.         echo "<a href=\"".$link_mod.$id."\" title=\""._t('scale','mod')."\" class=\"ico_mod2\"></a>";
  66.         ?>
  67.         <dl class="dl3">
  68.         <? 
  69.         if ($current_dep!=0) {
  70.         ?>
  71.         <dt><? echo _t('scale','root'); ?> :  </dt>
  72.         <dd><? echo "<a href=\"".$link_det.$root_id."\">".$display_root."</a>"; ?></dd>
  73.         <?php
  74.         }
  75.         ?>
  76.         <dt><? echo _t('scale','surface'); ?> (<?php echo SURFACE_UNIT; ?>) :</dt>
  77.         <dd><? echo $display_surface ?></dd>
  78.         <dt><? echo _t('scale','population'); ?> : </dt>
  79.         <dd><? echo $display_inhabitantsnumber; ?></dd>
  80.         <dt><? echo _t('scale','comment'); ?> : </dt>
  81.         <dd><? echo $display_comment;?></dd>
  82.         <dt><? echo _t('divers','last_modify'); ?> :</dt>
  83.         <dd><? echo $display_last_modify; ?></dd>
  84.         <dt><? echo _t('divers','date_crea'); ?> :</dt>
  85.         <dd><? echo $display_date_crea ; ?></dd>
  86.         <? /*<dt><? echo _t('divers','statut'); ?>  :</dt> 
  87.         <dd><? echo $display_status;?></dd> */ ?>
  88. </dl>
  89. </div>
  90. <?php include_once($dir."/help.php"); ?>
  91. </div>

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