public function type_hebergement() { // CRUD table $crud = generate_crud('type_hebergement'); $crud->set_subject('Type d\'hébergement'); $this->mTitle = "Type d'hébergement"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $crud = generate_crud('villes'); $crud->set_subject('ville'); $this->mTitle = "Villes"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $crud = generate_crud('modepaiement'); $crud->set_subject('mode de paiement'); $crud->set_field_upload('picto', 'assets/uploads/'); $this->mTitle = "Mode de paiement"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('tb_kecamatan'); $crud->set_subject('Data Kecamatan'); $this->mTitle = "Data Kecamatan"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $crud = generate_crud('evenements'); $crud->set_subject('evenement'); $crud->set_field_upload('image1', 'assets/uploads/'); $this->mTitle = "Les événements"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function sous_activite() { // CRUD table $crud = generate_crud('sous_activite'); $crud->set_subject('Sous type d\'activité'); $crud->set_field_upload('image', 'assets/uploads/'); $crud->set_relation('id_type', 'type_activite', 'nom'); $this->mTitle = "Sous type d\\'activité"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $crud = generate_crud('actualites'); $crud->set_subject('actualité'); $crud->set_field_upload('photo_miniature', 'assets/uploads/'); $crud->set_field_upload('photo_actualite', 'assets/uploads/'); $this->mTitle = "Actualités"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('plaza'); $crud->unset_fields(''); $crud->columns('vehicle_total', 'slot'); $crud->display_as('Total Vehicle', 'Slot'); $this->mTitle = "Plaza Master"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('tb_jenisbahanpokok'); $crud->set_subject('Data Jenis Bahan Pokok'); $crud->set_field_upload('foto_jenis_bahan_pokok', 'assets/uploads'); $crud->callback_before_upload(array($this, '_valid_images')); $this->mTitle = "Data Jenis Bahan Pokok"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('park'); $crud->unset_fields('pid'); $crud->columns('name', 'typeid', 'intime', 'outtime', 'hours', 'charges', 'status'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $this->mTitle = "Parking"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('testcrud'); $crud->unset_fields('lname'); $crud->columns('fname'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $this->mTitle = "TestCRUD"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
/** * test crud form */ public function test_crud() { // CRUD table $crud = generate_crud('test_crud'); $crud->columns('id', 'name'); $crud->unset_edit_fields('game'); $crud->add_action('Reset Password', '', 'admin/reset_password', 'fa fa-rotate-left fa-lg'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $this->mTitle = "test crud"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('tb_kontak'); $crud->set_subject('Halaman Kontak'); $crud->unset_add(); $crud->unset_delete(); $this->mTitle = "Halaman Kontak"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('tb_luaslahan'); $crud->set_subject('Data Luas Lahan'); $crud->set_relation('id_kecamatan', 'tb_kecamatan', 'nama_kecamatan'); $crud->display_as('id_kecamatan', 'Nama Kecamatan'); $this->mTitle = "Data Luas Lahan"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
/** * Backend users */ public function backend_user() { // CRUD table $crud = generate_crud('backend_users'); $crud->columns('role', 'username', 'full_name', 'active', 'created_at'); $crud->unset_edit_fields('password'); $crud->add_action('Reset Password', '', 'admin/reset_password', 'fa fa-rotate-left fa-lg'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $this->mTitle = "Backend Users"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('users'); $crud->unset_fields('activation_code', 'forgot_password_code', 'forgot_password_time', 'created_at'); $crud->columns('role', 'username', 'email', 'first_name', 'last_name', 'active', 'created_at'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $this->mTitle = "User"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $this->load->library('image_CRUD'); $crud = generate_crud('tb_pasar'); $crud->set_subject('Pasar'); $crud->set_field_upload('foto_pasar', 'assets/uploads'); $crud->callback_before_upload(array($this, '_valid_images')); $this->mTitle = "Data Pasar"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
/** * Backend users */ public function backend_user() { // CRUD table $crud = generate_crud('backend_users'); $crud->columns('role', 'username', 'full_name', 'active', 'created_at'); $crud->unset_edit_fields('password'); $crud->add_action('Reset Password', '', 'admin/reset_password', '<i class="fa fa-undo"></i>'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $crud->set_subject('utilisateur'); $this->mTitle = "Utilisateurs"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function letter() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('setup'); $crud->columns('name'); $crud->unset_fields('name'); $crud->unset_delete(); $crud->unset_read(); $this->mTitle = "Setup"; // $this->mViewFile = 'applicants/listing'; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('parktype'); $crud->unset_fields(''); $crud->columns('name'); $crud->required_fields('name'); $crud->unique_fields('name'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $this->mTitle = "Park Type"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('tb_berita'); $crud->set_subject('Berita'); $crud->set_field_upload('gambar', 'assets/uploads'); $crud->callback_before_upload(array($this, '_valid_images')); $user_array = get_user(); $fullname = $user_array['full_name']; $crud->field_type('user', 'hidden', $fullname); $this->mTitle = "Data Berita"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function seo() { if (!verify_role('admin')) { redirect(); exit; } $this->load->helper('crud'); // CRUD table $crud = generate_crud('seo'); $crud->field_type('page', 'dropdown', array('accueil' => 'Accueil', 'restaurants' => 'Se restaurer', 'sejourner' => 'Séjourner', 'divertir' => 'Se divertir', 'evenements' => 'Événements', 'commerces' => 'Commerces')); $crud->set_subject('seo'); $this->mTitle = "SEO"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function listing() { // CRUD table $crud = generate_crud('files'); $crud->set_theme('datatables'); $crud->columns('title', 'description', 'attachment'); // $crud->required_fields('title', 'attachment'); $crud->set_field_upload('attachment', 'assets/uploads/files/bukwang_files'); $crud->unset_add_fields('created_by', 'created_at', 'updated_by', 'updated_at'); $crud->unset_edit_fields('created_by', 'created_at', 'updated_by', 'updated_at'); $crud->unset_read_fields('created_by', 'created_at', 'updated_by', 'updated_at'); $this->mTitle = "Bukwang Files :: List"; // $this->mViewFile = 'applicants/listing'; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('slab'); $crud->unset_fields(''); $crud->columns('name', 'frmhrs', 'tohrs'); $crud->required_fields('name', 'frmhrs', 'tohrs'); $crud->unique_fields('name'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $this->mTitle = "Hours Slab"; // $this->mViewFile = 'admin/reset_password'; // $this->mViewData['target'] = $this->backend_users->get($user_id); $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('charges'); $crud->unset_fields(''); $crud->columns('typeid', 'charges'); // $crud->required_fields('typeid','charges'); $crud->callback_before_insert(array($this, 'callback_before_create_user')); $crud->display_as('typeid', 'park type'); $crud->set_subject('charges'); $crud->set_relation('typeid', 'parktype', 'name'); $this->mTitle = "Parking Charges"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('tb_hargakomoditas'); $crud->set_relation('id_bahanpokok', 'tb_bahanpokok', 'nama_bahan_pokok'); $crud->display_as('id_bahanpokok', 'Nama Bahan Pokok'); $crud->set_relation('id_jenisbahanpokok', 'tb_jenisbahanpokok', 'nama_jenis_bahan_pokok'); $crud->display_as('id_jenisbahanpokok', 'Jenis'); $crud->set_relation('id_pasar', 'tb_pasar', 'nama_pasar'); $crud->display_as('id_pasar', 'Pasar'); $crud->set_subject('Data Komoditas'); $crud->required_fields('id_bahanpokok', 'id_jenisbahanpokok', 'id_pasar', 'satuan', 'tgl_update', 'harga'); $this->mTitle = "Data Komoditas"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // only admin role can access this controller if (!verify_role('admin')) { redirect(); exit; } // CRUD table $crud = generate_crud('restaurants'); $crud->set_subject('restaurant'); $crud->set_field_upload('image1', 'assets/uploads/'); $crud->set_field_upload('image2', 'assets/uploads/'); $crud->set_field_upload('image3', 'assets/uploads/'); $crud->set_field_upload('image4', 'assets/uploads/'); $crud->set_field_upload('image5', 'assets/uploads/'); $crud->display_as('id_modepaiement', 'Mode de paiement'); $crud->display_as('id_service', 'Service'); $this->load->model('restaurants_model'); $myarrapaiement = array(); $modepaiements = $this->restaurants_model->getInfos('modepaiement'); if (count($modepaiements->result()) > 0) { foreach ($modepaiements->result() as $row) { $myarrapaiement[$row->id] = $row->nom; } $crud->field_type('id_modepaiement', 'multiselect', $myarrapaiement); } $myarrayservice = array(); $modepaiements = $this->restaurants_model->getInfos('modepaiement'); if (count($modepaiements->result()) > 0) { foreach ($modepaiements->result() as $row) { $myarrayservice[$row->id] = $row->nom; } $crud->field_type('id_service', 'multiselect', $myarrayservice); } $myarrayvilles = array(); $villes = $this->restaurants_model->getVilles(); if (count($villes->result()) > 0) { foreach ($villes->result() as $row) { $myarrayvilles[$row->nom] = $row->nom; } $crud->field_type('ville', 'dropdown', $myarrayvilles); } $this->mTitle = "Restaurants"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function add_employees($jo_id, $jo_pos_id) { $this->load->model('job_orders_model', 'job_order'); $this->load->model('applicants_model', 'applicants'); $job_order = $this->job_order->get_by(array('id' => $jo_id)); // CRUD table $crud = generate_crud('job_order_employees'); $crud->where('job_order', $jo_id); $crud->where('position', $jo_pos_id); $crud->set_theme('datatables'); $applicants = $this->applicants->dropdown('CONCAT(first_name, \' \', last_name)'); $crud->field_type('applicant', 'dropdown', $applicants); $crud->field_type('job_order', 'hidden', $jo_id); $crud->field_type('position', 'hidden', $jo_pos_id); $this->mTitle = "Job Order :: " . $job_order['name_of_principal'] . " (" . date("M d, Y", strtotime($job_order['date_of_registration'])) . ")"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function index() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('slot_master'); $crud->unset_fields(''); $crud->columns('name', 'from', 'to'); $crud->set_rules('from', 'From', 'numeric'); $crud->set_rules('to', 'To', 'numeric'); $crud->required_fields('name', 'from', 'to'); $crud->callback_add_field('name', function () { return '<input type="text" maxlength="3" value="" name="name">'; }); $crud->callback_edit_field('name', array($this, 'edit_field_callback_1')); $crud->display_as('Slot Name', 'From', 'To'); $this->mTitle = "Slot Master"; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }
public function barangays() { // CRUD table $this->load->helper('crud'); $crud = generate_crud('barangays'); $crud->callback_field('name', array($this, '_name')); $crud->callback_field('purok_leader', array($this, '_purok_leader')); $crud->callback_field('ward_leader', array($this, '_ward_leader')); $crud->callback_field('brgy_coordinator', array($this, '_brgy_coordinator')); $crud->columns('name', 'code'); $crud->unset_add(); $crud->unset_edit(); $crud->unset_delete(); $crud->unset_read(); $crud->add_action('Edit', '', 'barangays/edit'); $this->mTitle = "Barangays :: List"; // $this->mViewFile = 'applicants/listing'; $this->mViewFile = '_partial/crud'; $this->mViewData['crud_data'] = $crud->render(); }