Esempio n. 1
0
 public function actualizar($cif)
 {
     $aux = FALSE;
     $empresa = new Empresa_model();
     $empresa->datos($cif);
     if ($empresa->actualizar($cif)) {
         if ($this->input->post('servicios') != '') {
             $this->Servicios = $this->input->post('servicios');
         } else {
             $this->Servicios = NULL;
         }
         $this->db->set('Servicios', $this->Servicios);
         $this->db->where('Cif', $cif);
         if ($this->db->update('Proveedor')) {
             $aux = TRUE;
         }
     }
     return $aux;
 }
 public function actualizar($cif)
 {
     $aux = FALSE;
     $empresa = new Empresa_model();
     $empresa->datos($cif);
     if ($empresa->actualizar($cif)) {
         if ($this->input->post('valoracion') != '') {
             $this->Valoracion = $this->input->post('valoracion');
         } else {
             $this->Valoracion = NULL;
         }
         $this->db->set('Valoracion', $this->Valoracion);
         $this->db->where('Cif', $cif);
         if ($this->db->update('Constructora')) {
             $aux = TRUE;
         }
     }
     return $aux;
 }