Affichage select profil

This commit is contained in:
Michael RICOIS 2012-01-17 11:44:02 +00:00
parent b358f40f9c
commit 7df5bd0a76
2 changed files with 17 additions and 2 deletions

View File

@ -5,8 +5,13 @@ class IndexController extends Zend_Controller_Action
public function indexAction()
{
$db = Zend_Registry::get('db');
//Liste des profils
$profilM = new Application_Model_Profil();
$sql = $profilM->select();
$this->view->assign('fileAttenteProfil', $profilM->fetchAll($sql));
$commandesM = new Application_Model_Commandes($db);
$commandesM = new Application_Model_Commandes($db);
//Liste des fichiers en attente de profil
$sql = $commandesM->select()->where('idProfil = ?', 0);

View File

@ -18,7 +18,17 @@
</thead>
<tbody>
<?php foreach($this->fileAttenteProfil as $file) {?>
<tr><td><?=$file->fichier?></td><td>-</td></tr>
<tr><td><?=$file->fichier?></td>
<td>
<select name="profil">
<?php if (count($this->listProfil)>0) { ?>
<?php foreach($this->listProfil as $profil) {?>
<option value=""></option>
<?php }?>
<?php }?>
</select>
</td>
</tr>
<?php }?>
</tbody>
</table>