Code:
controller:<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Admin extends CI_Controller {
function __construct() {
parent::__construct();
}
public function index() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
$a['page'] = "d_amain";
$this->load->view('admin/aaa', $a);
}
public function klas_surat() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
/* pagination */
$total_row = $this->db->query("SELECT * FROM ref_klasifikasi")->num_rows();
$per_page = 10;
$awal = $this->uri->segment(4);
$awal = (empty($awal) || $awal == 1) ? 0 : $awal;
//if (empty($awal) || $awal == 1) { $awal = 0; } { $awal = $awal; }
$akhir = $per_page;
$a['pagi'] = _page($total_row, $per_page, 4, base_url()."index.php/admin/klas_surat/p");
//ambil variabel URL
$mau_ke = $this->uri->segment(3);
$idu = $this->uri->segment(4);
$cari = addslashes($this->input->post('q'));
//ambil variabel Postingan
$idp = addslashes($this->input->post('idp'));
$nama = addslashes($this->input->post('nama'));
$uraian = addslashes($this->input->post('uraian'));
$cari = addslashes($this->input->post('q'));
if ($mau_ke == "cari") {
$a['data'] = $this->db->query("SELECT * FROM ref_klasifikasi WHERE nama LIKE '%$cari%' OR uraian LIKE '%$cari%' ORDER BY id DESC")->result();
$a['page'] = "l_klas_surat";
} else if ($mau_ke == "add") {
$a['page'] = "f_klas_surat";
} else if ($mau_ke == "edt") {
$a['datpil'] = $this->db->query("SELECT * FROM ref_klasifikasi WHERE id = '$idu'")->row();
$a['page'] = "f_klas_surat";
} else if ($mau_ke == "act_edt") {
$this->db->query("UPDATE ref_klasifikasi SET nama = '$nama', uraian = '$uraian' WHERE id = '$idp'");
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been updated</div>");
redirect('index.php/admin/klas_surat');
} else {
$a['data'] = $this->db->query("SELECT * FROM ref_klasifikasi LIMIT $awal, $akhir ")->result();
$a['page'] = "l_klas_surat";
}
$this->load->view('admin/aaa', $a);
}
public function klas_gol() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
/* pagination */
$total_row = $this->db->query("SELECT * FROM ref_panggol")->num_rows();
$per_page = 10;
$awal = $this->uri->segment(4);
$awal = (empty($awal) || $awal == 1) ? 0 : $awal;
//if (empty($awal) || $awal == 1) { $awal = 0; } { $awal = $awal; }
$akhir = $per_page;
$a['pagi'] = _page($total_row, $per_page, 4, base_url()."index.php/admin/klas_gol/p");
//ambil variabel URL
$mau_ke = $this->uri->segment(3);
$idu = $this->uri->segment(4);
$cari = addslashes($this->input->post('q'));
//ambil variabel Postingan
$idp = addslashes($this->input->post('idp'));
$nama = addslashes($this->input->post('nama'));
$uraian = addslashes($this->input->post('uraian'));
$cari = addslashes($this->input->post('q'));
if ($mau_ke == "cari") {
$a['data'] = $this->db->query("SELECT * FROM ref_panggol WHERE nama LIKE '%$cari%' OR uraian LIKE '%$cari%' ORDER BY kode DESC")->result();
$a['page'] = "l_klas_gol";
} else if ($mau_ke == "add") {
$a['page'] = "f_klas_gol";
} else if ($mau_ke == "edt") {
$a['datpil'] = $this->db->query("SELECT * FROM ref_panggol WHERE id = '$idu'")->row();
$a['page'] = "f_klas_gol";
} else if ($mau_ke == "act_edt") {
$this->db->query("UPDATE ref_gol SET nama = '$nama', uraian = '$uraian' WHERE id = '$idp'");
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been updated</div>");
redirect('index.php/admin/klas_gol');
} else {
$a['data'] = $this->db->query("SELECT * FROM ref_panggol LIMIT $awal, $akhir ")->result();
$a['page'] = "l_klas_gol";
}
$this->load->view('admin/aaa', $a);
}
public function surat_plh() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
/* pagination */
$total_row = $this->db->query("SELECT * FROM t_plh")->num_rows();
$per_page = 10;
$awal = $this->uri->segment(4);
$awal = (empty($awal) || $awal == 1) ? 0 : $awal;
//if (empty($awal) || $awal == 1) { $awal = 0; } { $awal = $awal; }
$akhir = $per_page;
$a['pagi'] = _page($total_row, $per_page, 4, base_url()."index.php/admin/surat_plh/p");
//ambil variabel URL
$mau_ke = $this->uri->segment(3);
$idu = $this->uri->segment(4);
$cari = addslashes($this->input->post('q'));
//ambil variabel Postingan
$idp = addslashes($this->input->post('idp'));
$no_agenda = addslashes($this->input->post('no_agenda'));
$nomor_surat = addslashes($this->input->post('nomor_surat'));
$plh_untuk = addslashes($this->input->post('plh_untuk'));
$dasar = addslashes($this->input->post('dasar'));
$dasar2 = addslashes($this->input->post('dasar2'));
$nama_plh = addslashes($this->input->post('nama_plh'));
$nip_plh = addslashes($this->input->post('nip_plh'));
$pangkat = addslashes($this->input->post('pangkat'));
$jab = addslashes($this->input->post('jab'));
$eselon = addslashes($this->input->post('eselon'));
$sebagai = addslashes($this->input->post('sebagai'));
$eselon2 = addslashes($this->input->post('eselon2'));
$tgl_mulai = addslashes($this->input->post('tgl_mulai'));
$tgl_selesai = addslashes($this->input->post('tgl_selesai'));
$tgl_cetak = addslashes($this->input->post('tgl_cetak'));
$jab_pejabat_ttd = addslashes($this->input->post('jab_pejabat_ttd'));
$nama_pejabat_ttd = addslashes($this->input->post('nama_pejabat_ttd'));
$pangkat_pejabat = addslashes($this->input->post('pangkat_pejabat'));
$nip_pejabat_ttd = addslashes($this->input->post('nip_pejabat_ttd'));
$alur_wawali = addslashes($this->input->post('alur_wawali'));
$alur_jab_wawali = addslashes($this->input->post('alur_jab_wawali'));
$alur_sekda = addslashes($this->input->post('alur_sekda'));
$alur_jab_sekda = addslashes($this->input->post('alur_jab_sekda'));
$alur_as4 = addslashes($this->input->post('alur_as4'));
$alur_jab_as4 = addslashes($this->input->post('alur_jab_as4'));
$alur_kabkd = addslashes($this->input->post('alur_kabkd'));
$alur_jab_kabkd = addslashes($this->input->post('alur_jab_kabkd'));
$alur_sekbkd = addslashes($this->input->post('alur_sekbkd'));
$alur_jab_sekbkd = addslashes($this->input->post('alur_jab_sekbkd'));
$alur_kabid = addslashes($this->input->post('alur_kabid'));
$alur_jab_kabid = addslashes($this->input->post('alur_jab_kabid'));
$alur_kasi = addslashes($this->input->post('alur_kasi'));
$alur_jab_kasi = addslashes($this->input->post('alur_jab_kasi'));
$tgl_jadi = addslashes($this->input->post('tgl_jadi'));
$tgl_dikirim = addslashes($this->input->post('tgl_dikirim'));
$keterangan = addslashes($this->input->post('keterangan'));
$cari = addslashes($this->input->post('q'));
//upload config
$config['upload_path'] = './upload/surat_plh';
$config['allowed_types'] = 'gif|jpg|png|pdf|doc|docx';
$config['max_size'] = '2000';
$config['max_width'] = '3000';
$config['max_height'] = '3000';
$this->load->library('upload', $config);
if ($mau_ke == "del") {
$this->db->query("DELETE FROM t_plh WHERE id = '$idu'");
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been deleted </div>");
redirect('index.php/admin/surat_plh');
} else if ($mau_ke == "cari") {
$a['data'] = $this->db->query("SELECT * FROM t_plh WHERE no_agenda LIKE '%$cari%' OR nomor_surat LIKE '%$cari%' OR nama_plh LIKE '%$cari%' OR nip_plh LIKE '%$cari%' OR sebagai LIKE '%$cari%' ORDER BY id DESC")->result();
$a['page'] = "l_surat_plh";
} else if ($mau_ke == "add") {
$a['page'] = "f_surat_plh";
} else if ($mau_ke == "edt") {
$a['datpil'] = $this->db->query("SELECT * FROM t_plh WHERE id = '$idu'")->row();
$a['page'] = "f_surat_plh";
} else if ($mau_ke == "act_add") {
if ($this->upload->do_upload('file_surat')) {
$up_data = $this->upload->data();
$this->db->query("INSERT INTO t_plh VALUES (
NULL,
'$no_agenda',
'$nomor_surat',
'$plh_untuk',
'$dasar',
'$dasar2',
'$nama_plh',
'$nip_plh',
'$pangkat',
'$jab',
'$eselon',
'$sebagai',
'$eselon2',
'$tgl_mulai',
'$tgl_selesai',
'$tgl_cetak',
'$jab_pejabat_ttd',
'$nama_pejabat_ttd',
'$pangkat_pejabat',
'$nip_pejabat_ttd',
'$alur_wawali','$alur_jab_wawali',
'$alur_sekda','$alur_jab_sekda',
'$alur_as4', '$alur_jab_as4',
'$alur_kabkd', '$alur_jab_kabkd',
'$alur_sekbkd', '$alur_jab_sekbkd',
'$alur_kabid', '$alur_jab_kabid',
'$alur_kasi', '$alur_jab_kasi',
'$tgl_jadi',
'$tgl_dikirim',
'$keterangan',
'".$up_data['file_name']."',
'".$this->session->userdata('admin_id')."')");
} else {
$this->db->query("INSERT INTO t_plh VALUES (
NULL,
'$no_agenda',
'$nomor_surat',
'$plh_untuk',
'$dasar',
'$dasar2',
'$nama_plh',
'$nip_plh',
'$pangkat',
'$jab',
'$eselon',
'$sebagai',
'$eselon2',
'$tgl_mulai',
'$tgl_selesai',
'$tgl_cetak',
'$jab_pejabat_ttd',
'$nama_pejabat_ttd',
'$pangkat_pejabat',
'$nip_pejabat_ttd',
'$alur_wawali',
'$alur_jab_wawali',
'$alur_sekda',
'$alur_jab_sekda',
'$alur_as4',
'$alur_jab_as4',
'$alur_kabkd',
'$alur_jab_kabkd',
'$alur_sekbkd',
'$alur_jab_sekbkd',
'$alur_kabid',
'$alur_jab_kabid',
'$alur_kasi',
'$alur_jab_kasi',
'$tgl_jadi',
'$tgl_dikirim',
'$keterangan',
'".$up_data['file_name']."',
'".$this->session->userdata('admin_id')."')");
}
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been added. ".$this->upload->display_errors()."</div>");
redirect('index.php/admin/surat_plh');
} else if ($mau_ke == "act_edt") {
if ($this->upload->do_upload('file_surat')) {
$up_data = $this->upload->data();
$this->db->query("UPDATE t_plh SET
no_agenda='$no_agenda',
nomor_surat='$nomor_surat',
plh_untuk='$plh_untuk',
dasar='$dasar',
dasar2='$dasar2',
nama_plh='$nama_plh',
nip_plh='$nip_plh',
pangkat='$pangkat',
jab='$jab',
eselon='$eselon',
sebagai='$sebagai',
eselon2='$eselon2',
tgl_mulai='$tgl_mulai',
tgl_selesai='$tgl_selesai',
tgl_cetak='$tgl_cetak',
jab_pejabat_ttd='$jab_pejabat_ttd',
nama_pejabat_ttd='$nama_pejabat_ttd',
pangkat_pejabat='$pangkat_pejabat',
nip_pejabat_ttd='$nip_pejabat_ttd',
alur_wawali='$alur_wawali',
alur_jab_wawali='$alur_jab_wawali',
alur_sekda='$alur_sekda',
alur_jab_sekda='$alur_jab_sekda',
alur_as4='$alur_as4',
alur_jab_as4='$alur_jab_as4',
alur_kabkd='$alur_kabkd',
alur_jab_kabkd='$alur_jab_kabkd',
alur_sekbkd='$alur_sekbkd',
alur_jab_sekbkd='$alur_jab_sekbkd',
alur_kabid='$alur_kabid',
alur_jab_kabid='$alur_jab_kabid',
alur_kasi='$alur_kasi',
alur_jab_kasi='$alur_jab_kasi',
tgl_jadi='$tgl_jadi',
tgl_dikirim='$tgl_dikirim',
keterangan='$keterangan',
file = '".$up_data['file_name']."'
WHERE id = '$idp'");
} else {
$this->db->query("UPDATE t_plh SET
no_agenda='$no_agenda',
nomor_surat='$nomor_surat',
plh_untuk='$plh_untuk',
dasar='$dasar',
dasar2='$dasar2',
nama_plh='$nama_plh',
nip_plh='$nip_plh',
pangkat='$pangkat',
jab='$jab',
eselon='$eselon',
sebagai='$sebagai',
eselon2='$eselon2',
tgl_mulai='$tgl_mulai',
tgl_selesai='$tgl_selesai',
tgl_cetak='$tgl_cetak',
jab_pejabat_ttd='$jab_pejabat_ttd',
nama_pejabat_ttd='$nama_pejabat_ttd',
pangkat_pejabat='$pangkat_pejabat',
nip_pejabat_ttd='$nip_pejabat_ttd',
alur_wawali='$alur_wawali',
alur_jab_wawali='$alur_jab_wawali',
alur_sekda='$alur_sekda',
alur_jab_sekda='$alur_jab_sekda',
alur_as4='$alur_as4',
alur_jab_as4='$alur_jab_as4',
alur_kabkd='$alur_kabkd',
alur_jab_kabkd='$alur_jab_kabkd',
alur_sekbkd='$alur_sekbkd',
alur_jab_sekbkd='$alur_jab_sekbkd',
alur_kabid='$alur_kabid',
alur_jab_kabid='$alur_jab_kabid',
alur_kasi='$alur_kasi',
alur_jab_kasi='$alur_jab_kasi',
tgl_jadi='$tgl_jadi',
tgl_dikirim='$tgl_dikirim',
keterangan='$keterangan'
WHERE id = '$idp'");
}
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been updated. ".$this->upload->display_errors()."</div>");
redirect('index.php/admin/surat_plh');
} else {
$a['data'] = $this->db->query("SELECT * FROM t_plh order by id DESC LIMIT $awal, $akhir ")->result();
$a['page'] = "l_surat_plh";
}
$this->load->view('admin/aaa', $a);
}
public function surat_plt() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
/* pagination */
$total_row = $this->db->query("SELECT * FROM t_plt")->num_rows();
$per_page = 10;
$awal = $this->uri->segment(4);
$awal = (empty($awal) || $awal == 1) ? 0 : $awal;
//if (empty($awal) || $awal == 1) { $awal = 0; } { $awal = $awal; }
$akhir = $per_page;
$a['pagi'] = _page($total_row, $per_page, 4, base_url()."index.php/admin/surat_plt/p");
//ambil variabel URL
$mau_ke = $this->uri->segment(3);
$idu = $this->uri->segment(4);
$cari = addslashes($this->input->post('q'));
//ambil variabel Postingan
$idp = addslashes($this->input->post('idp'));
$no_agenda = addslashes($this->input->post('no_agenda'));
$nomor_surat = addslashes($this->input->post('nomor_surat'));
$plt_untuk = addslashes($this->input->post('plt_untuk'));
$dasar = addslashes($this->input->post('dasar'));
$dasar2 = addslashes($this->input->post('dasar2'));
$nama_plt = addslashes($this->input->post('nama_plt'));
$nip_plt = addslashes($this->input->post('nip_plt'));
$pangkat = addslashes($this->input->post('pangkat'));
$jab = addslashes($this->input->post('jab'));
$eselon = addslashes($this->input->post('eselon'));
$sebagai = addslashes($this->input->post('sebagai'));
$eselon2 = addslashes($this->input->post('eselon2'));
$tgl_mulai = addslashes($this->input->post('tgl_mulai'));
$tgl_selesai = addslashes($this->input->post('tgl_selesai'));
$tgl_cetak = addslashes($this->input->post('tgl_cetak'));
$jab_pejabat_ttd = addslashes($this->input->post('jab_pejabat_ttd'));
$nama_pejabat_ttd = addslashes($this->input->post('nama_pejabat_ttd'));
$pangkat_pejabat = addslashes($this->input->post('pangkat_pejabat'));
$nip_pejabat_ttd = addslashes($this->input->post('nip_pejabat_ttd'));
$alur_wawali = addslashes($this->input->post('alur_wawali'));
$alur_jab_wawali = addslashes($this->input->post('alur_jab_wawali'));
$alur_sekda = addslashes($this->input->post('alur_sekda'));
$alur_jab_sekda = addslashes($this->input->post('alur_jab_sekda'));
$alur_as4 = addslashes($this->input->post('alur_as4'));
$alur_jab_as4 = addslashes($this->input->post('alur_jab_as4'));
$alur_kabkd = addslashes($this->input->post('alur_kabkd'));
$alur_jab_kabkd = addslashes($this->input->post('alur_jab_kabkd'));
$alur_sekbkd = addslashes($this->input->post('alur_sekbkd'));
$alur_jab_sekbkd = addslashes($this->input->post('alur_jab_sekbkd'));
$alur_kabid = addslashes($this->input->post('alur_kabid'));
$alur_jab_kabid = addslashes($this->input->post('alur_jab_kabid'));
$alur_kasi = addslashes($this->input->post('alur_kasi'));
$alur_jab_kasi = addslashes($this->input->post('alur_jab_kasi'));
$tgl_jadi = addslashes($this->input->post('tgl_jadi'));
$tgl_dikirim = addslashes($this->input->post('tgl_dikirim'));
$keterangan = addslashes($this->input->post('keterangan'));
$cari = addslashes($this->input->post('q'));
//upload config
$config['upload_path'] = './upload/surat_plt';
$config['allowed_types'] = 'gif|jpg|png|pdf|doc|docx';
$config['max_size'] = '2000';
$config['max_width'] = '3000';
$config['max_height'] = '3000';
$this->load->library('upload', $config);
if ($mau_ke == "del") {
$this->db->query("DELETE FROM t_plt WHERE id = '$idu'");
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been deleted </div>");
redirect('index.php/admin/surat_plt');
} else if ($mau_ke == "cari") {
$a['data'] = $this->db->query("SELECT * FROM t_plt WHERE no_agenda LIKE '%$cari%' OR nomor_surat LIKE '%$cari%' OR nama_plt LIKE '%$cari%' OR nip_plt LIKE '%$cari%' OR sebagai LIKE '%$cari%' ORDER BY id DESC")->result();
$a['page'] = "l_surat_plt";
} else if ($mau_ke == "add") {
$a['page'] = "f_surat_plt";
} else if ($mau_ke == "edt") {
$a['datpil'] = $this->db->query("SELECT * FROM t_plt WHERE id = '$idu'")->row();
$a['page'] = "f_surat_plt";
} else if ($mau_ke == "act_add") {
if ($this->upload->do_upload('file_surat')) {
$up_data = $this->upload->data();
$this->db->query("INSERT INTO t_plt VALUES (
NULL,
'$no_agenda',
'$nomor_surat',
'$plt_untuk',
'$dasar',
'$dasar2',
'$nama_plt',
'$nip_plt',
'$pangkat',
'$jab',
'$eselon',
'$sebagai',
'$eselon2',
'$tgl_mulai',
'$tgl_selesai',
'$tgl_cetak',
'$jab_pejabat_ttd',
'$nama_pejabat_ttd',
'$pangkat_pejabat',
'$nip_pejabat_ttd',
'$alur_wawali','$alur_jab_wawali',
'$alur_sekda','$alur_jab_sekda',
'$alur_as4', '$alur_jab_as4',
'$alur_kabkd', '$alur_jab_kabkd',
'$alur_sekbkd', '$alur_jab_sekbkd',
'$alur_kabid', '$alur_jab_kabid',
'$alur_kasi', '$alur_jab_kasi',
'$tgl_jadi',
'$tgl_dikirim',
'$keterangan',
'".$up_data['file_name']."',
'".$this->session->userdata('admin_id')."')");
} else {
$this->db->query("INSERT INTO t_plt VALUES (
NULL,
'$no_agenda',
'$nomor_surat',
'$plt_untuk',
'$dasar',
'$dasar2',
'$nama_plt',
'$nip_plt',
'$pangkat',
'$jab',
'$eselon',
'$sebagai',
'$eselon2',
'$tgl_mulai',
'$tgl_selesai',
'$tgl_cetak',
'$jab_pejabat_ttd',
'$nama_pejabat_ttd',
'$pangkat_pejabat',
'$nip_pejabat_ttd',
'$alur_wawali',
'$alur_jab_wawali',
'$alur_sekda',
'$alur_jab_sekda',
'$alur_as4',
'$alur_jab_as4',
'$alur_kabkd',
'$alur_jab_kabkd',
'$alur_sekbkd',
'$alur_jab_sekbkd',
'$alur_kabid',
'$alur_jab_kabid',
'$alur_kasi',
'$alur_jab_kasi',
'$tgl_jadi',
'$tgl_dikirim',
'$keterangan',
'".$up_data['file_name']."',
'".$this->session->userdata('admin_id')."')");
}
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been added. ".$this->upload->display_errors()."</div>");
redirect('index.php/admin/surat_plt');
} else if ($mau_ke == "act_edt") {
if ($this->upload->do_upload('file_surat')) {
$up_data = $this->upload->data();
$this->db->query("UPDATE t_plt SET
no_agenda='$no_agenda',
nomor_surat='$nomor_surat',
plt_untuk='$plt_untuk',
dasar='$dasar',
dasar2='$dasar2',
nama_plt='$nama_plt',
nip_plt='$nip_plt',
pangkat='$pangkat',
jab='$jab',
eselon='$eselon',
sebagai='$sebagai',
eselon2='$eselon2',
tgl_mulai='$tgl_mulai',
tgl_selesai='$tgl_selesai',
tgl_cetak='$tgl_cetak',
jab_pejabat_ttd='$jab_pejabat_ttd',
nama_pejabat_ttd='$nama_pejabat_ttd',
pangkat_pejabat='$pangkat_pejabat',
nip_pejabat_ttd='$nip_pejabat_ttd',
alur_wawali='$alur_wawali',
alur_jab_wawali='$alur_jab_wawali',
alur_sekda='$alur_sekda',
alur_jab_sekda='$alur_jab_sekda',
alur_as4='$alur_as4',
alur_jab_as4='$alur_jab_as4',
alur_kabkd='$alur_kabkd',
alur_jab_kabkd='$alur_jab_kabkd',
alur_sekbkd='$alur_sekbkd',
alur_jab_sekbkd='$alur_jab_sekbkd',
alur_kabid='$alur_kabid',
alur_jab_kabid='$alur_jab_kabid',
alur_kasi='$alur_kasi',
alur_jab_kasi='$alur_jab_kasi',
tgl_jadi='$tgl_jadi',
tgl_dikirim='$tgl_dikirim',
keterangan='$keterangan',
file = '".$up_data['file_name']."'
WHERE id = '$idp'");
} else {
$this->db->query("UPDATE t_plt SET
no_agenda='$no_agenda',
nomor_surat='$nomor_surat',
plt_untuk='$plt_untuk',
dasar='$dasar',
dasar2='$dasar2',
nama_plt='$nama_plt',
nip_plt='$nip_plt',
pangkat='$pangkat',
jab='$jab',
eselon='$eselon',
sebagai='$sebagai',
eselon2='$eselon2',
tgl_mulai='$tgl_mulai',
tgl_selesai='$tgl_selesai',
tgl_cetak='$tgl_cetak',
jab_pejabat_ttd='$jab_pejabat_ttd',
nama_pejabat_ttd='$nama_pejabat_ttd',
pangkat_pejabat='$pangkat_pejabat',
nip_pejabat_ttd='$nip_pejabat_ttd',
alur_wawali='$alur_wawali',
alur_jab_wawali='$alur_jab_wawali',
alur_sekda='$alur_sekda',
alur_jab_sekda='$alur_jab_sekda',
alur_as4='$alur_as4',
alur_jab_as4='$alur_jab_as4',
alur_kabkd='$alur_kabkd',
alur_jab_kabkd='$alur_jab_kabkd',
alur_sekbkd='$alur_sekbkd',
alur_jab_sekbkd='$alur_jab_sekbkd',
alur_kabid='$alur_kabid',
alur_jab_kabid='$alur_jab_kabid',
alur_kasi='$alur_kasi',
alur_jab_kasi='$alur_jab_kasi',
tgl_jadi='$tgl_jadi',
tgl_dikirim='$tgl_dikirim',
keterangan='$keterangan'
WHERE id = '$idp'");
}
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been updated. ".$this->upload->display_errors()."</div>");
redirect('index.php/admin/surat_plt');
} else {
$a['data'] = $this->db->query("SELECT * FROM t_plt order by id DESC LIMIT $awal, $akhir ")->result();
$a['page'] = "l_surat_plt";
}
$this->load->view('admin/aaa', $a);
}
public function pengguna() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
//ambil variabel URL
$mau_ke = $this->uri->segment(3);
//ambil variabel Postingan
$idp = addslashes($this->input->post('idp'));
$nama = addslashes($this->input->post('nama'));
$alamat = addslashes($this->input->post('alamat'));
$kepsek = addslashes($this->input->post('kepsek'));
$nip_kepsek = addslashes($this->input->post('nip_kepsek'));
$cari = addslashes($this->input->post('q'));
//upload config
$config['upload_path'] = './upload';
$config['allowed_types'] = 'gif|jpg|png|pdf|doc|docx';
$config['max_size'] = '2000';
$config['max_width'] = '3000';
$config['max_height'] = '3000';
$this->load->library('upload', $config);
if ($mau_ke == "act_edt") {
if ($this->upload->do_upload('logo')) {
$up_data = $this->upload->data();
$this->db->query("UPDATE tr_instansi SET nama = '$nama', alamat = '$alamat', kepsek = '$kepsek', nip_kepsek = '$nip_kepsek', logo = '".$up_data['file_name']."' WHERE id = '$idp'");
} else {
$this->db->query("UPDATE tr_instansi SET nama = '$nama', alamat = '$alamat', kepsek = '$kepsek', nip_kepsek = '$nip_kepsek' WHERE id = '$idp'");
}
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been updated</div>");
redirect('index.php/admin/pengguna');
} else {
$a['data'] = $this->db->query("SELECT * FROM tr_instansi WHERE id = '1' LIMIT 1")->row();
$a['page'] = "f_pengguna";
}
$this->load->view('admin/aaa', $a);
}
public function agenda_surat_plh() {
$a['page'] = "f_config_cetak_agenda";
$this->load->view('admin/aaa', $a);
}
public function agenda_surat_keluar() {
$a['page'] = "f_config_cetak_agenda";
$this->load->view('admin/aaa', $a);
}
public function cetak_agenda() {
$jenis_surat = $this->input->post('tipe');
$tgl_start = $this->input->post('tgl_start');
$tgl_end = $this->input->post('tgl_end');
$a['tgl_start'] = $tgl_start;
$a['tgl_end'] = $tgl_end;
if ($jenis_surat == "agenda_surat_plh") {
$a['data'] = $this->db->query("SELECT * FROM t_plh WHERE tgl_jadi >= '$tgl_start' AND tgl_jadi <= '$tgl_end' ORDER BY id")->result();
$this->load->view('admin/agenda_surat_plh', $a);
} else {
$a['data'] = $this->db->query("SELECT * FROM t_plh WHERE tgl_jadi >= '$tgl_start' AND tgl_jadi <= '$tgl_end' ORDER BY id")->result();
$this->load->view('admin/agenda_surat_keluar', $a);
}
}
public function agenda_surat_plt() {
$a['page'] = "f_config_cetak_agenda2";
$this->load->view('admin/aaa', $a);
}
public function agenda_surat_keluar2() {
$a['page'] = "f_config_cetak_agenda2";
$this->load->view('admin/aaa', $a);
}
public function cetak_agenda2() {
$jenis_surat = $this->input->post('tipe');
$tgl_start = $this->input->post('tgl_start');
$tgl_end = $this->input->post('tgl_end');
$a['tgl_start'] = $tgl_start;
$a['tgl_end'] = $tgl_end;
if ($jenis_surat == "agenda_surat_plt") {
$a['data'] = $this->db->query("SELECT * FROM t_plt WHERE tgl_jadi >= '$tgl_start' AND tgl_jadi <= '$tgl_end' ORDER BY id")->result();
$this->load->view('admin/agenda_surat_plt', $a);
} else {
$a['data'] = $this->db->query("SELECT * FROM t_plt WHERE tgl_jadi >= '$tgl_start' AND tgl_jadi <= '$tgl_end' ORDER BY id")->result();
$this->load->view('admin/agenda_surat_keluar2', $a);
}
}
public function agenda_surat_plh_nama() {
$a['page'] = "f_config_cetak_agenda3";
$this->load->view('admin/aaa', $a);
}
public function agenda_surat_keluar3() {
$a['page'] = "f_config_cetak_agenda3";
$this->load->view('admin/aaa', $a);
}
public function cetak_agenda3() {
$jenis_surat = $this->input->post('tipe');
$nip_plh = $this->input->post('nip_plh');
$a['tgl_start'] = $tgl_start;
$a['tgl_end'] = $tgl_end;
if ($jenis_surat == "agenda_surat_plh_nama") {
$a['data'] = $this->db->query("SELECT * FROM t_plh WHERE nip_plh >= '$nip_plh' ORDER BY id")->result();
$this->load->view('admin/agenda_surat_plh_nama', $a);
} else {
$a['data'] = $this->db->query("SELECT * FROM t_plh WHERE nip_plh >= '$nip_plh' ORDER BY id")->result();
$this->load->view('admin/agenda_surat_keluar3', $a);
}
}
public function manage_admin() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
/* pagination */
$total_row = $this->db->query("SELECT * FROM t_admin")->num_rows();
$per_page = 10;
$awal = $this->uri->segment(4);
$awal = (empty($awal) || $awal == 1) ? 0 : $awal;
//if (empty($awal) || $awal == 1) { $awal = 0; } { $awal = $awal; }
$akhir = $per_page;
$a['pagi'] = _page($total_row, $per_page, 4, base_url()."admin/manage_admin/p");
//ambil variabel URL
$mau_ke = $this->uri->segment(3);
$idu = $this->uri->segment(4);
$cari = addslashes($this->input->post('q'));
//ambil variabel Postingan
$idp = addslashes($this->input->post('idp'));
$username = addslashes($this->input->post('username'));
$password = md5(addslashes($this->input->post('password')));
$nama = addslashes($this->input->post('nama'));
$nip = addslashes($this->input->post('nip'));
$level = addslashes($this->input->post('level'));
$cari = addslashes($this->input->post('q'));
if ($mau_ke == "del") {
$this->db->query("DELETE FROM t_admin WHERE id = '$idu'");
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been deleted </div>");
redirect('index.php/admin/manage_admin');
} else if ($mau_ke == "cari") {
$a['data'] = $this->db->query("SELECT * FROM t_admin WHERE nama LIKE '%$cari%' ORDER BY id DESC")->result();
$a['page'] = "l_manage_admin";
} else if ($mau_ke == "add") {
$a['page'] = "f_manage_admin";
} else if ($mau_ke == "edt") {
$a['datpil'] = $this->db->query("SELECT * FROM t_admin WHERE id = '$idu'")->row();
$a['page'] = "f_manage_admin";
} else if ($mau_ke == "act_add") {
$cek_user_exist = $this->db->query("SELECT username FROM t_admin WHERE username = '$username'")->num_rows();
if (strlen($username) < 6) {
$this->session->set_flashdata("k", "<div class=\"alert alert-danger\" id=\"alert\">Username minimal 6 huruf</div>");
} else if ($cek_user_exist > 0) {
$this->session->set_flashdata("k", "<div class=\"alert alert-danger\" id=\"alert\">Username telah dipakai. Ganti yang lain..!</div>");
} else {
$this->db->query("INSERT INTO t_admin VALUES (NULL, '$username', '$password', '$nama', '$nip', '$level')");
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been added</div>");
}
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been added</div>");
redirect('index.php/admin/manage_admin');
} else if ($mau_ke == "act_edt") {
if ($password = md5("-")) {
$this->db->query("UPDATE t_admin SET username = '$username', nama = '$nama', nip = '$nip', level = '$level' WHERE id = '$idp'");
} else {
$this->db->query("UPDATE t_admin SET username = '$username', password = '$password', nama = '$nama', nip = '$nip', level = '$level' WHERE id = '$idp'");
}
$this->session->set_flashdata("k", "<div class=\"alert alert-success\" id=\"alert\">Data has been updated </div>");
redirect('index.php/admin/manage_admin');
} else {
$a['data'] = $this->db->query("SELECT * FROM t_admin LIMIT $awal, $akhir ")->result();
$a['page'] = "l_manage_admin";
}
$this->load->view('admin/aaa', $a);
}
public function disposisi_cetak() {
$idu = $this->uri->segment(3);
$a['datpil1'] = $this->db->query("SELECT * FROM t_plh WHERE id = '$idu'")->row();
$a['datpil2'] = $this->db->query("SELECT kpd_yth FROM t_disposisi WHERE id = '$idu'")->result();
$a['datpil3'] = $this->db->query("SELECT isi_disposisi, sifat, batas_waktu FROM t_disposisi WHERE id = '$idu'")->result();
$this->load->view('admin/f_disposisi', $a);
}
public function disposisi_cetak2() {
$idu = $this->uri->segment(3);
$a['datpil1'] = $this->db->query("SELECT * FROM t_plh WHERE id = '$idu'")->row();
$a['datpil2'] = $this->db->query("SELECT kpd_yth FROM t_disposisi WHERE id = '$idu'")->result();
$a['datpil3'] = $this->db->query("SELECT isi_disposisi, sifat, batas_waktu FROM t_disposisi WHERE id = '$idu'")->result();
$this->load->view('admin/f_disposisi2', $a);
}
public function disposisi_cetak3() {
$idu = $this->uri->segment(3);
$a['datpil1'] = $this->db->query("SELECT * FROM t_plt WHERE id = '$idu'")->row();
$a['datpil2'] = $this->db->query("SELECT kpd_yth FROM t_disposisi WHERE id = '$idu'")->result();
$a['datpil3'] = $this->db->query("SELECT isi_disposisi, sifat, batas_waktu FROM t_disposisi WHERE id = '$idu'")->result();
$this->load->view('admin/f_disposisi3', $a);
}
public function disposisi_cetak4() {
$idu = $this->uri->segment(3);
$a['datpil1'] = $this->db->query("SELECT * FROM t_plt WHERE id = '$idu'")->row();
$a['datpil2'] = $this->db->query("SELECT kpd_yth FROM t_disposisi WHERE id = '$idu'")->result();
$a['datpil3'] = $this->db->query("SELECT isi_disposisi, sifat, batas_waktu FROM t_disposisi WHERE id = '$idu'")->result();
$this->load->view('admin/f_disposisi4', $a);
}
public function passwod() {
if ($this->session->userdata('admin_valid') == FALSE && $this->session->userdata('admin_id') == "") {
redirect("index.php/admin/login");
}
$ke = $this->uri->segment(3);
$id_user = $this->session->userdata('admin_id');
//var post
$p1 = md5($this->input->post('p1'));
$p2 = md5($this->input->post('p2'));
$p3 = md5($this->input->post('p3'));
if ($ke == "simpan") {
$cek_password_lama = $this->db->query("SELECT password FROM t_admin WHERE id = $id_user")->row();
//echo
if ($cek_password_lama->password != $p1) {
$this->session->set_flashdata('k_passwod', '<div id="alert" class="alert alert-error">Password Lama tidak sama</div>');
redirect('index.php/admin/passwod');
} else if ($p2 != $p3) {
$this->session->set_flashdata('k_passwod', '<div id="alert" class="alert alert-error">Password Baru 1 dan 2 tidak cocok</div>');
redirect('index.php/admin/passwod');
} else {
$this->db->query("UPDATE t_admin SET password = '$p3' WHERE id = ".$id_user."");
$this->session->set_flashdata('k_passwod', '<div id="alert" class="alert alert-success">Password berhasil diperbaharui</div>');
redirect('index.php/admin/passwod');
}
} else {
$a['page'] = "f_passwod";
}
$this->load->view('admin/aaa', $a);
}
//login
public function login() {
$this->load->view('admin/login');
}
public function do_login() {
$u = $this->security->xss_clean($this->input->post('u'));
$ta = $this->security->xss_clean($this->input->post('ta'));
$p = md5($this->security->xss_clean($this->input->post('p')));
$q_cek = $this->db->query("SELECT * FROM t_admin WHERE username = '".$u."' AND password = '".$p."'");
$j_cek = $q_cek->num_rows();
$d_cek = $q_cek->row();
//echo $this->db->last_query();
if($j_cek == 1) {
$data = array(
'admin_id' => $d_cek->id,
'admin_user' => $d_cek->username,
'admin_nama' => $d_cek->nama,
'admin_ta' => $ta,
'admin_level' => $d_cek->level,
'admin_valid' => true
);
$this->session->set_userdata($data);
redirect('index.php/admin');
} else {
$this->session->set_flashdata("k", "<div id=\"alert\" class=\"alert alert-error\">username or password is not valid</div>");
redirect('index.php/admin/login');
}
}
public function logout(){
$this->session->sess_destroy();
redirect('index.php/admin/login');
}
}
form
<!DOCTYPE html>
<?php
$mode = $this->uri->segment(3);
if ($mode == "edt" || $mode == "act_edt") {
$act = "act_edt";
$idp = $datpil->id;
$no_agenda = $datpil->no_agenda;
$nomor_surat = $datpil->nomor_surat;
$plh_untuk = $datpil->plh_untuk;
$dasar = $datpil->dasar;
$dasar2 = $datpil->dasar2;
$nama_plh = $datpil->nama_plh;
$nip_plh = $datpil->nip_plh;
$pangkat = $datpil->pangkat;
$jab = $datpil->jab;
$eselon = $datpil->eselon;
$sebagai = $datpil->sebagai;
$eselon2 = $datpil->eselon2;
$tgl_mulai = $datpil->tgl_mulai;
$tgl_selesai = $datpil->tgl_selesai;
$tgl_cetak = $datpil->tgl_cetak;
$jab_pejabat_ttd = $datpil->jab_pejabat_ttd;
$nama_pejabat_ttd = $datpil->nama_pejabat_ttd;
$pangkat_pejabat = $datpil->pangkat_pejabat;
$nip_pejabat_ttd = $datpil->nip_pejabat_ttd;
$alur_wawali = $datpil->alur_wawali;
$alur_jab_wawali = $datpil->alur_jab_wawali;
$alur_sekda = $datpil->alur_sekda;
$alur_jab_sekda = $datpil->alur_jab_sekda;
$alur_as4 = $datpil->alur_as4;
$alur_jab_as4 = $datpil->alur_jab_as4;
$alur_kabkd = $datpil->alur_kabkd;
$alur_jab_kabkd = $datpil->alur_jab_kabkd;
$alur_sekbkd = $datpil->alur_sekbkd;
$alur_jab_sekbkd = $datpil->alur_jab_sekbkd;
$alur_kabid = $datpil->alur_kabid;
$alur_jab_kabid = $datpil->alur_jab_kabid;
$alur_kasi = $datpil->alur_kasi;
$alur_jab_kasi = $datpil->alur_jab_kasi;
$tgl_jadi = $datpil->tgl_jadi;
$tgl_dikirim = $datpil->tgl_dikirim;
$keterangan = $datpil->keterangan;
} else {
$act ="act_add";
$idp ="";
$no_agenda = gli("t_plh", "no_agenda", 4);
$nomor_surat ="";
$plh_untuk ="";
$dasar ="";
$dasar2 ="";
$nama_plh ="";
$nip_plh ="";
$pangkat ="";
$jab ="";
$eselon ="";
$sebagai ="";
$eselon2 ="";
$tgl_mulai ="";
$tgl_selesai ="";
$tgl_cetak ="";
$jab_pejabat_ttd ="";
$nama_pejabat_ttd ="";
$pangkat_pejabat ="";
$nip_pejabat_ttd ="";
$alur_wawali ="";
$alur_jab_wawali ="";
$alur_sekda ="";
$alur_jab_sekda ="";
$alur_as4 ="";
$alur_jab_as4 ="";
$alur_kabkd ="";
$alur_jab_kabkd ="";
$alur_sekbkd ="";
$alur_jab_sekbkd ="";
$alur_kabid ="";
$alur_jab_kabid ="";
$alur_kasi ="";
$alur_jab_kasi ="";
$tgl_jadi ="";
$tgl_dikirim ="";
$keterangan ="";
}
?>
<script src="<?=base_url()?>aset/js/jquery.min.js" type="text/javascript"></script>
<script src="<?=base_url()?>aset/js/jquery-ui.js" type="text/javascript"></script>
<script>
$(function () {
$("#nama_plh").autocomplete({ //id kode sebagai key autocomplete yang akan dibawa ke source url
minLength:0,
delay:0,
source:'<?php echo site_url('plh/input_plh'); ?>', //nama source kita ambil langsung memangil fungsi get_allkota
select:function(event, ui){
$('#nama_plh').val(ui.item.nama_plh);
$('#nip_plh').val(ui.item.nip_plh);
$('#pangkat').val(ui.item.pangkat);
$('#jab').val(ui.item.jab);
$('#eselon').val(ui.item.eselon);
}
});
});
</script>
<div class="navbar navbar-inverse">
<div class="container z0">
<div class="navbar-header">
<span class="navbar-brand" href="#">Form Surat PLH</span>
</div>
</div><!-- /.container -->
</div><!-- /.navbar -->
<form action="<?php echo base_URL(); ?>index.php/admin/surat_plh/<?php echo $act; ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data">
<input type="hidden" name="idp" value="<?php echo $idp; ?>">
<div class="row-fluid well" style="overflow: hidden">
<div class="col-lg-6">
<table class="table-form">
<tr bgcolor="#0f468a"><td width="20%" align="center" colspan="2"><font color="white">DATA SURAT PLH</font></td></tr>
<tr> <td colspan="2" ></td></tr>
<tr><td width="20%"><font color="white">No. Agenda</font></td><td><b><input type="text" name="no_agenda" autofocus tabindex="1" required value="<?php echo $no_agenda; ?>" style="width: 100px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">Tanggal Hari Ini</font></td><td><b><input type="text" name="tgl_jadi" tabindex="2" required value="<?php echo $tgl_jadi; ?>" id="tgl_jadi" style="width: 100px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">No. Surat</font></td><td><b><input type="text" name="nomor_surat" autofocus tabindex="3" required value="<?php echo $nomor_surat; ?>" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">PLH Untuk</font></td><td><b><input type="search" name="plh_untuk" tabindex="4" required value="<?php echo $plh_untuk; ?>" id="autocomplete" style="width: 400px" class='autocomplete'></b></td></tr>
<tr><td width="20%"><font color="white">Dasar</font></td><td><b><textarea name="dasar" tabindex="5" id="v_uraian" required style="width: 400px; height: 90px" class='autocomplete'><?php echo $dasar; ?></textarea></b></td></tr>
<tr><td width="20%"><font color="white">Dasar 2</font></td><td><b><textarea name="dasar2" tabindex="6" id="kode_surat" required style="width: 400px; height: 90px" class="form-control"><?php echo $dasar2; ?></textarea></b></td></tr>
<tr bgcolor="#0f468a"><td width="20%" align="center" colspan="2"><font color="white">DATA PEGAWAI PLH</font></td></tr>
<tr> <td colspan="2" ></td></tr>
<tr><td width="20%"><font color="white">Nama Plh</font></td><td><b><input type="text" name="nama_plh" tabindex="7" required value="<?php echo $nama_plh; ?>" id="nama_plh" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">NIP Plh</font></td><td><b><input type="text" name="nip_plh" tabindex="8" required value="<?php echo $nip_plh; ?>" id="nip_plh" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">Pangkat / Golongan</font></td><td><b><input type="text" name="pangkat" tabindex="9" required value="<?php echo $pangkat; ?>" id="pangkat" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">Jabatan</font></td><td><b><input type="text" name="jab" tabindex="10" required value="<?php echo $jab; ?>" id="jab" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">Eselon</font></td><td><b><input type="text" name="eselon" tabindex="11" required value="<?php echo $eselon; ?>" id="eselon" style="width: 400px" class="form-control"></b></td></tr>
<tr bgcolor="#0f468a"><td width="20%" align="center" colspan="2"><font color="white">PLH SEBAGAI</font></td></tr>
<tr> <td colspan="2" ></td></tr>
<tr><td width="20%"><font color="white">Plh Sebagai</font></td><td><b><input type="text" name="sebagai" tabindex="12" required value="<?php echo $sebagai; ?>" style="width: 400px" class="form-control"></td></tr>
<tr><td width="20%"><font color="white">Eselon</font></td><td><b><input type="text" name="eselon2" tabindex="13" required value="<?php echo $eselon2; ?>" id="eselon2" style="width: 400px" class="form-control"></b></td></tr>
<tr bgcolor="#0f468a"><td width="20%" align="center" colspan="2"><font color="white">TANGGAL MULAI DAN BERAKHIR</font></td></tr>
<tr> <td colspan="2" ></td></tr>
<tr><td width="20%"><font color="white">Tanggal Mulai</font></td><td><b><input type="text" name="tgl_mulai" tabindex="14" required value="<?php echo $tgl_mulai; ?>" id="tgl_mulai" style="width: 300px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">Tanggal Selesai</font></td><td><b><input type="text" name="tgl_selesai" tabindex="15" required value="<?php echo $tgl_selesai; ?>" id="tgl_selesai" style="width: 300px" class="form-control"></b></td></tr>
<tr bgcolor="#0f468a"><td width="20%" align="center" colspan="2"><font color="white">TANGGAL CETAK</font></td></tr>
<tr> <td colspan="2" ></td></tr>
<tr><td width="20%"><font color="white">Tanggal Cetak</font></td><td><b><input type="text" name="tgl_cetak" tabindex="16" required value="<?php echo $tgl_cetak; ?>" id="tgl_cetak" style="width: 300px" class="form-control"></b></td></tr>
<tr bgcolor="#0f468a"><td width="20%" align="center" colspan="2"><font color="white">DATA PEJABAT TTD</font></td></tr>
<tr> <td colspan="2" ></td></tr>
<tr><td width="40%"><font color="white">NAMA JABATAN PEJABAT TTD</font></td><td><b><input type="text" name="jab_pejabat_ttd" value="<?php echo $jab_pejabat_ttd; ?>" placeholder="Tulis Nama Jabatannya" tabindex="17" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA PEJABAT TTD</font></td><td><b><input type="text" name="nama_pejabat_ttd" value="<?php echo $nama_pejabat_ttd; ?>" tabindex="18" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">Pangkat/Golongan</font></td><td><b><input type="text" name="pangkat_pejabat" value="<?php echo $pangkat_pejabat; ?>" placeholder="Tulis" tabindex="19" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NIP Pejabat TTD</font></td><td><b><input type="text" name="nip_pejabat_ttd" value="<?php echo $nip_pejabat_ttd; ?>" placeholder="Tulis NIP nya " tabindex="20" style="width: 400px" class="form-control"></b></td></tr>
<!--<tr><td width="20%">Isi Ringkas</td><td><b><textarea name="uraian" tabindex="4" required style="width: 400px; height: 90px" class="form-control"><?php echo $uraian; ?></textarea></b></td></tr> -->
<tr><td colspan="2">
<br><button type="submit" class="btn btn-primary"tabindex="37" ><i class="icon icon-ok icon-white"></i> Simpan</button>
<a href="<?php echo base_URL(); ?>index.php/admin/surat_plh" class="btn btn-success" tabindex="38" ><i class="icon icon-arrow-left icon-white"></i> Kembali</a>
</td></tr>
</table>
</div>
<div class="col-lg-6">
<table class="table-form">
<tr bgcolor="#0f468a"><td width="20%" align="center" colspan="2"><font color="white"><font color="white">DATA ALUR SURAT</font></td></tr>
<tr> <td colspan="2" ></td></tr>
<tr><td width="40%"><font color="white">NAMA WAWALI</font></td><td><b><input type="text" name="alur_wawali" value="<?php echo $alur_wawali; ?>" tabindex="21" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA JABATAN WAWALI</font></td><td><b><input type="text" name="alur_jab_wawali" value="<?php echo $alur_jab_wawali; ?>" placeholder="Tulis -> Wakil Walikota" tabindex="22" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA SEKDA / PLT / PLH</font></td><td><b><input type="text" name="alur_sekda" value="<?php echo $alur_sekda; ?>" tabindex="23" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA JABATAN SEKDA / PLT / PLH</font></td><td><b><input type="text" name="alur_jab_sekda" value="<?php echo $alur_jab_sekda; ?>" placeholder="Tulis -> Sekretaris Daerah" tabindex="24" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA ASSTN IV / PLT / PLH</font></td><td><b><input type="text" name="alur_as4" value="<?php echo $alur_as4; ?>" tabindex="25" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA JABATAN ASTN IV / PLT / PLH</font></td><td><b><input type="text" name="alur_jab_as4" value="<?php echo $alur_jab_as4; ?>" placeholder="Tulis -> Asisten Administrasi dan Umum" tabindex="26" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA KA.BKD / PLT / PLH</font></td><td><b><input type="text" name="alur_kabkd" value="<?php echo $alur_kabkd; ?>" tabindex="27" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA JABATAN KA.BKD / PLT / PLH</font></td><td><b><input type="text" name="alur_jab_kabkd" value="<?php echo $alur_jab_kabkd; ?>" placeholder="Tulis -> Kepala BKD" tabindex="28" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA SEKR .BKD / PLT / PLH</font></td><td><b><input type="text" name="alur_sekbkd" value="<?php echo $alur_sekbkd; ?>" tabindex="29" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA JAB SEKR .BKD IV / PLT / PLH</font></td><td><b><input type="text" name="alur_jab_sekbkd" value="<?php echo $alur_jab_sekbkd; ?>" placeholder="Tulis -> Sekretaris BKD" tabindex="30" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA KABID PENGEMBANGAN / PLT / PLH</font></td><td><b><input type="text" name="alur_kabid" value="<?php echo $alur_kabid; ?>" tabindex="31" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA JAB KABID PENGEMBANGAN / PLT / PLH</font></td><td><b><input type="text" name="alur_jab_kabid" value="<?php echo $alur_jab_kabid; ?>" placeholder="Tulis -> Kabid Pengembangan" tabindex="32" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA KASI PENGEMBANGAN / PLT / PLH</font></td><td><b><input type="text" name="alur_kasi" value="<?php echo $alur_kasi; ?>" tabindex="33" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="40%"><font color="white">NAMA JAB KASI / PLT / PLH</font></td><td><b><input type="text" name="alur_jab_kasi" value="<?php echo $alur_jab_kasi; ?>" placeholder="Tulis -> Ka. Sub Bid Pengembangan Karier Pegawai" tabindex="34" style="width: 400px" class="form-control"></b></td></tr>
<tr><td width="20%"><font color="white">File Berkas Jadi (Scan)</font></td><td><b><input type="file" name="file_surat" tabindex="35" class="form-control" style="width: 200px"></b></td></tr>
<tr><td width="20%"><font color="white">Keterangan</font></td><td><b><input type="text" name="keterangan" value="<?php echo $keterangan; ?>" tabindex="36" style="width: 400px" class="form-control"></b></td></tr>
</table>
</div>
</div>
</form>