本文整理汇总了PHP中generate_crud函数的典型用法代码示例。如果您正苦于以下问题:PHP generate_crud函数的具体用法?PHP generate_crud怎么用?PHP generate_crud使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了generate_crud函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:Joohelmer,项目名称:Pdld,代码行数:9,代码来源:hebergement.php
示例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();
}
开发者ID:Joohelmer,项目名称:Pdld,代码行数:9,代码来源:ville.php
示例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();
}
开发者ID:Joohelmer,项目名称:Pdld,代码行数:10,代码来源:modepaiement.php
示例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();
}
开发者ID:januarfonti,项目名称:komoditas,代码行数:10,代码来源:kecamatan.php
示例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();
}
开发者ID:Joohelmer,项目名称:Pdld,代码行数:11,代码来源:activite.php
示例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();
}
开发者ID:Joohelmer,项目名称:Pdld,代码行数:11,代码来源:actualite.php
示例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();
}
开发者ID:msd1310,项目名称:ci_bootstrap,代码行数:12,代码来源:back_slot.php
示例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();
}
开发者ID:januarfonti,项目名称:komoditas,代码行数:12,代码来源:jenis_bahanpokok.php
示例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();
}
开发者ID:msd1310,项目名称:ci_bootstrap,代码行数:12,代码来源:parking.php
示例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();
}
开发者ID:msd1310,项目名称:ci_bootstrap,代码行数:12,代码来源:testcrud.php
示例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();
}
开发者ID:msd1310,项目名称:ci_bootstrap,代码行数:15,代码来源:admin.php
示例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();
}
开发者ID:januarfonti,项目名称:komoditas,代码行数:12,代码来源:kontak.php
示例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();
}
开发者ID:januarfonti,项目名称:komoditas,代码行数:12,代码来源:luas_lahan.php
示例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();
}
开发者ID:kailIII,项目名称:ci_bootstrap,代码行数:15,代码来源:admin.php
示例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();
}
开发者ID:januarfonti,项目名称:komoditas,代码行数:12,代码来源:user.php
示例16: index
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();
}
开发者ID:januarfonti,项目名称:komoditas,代码行数:13,代码来源:pasar.php
示例17: 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', '<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();
}
开发者ID:Joohelmer,项目名称:Pdld,代码行数:16,代码来源:admin.php
示例18: letter
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();
}
开发者ID:pjsangat,项目名称:lgu,代码行数:14,代码来源:setup.php
示例19: index
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();
}
开发者ID:msd1310,项目名称:ci_bootstrap,代码行数:14,代码来源:park.php
示例20: index
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();
}
开发者ID:januarfonti,项目名称:komoditas,代码行数:15,代码来源:berita.php
注:本文中的generate_crud函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论