本文整理汇总了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;
}
}