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

Source for file list.php

Documentation is available at list.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage sdi
  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. $result=$sql_object->DBSelect($req_list_theme);
  19. $sdi_objectnew sdi;
  20. //$result_sdi=$sdi_object->GetListSdi($filter="R", $valueparam=0, $sql_object);
  21. $req_sdi=SQL_getListSdi($filter="R"$valueparam=0);
  22. $result_sdi $sql_object -> DBSelect($req_sdi);
  23.  
  24. $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  25. $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  26. $link_det=$rub_link."&amp;todo=det&amp;id=";
  27.  
  28.  
  29. $listing='<ul>'.END_LINE;
  30.  
  31. $current_sdtheme='';
  32. for ($i=0;$i<count($result);$i++){
  33.   if ($result[$i]['sdtheme_id']!=$current_sdtheme{
  34.     if($i<>0$listing.="</ul>\n</li>\n";
  35.     $current_sdtheme=$result[$i]['sdtheme_id'];
  36.     $listing.="<li class=\"li0\">\n";
  37.     $listing.="\t<a  class=\"nolink\" href=\"#\">".formatText($result[$i]['sdtheme_name']'2HTML')."</a>\n";
  38.     $listing.="<ul>\n";
  39.   }
  40.   $listing.="<li class=\"li1\">\n";
  41.   $listing.="\t<a class=\"nolink\" href=\"#\">".cutText(formatText($result[$i]['theme_name']'2HTML')901)."</a>\n";
  42.  
  43.   $content '';
  44.   for ($j=0;$j<count($result_sdi);$j++{
  45.     if ($result[$i]['theme_id']==$result_sdi[$j]['sdii_theme']{
  46.       // we open the  indicators UL if there are items (once only)
  47.       if(empty($content)) $content.="<ul>\n";
  48.       // we populate lists
  49.       $content.="<li class=\"contextual-menu li2\">\n";
  50.       $content.="\t<a href=\"".$link_det.$result_sdi[$j]['sdii_id']."\" title=\"".formatText($result_sdi[$j]['sdii_name']'2HTML')."\">".cutText(formatText($result_sdi[$j]['sdii_name']'2HTML')901)."</a>\n";
  51.       if ($result_sdi[$j]['sdii_statut']=='D'$content.="<span class=\"state\">"._t('statut','draft')."</span>";
  52.       $content.="\t<a href=\"".$link_sup.$result_sdi[$j]['sdii_id']."\" title=\""._t('sdi','sup')."\" class=\"ico_sup\"></a>\n";
  53.       $content.="\t<a href=\"".$link_mod.$result_sdi[$j]['sdii_id']."\" title=\""._t('sdi','mod')."\" class=\"ico_mod\"></a>\n";
  54.       $content.="</li>\n";
  55.     }
  56.   }
  57.   // we close the indicators UL if there are items
  58.   if(!empty($content))  $content.="</ul>\n";
  59.   // we close the subtheme li  (li1) tag
  60.   $listing.=$content."</li>\n";
  61. }
  62. // we finally close subthemes and themes ULs
  63. $listing.="</ul></ul>\n";
  64. ?>
  65. <div id="chemin">
  66.   <ul>
  67.       <li><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a></li>
  68.       <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"><?php echo _t('menu','sdi');?></a></li>
  69.       <li><span><?php echo _t('sdi','list')?></span></li>
  70.   </ul>
  71. </div>
  72. <!--end barre haute -->
  73. <?php
  74. include_once(THEME_ADMIN_PATH."quickicons.php");
  75. ?>
  76. <div class="contentcontainer"><?php    include_once($dir."/menurub.php");    ?>
  77. <div id="content">
  78.   <div id="tree">
  79.     <? echo $listing?>
  80.   </div>
  81. </div>
  82. <?php include_once($dir."/help.php")?></div>

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