load->model('m_website_unlaacid'); $this->load->helpers(array('form', 'form_helper','url_helper')); } public function pend_ekonomi_akuntansi(){ $data['title'] = "UNLA - Pendidikan Ekonomi/Akuntansi S1"; $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/fakultas/fkip/v_pendekonomi'); $this->load->view('web/new/v_footer'); } public function pend_matematika(){ $data['title'] = "UNLA - Pendidikan Matematika S1"; $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/fakultas/fkip/v_pendmtk'); $this->load->view('web/new/v_footer'); } public function pgsd(){ $data['title'] = "UNLA - PGSD S1"; $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/fakultas/fkip/v_pgsd'); $this->load->view('web/new/v_footer'); } public function alumni_pend_ekonomi_akuntansi(){ $this->_validation_daftar(); if($this->form_validation->run()==false){ $data["nama_alumni"] = ""; $data["jenkel"] = ""; $data["tmptlahir"] = ""; $data["tgllahir"] = ""; $data["alamat_rmh"] = ""; $data["notlp"] = ""; $data["email"] = ""; $data["uk_kaos"] = ""; //$data["id_prodi"] = ""; $data["thnmasuk"] = ""; $data["thnlulus"] = ""; $data["id_pekerjaan"] = ""; $data["id_bidang_kerja"] = ""; $data["id_instansi_kerja"] = ""; $data["nama_instansi"] = ""; $data["alamat_instansi"] = ""; $data["action_form"] = base_url().'index.php/fkip/alumni_pend_ekonomi_akuntansi'; $data['title'] = "UNLA - Alumni S1 Pendidikan Ekonomi/Akuntansi"; $data['judul_prodi'] = "Identitas Alumni - S1 Pendidikan Ekonomi/Akuntansi"; $data["drop_pekerjaan"] = $this->m_website_unlaacid->get_drop_pekerjaan(); $data["drop_bidang"] = $this->m_website_unlaacid->get_drop_bidang(); $data["drop_instansi"] = $this->m_website_unlaacid->get_drop_instansi(); $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/alumni/v_identitas_alumni'); $this->load->view('web/new/v_footer'); }else{ $nama_alumni = $this->input->post('nama_alumni'); $jenkel = $this->input->post('jenkel'); $tmptlahir = $this->input->post('tmptlahir'); $tgllahir = date('Y-m-d', strtotime($this->input->post('tgllahir'))); $alamat_rmh = $this->input->post('alamat_rmh'); $notlp = $this->input->post('notlp'); $email = $this->input->post('email'); $id_prodi = "87203"; //$id_prodi = $this->input->post('id_prodi'); $thnmasuk = $this->input->post('thnmasuk'); $thnlulus = $this->input->post('thnlulus'); $id_pekerjaan = $this->input->post('id_pekerjaan'); $id_bidang_kerja = $this->input->post('id_bidang_kerja'); $id_instansi_kerja = $this->input->post('id_instansi_kerja'); $nama_instansi = $this->input->post('nama_instansi'); $alamat_instansi = $this->input->post('alamat_instansi'); $uk_kaos = $this->input->post('uk_kaos'); $data = array( 'id_bidang_kerja' => $id_bidang_kerja, 'id_instansi_kerja' => $id_instansi_kerja, 'id_pekerjaan' => $id_pekerjaan, 'nm_alumni' => $nama_alumni, 'jen_kel' => $jenkel, 'tmpt_lhir' => $tmptlahir, 'tgl_lhir' => $tgllahir, 'almt_alumni' => $alamat_rmh, 'no_tlp' => $notlp, 'almt_email' => $email, 'thn_msk' => $thnmasuk, 'thn_lulus' => $thnlulus, 'nm_instansi' => $nama_instansi, 'almt_instansi' => $alamat_instansi, 'id_prodi' => $id_prodi, 'ukkaos' => $uk_kaos ); $this->m_website_unlaacid->save_daftar($data); $this->session->set_flashdata('success', 'Terimakasih Alumni atas partisipasinya'); redirect('index.php/fkip/pend_ekonomi_akuntansi'); } } public function alumni_pend_matematika(){ $this->_validation_daftar(); if($this->form_validation->run()==false){ $data["nama_alumni"] = ""; $data["jenkel"] = ""; $data["tmptlahir"] = ""; $data["tgllahir"] = ""; $data["alamat_rmh"] = ""; $data["notlp"] = ""; $data["email"] = ""; $data["uk_kaos"] = ""; //$data["id_prodi"] = ""; $data["thnmasuk"] = ""; $data["thnlulus"] = ""; $data["id_pekerjaan"] = ""; $data["id_bidang_kerja"] = ""; $data["id_instansi_kerja"] = ""; $data["nama_instansi"] = ""; $data["alamat_instansi"] = ""; $data["action_form"] = base_url().'index.php/fkip/alumni_pend_matematika'; $data['title'] = "UNLA - Alumni S1 Pendidikan Matematika"; $data['judul_prodi'] = "Identitas Alumni - S1 Pendidikan Matematika"; $data["drop_pekerjaan"] = $this->m_website_unlaacid->get_drop_pekerjaan(); $data["drop_bidang"] = $this->m_website_unlaacid->get_drop_bidang(); $data["drop_instansi"] = $this->m_website_unlaacid->get_drop_instansi(); $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/alumni/v_identitas_alumni'); $this->load->view('web/new/v_footer'); }else{ $nama_alumni = $this->input->post('nama_alumni'); $jenkel = $this->input->post('jenkel'); $tmptlahir = $this->input->post('tmptlahir'); $tgllahir = date('Y-m-d', strtotime($this->input->post('tgllahir'))); $alamat_rmh = $this->input->post('alamat_rmh'); $notlp = $this->input->post('notlp'); $email = $this->input->post('email'); $id_prodi = "84202"; //$id_prodi = $this->input->post('id_prodi'); $thnmasuk = $this->input->post('thnmasuk'); $thnlulus = $this->input->post('thnlulus'); $id_pekerjaan = $this->input->post('id_pekerjaan'); $id_bidang_kerja = $this->input->post('id_bidang_kerja'); $id_instansi_kerja = $this->input->post('id_instansi_kerja'); $nama_instansi = $this->input->post('nama_instansi'); $alamat_instansi = $this->input->post('alamat_instansi'); $uk_kaos = $this->input->post('uk_kaos'); $data = array( 'id_bidang_kerja' => $id_bidang_kerja, 'id_instansi_kerja' => $id_instansi_kerja, 'id_pekerjaan' => $id_pekerjaan, 'nm_alumni' => $nama_alumni, 'jen_kel' => $jenkel, 'tmpt_lhir' => $tmptlahir, 'tgl_lhir' => $tgllahir, 'almt_alumni' => $alamat_rmh, 'no_tlp' => $notlp, 'almt_email' => $email, 'thn_msk' => $thnmasuk, 'thn_lulus' => $thnlulus, 'nm_instansi' => $nama_instansi, 'almt_instansi' => $alamat_instansi, 'id_prodi' => $id_prodi, 'ukkaos' => $uk_kaos ); $this->m_website_unlaacid->save_daftar($data); $this->session->set_flashdata('success', 'Terimakasih Alumni atas partisipasinya'); redirect('index.php/fkip/pend_matematika'); } } public function alumni_pgsd(){ $this->_validation_daftar(); if($this->form_validation->run()==false){ $data["nama_alumni"] = ""; $data["jenkel"] = ""; $data["tmptlahir"] = ""; $data["tgllahir"] = ""; $data["alamat_rmh"] = ""; $data["notlp"] = ""; $data["email"] = ""; $data["uk_kaos"] = ""; //$data["id_prodi"] = ""; $data["thnmasuk"] = ""; $data["thnlulus"] = ""; $data["id_pekerjaan"] = ""; $data["id_bidang_kerja"] = ""; $data["id_instansi_kerja"] = ""; $data["nama_instansi"] = ""; $data["alamat_instansi"] = ""; $data["action_form"] = base_url().'index.php/fkip/alumni_pgsd'; $data['title'] = "UNLA - Alumni S1 PGSD"; $data['judul_prodi'] = "Identitas Alumni - S1 PGSD"; $data["drop_pekerjaan"] = $this->m_website_unlaacid->get_drop_pekerjaan(); $data["drop_bidang"] = $this->m_website_unlaacid->get_drop_bidang(); $data["drop_instansi"] = $this->m_website_unlaacid->get_drop_instansi(); $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/alumni/v_identitas_alumni'); $this->load->view('web/new/v_footer'); }else{ $nama_alumni = $this->input->post('nama_alumni'); $jenkel = $this->input->post('jenkel'); $tmptlahir = $this->input->post('tmptlahir'); $tgllahir = date('Y-m-d', strtotime($this->input->post('tgllahir'))); $alamat_rmh = $this->input->post('alamat_rmh'); $notlp = $this->input->post('notlp'); $email = $this->input->post('email'); $id_prodi = "86206"; //$id_prodi = $this->input->post('id_prodi'); $thnmasuk = $this->input->post('thnmasuk'); $thnlulus = $this->input->post('thnlulus'); $id_pekerjaan = $this->input->post('id_pekerjaan'); $id_bidang_kerja = $this->input->post('id_bidang_kerja'); $id_instansi_kerja = $this->input->post('id_instansi_kerja'); $nama_instansi = $this->input->post('nama_instansi'); $alamat_instansi = $this->input->post('alamat_instansi'); $uk_kaos = $this->input->post('uk_kaos'); $data = array( 'id_bidang_kerja' => $id_bidang_kerja, 'id_instansi_kerja' => $id_instansi_kerja, 'id_pekerjaan' => $id_pekerjaan, 'nm_alumni' => $nama_alumni, 'jen_kel' => $jenkel, 'tmpt_lhir' => $tmptlahir, 'tgl_lhir' => $tgllahir, 'almt_alumni' => $alamat_rmh, 'no_tlp' => $notlp, 'almt_email' => $email, 'thn_msk' => $thnmasuk, 'thn_lulus' => $thnlulus, 'nm_instansi' => $nama_instansi, 'almt_instansi' => $alamat_instansi, 'id_prodi' => $id_prodi, 'ukkaos' => $uk_kaos ); $this->m_website_unlaacid->save_daftar($data); $this->session->set_flashdata('success', 'Terimakasih Alumni atas partisipasinya'); redirect('index.php/fkip/pgsd'); } } function _validation_daftar(){ $this->form_validation->set_rules("nama_alumni", "Nama Alumni", "required|min_length[4]|max_length[50]"); $this->form_validation->set_rules("jenkel", "Jenis Kelamin", "required"); $this->form_validation->set_rules("tmptlahir", "Tempat Lahir", "required|min_length[4]|max_length[30]"); $this->form_validation->set_rules("tgllahir", "Tanggal Lahir", "required"); $this->form_validation->set_rules("alamat_rmh", "Alamat Rumah", "required|min_length[4]|max_length[500]"); $this->form_validation->set_rules("notlp", "No Telepon/HP", "required|max_length[20]"); $this->form_validation->set_rules("email", "Email", "required|valid_email|max_length[50]"); $this->form_validation->set_rules("uk_kaos", "Ukuran Kaos", "required"); //$this->form_validation->set_rules("id_prodi", "Prodi", "required"); $this->form_validation->set_rules("thnmasuk", "Tahun Masuk", "required|min_length[4]|max_length[4]"); $this->form_validation->set_rules("thnlulus", "Tahun Lulus", "required|min_length[4]|max_length[4]"); $this->form_validation->set_rules("id_pekerjaan", "Pekerjaan", "required"); $this->form_validation->set_rules("id_bidang_kerja", "Bidang Kerja", "required"); $this->form_validation->set_rules("id_instansi_kerja", "Instansi Kerja", "required"); $this->form_validation->set_rules("nama_instansi", "Nama Instansi", "required|min_length[4]|max_length[50]"); $this->form_validation->set_rules("alamat_instansi", "Alamat Instansi", "required|min_length[4]|max_length[500]"); $this->form_validation->set_message("required","%s tidak boleh kosong"); $this->form_validation->set_message("valid_email","%s tidak valid"); $this->form_validation->set_message("max_length", "%s tidak boleh lebih dari %s karakter"); $this->form_validation->set_message("min_length", "%s Minimal %s karakter"); $this->form_validation->set_error_delimiters("
", "
"); } }