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