Exemplo n.º 1
0
 public function executeGArxiuDvd(sfWebRequest $request)
 {
     $this->setLayout('gestio');
     //Actualitzem el requadre de cerca
     $this->FCerca = new CercaForm();
     $this->FCerca->bind($request->getParameter('cerca'));
     $temp = $request->getParameter('cerca');
     $this->CERCA = $temp['text'];
     if ($request->isMethod('POST') || $request->isMethod('GET')) {
         $accio = $request->getParameter('accio');
         if ($request->hasParameter('BCERCA')) {
             $accio = 'C';
         }
         //	    if( $request->hasParameter('BNOU') )  		$accio = 'N';
         //	    if( $request->hasParameter('BSAVE') ) 		$accio = 'S';
         //	    if( $request->hasParameter('BDELETE') )		$accio = 'D';
     }
     //Inicialitzacions pel template
     $this->CONSULTA = true;
     $this->NOU = false;
     $this->EDICIO = false;
     $this->accio = NULL;
     switch ($accio) {
     }
     $this->DVDS = ArxiuDvdPeer::cerca($this->CERCA);
 }