当前位置: 首页>>代码示例>>PHP>>正文


PHP build_grid_js函数代码示例

本文整理汇总了PHP中build_grid_js函数的典型用法代码示例。如果您正苦于以下问题:PHP build_grid_js函数的具体用法?PHP build_grid_js怎么用?PHP build_grid_js使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了build_grid_js函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:25,代码来源:c_perawatan.php

示例2: lists

    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);
    }
开发者ID:abosmond,项目名称:simanis,代码行数:29,代码来源:tahunajaran.php

示例3: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:27,代码来源:c_dusun.php

示例4: lists

    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);
    }
开发者ID:abosmond,项目名称:simanis,代码行数:31,代码来源:siswa.php

示例5: lists

    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);
    }
开发者ID:abosmond,项目名称:simanis,代码行数:28,代码来源:mapel.php

示例6: index

 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');
     }
 }
开发者ID:biladina,项目名称:pcmb,代码行数:35,代码来源:ruang_tes.php

示例7: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:25,代码来源:c_provinsi.php

示例8: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:31,代码来源:c_perangkat.php

示例9: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:25,代码来源:c_ped_sub.php

示例10: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:27,代码来源:c_anggaran.php

示例11: grid

 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);
 }
开发者ID:khaniffaozi,项目名称:ahp_sik,代码行数:28,代码来源:master_subkriteria.php

示例12: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:27,代码来源:c_gizi_buruk.php

示例13: lists

 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);
 }
开发者ID:ekospinach,项目名称:sideka,代码行数:28,代码来源:c_surat.php

示例14: index

 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');
 }
开发者ID:biladina,项目名称:pcmb,代码行数:32,代码来源:jurusan.php

示例15: lists

 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);
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:26,代码来源:c_user.php


注:本文中的build_grid_js函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。