Liste des profils

This commit is contained in:
Michael RICOIS 2012-02-24 09:54:21 +00:00
parent b530470273
commit eb097d1535
2 changed files with 71 additions and 2 deletions

View File

@ -6,6 +6,11 @@ class GestionController extends Zend_Controller_Action
}
public function init()
{
$this->view->headLink()->appendStylesheet('/themes/default/styles/dashboard.css', 'all');
}
public function indexAction()
{
@ -14,13 +19,44 @@ class GestionController extends Zend_Controller_Action
public function profilsAction()
{
$profilsM = new Table_EnrichissementProfils();
$sql = $profilsM->select()
->from($profilsM, array('id', 'idClient', 'login', 'reference', 'tarifLigne', 'dateAjout', 'dateSuppr', 'actif'));
$profils = $profilsM->fetchAll($sql);
$this->view->assign('profils', $profils);
}
public function profilAction(){}
public function profiladdAction(){}
public function profiladdAction()
{
$request = $this->getRequest();
//Sauvegarde du formulaire
if ( $request->isPost() ){
}
//Affichage du formulaire
require_once 'Scores/Field.php';
$fieldsM = new Fields();
$allFields = $fieldsM->getFields();
$fields = array();
foreach($allFields as $name => $item)
{
if ( array_key_exists('extract', $item) ) {
$fields[$name] = $item;
}
}
}
public function profildelAction(){}

View File

@ -0,0 +1,33 @@
<div id="dashboard">
<h2>Liste des profils</h2>
<table>
<thead>
<tr>
<th>idClient</th>
<th>login</th>
<th>reference</th>
<th>tarifLigne</th>
<th>dateAjout</th>
<th>dateSuppr</th>
<th>actif</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach ( $this->profils as $profil ) {?>
<tr>
<td><?=$profil['idClient']?></td>
<td><?=$profil['login']?></td>
<td><?=$profil['reference']?></td>
<td><?=$profil['tarifLigne']?></td>
<td><?=$profil['dateAjout']?></td>
<td><?=$profil['dateSuppr']?></td>
<td><?=$profil['actif']?></td>
<td></td>
</tr>
<?php }?>
</tbody>
</table>
</div>