示例#1
0
        $oTable->addLineWithLink(array($oArticle->titre, $sAuteur, $oArticle->priority), _root::getLink('article::show', array('id' => $oArticle->id)));
    }
}
echo $oTable->build()->show();
?>
<h1>Tableau complexe 3 avec ent&ecirc;te fixe</h1>
<?php 
//avec tri
$oTable = new module_table('complex3');
$oTable->setClass('tb_list2');
$oTable->setCycleClass(array(null, 'alt'));
$oTable->addHeaderWithOrder('Titre', 'titre');
$oTable->addHeaderWithOrder('Auteur', 'auteur_id');
$oTable->addHeaderWithOrder('Priority', 'priority');
$oTable->setWidthTable(340);
$oTable->setColumnStyle(array('width:100px;', 'width:100px;', 'width:100px;'));
$oTable->setLimitLine(3, 70);
if ($this->tArticle) {
    foreach ($this->tArticle as $oArticle) {
        $sAuteur = null;
        if (isset($this->tJoinAuteur[$oArticle->auteur_id])) {
            $sAuteur = $this->tJoinAuteur[$oArticle->auteur_id];
        }
        $oTable->addLineWithLink(array($oArticle->titre, $sAuteur, $oArticle->priority), _root::getLink('article::show', array('id' => $oArticle->id)));
    }
}
echo $oTable->build()->show();
?>
<h1>Tableau complexe 4: avec tri et pagination</h1>
<?php 
//avec tri