linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file list.php

Documentation is available at list.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. $current_title=$GLOBALS['lang']['scale']['list'];
  19.  
  20. $result=$sql_object->DBSelect($req_list2);
  21.  
  22.  
  23. function display_scale($table$depth$root$rub_link{
  24.  
  25.     $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  26.     $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  27.     $link_det=$rub_link."&amp;todo=det&amp;id=";
  28.        for($i=0$i<count($table)$i++
  29.           $current_dep=$table[$i]['scale_dependencies'];
  30.         $current_root=$table[$i]['scale_root'];
  31.         $current_id=$table[$i]['scale_id'];
  32.         $current_denomination=formatText($table[$i]['scale_denomination']'2HTML');
  33.         $list=    "<li class=\"li".$current_dep."\">\n".
  34.                 "\t<a href=\"".$link_det.$current_id."\">".$current_denomination."</a>\n";
  35.  
  36.         //if ($table[$i]['scale_statut']=='D') $list.="<span class=\"state\">".$GLOBALS['lang']['statut']['draft']."</span>\n";
  37.         
  38.         if ($root<>0$list.="\t<a href=\"".$link_sup.$current_id."\" class=\"ico_sup\" title=\"".$GLOBALS['lang']['scale']['sup']."\"></a>\n";
  39.         $list.="\t<a href=\"".$link_mod.$current_id."\" class=\"ico_mod\" title=\"".$GLOBALS['lang']['scale']['mod']."\"></a>\n";    
  40.         $list.=    "</li>\n";
  41.                 
  42.         if ($table[$i]["scale_dependencies"== $depth  && $root == $table[$i]["scale_root"])  {
  43.             echo $list;   
  44.              display_scale($table$depth+1$table[$i]['scale_id']$rub_link)
  45.          
  46.    }
  47. }
  48. ?>
  49. <div id="chemin">
  50.     <ul>
  51.         <li>
  52.             <a href="index.php"><? echo $GLOBALS['lang']['way']['home']?></a>
  53.         </li>
  54.         <li>
  55.             <a href="<?php echo $rub_link?>"><? echo $GLOBALS['lang']['menu']['scale']?></a>
  56.         </li>
  57.         <li>
  58.             <span><? echo formatnavTitle($current_title)?></span>
  59.         </li>
  60.     </ul>
  61. </div>
  62. <!--end barre haute -->
  63. <?php
  64. include_once("quickicons.php");
  65. ?>
  66. <div class="contentcontainer">
  67. <?php    include_once($dir."/menurub.php");    ?>
  68. <div id="content">
  69. <h2><span class="semnone"><? echo formatTitleh2($current_title;?></span></h2>
  70. <?
  71. echo "<ul>\n";
  72. display_scale($result00$rub_link);
  73. echo "</ul>\n";
  74. ?>
  75. </div>
  76. <?php include_once($dir."/help.php")?>
  77. </div>

Documentation generated on Sat, 08 Nov 2008 14:53:02 +0100 by phpDocumentor 1.4.1