load->model('m_website_unlaacid'); $this->load->helpers(array('form', 'form_helper','url_helper')); } public function ilmu_pemerintahan(){ $data['title'] = "UNLA - Ilmu Pemerintahan S2"; $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/fakultas/pascasarjana/v_ip'); $this->load->view('web/new/v_footer'); } public function alumni_magister_ip(){ $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/pascasarjana/alumni_magister_ip'; $data['title'] = "UNLA - Alumni S2 Ilmu Pemerintahan"; $data['judul_fisip'] = "Identitas Alumni - S2 Ilmu Pemerintahan"; $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/fakultas/fisip/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 = "65101"; //$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/pascasarjana/ilmu_pemerintahan'); } } public function ilmu_hukum(){ $data['title'] = "UNLA - Ilmu Hukum S2"; $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/fakultas/pascasarjana/v_hukum'); $this->load->view('web/new/v_footer'); } public function alumni_magister_hukum(){ $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/pascasarjana/alumni_magister_hukum'; $data['title'] = "UNLA - Alumni S2 Ilmu Hukum "; $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/fakultas/pascasarjana/v_hukum_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 = "74101"; //$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/pascasarjana/ilmu_hukum'); } } public function manajemen(){ $data['title'] = "UNLA - Manajemen S2"; $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/fakultas/pascasarjana/v_manajemen'); $this->load->view('web/new/v_footer'); } public function alumni_magister_manajemen(){ $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/pascasarjana/alumni_magister_manajemen'; $data['title'] = "UNLA - Alumni S2 Manajemen"; $data['judul_prodi'] = "Identitas Alumni - S2 Manajemen"; $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 = "61101"; //$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/pascasarjana/manajemen'); } } public function teknik_informatika(){ $data['title'] = "UNLA - Teknik Informatika S2"; $this->load->view('web/new/v_header',$data); $this->load->view('web/new/v_menu'); $this->load->view('web/new/fakultas/pascasarjana/v_it'); $this->load->view('web/new/v_footer'); } public function alumni_magister_ti(){ $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/pascasarjana/alumni_magister_ti'; $data['title'] = "UNLA - Alumni S2 Teknik Informatika"; $data['judul_prodi'] = "Identitas Alumni - S2 Teknik Informatika"; $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 = "55101"; //$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/pascasarjana/teknik_informatika'); } } 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("
", "
"); } }