58 lines
1.1 KiB
PHP
58 lines
1.1 KiB
PHP
<?php
|
|
class GestionController extends Zend_Controller_Action
|
|
{
|
|
public function preDispatch()
|
|
{
|
|
|
|
}
|
|
|
|
public function init()
|
|
{
|
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/dashboard.css', 'all');
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
|
|
|
|
}
|
|
|
|
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()
|
|
{
|
|
$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(){}
|
|
|
|
} |