Source for file list.php
Documentation is available at list.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
$result= $sql_object->DBSelect($req_list_theme);
//$result_sdi=$sdi_object->GetListSdi($filter="R", $valueparam=0, $sql_object);
$result_sdi = $sql_object -> DBSelect($req_sdi);
$link_sup= $rub_link. "&todo=sup&id=";
$link_mod= $rub_link. "&todo=mod&id=";
$link_det= $rub_link. "&todo=det&id=";
for ($i= 0;$i< count($result);$i++ ){
if ($result[$i]['sdtheme_id']!= $current_sdtheme) {
if($i<> 0) $listing.= "</ul>\n</li>\n";
$current_sdtheme= $result[$i]['sdtheme_id'];
$listing.= "<li class=\"li0\">\n";
$listing.= "\t<a class=\"nolink\" href=\"#\">". formatText($result[$i]['sdtheme_name'], '2HTML'). "</a>\n";
$listing.= "<li class=\"li1\">\n";
$listing.= "\t<a class=\"nolink\" href=\"#\">". cutText(formatText($result[$i]['theme_name'], '2HTML'), 90, 1). "</a>\n";
for ($j= 0;$j< count($result_sdi);$j++ ) {
if ($result[$i]['theme_id']== $result_sdi[$j]['sdii_theme']) {
// we open the indicators UL if there are items (once only)
if(empty($content)) $content.= "<ul>\n";
$content.= "<li class=\"contextual-menu li2\">\n";
$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'), 90, 1). "</a>\n";
if ($result_sdi[$j]['sdii_statut']== 'D') $content.= "<span class=\"state\">". _t('statut','draft'). "</span>";
$content.= "\t<a href=\"". $link_sup. $result_sdi[$j]['sdii_id']. "\" title=\"". _t('sdi','sup'). "\" class=\"ico_sup\"></a>\n";
$content.= "\t<a href=\"". $link_mod. $result_sdi[$j]['sdii_id']. "\" title=\"". _t('sdi','mod'). "\" class=\"ico_mod\"></a>\n";
// we close the indicators UL if there are items
if(!empty($content)) $content.= "</ul>\n";
// we close the subtheme li (li1) tag
$listing.= $content. "</li>\n";
// we finally close subthemes and themes ULs
$listing.= "</ul></ul>\n";
<li><a href="index.php" class="chemin_home"> <?php echo _t('way','home'); ?></a></li>
<li><a href=" <?php echo $rub_link; ?>" id="chemin_ <?php echo $rub; ?>" class="chemin_rub"> <?php echo _t('menu','sdi');?></a></li>
<li><span> <?php echo _t('sdi','list'); ?></span></li>
include_once(THEME_ADMIN_PATH. "quickicons.php");
<div class="contentcontainer"> <?php include_once($dir. "/menurub.php"); ?>
<?php include_once($dir. "/help.php"); ?></div>
|