Ajout Gestion

This commit is contained in:
Michael RICOIS 2012-02-22 17:08:39 +00:00
parent a79970de29
commit f4f050dadd
9 changed files with 85 additions and 0 deletions

View File

@ -4,6 +4,9 @@
<li><a href="<?=$this->url(array('controller'=>'dashboard', 'action'=>'index'), null, true)?>">Tableau de bord</a></li>
<li><a href="<?=$this->url(array('controller'=>'aide', 'action'=>'index'), null, true)?>">Aide</a></li>
<li><a href="<?=$this->url(array('controller'=>'aide', 'action'=>'aproposde'), null, true)?>">A propos de</a></li>
<?php if ( $this->admin ) {?>
<li><a href="<?=$this->url(array('controller'=>'gestion', 'action'=>'index'), null, true)?>">Gestion</a></li>
<?php }?>
<li><a href="<?=$this->url(array('controller'=>'user', 'action'=>'logout'), null, true)?>">Déconnexion</a></li>
</ul>
</div>

View File

@ -0,0 +1,27 @@
<?php
class GestionController extends Zend_Controller_Action
{
public function preDispatch()
{
}
public function indexAction()
{
}
public function profilsAction()
{
}
public function profilAction(){}
public function profiladdAction(){}
public function profildelAction(){}
}

View File

@ -0,0 +1,11 @@
<div id="dashboard">
<h2>Gestion des profils</h2>
<a href="<?=$this->url(array('controller'=>'gestion', 'action'=>'profils'))?>">Lister les profils</a><br/>
<a href="<?=$this->url(array('controller'=>'gestion', 'action'=>'profiladd'))?>">Créer un profil d'enrichissement pour un client (idClient, login)</a>
<h2>Gestion des commandes</h2>
<a href="">Commande</a><br/>
<a href="">Lister les commandes</a>
</div>

View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1,34 @@
<form>
<label>idClient</label>
<input type="text" name="idClient" />
<br/>
<label>login</label>
<input type="text" name="login" />
<br/>
<label>Reference</label>
<input type="text" name="reference" />
<br/>
<div style="width:100%;">
<div style="width:45%;float:left;">
<label>Selection des données pour l'enrichissement</label>
<select name="listcriteres">
<option value="">-</option>
</select>
</div>
<div style="width:45%;float:right;" id="criteres">
Criteres
</div>
</div>
<div style="clear:both;"></div>
<label>tarifLigne</label>
<input type="text" name="tarifLigne" />
<br/>
</form>

View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1 @@
<?php

View File

@ -79,6 +79,13 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
}
}
if ( $auth && $auth->getIdentity()->profil=='SuperAdministrateur' ){
$layout = Zend_Layout::getMVCInstance();
$view = $layout->getView();
$view->admin = true;
}
}
}
}