本文整理匯總了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);
}