Ajout Gestion
This commit is contained in:
parent
a79970de29
commit
f4f050dadd
@ -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>
|
||||
|
@ -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(){}
|
||||
|
||||
}
|
@ -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>
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -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>
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -0,0 +1 @@
|
||||
<?php
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user