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 theme
  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('theme','list');
  19. $result=$sql_object->DBSelect($req_list_theme);
  20. $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  21. $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  22. $link_det=$rub_link."&amp;todo=det&amp;id=";
  23.  
  24. $listing="<ul>\n";
  25.  
  26. $current_sdtheme='';
  27. for ($i=0;$i<count($result);$i++){
  28.     if ($result[$i]['sdtheme_id']!=$current_sdtheme{
  29.         $current_sdtheme=$result[$i]['sdtheme_id'];
  30.         
  31.         if($i == 0)$listing.="<li class=\"li0\">\n";
  32.         else $listing.="</ul></li><li class=\"li0\">\n";
  33.         $listing.="\t<a href=\"".$link_det."s".$result[$i]['sdtheme_id']."\" title=\""._t('theme','det')."\">".formatText($result[$i]['sdtheme_name'],'2HTML')."</a>";
  34.         $listing.="\t<a href=\"".$link_sup.'s'.$result[$i]['sdtheme_id']."\" class=\"ico_sup\" title=\""._t('theme','sup')."\"></a>\n";
  35.         $listing.="\t<a href=\"".$link_mod.'s'.$result[$i]['sdtheme_id']."\" class=\"ico_mod\" title=\""._t('theme','mod')."\"></a>\n";
  36.         $listing.="<ul>\n";
  37.  
  38.     }
  39.     $listing.="<li class=\"li1\">\n";
  40.     $listing.="\t<a href=\"".$link_det.$result[$i]['theme_id']."\" title=\""._t('theme','det')."\">".formatText($result[$i]['theme_name'],'2HTML')."</a>\n";
  41.     if ($result[$i]['theme_statut']=='D'$listing.="<span class=\"state\">"._t('statut','draft')."</span>";
  42.     $listing.="\t<a href=\"".$link_sup.$result[$i]['theme_id']."\" class=\"ico_sup\" title=\""._t('theme','sup')."\"></a>\n";
  43.     $listing.="\t<a href=\"".$link_mod.$result[$i]['theme_id']."\" class=\"ico_mod\" title=\""._t('theme','mod')."\"></a>\n";
  44.     $listing.="</li>\n";
  45. }
  46. $listing.="</ul></li></ul>\n";
  47. ?>
  48. <div id="chemin">
  49.     <ul>
  50.         <li>
  51.             <a href="index.php" class="chemin_home"><? echo _t('way','home')?></a>
  52.         </li>
  53.         <li>
  54.                <a href="<?php echo $rub_link?>" id="chemin_<? echo $rub?>" class="chemin_rub"><? echo _t('menu','theme')?></a>
  55.         </li>
  56.         <li>
  57.             <span><? echo formatNavTitle($current_title)?></span>
  58.         </li>
  59.     </ul>
  60. </div>
  61.   <!--end barre haute -->
  62. <?php
  63. include_once(THEME_ADMIN_PATH."quickicons.php");
  64. ?>
  65. <div class="contentcontainer">
  66. <?php    include_once($dir."/menurub.php");    ?>
  67. <div id="content">
  68. <div id="tree">
  69. <?
  70. echo $listing;
  71. ?>
  72. </div>
  73. </div>
  74. <?php include_once($dir."/help.php")?>
  75. </div>

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