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=\"contextual-menu 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><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a>
  57.     </li>
  58.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  59.         class="chemin_rub"><?php echo _t('menu','scale')?></a></li>
  60.     <li><span><?php echo formatnavTitle($current_title)?></span></li>
  61. </ul>
  62. </div>
  63. <!--end barre haute -->
  64. <?php
  65. include_once(THEME_ADMIN_PATH."quickicons.php");
  66. ?>
  67. <div class="contentcontainer"><?php    include_once($dir."/menurub.php");    ?>
  68. <div id="content">
  69. <h2><span class="semnone"><?php echo formatTitleh2($current_title;?></span></h2>
  70. <div id="tree">
  71. <?php echo display_scale(0,0,$result$rub_link)?></div>
  72. </div>
  73. <?php include_once($dir."/help.php")?></div>

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