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=$GLOBALS['lang']['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.         $listing.="<li class=\"li0\">\n";
  31.         $listing.="\t<a href=\"".$link_det."s".$result[$i]['sdtheme_id']."\" title=\"".$GLOBALS['lang']['theme']['det']."\">".formatText($result[$i]['sdtheme_name'],'2HTML')."</a>";
  32.         $listing.="</li>\n";
  33.  
  34.     }
  35.     $listing.="<li class=\"li1\">\n";
  36.     $listing.="\t<a href=\"".$link_det.$result[$i]['theme_id']."\" title=\"".$GLOBALS['lang']['theme']['det']."\">".formatText($result[$i]['theme_name'],'2HTML')."</a>\n";
  37.     if ($result[$i]['theme_statut']=='D'$listing.="<span class=\"state\">".$GLOBALS['lang']['statut']['draft']."</span>";
  38.     $listing.="\t<a href=\"".$link_sup.$result[$i]['theme_id']."\" class=\"ico_sup\" title=\"".$GLOBALS['lang']['theme']['sup']."\"></a>\n";
  39.     $listing.="\t<a href=\"".$link_mod.$result[$i]['theme_id']."\" class=\"ico_mod\" title=\"".$GLOBALS['lang']['theme']['mod']."\"></a>\n";
  40.     $listing.="</li>\n";
  41. }
  42. $listing.="</ul>\n";
  43. ?>
  44. <div id="chemin">
  45.     <ul>
  46.         <li>
  47.             <a href="index.php"><? echo $GLOBALS['lang']['way']['home']?></a>
  48.         </li>
  49.         <li>
  50.             <a href="<?php echo $rub_link?>"><? echo $GLOBALS['lang']['menu']['theme']?></a>
  51.         </li>
  52.         <li>
  53.             <span><? echo formatNavTitle($current_title)?></span>
  54.         </li>
  55.     </ul>
  56. </div>
  57.   <!--end barre haute -->
  58. <?php
  59. include_once("quickicons.php");
  60. ?>
  61. <div class="contentcontainer">
  62. <?php    include_once($dir."/menurub.php");    ?>
  63. <div id="content">
  64. <?
  65. echo $listing;
  66. ?>
  67. </div>
  68. <?php include_once($dir."/help.php")?>
  69. </div>

Documentation generated on Sat, 08 Nov 2008 14:53:03 +0100 by phpDocumentor 1.4.1