当前位置: 首页>>代码示例>>PHP>>正文


PHP MY_Controller::core_tech_view方法代码示例

本文整理汇总了PHP中MY_Controller::core_tech_view方法的典型用法代码示例。如果您正苦于以下问题:PHP MY_Controller::core_tech_view方法的具体用法?PHP MY_Controller::core_tech_view怎么用?PHP MY_Controller::core_tech_view使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MY_Controller的用法示例。


在下文中一共展示了MY_Controller::core_tech_view方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: list_approve

 public function list_approve($type = false)
 {
     $search = '';
     $txt = $this->input->post('text');
     if ($txt) {
         $txt = str_replace(' ', '', trim($this->input->post('text')));
         $search = " and CONCAT(t3.pat_name,t3.pat_lname)  like '%{$txt}%'  ";
         // var_dump($this->input->post('text'));die();
     }
     $search_date = $this->search_date();
     if ($type == false) {
         $check_status = "กำลังจัดทำอุปกรณ์ กรอกข้อมูลแล้ว";
         ##แล้วยืนยันการจัดทำอุปกรณื
     } elseif ($type == 'before') {
         $check_status = "ตรวจก่อนทำสวยงามแล้ว";
     } elseif ($type == 'after') {
         $check_status = "ประเมิณหลังทำสวยงามแล้ว";
     }
     /*         * pagination */
     $this->per_page = 20;
     $row = $this->general_model->QueryAll("\n            select * from order_tools t1 \n            inner join check_pat t2 on t1.check_id = t2.check_id\n            inner join patients t3 on t3.pat_id = t2.pat_id \n            where \n            t1.tech_id={$this->user_id} \n            and t2.check_status = '{$check_status}'\n            {$search} {$search_date}\n            group by t2.check_id\n            order by t2.date\n            ", 'count');
     $url = base_url() . 'admin/list_doctors/';
     parent::pagination($page, $url, count($row), $this->per_page, 3);
     $list = $this->general_model->QueryAll("\n         select * from order_tools t1 \n         inner join check_pat t2 on t1.check_id = t2.check_id\n         inner join patients t3 on t3.pat_id = t2.pat_id \n         where \n         t1.tech_id={$this->user_id} \n         and t2.check_status = '{$check_status}'\n         {$search} {$search_date}\n         group by t2.check_id\n         order by t2.date\n         limit {$this->start_no}, {$this->per_page} \n         ");
     /*         * pagination */
     foreach ($list as $key => $value) {
         $data['list'][] = array('check_id' => $value['check_id'], 'doc_id' => $value['doc_id'], 'name' => $value['pat_name'] . "  " . $value['pat_lname']);
     }
     $data['type_topic'] = "ยืนยันหลังการตรวจ";
     $view = 'core_' . $this->usertype . '_view';
     parent::core_tech_view('tech/list_approve', $data);
 }
开发者ID:chidkaii,项目名称:GIT,代码行数:32,代码来源:tech.php


注:本文中的MY_Controller::core_tech_view方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。