1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
| <?php
class MainController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
// action body
//$layout = Zend_Layout::getMvcInstance();
//$layout->setLayout('layout');
$page = $this->_getParam('page');
if($page=='vendeur'){
//$this->view->layout()=$this->view->action('index','formulaire');
$this->view->layout()->main=$this->view->action('index','vendeur');
}
if($page=='acheteur'){
//$this->view->layout()=$this->view->action('index','formulaire');
$this->view->layout()->main=$this->view->action('index','acheteur');
}
if($page=='prestationsimple'){
//$this->view->layout()=$this->view->action('index','formulaire');
$this->view->layout()->main=$this->view->action('index','prestationsimple');
}
if($page=='confirme'){
//$this->view->layout()=$this->view->action('index','formulaire');
$this->view->layout()->main=$this->view->action('index','confirme');
}
if($page=='valide'){
//$this->view->layout()=$this->view->action('index','formulaire');
$this->view->layout()->main=$this->view->action('index','valide');
}
if($page=='facture'){
//$this->view->layout()=$this->view->action('index','formulaire');
$this->view->layout()->main=$this->view->action('index','facture');
}
if($page=='imprimeress'){
$this->view->layout()->main=$this->view->action('index','imprimeress');
}
if($page=='imprimerproforma'){
$this->view->layout()->main=$this->view->action('index','imprimerproforma');
}
if($page=='imprimerfacture'){
$this->view->layout()->main=$this->view->action('index','imprimerfacture');
}
if($page=='imprimercontrat'){
$this->view->layout()->main=$this->view->action('index','imprimercontrat');
}
if($page=='enregistrereg'){
$this->view->layout()->main=$this->view->action('index','enregistrereg');
}
if($page=='modifierprest'){
$this->view->layout()->main=$this->view->action('index','modifierprest');
}
if($page=='devaliderprest'){
$this->view->layout()->main=$this->view->action('index','devaliderprest');
}
if($page=='abandonnerprest'){
$this->view->layout()->main=$this->view->action('index','abandonnerprest');
}
if($page=='annulerprest'){
$this->view->layout()->main=$this->view->action('index','annulerprest');
}
if($page=='saisir'){
$cli = $this->_getParam('cli');
$num = $this->_getParam('num');
$this->view->layout()->main=$this->view->action('index','saisir',null,array('cli'=>$cli,'num'=>$num));
}
}
} |
Partager