Ejemplo n.º 1
0
<ul class="breadcrumb">
    <li><a href="<?php 
echo site_url();
?>
">หน้าหลัก </a></li>
    <li><a href="<?php 
echo site_url() . "/ncd/";
?>
">NCD </a></li>
    <li class="active"> ข้อมูลผู้ป่วยเรื้อรัง 43   <span class='badge alert-danger'>แฟ้ม Chronic  <span class='badge alert-success'>ประมวลผลล่าสุด :<?php 
echo to_thai_date_time($last_prc);
?>
</span></li>
</ul>
<div class="alert alert-warning">
    <button type='button' class='close' data-dismiss='alert'>&times;</button>
    <strong> <span class='glyphicon glyphicon-question-sign'> </span> หมายเหตุ</strong>
    <ul class="nav ">
        <li> กลุ่มผู้ป่วยเรื้อรังนับเฉพาะคนที่ยังมีชีวิต (DISCHAR=9) และคนในเขตรับผิดชอบ (TypeArea in 1,3) และวินิจฉัยที่อยู่ในกลุ่มโรคเรื้อรัง 16 กลุ่ม</li>
 </ul>
</div>
<div class="navbar navbar-default">
    <form action="#" class="navbar-form">


        <select id="distid" style="width: 180px;" class="form-control">
            <option value="">อำเภอ [ทั้งหมด] </option>
            <?php 
foreach ($amp as $r) {
    echo '<option value="' . $r->distid . '">' . '' . $r->distid . ' : ' . $r->distname . '</option>';
}
Ejemplo n.º 2
0
 public function get_message()
 {
     $status = $this->input->post('status');
     $sys_id = $this->session->userdata('sys_id');
     $start = $this->input->post('start');
     $stop = $this->input->post('stop');
     $start = empty($start) ? 0 : $start;
     $stop = empty($stop) ? 25 : $stop;
     $limit = (int) $stop - (int) $start;
     if ($status == '1') {
         $rs = $this->users->get_message($sys_id, $start, $stop);
     } else {
         if ($status == '2') {
             $rs = $this->users->get_message_out($sys_id, $start, $stop);
         }
     }
     if ($rs) {
         $arr_result = array();
         foreach ($rs as $r) {
             $obj = new stdClass();
             $obj->id = $r->id;
             $obj->datesend = to_thai_date_time($r->datesend);
             $obj->title = $r->title;
             $obj->message = $r->message;
             $obj->sender = $this->users->get_username($r->sender);
             $obj->reciver = $this->users->get_username($r->reciver);
             $obj->daterecive = to_thai_date($r->reciver);
             $obj->read = $r->read;
             $arr_result[] = $obj;
         }
         $rows = json_encode($arr_result);
         $json = '{"success": true, "rows": ' . $rows . '}';
     } else {
         $json = '{"success": false, "msg": "ไม่มีข้อมูล."}';
     }
     render_json($json);
 }
Ejemplo n.º 3
0
 public function what_new()
 {
     $this->basic->set_page_view('member');
     $rs = $this->basic->get_what_new();
     $arr_result = array();
     foreach ($rs as $r) {
         $obj = new stdClass();
         $obj->create_date = to_thai_date_time($r->create_date);
         $obj->version = $r->version;
         $obj->what_new = $r->what_new;
         $obj->memo = $r->memo;
         $obj->link = $r->link;
         $arr_result[] = $obj;
     }
     $data['what_new'] = $arr_result;
     $this->layout->setLayout('default_layout');
     $this->layout->view('about/what_new_view', $data);
 }
Ejemplo n.º 4
0
 public function get_last_reply($id)
 {
     $rs = $this->user_db->select('MAX(a.date_reply) as date_reply,b.name', false)->where('topic_id', $id)->join('mas_users b ', 'a.user_id=b.id')->get('board_reply a')->row();
     return count($rs) > 0 ? $rs->name . " " . to_thai_date_time($rs->date_reply) : '-';
 }