Affichage select profil
This commit is contained in:
parent
b358f40f9c
commit
7df5bd0a76
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user