本文整理汇总了PHP中MY_Controller::core_staff_view方法的典型用法代码示例。如果您正苦于以下问题:PHP MY_Controller::core_staff_view方法的具体用法?PHP MY_Controller::core_staff_view怎么用?PHP MY_Controller::core_staff_view使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MY_Controller
的用法示例。
在下文中一共展示了MY_Controller::core_staff_view方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add_service
public function add_service($pat_id, $type = false)
{
$data['pat_id'] = $pat_id;
$data['type'] = $type;
$data['patient'] = $this->general_model->get_row('patients', "pat_id = {$pat_id}");
$data['place'] = $this->general_model->get_field('distinct(place)', 'check_pat', "place != '0' and place is not null and place !=''");
$data['pat_right'] = $this->general_model->get_field('distinct(pat_right)', 'check_pat', 'pat_right != "" ');
if ($data['patient']['check_status'] != null && $data['patient']['check_status'] != 'ประเมิณเรียบร้อยแล้ว' && $data['patient']['check_status'] != 'ยกเลิก') {
$data['check_pat'] = $this->general_model->get_field('*', 'check_pat', "pat_id = {$pat_id}", 'check_id desc limit 1');
$check_id = $data['check_pat'][0]['check_id'];
$data['check_pat'] = reset($data['check_pat']);
$data['opd_card'] = $this->general_model->get_all('opd_card', "check_id = {$check_id}");
} else {
$data['check_pat'] = false;
$check_id = false;
}
$data['check_id'] = $check_id;
parent::core_staff_view('staff/add_service', $data);
}
示例2: index
public function index()
{
// $this->load->view('test/test_fancy');
parent::core_staff_view('test/test_fancy');
}