本文整理汇总了PHP中generate_crud函数的典型用法代码示例。如果您正苦于以下问题:PHP generate_crud函数的具体用法?PHP generate_crud怎么用?PHP generate_crud使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了generate_crud函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: type_hebergement
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();
}
示例2: index
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();
}
示例3: index
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();
}
示例4: index
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();
}
示例5: sous_activite
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();
}
示例6: index
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();
}
示例7: index
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();
}
示例8: index
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();
}
示例9: index
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();
}
示例10: index
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();
}
示例11: test_crud
/**
* 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();
}
示例12: index
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();
}
示例13: index
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();
}
示例14: backend_user
/**
* 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();
}
示例15: index
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();
}