Example #1
0
 public function cadastrar_prematricula()
 {
     $msg = null;
     $data = $this->getParametroVisao();
     $data['page'] = 'default';
     $data['msg'] = $this->getMsg();
     $data['abaAtiva'] = '';
     $data['abaPage'] = 'cadastrar_prematricula';
     $data['tema'] = $this->load->setTheme('default');
     $data['largura'] = 800;
     $data['largura_percent'] = 50;
     $data['margin_top'] = 'margin_top10';
     $this->session->set_userdata('pai_cliente', '');
     $this->session->set_userdata('mae_cliente', '');
     if ($_SERVER['REQUEST_METHOD'] == "POST") {
         try {
             // View::validarFormAntInjection('vAcao');
             $sqlMatricula = new SqlMatricula();
             $sqlMatricula->atualizar_responsavel($this->session->userdata('pk_tmk_cliente'), $this->input->post('alu_resp'), $this->input->post('alu_resnaci'), $this->input->post('alu_resestciv'), $this->input->post('alu_resprof'), $this->input->post('alu_cpfres'), $this->input->post('alu_resident'), $this->input->post('alu_resorgao'), $this->input->post('alu_resend'), $this->input->post('alu_resbai'), $this->input->post('alu_resnum'), $this->input->post('alu_rescom'), $this->input->post('alu_rescid'), $this->input->post('alu_resuf'), $this->input->post('alu_rescep'), $this->input->post('alu_resfone'), $this->input->post('alu_rescel'), $this->input->post('alu_resemail'));
             $this->session->set_userdata('endereco_cliente', $this->input->post('ALU_RESEND'));
             $this->session->set_userdata('numero_cliente', $this->input->post('ALU_RESNUM'));
             $this->session->set_userdata('complemento_cliente', $this->input->post('ALU_RESCOM'));
             $this->session->set_userdata('bairro_cliente', $this->input->post('ALU_RESBAI'));
             $this->session->set_userdata('cidade_cliente', $this->input->post('ALU_RESCID'));
             $this->session->set_userdata('cep_cliente', $this->input->post('ALU_RESCEP'));
             $this->session->set_userdata('telefone_cliente', $this->input->post('ALU_RESFONE'));
             redirect(base_url() . 'matricula/mat/cadastrar_prematricula_aluno');
             return false;
         } catch (Exception $e) {
             $msg = '<p class="alert erro">' . $e->getMessage() . '</p>';
         }
     }
     $sqlAtendimento = new SqlAtendimento();
     $data['series'] = $sqlAtendimento->get_series();
     $data['estados'] = Util::estados();
     $this->load->view($this->load->getUrlTema(), $data);
 }