本文整理匯總了PHP中crud::bacaDr方法的典型用法代碼示例。如果您正苦於以下問題:PHP crud::bacaDr方法的具體用法?PHP crud::bacaDr怎麽用?PHP crud::bacaDr使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類crud
的用法示例。
在下文中一共展示了crud::bacaDr方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: menu_edit
public function menu_edit()
{
$id = $this->encrypt->decode_url($_GET['id']);
$data['menu_list'] = crud::bacaDr('tbl_menu', 'id_menu', $id);
$this->load->view('1_atas', $data);
$this->load->view('2_navbar', $data);
$this->load->view('includes/menu/menu_edit', $data);
$this->load->view('4_bawah', $data);
}
示例2: foreach
</div>
</div>
</div>
<div class="col-lg-4">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<div class="col-xs-9">
<h2 class="panel-title"><i class="fa fa-check-circle"></i> Checker</h2>
</div>
</div>
</div>
<div class="panel-body">
<?php
$nota_det = crud::bacaDr('tbl_orderlist_det', 'no_nota', $keranjang->no_nota);
if (!empty($nota_det)) {
foreach ($nota_det as $nota_det) {
$this->db->where('id_menu', $nota_det->id_menu);
$mode = $this->db->get('tbl_menu')->row();
if ($mode->id_kategori == 1) {
?>
<br><span class="fa fa-coffee"></span><label><?php
echo $nota_det->menu . nbs(6);
?>
<br></label>
<?php
} else {
?>
<br> <span class="fa fa-cutlery"></span> <label><?php
echo $nota_det->menu . nbs(6);
示例3: cetak
public function cetak()
{
$module = $_GET['module'];
$data['totalamount'] = $_GET['totalamount'];
switch ($module) {
case 'take_order':
$data['setting'] = $this->db->query("SELECT * FROM tbl_pengaturan")->row();
$data['keranjang'] = crud::bacaDr('tbl_orderlist', 'no_nota', $_GET['nota']);
$this->load->view('1_atas', $data);
$this->load->view('2_navbar_no', $data);
$this->load->view('includes/pesan/print_to', $data);
// Beranda
$this->load->view('4_bawah', $data);
break;
case 'print_termal':
$this->load->library('user_agent');
$setting = $this->db->query("SELECT * FROM tbl_pengaturan")->row();
$keranjang = $this->db->query("SELECT * FROM tbl_orderlist WHERE no_nota='" . $_GET['nota'] . "'")->row();
$nota_det = $this->db->query("SELECT * FROM tbl_orderlist_det WHERE no_nota='" . $keranjang->no_nota . "'")->result();
$os_type = $this->agent->platform();
// $path = realpath('./').'/application/libraries/escpos/Escpos.php';
//
// require_once($path);
// $connector = new FilePrintConnector("/dev/ttyUSB0");
// $printer = new Escpos($connector);
//
// $this->load->library('escpos/escpos','');
// $this->escpos->getPrintConnector("/dev/ttyS0");
break;
}
}