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=\"contextual-menu li0\">\n";
  32.     else $listing.="</ul></li><li class=\"contextual-menu 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=\"contextual-menu 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><a href="index.php" class="chemin_home"><?php echo _t('way','home')?></a>
  51.     </li>
  52.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  53.         class="chemin_rub"><?php echo _t('menu','theme')?></a></li>
  54.     <li><span><?php echo formatNavTitle($current_title)?></span></li>
  55. </ul>
  56. </div>
  57. <!--end barre haute -->
  58. <?php
  59. include_once(THEME_ADMIN_PATH."quickicons.php");
  60. ?>
  61. <div class="contentcontainer"><?php    include_once($dir."/menurub.php");    ?>
  62. <div id="content">
  63. <div id="tree"><?
  64. echo $listing;
  65. ?></div>
  66. </div>
  67. <?php include_once($dir."/help.php")?></div>

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