當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。