Beispiel #1
0
 public function _list()
 {
     $oArticleModel = new model_article();
     $tArticle = $oArticleModel->findAllOrderBy(module_table::getParam('order', 'titre'), module_table::getParam('side'));
     $oView = new _view('private/article::slist');
     $oView->tArticle = $tArticle;
     $oView->tColumn = $oArticleModel->getListColumn();
     //array('id','titre');//
     //on recupere un tableau indexe des auteurs pour afficher leur nom a la place de leur id
     $oView->tJoinAuteur = model_auteur::getInstance()->getSelect();
     $this->oLayout->add('main', $oView);
 }
Beispiel #2
0
 public function _listAjax()
 {
     $sOrder = module_table::getParam('order');
     if ($sOrder == '') {
         $sOrder = 'titre';
     }
     $sSide = module_table::getParam('side');
     if ($sSide == '') {
         $sSide = 'ASC';
     }
     $oArticleModel = new model_article();
     $tArticle = $oArticleModel->findAllOrderBy($sOrder, $sSide);
     $oView = new _view('article::listViaModuleAjax');
     $oView->tArticle = $tArticle;
     $oView->tColumn = $oArticleModel->getListColumn();
     //on recupere un tableau indexe des auteurs pour afficher leur nom a la place de leur id
     $oView->tJoinAuteur = model_auteur::getInstance()->getSelect();
     print $oView->show();
     exit;
 }
Beispiel #3
0
<?php

$sParamOrder = module_table::getParam('order');
$sParamSide = module_table::getParam('side');
$sVarPage = 'page';
$sValuePage = module_table::getParam($sVarPage, 1);
?>
<table class="<?php 
echo $this->sClass;
?>
">
	<thead>
		<tr>
			<?php 
foreach ($this->tHeader as $tDetail) {
    ?>
			<th style="vertical-align:top"><?php 
    echo $tDetail['label'];
    ?>
<br />
				<?php 
    if (isset($tDetail['order'])) {
        ?>
					<a href="<?php 
        echo module_table::getLink(null, array('order' => $tDetail['order'], 'side' => 'asc', $sVarPage => $sValuePage));
        ?>
"><img src="css/images/flecheUp<?php 
        if ($sParamOrder == $tDetail['order'] and $sParamSide == 'asc') {
            ?>
On<?php 
        } else {
Beispiel #4
0
<?php

$sParamOrder = module_table::getParam('order');
$sParamSide = module_table::getParam('side');
?>
<table class="<?php 
echo $this->sClass;
?>
">
	<thead>
		<tr>
			<?php 
foreach ($this->tHeader as $i => $tDetail) {
    ?>
			<th <?php 
    if ($this->tClassColumn and isset($this->tClassColumn[$i])) {
        ?>
class="<?php 
        echo $this->tClassColumn[$i];
        ?>
"<?php 
    }
    ?>
 style="vertical-align:top"><?php 
    echo $tDetail['label'];
    ?>
<br />
				<?php 
    if (isset($tDetail['order'])) {
        ?>
					<a href="<?php