示例#1
0
 function lists()
 {
     $colModel['id_aset_perawatan_bgn'] = array('ID', 30, TRUE, 'left', 0);
     $colModel['tbl_aset_bangunan.no_imb'] = array('No IMB', 120, TRUE, 'left', 2);
     $colModel['tbl_aset_bangunan.deskripsi'] = array('Nama Bangunan', 120, TRUE, 'left', 2);
     $colModel['tgl_perawatan'] = array('Tanggal Perawatan', 100, TRUE, 'center', 2);
     $colModel['tbl_aset_perawatan_bgn.deskripsi'] = array('Deskripsi', 150, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 50, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40,50]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('aset/c_perawatan/load_data'), $colModel, 'id_aset_perawatan_bgn', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA PERAWATAN BANGUNAN';
     $data['menu'] = $this->load->view('menu/v_pengelolaAset', $data, TRUE);
     $data['content'] = $this->load->view('aset/perawatan/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#2
0
    function lists()
    {
        $countTahunajaran = $this->tahunajaran->count_tahunajaran();
        if ($countTahunajaran) {
            $colModel['tahun'] = array('Tahun Ajaran', 80, TRUE, 'center', 2);
            $colModel['mulai'] = array('Periode Awal', 180, TRUE, 'center', 2);
            $colModel['akhir'] = array('Periode Akhir', 120, TRUE, 'center', 2);
            $colModel['semester'] = array('Semester', 120, TRUE, 'center', 2);
            $colModel['statusnya'] = array('Status', 180, TRUE, 'center', 2);
            $colModel['action'] = array('Aksi', 120, FALSE, 'center', 0);
            $gridParams = array('width' => 'auto', 'height' => 'auto', 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Menampilkan: {from} sampai {to} dari {total} data.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
            $grid_js = build_grid_js('flex1', site_url("tahunajaran/load_data"), $colModel, 'tingkat', 'asc', $gridParams);
            $this->data['js_grid'] = $grid_js;
        } else {
            $this->data['js_grid'] = '<table class="table-common" width="760px">
					<tr>
						<th>Tahun Ajaran</th>
						<th>Periode Awal</th>
						<th>Periode Akhir</th>
						<th>Semester</th>						
						<th>Status</th>						
						<th>Aksi</th>						
					</tr>
					<tr>
						<td colspan="6"><center>Data tidak ditemukan</center></td>
					</tr>';
        }
        $this->LoadView('tahunajaran/view', $this->data);
    }
示例#3
0
 function lists()
 {
     $colModel['id_dusun'] = array('ID', 30, TRUE, 'center', 0);
     $colModel['kode_dusun_bps'] = array('Kode Dusun (BPS)', 150, TRUE, 'center', 2);
     $colModel['kode_dusun_kemendagri'] = array('Kode Dusun (Kemendagri)', 150, TRUE, 'center', 2);
     $colModel['nama_dusun'] = array('Nama Dusun', 150, TRUE, 'center', 2);
     $colModel['luas_wilayah'] = array('Luas Wilayah (Ha)', 100, TRUE, 'center', 2);
     $colModel['id_desa'] = array('Desa', 100, TRUE, 'center', 0);
     $colModel['id_penduduk'] = array('Nik Kepala Dusun', 200, TRUE, 'center', 0);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('admin/c_dusun/load_data'), $colModel, 'kode_dusun_bps', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA DUSUN';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('dusun/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#4
0
    function lists()
    {
        $records = $this->siswa->count_siswa();
        if ($records['record_count'] !== '0') {
            $colModel['NIS'] = array('NIS', 80, TRUE, 'left', 2);
            $colModel['NAMA'] = array('Nama', 180, TRUE, 'left', 2);
            $colModel['ALAMAT'] = array('Alamat', 120, TRUE, 'left', 2);
            $colModel['tahun'] = array('Tahun Masuk', 120, TRUE, 'left', 2);
            $colModel['NOHP1'] = array('No. HP Siswa', 120, TRUE, 'left', 2);
            $colModel['TELP'] = array('Telp. Orang Tua', 120, TRUE, 'left', 2);
            $colModel['action'] = array('Aksi', 60, FALSE, 'center', 0);
            $gridParams = array('width' => 'auto', 'height' => 'auto', 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Menampilkan: {from} sampai {to} dari {total} data.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
            $grid_js = build_grid_js('flex1', site_url("siswa/load_data"), $colModel, 'NIP', 'asc', $gridParams);
            $this->data['js_grid'] = $grid_js;
        } else {
            $this->data['js_grid'] = '<table class="table-common" width="760px">
					<tr>
						<th>NIS</th>
						<th>Nama</th>
						<th>Alamat</th>
						<th>Tahun Masuk</th>						
						<th>No. HP Siswa</th>
						<th>Telp. Orang Tua</th>
						<th>Aksi</th>						
					</tr>
					<tr>
						<td colspan="7"><center>Data tidak ditemukan</center></td>
					</tr>';
        }
        $this->LoadView('siswa/view', $this->data);
    }
示例#5
0
    function lists()
    {
        if ($this->db->count_all('mp') !== '0') {
            $colModel['KDMP'] = array('Kode MP', 80, TRUE, 'center', 2);
            $colModel['MP'] = array('Mata Pelajaran', 180, TRUE, 'left', 2);
            $colModel['ALIAS'] = array('Alias', 120, TRUE, 'left', 2);
            $colModel['TINGKAT'] = array('Tingkat', 120, TRUE, 'center', 2);
            $colModel['PROG'] = array('Program', 120, TRUE, 'center', 2);
            $colModel['action'] = array('Aksi', 60, FALSE, 'center', 0);
            $gridParams = array('width' => 'auto', 'height' => 'auto', 'rp' => 10, 'rpOptions' => '[10,20,30,40,50,60]', 'pagestat' => 'Menampilkan: {from} sampai {to} dari {total} data.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
            $grid_js = build_grid_js('flex1', site_url("mapel/load_data"), $colModel, 'KODEMP', 'asc', $gridParams);
            $this->data['js_grid'] = $grid_js;
        } else {
            $this->data['js_grid'] = '<table class="table-common" width="760px">
					<tr>
						<th>Kode MP</th>
						<th>Mata Pelajaran</th>
						<th>Alias</th>
						<th>Tingkat</th>
						<th>Program</th>
						<th>Aksi</th>						
					</tr>
					<tr>
						<td colspan="6"><center>Data tidak ditemukan</center></td>
					</tr>';
        }
        $this->LoadView('mapel/view', $this->data);
    }
示例#6
0
 public function index()
 {
     // $data['peserta']=$this->m_admin->get_peserta();
     $data['posisi'] = 'ruang_tes';
     $data['sessi'] = $this->session->userdata('admin');
     $data['level'] = $this->session->userdata('level');
     $data['username'] = $this->session->userdata('username');
     $data['gedung'] = $this->m_ruang_tes->get_gedung();
     $colModel['id_ruang_tes'] = array('No', 30, FALSE, 'center', 0);
     $colModel['nama_ruang_tes'] = array('Ruang Tes ', 100, TRUE, 'left', 2);
     $colModel['nama_gedung'] = array('Gedung ', 100, TRUE, 'left', 2);
     $colModel['kapasitas'] = array('Kapasitas', 60, TRUE, 'left', 2);
     $colModel['edit'] = array('edit', 25, TRUE, 'center', 0);
     $colModel['delete'] = array('hapus', 25, TRUE, 'center', 0);
     $gridParams = array('width' => 'auto', 'height' => 'auto', 'rp' => 10, 'singleSelect' => true, 'rpOptions' => '[5,10,15,20,25,40,100]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => 'DATA RUANG TES', 'showTableToggleBtn' => true);
     $buttons[] = array('Tambah', 'tambah', 'test');
     $buttons[] = array('Unselect', 'unselect', 'test');
     $buttons[] = array('Refresh', 'refresh', 'test');
     $buttons[] = array('Edit', 'edit', 'test');
     $buttons[] = array('Hapus', 'hapus', 'test');
     $buttons[] = array('separator');
     $data['bread'] = '<li><a style="text-decoration:none" href="./">Home</a><span class="divider">/</span></li>
                         <li class="active">Ruang Tes</li>';
     $grid_js = build_grid_js('flex1', base_url() . "ruang_tes/ajax_ruang_tes", $colModel, 'id', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     //$this->load->view('barang',$data);
     if ($data['sessi'] == '') {
         echo "<script>alert('ANDA BELUM LOGIN');\n                          document.location='./';\n                         </script>";
     } else {
         $this->load->view('admin/head', $data);
         $this->load->view('admin/menu', $data);
         $this->load->view('admin/ruang_tes', $data);
         $this->load->view('admin/footer');
     }
 }
示例#7
0
 function lists()
 {
     $colModel['no'] = array('No', 30, TRUE, 'center', 2);
     $colModel['kode_provinsi_bps'] = array('Kode Prov (BPS)', 130, TRUE, 'left', 2);
     $colModel['kode_provinsi_kemendagri'] = array('Kode Prov (Kemendagri)', 130, TRUE, 'left', 2);
     $colModel['nama_provinsi'] = array('Nama Provinsi', 170, TRUE, 'center', 2);
     $colModel['luas_wilayah'] = array('Luas Wilayah (Ha)', 100, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 2);
     //Populate flexigrid buttons..
     //$buttons[] = array('Select All','check','btn');
     //$buttons[] = array('separator');
     //$buttons[] = array('DeSelect All','uncheck','btn');
     // $buttons[] = array('separator');
     //$buttons[] = array('Add','add','btn');
     //$buttons[] = array('separator');
     //$buttons[] = array('Delete Selected Items','delete','btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 300, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('admin/c_provinsi/load_data'), $colModel, 'kode_provinsi_bps', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA PROVINSI';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('provinsi/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#8
0
 function lists()
 {
     $colModel['id_perangkat'] = array('ID', 20, TRUE, 'center', 0);
     $colModel['nip'] = array('NIP', 120, TRUE, 'left', 2);
     $colModel['nama'] = array('Nama', 180, TRUE, 'left', 2);
     $colModel['niap'] = array('NIAP', 120, TRUE, 'left', 2);
     $colModel['jabatan'] = array('Jabatan', 100, TRUE, 'center', 2);
     $colModel['is_aktif'] = array('Status', 80, TRUE, 'center', 2);
     $colModel['pangkat_gol'] = array('Golongan', 60, TRUE, 'center', 2);
     $colModel['no_sk_angkat'] = array('No. SK Angkat', 120, TRUE, 'left', 2);
     $colModel['tgl_angkat'] = array('Tanggal Angkat', 90, TRUE, 'center', 2);
     $colModel['no_sk_berhenti'] = array('No. SK Berhenti', 120, TRUE, 'left', 2);
     $colModel['tgl_berhenti'] = array('Tanggal Berhenti', 90, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('pustaka/c_perangkat/load_data'), $colModel, 'id_perangkat', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA PERANGKAT DESA';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('perangkat/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#9
0
 function lists()
 {
     $colModel['id_ped_sub'] = array('ID', 30, TRUE, 'left', 0);
     $colModel['ref_ped_sub.deskripsi'] = array('Jenis Potensi', 150, TRUE, 'left', 2);
     $colModel['ref_ped_kategori.deskripsi'] = array('Lahan', 150, TRUE, 'center', 2);
     $colModel['monetize'] = array('Hasil', 150, TRUE, 'center', 2);
     $colModel['satuan'] = array('Satuan', 50, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 70, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40,50]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('ped/c_ped_sub/load_data'), $colModel, 'id_ped_sub', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA JENIS POTENSI DESA';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('ped/ped_sub/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#10
0
 function lists()
 {
     $colModel['id_anggaran'] = array('ID', 20, TRUE, 'center', 0);
     $colModel['nomor'] = array('Kode', 50, TRUE, 'left', 2);
     $colModel['id_apbdes'] = array('ID APBDes', 80, TRUE, 'left', 2);
     $colModel['id_parent'] = array('ID Kepala', 80, TRUE, 'left', 2);
     $colModel['nama'] = array('Nama', 220, TRUE, 'left', 2);
     $colModel['jumlah'] = array('Jumlah', 150, TRUE, 'left', 2);
     $colModel['keterangan'] = array('Keterangan', 240, TRUE, 'left', 2);
     $colModel['aksi'] = array('Aksi', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 300, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('apbdes/c_anggaran/load_data'), $colModel, 'id_anggaran', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'Anggaran';
     $data['menu'] = $this->load->view('menu/v_pengelolaData', $data, TRUE);
     $data['content'] = $this->load->view('anggaran/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#11
0
 public function grid($kriteria_id)
 {
     $nama_kriteria = $this->kriteria_model->get_kriteria_by_id($kriteria_id)->row()->NAMA_KRITERIA;
     //$kode_role = $this->session->userdata('kode_role');
     $colModel['no'] = array('No', 20, TRUE, 'center', 0);
     $colModel['nama_subkriteria'] = array('Nama Subkriteria', 150, TRUE, 'center', 1);
     $colModel['nama_kriteria'] = array('Nama Kriteria', 150, TRUE, 'center', 1);
     $colModel['subprioritas_subkriteria'] = array('Subprioritas', 100, TRUE, 'center', 1);
     $colModel['ubah'] = array('Ubah', 30, FALSE, 'center', 0);
     $colModel['hapus'] = array('Hapus', 30, FALSE, 'center', 0);
     //setting konfigurasi pada bottom tool bar flexigrid
     $gridParams = array('width' => 'auto', 'height' => 330, 'rp' => 15, 'rpOptions' => '[15,30,50,100]', 'pagestat' => 'Menampilkan : {from} ke {to} dari {total} data.', 'blockOpacity' => 0, 'title' => 'Master Subkriteria ( Kriteria ' . $nama_kriteria . ' )', 'showTableToggleBtn' => false);
     //menambah tombol pada flexigrid top toolbar
     $jumlah_subkriteria = $this->ahp_subkriteria_model->get_jumlah_subkriteria($kriteria_id);
     if ($jumlah_subkriteria < 5) {
         $buttons[] = array('Tambah', 'add', 'spt_js');
         $buttons[] = array('separator');
     }
     $buttons[] = array('Kembali ke master kriteria', 'kembali', 'spt_js');
     // mengambil data dari file controler ajax pada method grid_user
     $url = site_url() . "/master_subkriteria/grid_data_subkriteria/" . $kriteria_id;
     $grid_js = build_grid_js('user', $url, $colModel, 'ID', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['added_js'] = "<script type='text/javascript'>\n\t\tfunction spt_js(com,grid){\t\n\t\t\tif (com=='Tambah'){\n\t\t\t\tlocation.href= '" . base_url() . "index.php/master_subkriteria/add/" . $kriteria_id . "';    \n\t\t\t}else if (com=='Kembali ke master kriteria'){\n\t\t\t\tlocation.href= '" . base_url() . "index.php/master_kriteria';    \n\t\t\t}\n\t\t} </script>";
     //$data['added_js'] variabel untuk membungkus javascript yang dipakai pada tombol yang ada di toolbar atas
     $data['content'] = $this->load->view('grid', $data, true);
     $this->load->view('main', $data);
 }
示例#12
0
 function lists()
 {
     $colModel['id_gizi_buruk'] = array('ID', 20, TRUE, 'left', 0);
     $colModel['tbl_keluarga.no_kk'] = array('No KK', 150, TRUE, 'left', 2);
     $colModel['tbl_penduduk.nik'] = array('NIK', 150, TRUE, 'left', 2);
     $colModel['tbl_penduduk.nama'] = array('Nama', 150, TRUE, 'left', 2);
     $colModel['berat_badan'] = array('Berat Badan (kg)', 150, TRUE, 'center', 2);
     $colModel['tinggi_badan'] = array('Tinggi Badan (cm)', 150, TRUE, 'center', 2);
     $colModel['tanggal_timbang'] = array('Tanggal Timbang', 150, TRUE, 'center', 0);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 300, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('datapenduduk/c_gizi_buruk/load_data'), $colModel, 'id_gizi_buruk', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA GIZI BURUK';
     $data['menu'] = $this->load->view('menu/v_pengelolaData', $data, TRUE);
     $data['content'] = $this->load->view('gizi_buruk/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#13
0
 function lists()
 {
     $colModel['id_surat'] = array('ID Surat', 50, TRUE, 'center', 0);
     $colModel['nomor_surat'] = array('Nomor Surat', 100, TRUE, 'center', 2);
     $colModel['judul_surat'] = array('Judul Surat', 150, TRUE, 'center', 2);
     $colModel['tgl_awal'] = array('Tgl Awal Berlaku', 100, TRUE, 'center', 2);
     $colModel['tgl_akhir'] = array('Tgl Akhir Berlaku', 100, TRUE, 'center', 2);
     //$colModel['nomor_registrasi'] = array('No Reg',50,TRUE,'center',2);
     $colModel['keterangan'] = array('Keperluan', 150, TRUE, 'center', 2);
     $colModel['deskripsi'] = array('Kategori Surat', 150, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 96, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     //$buttons[] = array('Delete Selected Items','delete','btn');
     //$buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('surat/c_surat/load_data'), $colModel, 'id_surat', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA SURAT';
     $data['menu'] = $this->load->view('menu/v_pengelolaData', $data, TRUE);
     $data['content'] = $this->load->view('surat/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#14
0
文件: jurusan.php 项目: biladina/pcmb
 public function index()
 {
     // $data['peserta']=$this->m_admin->get_peserta();
     $data['posisi'] = 'jurusan';
     $data['sessi'] = $this->session->userdata('admin');
     $data['level'] = $this->session->userdata('level');
     $data['username'] = $this->session->userdata('nama_admin');
     $data['fakultas'] = $this->m_jurusan->get_fakultas();
     // $data['jurusan']=$this->m_jurusan->get_jurusan();
     $colModel['kode_jurusan'] = array('No', 30, FALSE, 'center', 0);
     $colModel['nama_jurusan'] = array('jurusan ', 160, TRUE, 'left', 2);
     $colModel['fakultas'] = array('fakultas ', 160, TRUE, 'left', 2);
     $colModel['kuota'] = array('kuota ', 60, TRUE, 'left', 2);
     $colModel['edit'] = array('edit', 25, TRUE, 'center', 0);
     $colModel['delete'] = array('hapus', 25, TRUE, 'center', 0);
     $gridParams = array('width' => 'auto', 'height' => 'auto', 'rp' => 10, 'singleSelect' => true, 'rpOptions' => '[5,10,15,20,25,40,100]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => 'DATA jurusan', 'showTableToggleBtn' => true);
     $buttons[] = array('Tambah', 'tambah', 'test');
     $buttons[] = array('Unselect', 'unselect', 'test');
     $buttons[] = array('Refresh', 'refresh', 'test');
     $buttons[] = array('Edit', 'edit', 'test');
     $buttons[] = array('Hapus', 'hapus', 'test');
     $buttons[] = array('separator');
     $data['bread'] = '<li><a style="text-decoration:none" href="./">Home</a><span class="divider">/</span></li>
                         <li class="active">jurusan</li>';
     $grid_js = build_grid_js('flex1', base_url() . "jurusan/ajax_jurusan", $colModel, 'id', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     //$this->load->view('barang',$data);
     $this->load->view('admin/head', $data);
     $this->load->view('admin/menu', $data);
     $this->load->view('admin/jurusan', $data);
     $this->load->view('admin/footer');
 }
示例#15
0
 function lists()
 {
     $colModel['nama_pengguna'] = array('NAMA PENGGUNA', 120, TRUE, 'left', 2);
     $colModel['nik'] = array('NIK', 100, TRUE, 'left', 2);
     $colModel['nama'] = array('NAMA', 150, TRUE, 'left', 2);
     $colModel['no_telepon'] = array('NOMER TELEPON', 120, TRUE, 'left', 2);
     $colModel['role'] = array('ROLE', 120, TRUE, 'left', 2);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 2);
     //		$colModel['aksi2'] = array('AKSI',60,FALSE,'left',2);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 300, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('admin/c_user/load_data'), $colModel, 'no', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA PENGGUNA';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('user/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#16
0
 function lists()
 {
     $colModel['id_pindah_masuk'] = array('ID', 30, TRUE, 'left', 0);
     $colModel['tgl_pindah_masuk'] = array('Tanggal Pindah Masuk', 120, TRUE, 'left', 2);
     $colModel['no_kk'] = array('No Kepala Keluarga', 100, TRUE, 'left', 2);
     $colModel['alamat_jalan'] = array('Alamat', 100, TRUE, 'left', 2);
     $colModel['ref_desa.nama_desa'] = array('Desa Tujuan', 80, TRUE, 'left', 2);
     $colModel['ref_dusun.nama_dusun'] = array('Dusun Tujuan', 80, TRUE, 'left', 2);
     $colModel['ref_rw.nomor_rw'] = array('RW Tujuan', 70, TRUE, 'left', 2);
     $colModel['ref_rt.nomor_rt'] = array('RT Tujuan', 70, TRUE, 'left', 2);
     $colModel['ref_jenis_pindah.deskripsi'] = array('Jenis Pindah', 100, TRUE, 'left', 2);
     $colModel['ref_klasifikasi_pindah.deskripsi'] = array('Klasifikasi Pindah', 120, TRUE, 'left', 2);
     $colModel['ref_alasan_pindah.deskripsi'] = array('Alasan Pindah', 100, TRUE, 'left', 2);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     //$buttons[] = array('Delete Selected Items','delete','btn');
     //$buttons[] = array('separator');
     $gridParams = array('height' => 300, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('peristiwa/c_pindah_masuk/load_data'), $colModel, 'id_pindah_masuk', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA PERPINDAHAN PENDUDUK MASUK';
     $data['menu'] = $this->load->view('menu/v_pengelolaData', $data, TRUE);
     $data['content'] = $this->load->view('pindah_masuk/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#17
0
 function get_column()
 {
     $usergroup = GetValue('group_id', 'users_groups', array('user_id' => 'where/' . $this->session->userdata('user_id')));
     $colModel['idnya'] = array('ID', 50, TRUE, 'left', 2, TRUE);
     $colModel['id'] = array('ID', 100, TRUE, 'left', 2, TRUE);
     $colModel['no'] = array('No Transaksi', 150, TRUE, 'left', 2);
     $colModel['ref'] = array('Ref', 150, TRUE, 'left', 2);
     $colModel['gudang_to'] = array('Tujuan', 110, TRUE, 'left', 2);
     $colModel['tgl'] = array('Tanggal', 110, TRUE, 'left', 2);
     $colModel['bast'] = array('BAST', 110, TRUE, 'left', 2);
     $colModel['created_by'] = array('Input Oleh', 110, TRUE, 'left', 2);
     //if($usergroup=='1'||$usergroup=='4'||$usergroup=='6'){
     //$colModel['invoice'] = array('Invoice',110,TRUE,'left',2);}
     $gridParams = array('rp' => 25, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => TRUE);
     $buttons[] = array('separator');
     /* $buttons[] = array('select','check','btn');
     		$buttons[] = array('deselect','uncheck','btn');
     		$buttons[] = array('separator');
     		$buttons[] = array('add','add','btn');
     		$buttons[] = array('separator');
     		$buttons[] = array('edit','edit','btn');
     		$buttons[] = array('delete','delete','btn');
     		$buttons[] = array('separator');
     		 */
     return $grid_js = build_grid_js('flex1', site_url($this->module . '/' . $this->file_name . "/get_record"), $colModel, 'id', 'desc', $gridParams, $buttons);
 }
示例#18
0
 function lists()
 {
     $colModel['id_ped_pertanian'] = array('ID', 20, TRUE, 'left', 0);
     $colModel['deskripsi'] = array('Deskripsi', 150, TRUE, 'left', 2);
     $colModel['penggarap'] = array('Penggarap', 150, TRUE, 'center', 2);
     $colModel['jumlah_penggarap'] = array('Jumlah Penggarap', 100, TRUE, 'center', 2);
     $colModel['luas'] = array('Luas (Ha)', 100, TRUE, 'center', 2);
     $colModel['lokasi'] = array('Lokasi', 80, TRUE, 'center', 2);
     $colModel['ref_dusun.nama_dusun'] = array('Nama Dusun', 150, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 40, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('rp' => 10, 'height' => 400, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('admin/c_ped_pertanian/load_data'), $colModel, 'id_ped_pertanian', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA PERTANIAN';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('ped_pertanian/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#19
0
 function lists()
 {
     $colModel['id_aset_tanah'] = array('ID', 30, TRUE, 'left', 0);
     $colModel['no_sertifikat'] = array('No Sertifikat', 150, TRUE, 'left', 2);
     $colModel['tbl_aset_tanah.deskripsi'] = array('Deskripsi', 200, TRUE, 'center', 2);
     $colModel['luas'] = array('Luas Tanah (Ha)', 110, TRUE, 'center', 2);
     $colModel['ref_kepemilikan_aset.deskripsi'] = array('Kepemilikan', 100, TRUE, 'center', 2);
     $colModel['lokasi'] = array('Lokasi Peta', 110, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 40, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     /* $buttons[] = array('Select All','check','btn');
     		$buttons[] = array('separator');
             $buttons[] = array('DeSelect All','uncheck','btn');
             $buttons[] = array('separator');
     		$buttons[] = array('Add','add','btn');
     		$buttons[] = array('separator');
             $buttons[] = array('Delete Selected Items','delete','btn'); */
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40,50]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('peta/c_petaTanah/load_data'), $colModel, 'id_aset_tanah', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA ASET TANAH';
     $data['menu'] = $this->load->view('menu/v_pengelolaPeta', $data, TRUE);
     $data['content'] = $this->load->view('peta/tanah/v_listPetaTanah', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#20
0
 function lists()
 {
     $colModel['id_slider_beranda'] = array('ID', 30, TRUE, 'center', 2);
     $colModel['konten_background'] = array('Konten Background', 250, TRUE, 'left', 2);
     $colModel['konten_teks'] = array('Konten Teks', 150, TRUE, 'left', 2);
     $colModel['konten_logo'] = array('Konten Logo', 250, TRUE, 'left', 2);
     $colModel['aksi'] = array('AKSI', 50, FALSE, 'center', 2);
     //Populate flexigrid buttons..
     //$buttons[] = array('Delete Selected Items','delete','btn');
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 200, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('admin/c_slider_beranda/load_data'), $colModel, 'id_slider_beranda', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'SLIDER BERANDA DESA';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('slider_beranda/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#21
0
 function lists()
 {
     //$colModel['No'] = array('No',35,TRUE,'center',0);
     $colModel['waktu'] = array('Waktu Berita', 110, TRUE, 'center', 2);
     $colModel['judul_berita'] = array('Judul Berita', 400, TRUE, 'center', 2);
     $colModel['isi_berita'] = array('Isi Berita', 120, TRUE, 'center', 2);
     $colModel['penulis'] = array('Penulis', 120, TRUE, 'center', 2);
     $colModel['is_publish'] = array('Publish', 50, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 50, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     //$buttons[] = array('Add','add','btn');
     //$buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('admin/c_jurnalisme/load_data'), $colModel, 'waktu', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'JURNALISME WARGA';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('jurnalisme/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#22
0
 function lists()
 {
     $colModel['id_keluarga'] = array('ID', 20, TRUE, 'left', 0);
     $colModel['no_kk'] = array('No KK', 150, TRUE, 'left', 2);
     $colModel['tbl_penduduk.nik'] = array('NIK Kepala Keluarga', 150, TRUE, 'left', 2);
     $colModel['tbl_penduduk.nama'] = array('Nama', 150, TRUE, 'left', 2);
     $colModel['is_raskin'] = array('Raskin', 80, TRUE, 'center', 2);
     $colModel['is_jamkesmas'] = array('Jamkesmas', 80, TRUE, 'center', 2);
     $colModel['is_pkh'] = array('PKH', 80, TRUE, 'center', 2);
     $colModel['ref_kelas_sosial.deskripsi'] = array('Status Ekonomi', 150, TRUE, 'center', 2);
     //$colModel['aksi'] = array('AKSI',60,FALSE,'left',2);
     //Populate flexigrid buttons..
     /*  $buttons[] = array('Select All','check','btn');
     		$buttons[] = array('separator');
             $buttons[] = array('DeSelect All','uncheck','btn');
             $buttons[] = array('separator');
     		$buttons[] = array('Add','add','btn');
             $buttons[] = array('separator');
             $buttons[] = array('Delete Selected Items','delete','btn'); */
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('datapenduduk/c_penduduk_miskin/load_data'), $colModel, 'id_keluarga', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA PENERIMA PROGRAM PERLINDUNGAN SOSIAL';
     $data['menu'] = $this->load->view('menu/v_pengelolaData', $data, TRUE);
     $data['content'] = $this->load->view('penduduk_miskin/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#23
0
 function lists()
 {
     $colModel['id_kondisi_kehamilan'] = array('ID', 20, TRUE, 'left', 0);
     $colModel['tbl_penduduk.nik'] = array('NIK', 150, TRUE, 'left', 2);
     $colModel['tbl_penduduk.nama'] = array('Nama', 150, TRUE, 'left', 2);
     $colModel['tgl_hpl'] = array('Hari Perkiraan Lahir', 150, TRUE, 'center', 0);
     $colModel['is_resti'] = array('Resiko Tinggi', 150, TRUE, 'center', 2);
     $colModel['keterangan'] = array('Keterangan', 200, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 300, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('datapenduduk/c_kondisi_kehamilan/load_data'), $colModel, 'id_kondisi_kehamilan', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA KONDISI KEHAMILAN';
     $data['menu'] = $this->load->view('menu/v_pengelolaData', $data, TRUE);
     $data['content'] = $this->load->view('kondisi_kehamilan/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#24
0
文件: foto.php 项目: aldrymaulana/pwk
 function index()
 {
     if ($this->session->userdata('username') == NULL) {
         redirect('login');
     } else {
         $colModel['no'] = array('No', 30, TRUE, 'center', 0);
         $colModel['Nama_Foto'] = array('Nama Foto', 150, TRUE, 'center', 1);
         $colModel['Deskripsi_Foto'] = array('Deskripsi Foto', 200, TRUE, 'center', 1);
         $colModel['Link_Deskripsi_Foto'] = array('Link Deskripsi Foto', 200, TRUE, 'center', 1);
         $colModel['Nama_Foto'] = array('Nama Foto', 200, TRUE, 'center', 1);
         $colModel['Lokasi'] = array('Link Foto', 300, TRUE, 'left', 0);
         $colModel['Slide'] = array('Set Foto Slide', 90, TRUE, 'center', 0);
         $colModel['Detail'] = array('Preview', 60, TRUE, 'center', 0);
         $colModel['Edit'] = array('Edit', 30, TRUE, 'center', 0);
         //$colModel['Delete'] = array('Delete',30,TRUE,'center',0);
         $gridParams = array('width' => 'auto', 'height' => 300, 'rp' => 10, 'rpOptions' => '[5,10,15,20,25,40]', 'pagestat' => 'Menampilkan: {from} hingga {to} dari {total} data.', 'blockOpacity' => 0.5, 'title' => 'Daftar Artikel', 'showTableToggleBtn' => true);
         $buttons[] = array('tambah', 'add', 'spt_js');
         $buttons[] = array('separator');
         $buttons[] = array('hapus', 'delete', 'spt_js');
         // mengambil data dari file controler ajax pada method grid_berkas
         $grid_js = build_grid_js('flex1', site_url("admin/foto/grid_foto"), $colModel, 'Nama_Foto', 'asc', $gridParams, $buttons);
         $data['added_js'] = "<script type='text/javascript'>\n        function spt_js(com,grid)\n        {\n                if (com=='tambah')\n                {\n                        location.href='" . base_url() . "index.php/admin/foto/form'; \n                }\n\n                if (com=='hapus')\n                        {\n                           if(\$('.trSelected',grid).length>0){\n                                   if(confirm('Anda yakin menghapus ' + \$('.trSelected',grid).length + ' foto?')){\n                                                var items = \$('.trSelected',grid);\n                                                var itemlist ='';\n                                                for(i=0;i<items.length;i++){\n                                                        itemlist+= items[i].id.substr(3)+',';\n                                                }\n                                                \$.ajax({\n                                                   type: 'POST',\n                                                   url: '" . base_url() . "index.php/admin/foto/delete" . "',\n                                                   data: 'items='+itemlist,\n                                                   success: function(data){\n                                                        \$('#flex1').flexReload();\n                                                   }\n                                                });\n                                        }\n                                } else {\n                                        return false;\n                                } \n                        }\n\n        } \n        </script>\n        ";
         $data['js_grid'] = $grid_js;
         //rendering view
         //$data['title'] = 'Daftar Peserta';
         //$data['js_grid']=$grid_js;
         $data['content'] = $this->load->view('admin/grid', $data, true);
         $this->load->view('admin/main', $data);
     }
 }
示例#25
0
 function lists()
 {
     //$colModel['id_rt'] = array('ID',30,TRUE,'center',0);
     $colModel['nomor_rt'] = array('Nomor RT', 80, TRUE, 'center', 2);
     $colModel['luas_wilayah'] = array('Luas Wilayah (Ha)', 100, TRUE, 'center', 2);
     $colModel['ref_dusun.nama_dusun'] = array('Dusun', 100, TRUE, 'center', 2);
     $colModel['ref_rw.nomor_rw'] = array('Nomor RW', 100, TRUE, 'center', 2);
     $colModel['id_penduduk'] = array('Nik Ketua RT', 150, TRUE, 'center', 0);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('admin/c_rt/load_data'), $colModel, 'ref_dusun.nama_dusun', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA RT';
     $data['menu'] = $this->load->view('menu/v_admin', $data, TRUE);
     $data['content'] = $this->load->view('rt/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#26
0
 function lists()
 {
     $colModel['id_aset_master'] = array('ID', 30, TRUE, 'left', 0);
     $colModel['no_aset'] = array('No Aset', 80, TRUE, 'left', 2);
     $colModel['nama'] = array('Nama', 100, TRUE, 'left', 2);
     $colModel['merk'] = array('Merk', 100, TRUE, 'left', 2);
     $colModel['ketersediaan'] = array('Ketersediaan', 75, TRUE, 'center', 2);
     $colModel['kondisi'] = array('Kondisi', 60, TRUE, 'center', 2);
     $colModel['kepemilikan_aset'] = array('Kepemilikan', 100, TRUE, 'center', 2);
     $colModel['asal_aset'] = array('Asal Aset', 100, TRUE, 'center', 2);
     $colModel['kategori_aset'] = array('Kategori', 110, TRUE, 'center', 2);
     $colModel['nama_ruangan'] = array('Nama Ruangan', 100, TRUE, 'center', 2);
     $colModel['aksi'] = array('AKSI', 50, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 400, 'rp' => 15, 'rpOptions' => '[10,20,30,40,50]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('aset/c_aset/load_data'), $colModel, 'id_aset_master', 'desc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA ASET';
     $data['menu'] = $this->load->view('menu/v_pengelolaAset', $data, TRUE);
     $data['content'] = $this->load->view('aset/aset/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#27
0
 function lists_rpjmdes_detail()
 {
     $id_periode = $this->input->post('id_periode', TRUE);
     $colModel['id_rpjmdes_detail'] = array('ID', 30, TRUE, 'center', 0);
     $colModel['ref_rp_bidang.kode_bidang'] = array('Kode Bidang', 80, TRUE, 'center', 2);
     $colModel['tbl_rp_rpjmdes.program'] = array('Program RPJMDes', 198, TRUE, 'center', 2);
     $colModel['indikator'] = array('Indikator', 75, TRUE, 'center', 2);
     $colModel['volume'] = array('Volume', 70, TRUE, 'center', 2);
     $colModel['lokasi'] = array('Lokasi', 75, TRUE, 'left', 2);
     $base_year = date("Y");
     $min_year = $this->m_rpjmdes_detail->get_PeriodeAwal_ById($id_periode);
     //$base_year - 5;
     $max_year = $this->m_rpjmdes_detail->get_PeriodeAkhir_ById($id_periode);
     //$base_year + 5;
     for ($i = $min_year; $i <= $max_year; $i++) {
         $colModel[$i] = array($i, 90, TRUE, 'center', 2);
     }
     $colModel['capaian'] = array('Capaian', 75, TRUE, 'left', 2);
     //$colModel['tanggal'] = array('Tanggal',100,TRUE,'left',2);
     //Populate flexigrid buttons..
     $buttons[] = array('separator');
     $gridParams = array('height' => 250, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('rencanaPembangunan/c_rpjmdes_detail/load_data/' . $id_periode), $colModel, 'id_rpjmdes_detail', 'asc', $gridParams, $buttons);
     $data['id_periode'] = $id_periode;
     $data['js_grid'] = $grid_js;
     $data['menu'] = $this->load->view('menu/v_rencanaPembangunan', $data, TRUE);
     $this->load->view('rencanaPembangunan/rpjmdes_detail/v_list_rpjmdes_detail', $data);
 }
示例#28
0
 public function grid()
 {
     $colModel['no'] = array('No', 20, TRUE, 'center', 0);
     $colModel['NAMA_INSTANSI'] = array('Nama Instansi', 200, TRUE, 'center', 1);
     $colModel['ALAMAT_INSTANSI'] = array('Alamat Instansi', 200, TRUE, 'center', 1);
     $colModel['STATUS_INSTANSI'] = array('Status', 50, TRUE, 'center', 1);
     $colModel['ubah'] = array('Ubah', 30, FALSE, 'center', 0);
     //$colModel['hapus'] = array('Hapus',30,FALSE,'center',0);
     //setting konfigurasi pada bottom tool bar flexigrid
     $gridParams = array('width' => 'auto', 'height' => 330, 'rp' => 15, 'rpOptions' => '[15,30,50,100]', 'pagestat' => 'Menampilkan : {from} ke {to} dari {total} data.', 'blockOpacity' => 0, 'title' => 'Master Instansi', 'showTableToggleBtn' => false);
     //menambah tombol pada flexigrid top toolbar
     $buttons[] = array('Tambah', 'add', 'spt_js');
     $buttons[] = array('Hapus', 'delete', 'spt_js');
     $buttons[] = array('separator');
     $buttons[] = array('Pilih Semua', 'add', 'spt_js');
     $buttons[] = array('separator');
     $buttons[] = array('Hapus Pilihan', 'delete', 'spt_js');
     $buttons[] = array('separator');
     // mengambil data dari file controler ajax pada method grid_user
     $url = site_url() . "/instansi/grid_data_instansi";
     $grid_js = build_grid_js('user', $url, $colModel, 'ID', 'asc', $gridParams, $buttons, true);
     $data['js_grid'] = $grid_js;
     $data['added_js'] = "<script type='text/javascript'>\r\n\t\tfunction spt_js(com,grid){\r\n\t\t\tif (com=='Pilih Semua')\r\n\t\t\t{\r\n\t\t\t\t\$('.bDiv tbody tr',grid).addClass('trSelected');\r\n\t\t\t}\r\n\t\t\tif (com=='Tambah'){\r\n\t\t\t\tlocation.href= '" . base_url() . "index.php/instansi/add';    \r\n\t\t\t}\r\n\t\t\tif (com=='Hapus Pilihan')\r\n\t\t\t{\r\n\t\t\t\t\$('.bDiv tbody tr',grid).removeClass('trSelected');\r\n\t\t\t}\r\n\t\t\tif (com=='Hapus')\r\n\t\t\t\t{\r\n\t\t\t\t   if(\$('.trSelected',grid).length>0){\r\n\t\t\t\t\t   if(confirm('Anda yakin ingin menghapus ' + \$('.trSelected',grid).length + ' buah data?')){\r\n\t\t\t\t\t\t\tvar items = \$('.trSelected',grid);\r\n\t\t\t\t\t\t\tvar itemlist ='';\r\n\t\t\t\t\t\t\tfor(i=0;i<items.length;i++){\r\n\t\t\t\t\t\t\t\titemlist+= items[i].id.substr(3)+',';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\$.ajax({\r\n\t\t\t\t\t\t\t   type: 'POST',\r\n\t\t\t\t\t\t\t   url: '" . site_url('/instansi/delete') . "',\r\n\t\t\t\t\t\t\t   data: 'items='+itemlist,\r\n\t\t\t\t\t\t\t   success: function(data){\r\n\t\t\t\t\t\t\t\t\$('#user').flexReload();\r\n\t\t\t\t\t\t\t\talert(data);\r\n\t\t\t\t\t\t\t   }\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t} \r\n\t\t\t\t}        \r\n\t\t} </script>";
     //$data['added_js'] variabel untuk membungkus javascript yang dipakai pada tombol yang ada di toolbar atas
     $data['content'] = $this->load->view('grid', $data, true);
     $this->load->view('main', $data);
 }
示例#29
0
 function lists()
 {
     $colModel['id_tahun_anggaran'] = array('ID', 20, TRUE, 'center', 0);
     $colModel['periode'] = array('Periode', 105, TRUE, 'center', 2);
     $colModel['tahun'] = array('Tahun', 75, TRUE, 'center', 2);
     $colModel['deskripsi'] = array('Deskripsi', 100, TRUE, 'left', 2);
     $colModel['regulasi'] = array('Regulasi', 220, TRUE, 'left', 2);
     $colModel['keterangan'] = array('Keterangan', 220, TRUE, 'left', 2);
     $colModel['aksi'] = array('AKSI', 60, FALSE, 'center', 0);
     //Populate flexigrid buttons..
     $buttons[] = array('Select All', 'check', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('DeSelect All', 'uncheck', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Add', 'add', 'btn');
     $buttons[] = array('separator');
     $buttons[] = array('Delete Selected Items', 'delete', 'btn');
     $buttons[] = array('separator');
     $gridParams = array('height' => 300, 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Displaying: {from} to {to} of {total} items.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
     $grid_js = build_grid_js('flex1', site_url('rencanaPembangunan/c_tahun_anggaran/load_data'), $colModel, 'id_tahun_anggaran', 'asc', $gridParams, $buttons);
     $data['js_grid'] = $grid_js;
     $data['page_title'] = 'DATA TAHUN ANGGARAN';
     $data['menu'] = $this->load->view('menu/v_rencanaPembangunan', $data, TRUE);
     $data['content'] = $this->load->view('rencanaPembangunan/tahun_anggaran/v_list', $data, TRUE);
     $this->load->view('utama', $data);
 }
示例#30
0
    function lists($id)
    {
        $this->load->library('flexigrid');
        $valid_fields = array('k.nis', 's.NAMA');
        $this->flexigrid->validate_post('k.nis', 'ASC', $valid_fields);
        $records = $this->nilai->get_nilai_flexigrid($id);
        if ($records['record_count'] !== '0') {
            $colModel['nis'] = array('NIS', 80, TRUE, 'left', 2);
            $colModel['NAMA'] = array('Nama', 180, TRUE, 'left', 2);
            $colModel['total'] = array('Jumlah / Total Mata Pelajaran', 180, TRUE, 'left', 2);
            $colModel['action'] = array('Aksi', 60, FALSE, 'center', 0);
            $gridParams = array('width' => 'auto', 'height' => 'auto', 'rp' => 10, 'rpOptions' => '[10,20,30,40]', 'pagestat' => 'Menampilkan: {from} sampai {to} dari {total} data.', 'blockOpacity' => 0.5, 'title' => '', 'showTableToggleBtn' => false);
            $grid_js = build_grid_js('flex1', site_url("nilai/load_data/{$id}"), $colModel, 'k.nis', 'asc', $gridParams);
            $this->data['js_grid'] = $grid_js;
            $this->LoadSingleView('nilai/list', $this->data);
        } else {
            echo '<table class="table-common" width="760px">
					<tr>
						<th>NIS</th>
						<th>Nama</th>
						<th>Jumlah</th>
						<th>Aksi</th>						
					</tr>
					<tr>
						<td colspan="4"><center>Data tidak ditemukan</center></td>
					</tr>';
        }
    }