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_detSQL_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><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','scale')?></a></li>
  46.     <li><span><?php echo formatnavTitle(_t('scale','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">
  58. <h2><?php echo formatTitleh2($current_title)?></h2>
  59. <?php
  60. if ($root_id<>0echo "<a href=\"".$link_sup.$id."\" title=\""._t('scale','sup')."\" class=\"ico_sup2\"></a>";
  61. echo "<a href=\"".$link_mod.$id."\" title=\""._t('scale','mod')."\" class=\"ico_mod2\"></a>";
  62. ?>
  63. <dl class="dl3">
  64. <?php
  65. if ($current_dep!=0{
  66.   ?>
  67.     <dt><?php echo _t('scale','root')?> :</dt>
  68.     <dd><?php echo "<a href=\"".$link_det.$root_id."\">".$display_root."</a>"?></dd>
  69.     <?php
  70. }
  71. ?>
  72.     <dt><?php echo _t('scale','surface')?> (<?php echo SURFACE_UNIT?>)
  73.     :</dt>
  74.     <dd><?php echo $display_surface ?></dd>
  75.     <dt><?php echo _t('scale','population')?> :</dt>
  76.     <dd><?php echo $display_inhabitantsnumber?></dd>
  77.     <dt><?php echo _t('scale','comment')?> :</dt>
  78.     <dd><?php echo $display_comment;?></dd>
  79.     <dt><?php echo _t('divers','last_modify')?> :</dt>
  80.     <dd><?php echo $display_last_modify?></dd>
  81.     <dt><?php echo _t('divers','date_crea')?> :</dt>
  82.     <dd><?php echo $display_date_crea ?></dd>
  83.     <?php /*<dt><?php echo _t('divers','statut'); ?>  :</dt>
  84.     <dd><?php echo $display_status;?></dd> */ ?>
  85. </dl>
  86. </div>
  87.     <?php include_once($dir."/help.php")?></div>

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