本文整理汇总了PHP中grocery_CRUD::unset_operations方法的典型用法代码示例。如果您正苦于以下问题:PHP grocery_CRUD::unset_operations方法的具体用法?PHP grocery_CRUD::unset_operations怎么用?PHP grocery_CRUD::unset_operations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类grocery_CRUD
的用法示例。
在下文中一共展示了grocery_CRUD::unset_operations方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: data_absen
public function data_absen()
{
$this->load->model('Absen_model');
$this->Absen_model->get_data_absen();
$crud = new grocery_CRUD();
$crud->set_table('data_absen');
$crud->unset_operations();
$output = $crud->render();
//Config Halaman
if (!$this->Absen_model->get_data_absen()) {
$output->pesan = '<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-ban"></i> Alert!</h4>
Anda tidak terhubung dengan mesin !
</div>';
} elseif ($this->Absen_model->get_data_absen()) {
$output->pesan = '<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-check"></i> Success !</h4>
Anda terhubung dengan mesin.
</div>';
}
/*$output->pesan = '<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h4><i class="icon fa fa-ban"></i> Alert!</h4>
Danger alert preview. This alert is dismissable. A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
</div>';
}*/
$output->judul_besar = 'Presensi';
$output->judul_kecil = 'Data Absen';
$output->m_data_absen = TRUE;
$this->_example_output($output);
}
示例2: histori
public function histori()
{
$crud = new grocery_CRUD();
$crud->set_table('voucher');
$crud->where('voucher.status', '1');
$crud->columns('nomor', 'id_member', 'created_at', "used_at");
$crud->set_relation('id_member', 'members', 'username');
$crud->display_as('nomor', 'Kode Voucher');
$crud->display_as('id_member', 'Member');
$crud->unset_operations();
$output = $crud->render();
$output->title = 'Data Voucher';
$this->template->load('template/template_main', 'admin/voucher', $output);
}