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=_t('scale','list');
  19.  
  20. $result=$sql_object->DBSelect($req_list2);
  21.  
  22. function display_scale($parent$dep$array$rub_link{
  23. $html "";
  24. $prev_dep 0;
  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.  
  29. if (!$dep && !$prev_dep$html .= "\n<ul>\n";
  30. foreach ($array as $item{
  31.   
  32.     $current_id=$item['scale_id'];
  33.         $current_denomination=formatText($item['scale_denomination']'2HTML');
  34.         
  35.     if ($parent == $item['scale_root']{
  36.     if ($prev_dep $dep$html .= "\n<ul>\n";
  37.     
  38.         $link =    "\t<a href=\"".$link_det.$current_id."\">".$current_denomination."</a>\n";    
  39.         if ($item['scale_root'!= 0$link.="\t<a href=\"".$link_sup.$current_id."\" class=\"ico_sup\" title=\""._t('scale','sup')."\"></a>\n";
  40.         $link.="\t<a href=\"".$link_mod.$current_id."\" class=\"ico_mod\" title=\""._t('scale','mod')."\"></a>\n";    
  41.         
  42.         
  43.     $html .= "<li class=\"li".$dep."\">" $link;
  44.     $prev_dep $dep;
  45.     $html .= display_scale($item['scale_id']($dep 1)$array$rub_link);
  46.     }
  47. }
  48. if (($prev_dep == $dep&& ($prev_dep != 0)) $html .= "</ul>\n</li>\n";
  49. else if ($prev_dep == $dep$html .= "</ul>\n";
  50. else $html .= "</li>\n";
  51. return $html;
  52. }
  53. ?>
  54. <div id="chemin">
  55.     <ul>
  56.         <li>
  57.             <a href="index.php" class="chemin_home"><? echo _t('way','home')?></a>
  58.         </li>
  59.         <li>
  60.                <a href="<?php echo $rub_link?>" id="chemin_<? echo $rub?>" class="chemin_rub"><? echo _t('menu','scale')?></a>
  61.         </li>
  62.         <li>
  63.             <span><? echo formatnavTitle($current_title)?></span>
  64.         </li>
  65.     </ul>
  66. </div>
  67. <!--end barre haute -->
  68. <?php
  69. include_once(THEME_ADMIN_PATH."quickicons.php");
  70. ?>
  71. <div class="contentcontainer">
  72. <?php    include_once($dir."/menurub.php");    ?>
  73. <div id="content">
  74. <h2><span class="semnone"><? echo formatTitleh2($current_title;?></span></h2>
  75. <div id="tree">
  76. <?
  77. echo display_scale(0,0,$result$rub_link);
  78. ?>
  79. </div>
  80. </div>
  81. <?php include_once($dir."/help.php")?>
  82. </div>

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