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

Documentation generated on Thu, 20 Mar 2014 16:48:33 +0100 by phpDocumentor 1.4.1