Commit 7aaba2fb authored by Azy Mushofy Anwary's avatar Azy Mushofy Anwary

Merge branch 'master' of http://git.khansia.co.id/indra/queue into master

# Conflicts:
#	public/action-js/antrian-js/action-kelolapoli.js
parents 9eeba5fd 344ac3d3
Pipeline #184 failed with stages
...@@ -56,14 +56,16 @@ return [ ...@@ -56,14 +56,16 @@ return [
], ],
], ],
], ],
'api' => [ 'api' => [
'type' => Segment::class, 'type' => Segment::class,
'options' => [ 'options' => [
'route' => '/api[/][:action][/:id]', 'route' => '/api[/:action][/:id]',
'constraints' => array( 'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
'id' => '[0-9]+', 'id' => '[0-9]+',
), ),
'defaults' => [ 'defaults' => [
'controller' => Controller\ApiController::class, 'controller' => Controller\ApiController::class,
'action' => 'index', 'action' => 'index',
......
...@@ -33,10 +33,7 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -33,10 +33,7 @@ class AdminController extends \Application\Master\GlobalActionController
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-dasboaard.js'); $this->headScript->appendFile('/action-js/antrian-js/action-panggil.js');
// $this->headScript->appendFile('/tamplateadmin/js/demo/chart-bar-demo.js');
// $this->headScript->appendFile('/tamplateadmin/js/demo/chart-area-demo.js');
$this->headScript->appendFile('/tamplateadmin/js/demo/chart-pie-demo.js');
$this->layout("layout/layoutAdmin"); $this->layout("layout/layoutAdmin");
return $view; return $view;
...@@ -50,30 +47,77 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -50,30 +47,77 @@ class AdminController extends \Application\Master\GlobalActionController
/* get url */ /* get url */
$uri = $this->getRequest()->getUri(); $uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
$getpath = explode("/",$uri->getPath());
// echo "<pre>";
$id = $getpath[3];
// echo "<pre>";
// print_r($uri);die;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); // $storage = \Application\Model\Param\Storage::factory($this->getDb(), $this->getConfig());
$this->headScript->appendFile('/action-js/antrian-js/action-admin.js'); // $param = new \Application\Model\Param($storage);
$this->layout("layout/layoutAdmin");
return $view; // $curl = curl_init();
}
public function registrasidokterAction() // curl_setopt_array($curl, array(
{ // CURLOPT_URL => "http://queue.indra/api/nextantrian",
$this->isLoggedIn(); // CURLOPT_RETURNTRANSFER => true,
$view = new ViewModel(); // CURLOPT_ENCODING => "",
$result = new Result(); // CURLOPT_MAXREDIRS => 10,
// CURLOPT_TIMEOUT => 0,
// CURLOPT_FOLLOWLOCATION => true,
// CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
// CURLOPT_CUSTOMREQUEST => "POST",
// CURLOPT_POSTFIELDS => array('inoantrian' => '1','idok' => '74','istatus' => '30'),
// ));
// $response = curl_exec($curl);
// curl_close($curl);
// echo $response;
// function curl($url, $data){
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
// curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $output = curl_exec($ch);
// curl_close($ch);
// return $output;
// }
/* get url */ // // Data Parameter yang Dikirim oleh cURL
$uri = $this->getRequest()->getUri(); // $data = array("inoantrian"=>"1","idok"=>"74","istatus"=>"40");
$baseurl = sprintf('//%s', $uri->getHost()); // print_r($data);
// $send = curl("http://queue.indra/api/nextantrian/",json_encode($data));
// echo json_encode(array('respon'=>$send),JSON_UNESCAPED_SLASHES);
$arr = json_decode(file_get_contents("php://input"));
if (empty($arr->inoantrian) OR empty($arr->idok) OR empty($arr->istatus)){
echo "Submit gagal!";
} else {
echo "Submit berhasil!".$arr->inoantrian."</b><b>".$arr->idok."</b>.<b>".$arr->istatus."</b>.";
}
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-registrasidokter.js'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var id = "' . $id . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-admin.js');
$this->layout("layout/layoutAdmin"); $this->layout("layout/layoutAdmin");
return $view; return $view;
} }
public function antrianterlewatAction() public function registrasidokterAction()
{ {
$this->isLoggedIn(); $this->isLoggedIn();
$view = new ViewModel(); $view = new ViewModel();
...@@ -84,12 +128,12 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -84,12 +128,12 @@ class AdminController extends \Application\Master\GlobalActionController
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-kelolaantrian.js'); $this->headScript->appendFile('/action-js/antrian-js/action-registrasidokter.js');
$this->layout("layout/layoutAdmin"); $this->layout("layout/layoutAdmin");
return $view; return $view;
} }
public function antrianunregisterAction() public function kelolapasienAction()
{ {
$this->isLoggedIn(); $this->isLoggedIn();
$view = new ViewModel(); $view = new ViewModel();
...@@ -100,7 +144,7 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -100,7 +144,7 @@ class AdminController extends \Application\Master\GlobalActionController
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-kelolaantrianunreg.js'); $this->headScript->appendFile('/action-js/antrian-js/action-kelolapasien.js');
$this->layout("layout/layoutAdmin"); $this->layout("layout/layoutAdmin");
return $view; return $view;
...@@ -137,22 +181,6 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -137,22 +181,6 @@ class AdminController extends \Application\Master\GlobalActionController
$this->layout("layout/layoutAdmin"); $this->layout("layout/layoutAdmin");
return $view; return $view;
} }
public function kelolapasienAction()
{
$this->isLoggedIn();
$view = new ViewModel();
$result = new Result();
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-kelolapasien.js');
$this->layout("layout/layoutAdmin");
return $view;
}
public function kelolaruanganAction() public function kelolaruanganAction()
{ {
$this->isLoggedIn(); $this->isLoggedIn();
...@@ -185,13 +213,45 @@ class AdminController extends \Application\Master\GlobalActionController ...@@ -185,13 +213,45 @@ class AdminController extends \Application\Master\GlobalActionController
$this->layout("layout/layoutAdmin"); $this->layout("layout/layoutAdmin");
return $view; return $view;
} }
public function cobainAction()
{
//$this->isLoggedIn();
// $view = new ViewModel();
$result = new Result();
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
// $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
// $this->headScript->appendFile('/action-js/index-js/action-listdata.js');
$this->layout("layout/layoutAdmin");
return $view;
}
public function tampilanumumAction() public function tampilanumumAction()
{ {
$this->isLoggedIn(); $this->isLoggedIn();
$view = new ViewModel(); $view = new ViewModel();
$result = new Result(); $result = new Result();
// require_once(APPPATH.'vendor/autoload.php');
// $options = array(
// 'cluster' => 'ap1',
// 'useTLS' => true
// );
// $pusher = new PusherPusher(
// '6f23df2468d8c1c7d0a2', //ganti dengan App_key pusher Anda
// 'd2c2bf5a98edcdddfda2', //ganti dengan App_secret pusher Anda
// '1090832', //ganti dengan App_key pusher Anda
// $options
// );
// $data['message'] = 'success';
// $pusher->trigger('my-channel', 'my-event', $data);
$today = gmdate("d M Y ", time()+60*60*7); $today = gmdate("d M Y ", time()+60*60*7);
$view->setVariable('today', $today); $view->setVariable('today', $today);
......
...@@ -116,38 +116,16 @@ class QueueController extends \Application\Master\GlobalActionController ...@@ -116,38 +116,16 @@ class QueueController extends \Application\Master\GlobalActionController
} }
public function poliAction() public function poliAction()
{ {
$this->isLoggedIn();
$view = new ViewModel();
$result = new Result();
/* get url */
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var id = null');
$this->headScript->appendFile('/action-js/antrian-js/action-poli.js');
$this->layout("layout/layoutQueue");
return $view;
}
public function datapoliAction()
{
$view = new ViewModel(); $view = new ViewModel();
$result = new Result(); $result = new Result();
$id = $_GET["id"];
// print_r($id);die;
/* get url */ /* get url */
$uri = $this->getRequest()->getUri(); $uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var id = "' . $id. '"'); $this->headScript->appendFile('/action-js/index-js/action-listdata.js');
$this->headScript->appendFile('/action-js/antrian-js/action-poli.js');
$this->layout("layout/layoutQueue"); $this->layout("layout/layoutQueue");
return $view; return $view;
...@@ -180,8 +158,18 @@ class QueueController extends \Application\Master\GlobalActionController ...@@ -180,8 +158,18 @@ class QueueController extends \Application\Master\GlobalActionController
//print_r($uri);die; //print_r($uri);die;
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
$getpath = explode("/",$uri->getPath()); $getpath = explode("/",$uri->getPath());
// print_($getpath);die;
$decodeid = base64_decode($getpath[3]); $decodeid = base64_decode($getpath[3]);
$decodeiddok = base64_decode($getpath[4]);
// $decodeidpol = base64_decode($getpath[5]);
// $decodeidant = base64_decode($getpath[6]);
// print_r($decodeiddok );die;
$storage = \Application\Model\Param\Storage::factory($this->getDb(), $this->getConfig()); $storage = \Application\Model\Param\Storage::factory($this->getDb(), $this->getConfig());
$param = new \Application\Model\Param($storage); $param = new \Application\Model\Param($storage);
...@@ -196,7 +184,7 @@ class QueueController extends \Application\Master\GlobalActionController ...@@ -196,7 +184,7 @@ class QueueController extends \Application\Master\GlobalActionController
foreach($codeCounter->data as $result) { foreach($codeCounter->data as $result) {
} }
//print_r($codeCounter);die; // print_r($codeCounter);
$view->setVariable('no_rekam_medis', $result['no_rekam_medis']); $view->setVariable('no_rekam_medis', $result['no_rekam_medis']);
$view->setVariable('nama', $result['nama']); $view->setVariable('nama', $result['nama']);
$view->setVariable('nama_dokter', $result['nama_dokter']); $view->setVariable('nama_dokter', $result['nama_dokter']);
...@@ -204,6 +192,7 @@ class QueueController extends \Application\Master\GlobalActionController ...@@ -204,6 +192,7 @@ class QueueController extends \Application\Master\GlobalActionController
$view->setVariable('no_antrian', $result['no_antrian']); $view->setVariable('no_antrian', $result['no_antrian']);
$view->setVariable('no_antrian', $result['no_antrian']); $view->setVariable('no_antrian', $result['no_antrian']);
$view->setVariable('kode_dokter', $result['kode_dokter']); $view->setVariable('kode_dokter', $result['kode_dokter']);
$view->setVariable('sisa_antrian', $result['sisa_antrian']);
// print_r($result);die; // print_r($result);die;
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
...@@ -212,12 +201,13 @@ class QueueController extends \Application\Master\GlobalActionController ...@@ -212,12 +201,13 @@ class QueueController extends \Application\Master\GlobalActionController
$this->headScript->appendScript(' var nama_dokter_cetak = "' . $result['nama_dokter'] . '"'); $this->headScript->appendScript(' var nama_dokter_cetak = "' . $result['nama_dokter'] . '"');
$this->headScript->appendScript(' var kode_poli_cetak = "' . $result['nama_poli'] . '"'); $this->headScript->appendScript(' var kode_poli_cetak = "' . $result['nama_poli'] . '"');
$this->headScript->appendScript(' var no_antrian_cetak = "' . $result['no_antrian'] . '"'); $this->headScript->appendScript(' var no_antrian_cetak = "' . $result['no_antrian'] . '"');
$this->headScript->appendScript(' var kode_dokter_cetak = "' . $result['kode_dokter'] . '"'); $this->headScript->appendScript(' var kode_dokter_cetak = "' . $result['kode_dokter'] . '"');
$this->headScript->appendScript(' var sisa_antrian = "' . $result['sisa_antrian'] . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-cetak.js'); $this->headScript->appendFile('/action-js/antrian-js/action-cetak.js');
$this->layout("layout/layoutQueue"); $this->layout("layout/layoutQueue");
return $view; return $view;
} }
} }
...@@ -41,6 +41,7 @@ class UmumController extends \Application\Master\GlobalActionController ...@@ -41,6 +41,7 @@ class UmumController extends \Application\Master\GlobalActionController
{ {
$view = new ViewModel(); $view = new ViewModel();
$result = new Result(); $result = new Result();
$today = gmdate("d M Y ", time()+60*60*7); $today = gmdate("d M Y ", time()+60*60*7);
$view->setVariable('today', $today); $view->setVariable('today', $today);
...@@ -48,27 +49,40 @@ class UmumController extends \Application\Master\GlobalActionController ...@@ -48,27 +49,40 @@ class UmumController extends \Application\Master\GlobalActionController
/* get url */ /* get url */
$uri = $this->getRequest()->getUri(); $uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost()); $baseurl = sprintf('//%s', $uri->getHost());
$getpath = explode("/",$uri->getPath());
// echo "<pre>";
$decodeid = base64_decode($getpath[3]);
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-umum.js'); // $curl = curl_init();
// curl_setopt_array($curl, array(
// CURLOPT_URL => "http://queue.indra/api/loadantrian?id_poli=$decodeid",
// CURLOPT_RETURNTRANSFER => true,
// CURLOPT_ENCODING => "",
// CURLOPT_MAXREDIRS => 10,
// CURLOPT_TIMEOUT => 0,
// CURLOPT_FOLLOWLOCATION => true,
// CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
// CURLOPT_CUSTOMREQUEST => "POST",
// CURLOPT_POSTFIELDS => array('id_poli' => $decodeid),
// ));
// $response = curl_exec($curl);
// curl_close($curl);
// // echo $response;
$this->layout("layout/layoutUmum");
return $view;
}
public function tampilanantrianAction()
{
$view = new ViewModel();
$result = new Result();
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"'); $this->headScript->appendScript(' var id_poli = "' . $decodeid . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-umum.js'); $this->headScript->appendFile('/action-js/antrian-js/action-umumtampilan.js');
$this->layout("layout/layoutUmum"); $this->layout("layout/layoutUmum");
return $view; return $view;
} }
} }
...@@ -61,20 +61,16 @@ class Param extends Mapper { ...@@ -61,20 +61,16 @@ class Param extends Mapper {
$data = $this->_storage->loadUserData($id,$iddok); $data = $this->_storage->loadUserData($id,$iddok);
return $data; return $data;
} }
public function loadpasien($id = null, $norm = null){
$data = $this->_storage->loadpasien($id, $norm);
return $data;
}
public function loaddatapasien($id){ public function loaddatapasien($id){
$data = $this->_storage->loaddatapasien($id); $data = $this->_storage->loaddatapasien($id);
return $data; return $data;
} }
public function cekpasien($no_rekam_medis = null,$ktp = null ){ public function loadsisaantrian($id,$no){
$data = $this->_storage->cekpasien($no_rekam_medis, $ktp); $data = $this->_storage->loadsisaantrian($id,$no);
return $data; return $data;
} }
public function cekktp($no_rekam_medis, $ktp){ public function cekpasien($no_rekam_medis = null){
$data = $this->_storage->cekktp($no_rekam_medis, $ktp); $data = $this->_storage->cekpasien($no_rekam_medis);
return $data; return $data;
} }
...@@ -106,10 +102,6 @@ class Param extends Mapper { ...@@ -106,10 +102,6 @@ class Param extends Mapper {
$data = $this->_storage->loadkelolapoli($id); $data = $this->_storage->loadkelolapoli($id);
return $data; return $data;
} }
public function loadkelolapasien($id = null){
$data = $this->_storage->loadkelolapasien($id);
return $data;
}
public function loadkeloladokter($id = null){ public function loadkeloladokter($id = null){
$data = $this->_storage->loadkeloladokter($id); $data = $this->_storage->loadkeloladokter($id);
return $data; return $data;
...@@ -122,16 +114,12 @@ class Param extends Mapper { ...@@ -122,16 +114,12 @@ class Param extends Mapper {
$data = $this->_storage->updatekelolaantrian($idpasien,$iddok); $data = $this->_storage->updatekelolaantrian($idpasien,$iddok);
return $data; return $data;
} }
public function loadantrianmiss($id){ public function loadkelolaantrian($id){
$data = $this->_storage->loadantrianmiss($id); $data = $this->_storage->loadkelolaantrian($id);
return $data;
}
public function loadantrianunregis($id){
$data = $this->_storage->loadantrianunregis($id);
return $data; return $data;
} }
public function loadPoli($id = null){ public function loadPoli($id_poli = null){
$data = $this->_storage->loadPoli($id); $data = $this->_storage->loadPoli($id_poli);
return $data; return $data;
} }
public function loadPilihAntrian($iddok = null){ public function loadPilihAntrian($iddok = null){
...@@ -155,38 +143,12 @@ class Param extends Mapper { ...@@ -155,38 +143,12 @@ class Param extends Mapper {
return $data; return $data;
} }
public function loadAntrian($id = null){ public function loadAntrian($id_poli){
$data = $this->_storage->loadAntrian($id); $data = $this->_storage->loadAntrian($id_poli);
return $data;
}
public function loadjumlahpasien(){
$data = $this->_storage->loadjumlahpasien();
return $data;
}
public function loadpasiendalamantrian(){
$data = $this->_storage->loadpasiendalamantrian();
return $data;
}
public function loadpasienterlewat(){
$data = $this->_storage->loadpasienterlewat();
return $data;
}
public function loadterlayani(){
$data = $this->_storage->loadterlayani();
return $data;
}
public function loadtotalantrian(){
$data = $this->_storage->loadtotalantrian();
return $data;
}
public function tampilpoli($id = null){
$data = $this->_storage-> tampilpoli($id);
return $data;
}
public function tampildatapoli($id = null){
$data = $this->_storage-> tampildatapoli($id);
return $data; return $data;
} }
public function tampildokter(){ public function tampildokter(){
$data = $this->_storage->tampildokter(); $data = $this->_storage->tampildokter();
return $data; return $data;
......
<!-- <script type="text/javascript">
// 1 detik = 1000
window.setTimeout("waktu()",1000);
function waktu() {
var tanggal = new Date();
setTimeout("waktu()",1000);
document.getElementById("tanggalku").innerHTML
= tanggal.getHours()+":"+tanggal.getMinutes()+":"+tanggal.getSeconds();
}
</script> -->
<!-- Page header --> <!-- Page header -->
<div class="page-header" style="border-bottom: 0px solid #ddd0;"> <div class="row">
<!-- Header content --> <div class="page-header" style="border-bottom: 0px solid #ddd0;">
<div class="page-header-content"> <!-- Header content -->
<div class="page-title"> <div class="page-header-content">
<h4 style="font-size:25px;"><span class="text-semibold">Rumah Sakit - Mohon Antri Dengan Tertib</span></h4> <div class="page-title">
</div> <h4 style="color: #fff;font-size:25px;"><span class="text-semibold">Rumah Sakit - Mohon Antri Dengan Tertib</span></h4>
<div class="heading-elements"> </div>
<div class="heading-btn-group">
<div style="color: #fff9ff;font-size: 50px;font-weight: 600;margin-top:-20px;"> <div class="heading-elements">
<span id="tanggalku"></span> <div class="heading-btn-group">
<div style="color: #fff;font-size: 17px;font-weight: 600;margin-top:-20px;">
<?php echo $this->today; ?>
</div>
</div> </div>
<div style="color: #fff9ff;font-size: 17px;font-weight: 600;margin-top:-20px;">
<?php echo $this->today; ?>
</div>
</div> </div>
</div> </div>
</div>
</div>
<div class="justify-content-center">
<div class="col-sm-200" >
<div class="card mb-3 alert alert-info alert-styled-left alert-arrow-left alert-component col-sm-100" style="border-color: #e94c72;background: #faebd73b;width: 1300px;margin-left: 100px;">
<div class="text-center content-group">
<div><input type="hidden" value="nomer antrian" id="text-to-speech" placeholder="Enter text to speak..."/></div>
<p class="error-title" style=" font-weight: ;font-size:50px;font-family: Times New Roman, Times, serif;color: #fff"><span > Nomer</span></p>
<h1 class="error-title" style=" font-weight: bold;font-size:100px;font-family: Times New Roman, Times, serif;color: #fff"><span id="no_antrian"></span></h1>
<p class="error-title" style=" font-weight: ;font-size:50px;font-family: Times New Roman, Times, serif;color: #fff"><span > Please Proceed To</span></p>
<p class="error-title" style=" font-weight: ;font-size:50px;font-family: Times New Roman, Times, serif;color: #fff"><span id="ruang"></span></p>
<!-- <div><input type="hidden" value="no_antrian" id="no_antrian" /></div>
<div><input type="hidden" value="nama_ruang" id="nama_ruang" /><span style="visibility:hidden" id="nama_ruang"></span></div> -->
</div>
</div> </div>
<div id="listdata" class="card-deck" style="padding-left: 100px;padding-right: 100px;width: 2000px;">
</div> </div>
<div class="card"> </div>
<h5 class="card-header">Featured</h5>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div> </div>
<!-- <div id="box" class="wrap">
<!--
<div class="col-md-7 mt-25">
<div class="card mb-3">
<div class="text-center content-group">
<div><input type="hidden" value="nomer antrian" id="text-to-speech" placeholder="Enter text to speak..."/></div>
<p class="error-title" style=" font-weight: ;font-size:50px;font-family: Times New Roman, Times, serif;color: grey"><span > Number</span></p>
<h1 class="error-title" style=" font-weight: bold;font-size:215px;font-family: Times New Roman, Times, serif;color: red"><span id="no_antrian"></span></h1>
<p class="error-title" style=" font-weight: ;font-size:50px;font-family: Times New Roman, Times, serif;color: grey"><span > Please Proceed To</span></p>
<p class="error-title" style=" font-weight: ;font-size:50px;font-family: Times New Roman, Times, serif;color: red"><span > Ruang 1.1</span></p>
<div><input type="hidden" value="no_antrian" id="no_antrian" /></div>
<div><input type="hidden" value="nama_ruang" id="nama_ruang" /><span style="visibility:hidden" id="nama_ruang"></span></div> -->
<!-- </div>
</div>
</div> -->
</div> -->
<!-- /navigation -->
\ No newline at end of file
<div class="container"></div> <div class="container"></div>
<form class="form-inline"> <form class="form-inline">
<div class="form-group form-control-lg "> <div class="form-group form-control-lg ">
......
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Content Row -->
<div class="row">
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Jumlah Pasien</div>
<div id="jumlah_pasien" class="h5 mb-0 font-weight-bold text-gray-800" > </div>
</div>
<div class="col-auto">
<i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-success shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">Pasien Dalam Antrian</div>
<div id="pasien_antrian" class="h5 mb-0 font-weight-bold text-gray-800"></div>
</div>
<div class="col-auto">
<i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-info shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-info text-uppercase mb-1">Pasien Terlewat</div>
<div class="row no-gutters align-items-center">
<div class="col-auto">
<div id="pasien_terlewat" class="h5 mb-0 mr-3 font-weight-bold text-gray-800"></div>
</div>
</div>
</div>
<div class="col-auto">
<i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Pending Requests Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-warning shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-warning text-uppercase mb-1">Pasien Terlayani</div>
<div id="jumlah_terlayani" class="h5 mb-0 font-weight-bold text-gray-800"></div>
</div>
<div class="col-auto">
<i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Content Row -->
<div class="row">
<!-- Pie Chart -->
<div class="col-xl-4 col-lg-5">
<div class="card shadow mb-4">
<!-- Card Header - Dropdown -->
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Revenue Sources</h6>
</div>
<!-- Card Body -->
<div class="card-body">
<div class="chart-pie pt-4 pb-2">
<canvas id="myPieChart"></canvas>
</div>
<div class="mt-4 text-center small">
<span class="mr-2">
<i class="fas fa-circle text-primary"></i> Direct
</span>
<span class="mr-2">
<i class="fas fa-circle text-success"></i> Social
</span>
<span class="mr-2">
<i class="fas fa-circle text-info"></i> Referral
</span>
</div>
</div>
</div>
</div>
</div>
<!-- Content Row -->
<div class="row">
>
</div>
</div>
<!-- /.container-fluid -->
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-xl-12 col-lg-12 col-md-12"> <div class="col-xl-12 col-lg-12 col-md-12">
<div class="card o-hidden border-0 shadow-lg my-5"> <div class="card o-hidden border-0 shadow-lg my-5">
...@@ -6,21 +12,16 @@ ...@@ -6,21 +12,16 @@
<button type="button" class="btn btn-primary fa fa-plus btn-lg" data-toggle="modal" data-target="#addData" id="tambahmodal"> Tambah</button> <button type="button" class="btn btn-primary fa fa-plus btn-lg" data-toggle="modal" data-target="#addData" id="tambahmodal"> Tambah</button>
<br> <br>
<br> <br>
<table class="table table-bordered" id="dataTable"> <table class="table table-bordered" id="dataTable">
<thead> <thead>
<tr> <tr>
<tr class="table-infos"> <tr class="table-infos">
<th style="width: 70px">NO</th> <th style="width: 70px">NO</>
<!-- <th colspan="" class=" thLeftText">Id Poli</th> --> <!-- <th colspan="" class=" thLeftText">Id Poli</th> -->
<th colspan="" class=" thLeftText">Nama Poli</th> <th colspan="" class=" thLeftText">Nama Poli</th>
<th colspan="" class=" thLeftText">Nama Dokter</th> <th colspan="" class=" thLeftText">Nama Dokter</th>
<th colspan="" class=" thLeftText">Kode Dokter</th> <th colspan="" class=" thLeftText">Kode Dokter</th>
<th colspan="" class=" thLeftText">Kondisi Dokter</th> <th colspan="" class=" thLeftText">Kondisi Dokter</th>
<th colspan="" class=" thLeftText">Gambar Dokter</th>
<th colspan="" class=" thLeftText">Action</th> <th colspan="" class=" thLeftText">Action</th>
</tr> </tr>
</thead> </thead>
...@@ -52,7 +53,7 @@ ...@@ -52,7 +53,7 @@
<div class="form-group"> <div class="form-group">
<label>Nama Poli</label> <label>Nama Poli</label>
<select name="poli" id="poli" class="form-control" > <select name="nama_poli" id="poli" class="form-control" >
<option disable selected> Pilih </option> <option disable selected> Pilih </option>
</select> </select>
...@@ -66,10 +67,11 @@ ...@@ -66,10 +67,11 @@
<input type="input" id="kode_dokter" name="kode_dokter" class="form-control" placeholder="Kode Dokter" /></input> <input type="input" id="kode_dokter" name="kode_dokter" class="form-control" placeholder="Kode Dokter" /></input>
</div> </div>
<div class="form-group " > <!-- <div class="form-group">
<label>Gambar Dokter</label> <label>Foto Dokter</label>
<input type="file" name="gambar_dokter" id="gambar_dokter" class="form-control-file"> <input type="image" id="image" name="image" class="form-control" required /></input>
</div> </div> -->
<div class="modal-footer"> <div class="modal-footer">
<button button type="button" class="btn btn-primary" id="tambah">Add</button> <button button type="button" class="btn btn-primary" id="tambah">Add</button>
...@@ -118,11 +120,10 @@ ...@@ -118,11 +120,10 @@
</select> </select>
</div> </div>
<div class="form-group " > <!-- <div class="form-group">
<label>Gambar Dokter</label> <label>Foto Dokter</label>
<input type="file" name="gambar_dokteredt" id="gambar_dokteredt" class="form-control-file"> <input type="image" id="image" name="image" class="form-control" required /></input>
</div> </div> -->
<div class="modal-footer"> <div class="modal-footer">
...@@ -137,3 +138,6 @@ ...@@ -137,3 +138,6 @@
</div> </div>
</div> </div>
</body>
</html>
...@@ -3,19 +3,31 @@ ...@@ -3,19 +3,31 @@
<div class="col-xl-12 col-lg-12 col-md-12"> <div class="col-xl-12 col-lg-12 col-md-12">
<div class="card o-hidden border-0 shadow-lg my-5"> <div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body "> <div class="card-body ">
<h1 class="h4 text-center text-gray-900 mb-4" style="font-size: 50px;font-weight: bold">Kelola Pasien</h1> <h1 class="h4 text-center text-gray-900 mb-4" style="font-size: 50px;font-weight: bold">Kelola Antrian Pasien</h1>
<!-- <form class="form-inline">
<div class="form-group form-control-lg ">
<label >Pilih poli </label>
<select name="nama_poli" id="poli" class="form-control" >
<option disabled selected>Pilih </option>
</select>
</div>
<div class="form-group form-control-lg">
<label>Pilih dokter</label> <br>
<select id="dokter" name="nama_dokter" class="form-control">
<option disabled selected> Pilih </option>
</select>
</div>
</form> -->
<br>
<table class="table table-bordered" id="dataTable"> <table class="table table-bordered" id="dataTable">
<thead > <thead >
<tr> <tr>
<th style="width: 70px">NO</th> <th style="width: 70px">NO</th>
<th colspan="" class=" thLeftText">NO Rekam Medis</th> <th colspan="" class=" thLeftText">NO Antrian Pasien</th>
<th colspan="" class=" thLeftText">No Induk Kependudukan (NIK)</th>
<th colspan="" class=" thLeftText">Nama Pasien</th> <th colspan="" class=" thLeftText">Nama Pasien</th>
<th colspan="" class=" thLeftText">Tempat Lahir </th> <th colspan="" class=" thLeftText">Nama Dokter</th>
<th colspan="" class=" thLeftText">Tanggal Lahir</th> <th colspan="" class=" thLeftText">Nama Poli</th>
<th colspan="" class=" thLeftText">Alamat</th> <th colspan="" class=" thLeftText">Status</th>
<th colspan="" class=" thLeftText">No Hp</th>
<th colspan="" class=" thLeftText">Tanggal Pendaftaran</th>
<th colspan="" class=" thLeftText">Action</th> <th colspan="" class=" thLeftText">Action</th>
</tr> </tr>
</thead> </thead>
...@@ -28,65 +40,3 @@ ...@@ -28,65 +40,3 @@
</div> </div>
</div> </div>
<div id="Editdata" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Edit Data Dokter</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<form id="myForm" >
<input type="hidden" id="id_pasien" class="form-control" /></input>
<div class="form-group">
<label> No Rekam Medis</label><br>
<input type="number" id="no_rekam_medis" placeholder="No Rekam Medis" class="form-control" max="999999999999999" maxlength="8" disabled ></input>
</div>
<div class="form-group">
<label>No Induk Kependudukan (NIK)</label>
<input type="number" id="ktp" class="form-control" placeholder="No Induk Kependudukan (NIK)" max="9999999999999999" maxlength="16"></input>
</div>
<div class="form-group">
<label>Nama Pasien</label>
<input type="text" id="nama" class="form-control" placeholder="Nama Lengkap" ></input>
</div>
<div class="form-group ">
<label>Tempat Lahir</label>
<textarea type="text" id="tempat_lahir" class="form-control " placeholder="Tempat Lahir" ></textarea >
</div>
<div class="form-group">
<label>Tanggal Lahir</label>
<input type="date" id="tanggal_lahir" class="form-control" /></input>
</div>
<div class="form-group" >
<label>Alamat</label>
<textarea type="text" id="alamat" rows="3" class="form-control" placeholder="Alamat"/></textarea >
</div>
<div class="form-group">
<label>No HP</label>
<input type="number" id="no_hp" class="form-control " placeholder="No Handphone" maxlength="13" /></input>
</div>
<div class="modal-footer">
<button button type="button" class="btn btn-primary" id="edit">Edit</button>
<button button type="button" class="btn btn-danger" onclick="reset()">Reset</button>
<button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
</div>
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
<th>Nama Poli</th> <th>Nama Poli</th>
<th>Kode Poli</th> <th>Kode Poli</th>
<th>Deskripsi Poli</th> <th>Deskripsi Poli</th>
<th>Gambar Poli</th>
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead> </thead>
...@@ -58,25 +57,29 @@ ...@@ -58,25 +57,29 @@
<div class="form-group"> <div class="form-group">
<label>Nama Poli</label> <label>Nama Poli</label>
<input type="input" id="nama_poli" name="nama_poli" class="form-control" placeholder="Nama Poli" required ></input> <input type="input" id="nama_poli" name="nama_poli" class="form-control" placeholder="Nama Poli" required /></input>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Kode Poli</label> <label>Kode Poli</label>
<input type="input" id="kode_poli" name="kode_poli" class="form-control" placeholder="Kode Poli" required ></input> <input type="input" id="kode_poli" name="kode_poli" class="form-control" placeholder="Kode Poli" required /></input>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Deskripsi Poli</label> <label>Deskripsi Poli</label>
<textarea type="input" style="height:100px;" id="deskripsi_poli" name="deskripsi_poli" class="form-control" placeholder="Deskripsi Poli" required ></textarea> <textarea type="type" id="deskripsi_poli" name="deskripsi_poli" class="form-control" placeholder="Deskripsi Poli" required ></textarea>
</div> </div>
<div class="form-group " >
<!-- <div class="form-group ">
<label>Gambar Poli</label> <label>Gambar Poli</label>
<input type="file" name="gambar_poli" id="gambar_poli" class="form-control-file"> <input type="file" name="uploadimage" id="uploadimage" class="form-control">
</div> </div> -->
<div class="modal-footer"> <div class="modal-footer">
<button type="submit" class="btn btn-primary" id="tambah">Add</button> <button button type="button" class="btn btn-primary" id="tambah">Add</button>
<button type="button" class="btn btn-danger" onclick="reset()">Reset</button> <button button type="button" class="btn btn-danger" onclick="reset()">Reset</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
</div> </div>
</form> </form>
</div> </div>
...@@ -103,23 +106,23 @@ ...@@ -103,23 +106,23 @@
<div class="form-group"> <div class="form-group">
<label>Nama Poli</label> <label>Nama Poli</label>
<input type="input" id="nama_poliEdt" name="nama_poli" class="form-control" placeholder="Nama Poli" required ></input> <input type="input" id="nama_poliEdt" name="nama_poli" class="form-control" placeholder="Nama Poli" required /></input>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Kode Poli</label> <label>Kode Poli</label>
<input type="input" id="kode_poliEdt" name="kode_poli" class="form-control" placeholder="Kode Poli" required></input> <input type="input" id="kode_poliEdt" name="kode_poli" class="form-control" placeholder="Kode Poli" required /></input>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Deskripsi Poli</label> <label>Deskripsi Poli</label>
<textarea type="input" style="height:100px;" id="deskripsi_poliEdt" name="deskripsi_poli" class="form-control" placeholder="Deskripsi Poli" required ></textarea> <textarea type="type" id="deskripsi_poliEdt" name="deskripsi_poli" class="form-control" placeholder="Deskripsi Poli" required ></textarea>
</div> </div>
<div class="form-group "> <!-- <div class="form-group ">
<label>Gambar Poli</label> <label>Gambar Poli</label>
<input type="file" name="gambar_poliedt" id="gambar_poliedt" class="form-control-file"></input> <input type="file" name="uploadimage" id="uploadimage" class="form-control">
</div> </div> -->
<div class="modal-footer"> <div class="modal-footer">
<button button type="button" class="btn btn-primary" id="edit">Edit</button> <button button type="button" class="btn btn-primary" id="edit">Edit</button>
<button button type="button" class="btn btn-danger" onclick="reset()">Reset</button> <button button type="button" class="btn btn-danger" onclick="reset()">Reset</button>
...@@ -133,4 +136,3 @@ ...@@ -133,4 +136,3 @@
</div> </div>
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
<th style="width: 70px">NO</th> <th style="width: 70px">NO</th>
<!-- <th colspan="" class=" thLeftText">Id Poli</th> --> <!-- <th colspan="" class=" thLeftText">Id Poli</th> -->
<th colspan="" class=" thLeftText">Nama Poli</th> <th colspan="" class=" thLeftText">Nama Poli</th>
<th colspan="" class=" thLeftText">Lantai</th>
<th colspan="" class=" thLeftText">Ruangan</th> <th colspan="" class=" thLeftText">Ruangan</th>
<th colspan="" class=" thLeftText">Kondisi Ruang</th> <th colspan="" class=" thLeftText">Kondisi Ruang</th>
<th colspan="" class=" thLeftText">Action</th> <th colspan="" class=" thLeftText">Action</th>
...@@ -63,17 +62,13 @@ ...@@ -63,17 +62,13 @@
<option disable selected> Pilih </option> <option disable selected> Pilih </option>
</select> </select>
</div> </div>
<div class="form-group">
<label>Lantai</label>
<input type="input" id="lantai" name="nama_ruang" class="form-control" placeholder="Lantai Ruangan" required /></input>
</div>
<div class="form-group"> <div class="form-group">
<label>Ruangan</label> <label>Ruangan</label>
<input type="input" id="nama_ruang" name="nama_ruang" class="form-control" placeholder="Nama Ruangan" required /></input> <input type="input" id="nama_ruang" name="nama_ruang" class="form-control" placeholder="Lantai Ruangan & Nama Ruangan" required /></input>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-primary" id="tambah">Add</button> <button button type="button" class="btn btn-primary" id="tambah">Add</button>
<button type="button" class="btn btn-danger" onclick="reset()">Reset</button> <button button type="button" class="btn btn-danger" onclick="reset()">Reset</button>
<button type="submit" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
</div> </div>
</form> </form>
...@@ -101,10 +96,6 @@ ...@@ -101,10 +96,6 @@
</select> </select>
</div > </div >
<div class="form-group">
<label>Lantai</label>
<input type="input" id="lantaiedt" name="lantai" class="form-control" placeholder="Lantai Ruangan & Nama Ruangan" required /></input>
</div>
<div class="form-group"> <div class="form-group">
<label>Ruangan</label> <label>Ruangan</label>
<input type="input" id="nama_ruangedt" name="nama_ruang" class="form-control" placeholder="Lantai Ruangan & Nama Ruangan" required /></input> <input type="input" id="nama_ruangedt" name="nama_ruang" class="form-control" placeholder="Lantai Ruangan & Nama Ruangan" required /></input>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<thead> <thead>
<tr class="table-infos"> <tr class="table-infos">
<th style="">NO</th> <th style="">NO</th>
<th colspan="" class=" thLeftText">Nama Poli</th> <th colspan="" class=" thLeftText">Jenis Layanan (Poli)</th>
<th colspan="" class=" thLeftText">Nama Dokter</th> <th colspan="" class=" thLeftText">Nama Dokter</th>
<th colspan="" class=" thLeftText">Ruangan</th> <th colspan="" class=" thLeftText">Ruangan</th>
<th colspan="" class=" thLeftText">Antrian Seluruh</th> <th colspan="" class=" thLeftText">Antrian Seluruh</th>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<form id="myForm" > <form id="myForm" >
<div class="form-group"> <div class="form-group">
<label>Nama Poli</label> <label>Jenis Layanan</label>
<select name="nama_poli" id="poli" class="form-control" require> <select name="nama_poli" id="poli" class="form-control" require>
<option disable selected> Pilih </option> <option disable selected> Pilih </option>
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<input type="input" id="id_register" class="form-control" /></input> <input type="input" id="id_register" class="form-control" /></input>
<div class="form-group"> <div class="form-group">
<label>Nama Poli</label> <label>Jenis Layanan</label>
<div class="card" > <div class="card" >
<div class="card-body" style="padding: 0.5rem;" id="poliedt" > <div class="card-body" style="padding: 0.5rem;" id="poliedt" >
</div> </div>
......
<script type="text/javascript">
// 1 detik = 1000
window.setTimeout("waktu()",1000);
function waktu() {
var tanggal = new Date();
setTimeout("waktu()",1000);
document.getElementById("tanggalku").innerHTML
= tanggal.getHours()+":"+tanggal.getMinutes()+":"+tanggal.getSeconds();
}
</script>
<!-- Page header -->
<div class="page-header" style="border-bottom: 0px solid #ddd0;">
<!-- Header content -->
<div class="page-header-content">
<div class="page-title">
<div style=" text-align: center;color: #808080;font-family: Times New Roman, Times, serif;font-size: 50px;font-weight: 600;margin-top:-20px;">
<span id="tanggalku"></span>
</div>
<div style="text-align: center;color: #808080;font-family: Times New Roman, Times, serif;font-size: 17px;font-weight: 600;margin-top:-20px;">
<?php echo $this->today; ?>
</div>
</div>
</div>
<!-- /header content -->
</div>
<!-- /page header -->
<div id="box" class="wrap">
\ No newline at end of file
...@@ -5,9 +5,12 @@ ...@@ -5,9 +5,12 @@
<div class="col-lg-5 col-xl-5"> <div class="col-lg-5 col-xl-5">
<div class="banner_text"> <div class="banner_text">
<div class="banner_text_iner"> <div class="banner_text_iner">
<h5>Kami di sini untuk perawatan Anda</h5> <h5>We are here for your care</h5>
<h1>Perawatan Terbaik</h1> <h1>Best Care &
<p>Dalam kesehatan terdapat kebebasan. Kesehatan adalah hal paling pertama dalam semua kebebasan. Better Doctor</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing
elit sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Quis ipsum suspendisse ultrices gravida.Risus cmodo viverra </p>
<a href="<?php echo $this->basePath('queue/cekdatapasien');?>"class="btn_2">Registrai Antrian</a> <a href="<?php echo $this->basePath('queue/cekdatapasien');?>"class="btn_2">Registrai Antrian</a>
</div> </div>
......
...@@ -42,13 +42,8 @@ input::-webkit-inner-spin-button { ...@@ -42,13 +42,8 @@ input::-webkit-inner-spin-button {
<div class="form-group"> <div class="form-group">
<label> <h5>No Rekam Medis</h5></label><br> <label> <h5>No Rekam Medis</h5></label><br>
<input type="number" id="no_rekam_medis" placeholder="No Rekam Medis" class="form-control" max="999999999999999" maxlength="8" ></input> <input type="number" id="no_rekam_medis" placeholder="No Rekam Medis" class="form-control" max="999999999999999" maxlength="8" style="width: 950px;display:inline;"></input>
</div> </div>
<!-- <div class="form-group">
<label> <h5>No Induk Kependudukan (NIK)</h5></label><br>
<input type="number" id="ktp" placeholder="No Induk Kependudukan (NIK)" class="form-control"max="9999999999999999" maxlength="16" ></input>
</div> -->
<p class="card-text" style="display:inline">Jika belum mempunyai no rekam medis, </p> <p class="card-text" style="display:inline">Jika belum mempunyai no rekam medis, </p>
<a class="card-text" href="<?php echo $this->basePath('queue/daftarpasien') ?>" style="display:inline">Klik disini !</a> <a class="card-text" href="<?php echo $this->basePath('queue/daftarpasien') ?>" style="display:inline">Klik disini !</a>
</form> </form>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<br> <br>
<br> <br>
<br> <br>
<section class="breadcrumb_part breadcrumb_bg"> <section class="breadcrumb_part breadcrumb_bg">
<div class="container"> <div class="container">
...@@ -89,7 +90,21 @@ ...@@ -89,7 +90,21 @@
<h3><?php echo $this->kode_dokter ?><?php echo $this->no_antrian ?></label></h3> <h3><?php echo $this->kode_dokter ?><?php echo $this->no_antrian ?></label></h3>
</div> </div>
</div> </div>
<br> <br>
<div class="row">
<div class="col-sm-2">
<h3>Sisa Antrian</h3>
</div>
<div class="col-sm-1">
<h3>:</h3>
</div>
<div class="col-sm-6">
<h3><?php echo $this->sisa_antrian ?></label></h3>
</div>
</div>
<br>
</div> </div>
</div> </div>
......
...@@ -5,7 +5,6 @@ input::-webkit-inner-spin-button { ...@@ -5,7 +5,6 @@ input::-webkit-inner-spin-button {
margin: 0; margin: 0;
} }
</style> </style>
...@@ -42,22 +41,14 @@ input::-webkit-inner-spin-button { ...@@ -42,22 +41,14 @@ input::-webkit-inner-spin-button {
<input type="hidden" id="iInput" class="form-control" /></input> <input type="hidden" id="iInput" class="form-control" /></input>
<div class="form-group"> <div class="form-group">
<label><h5>No Induk Kependudukan (NIK)</h5></label> <label><h5>No Induk KTP</h5></label>
<input type="number" id="ktp" class="form-control" placeholder="No Induk Kependudukan (NIK)" max="9999999999999999" maxlength="16"></input> <input type="number" id="ktp" class="form-control" placeholder="No Induk KTP" max="9999999999999999" maxlength="16"></input>
</div> </div>
<div class="form-group"> <div class="form-group">
<label><h5>Nama Pasien</h5></label> <label><h5>Nama Pasien</h5></label>
<input type="text" id="nama" class="form-control" placeholder="Nama Lengkap" ></input> <input type="text" id="nama" class="form-control" placeholder="Nama Lengkap" ></input>
</div> </div>
<!-- <div class="form-group">
<label><h5>Jenis Kelamin</h5></label> <br>
<input type="radio" id="male" name="gender" value="male">
<label for="male"><h5>Laki-laki </h5></label>
<input type="radio" id="female" name="gender" value="female">
<label for="female"><h5>Perempuan </h5></label>
</div> -->
<div class="form-group "> <div class="form-group ">
<label><h5>Tempat Lahir</h5></label> <label><h5>Tempat Lahir</h5></label>
...@@ -77,9 +68,7 @@ input::-webkit-inner-spin-button { ...@@ -77,9 +68,7 @@ input::-webkit-inner-spin-button {
<label><h5>No HP</h5></label> <label><h5>No HP</h5></label>
<input type="number" id="no_hp" class="form-control " placeholder="No Handphone" maxlength="13" /></input> <input type="number" id="no_hp" class="form-control " placeholder="No Handphone" maxlength="13" /></input>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -63,6 +63,9 @@ input[type="picked"] + label { ...@@ -63,6 +63,9 @@ input[type="picked"] + label {
width : 55px; width : 55px;
cursor:not-allowed; cursor:not-allowed;
text-align:center; text-align:center;
} }
...@@ -179,6 +182,9 @@ input[type="done"] + label { ...@@ -179,6 +182,9 @@ input[type="done"] + label {
<div class="form-group "> <div class="form-group ">
<input type="hidden" id="tempat_lahir" class="form-control "disabled ></input> <input type="hidden" id="tempat_lahir" class="form-control "disabled ></input>
</div> </div>
<div class="form-group ">
<input type="hidden" id="sisa_antrian" class="form-control "disabled ></input>
</div>
<div class="form-group"> <div class="form-group">
<input type="hidden" id="tanggal_lahir" class="form-control"disabled /></input> <input type="hidden" id="tanggal_lahir" class="form-control"disabled /></input>
......
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
<!-- breadcrumb start--> <!-- breadcrumb start-->
<!--::doctor_part start::--> <!--::doctor_part start::-->
<section class="doctor_part single_page_doctor_part" style="padding:20px;"> <section class="doctor_part single_page_doctor_part">
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-xl-8" style=" height: 75px; "> <div class="col-xl-8">
<div class="section_tittle text-center"> <div class="section_tittle text-center">
<h2 > Beberapa dokter di rumah sakit</h2> <h2> Dokter </h2>
<p>Beberapa dokter di rumah sakit ini</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -34,5 +34,26 @@ ...@@ -34,5 +34,26 @@
<div class="row dokter"> <div class="row dokter">
</div> </div>
<!-- <div class="row">
<div class="col-sm-6 col-lg-3">
<div class="single_blog_item">
<div class="single_blog_img">
<img src="<?php $this->basePath('samss/') ?>/tamplate/img/doctor/doctor_1.png" alt="doctor">
</div>
<div class="single_text">
<div class="single_blog_text">
<h3>DR Adam Billiard</h3>
<p> Spesialis Umum</p>
</div>
</div>
</div>
</div>
</div> -->
</div> </div>
</section> </section>
<!--::doctor_part end::-->
\ No newline at end of file
...@@ -20,18 +20,46 @@ ...@@ -20,18 +20,46 @@
<!-- breadcrumb start--> <!-- breadcrumb start-->
<!-- feature_part start--> <!-- feature_part start-->
<section class="doctor_part single_page_doctor_part" style="padding:0px;" > <section class="feature_part">
<div class="container"> <div class="container">
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-xl-8"> <div class="col-xl-8">
<div class="section_tittle text-center"> <div class="section_tittle text-center">
<h2> Poli Kami </h2> <h2>Poli Kami</h2>
</div> </div>
</div> </div>
</div> </div>
<div class="row justify-content-between align-items-center">
<div class="row poli"> <div class="col-lg-3 col-md-4 col-xs-6 thumb">
<div class="single_feature">
<div class="single_feature_part">
<span class="single_feature_icon"><img src="<?php $this->basePath('') ?>/tamplate/img/icon/gigi.png" alt=""></span>
<h4>Poli Gigi</h4>
<p>Poli gigi adalah...</p>
</div>
</div>
<div class="single_feature">
<div class="single_feature_part">
<span class="single_feature_icon"><img src="<?php $this->basePath('') ?>/tamplate/img/icon/mata.png" alt=""></span>
<h4>Poli Mata</h4>
<p>Poli mata adalah...</p>
</div>
</div>
</div>
<div class="col-lg-4 col-sm-12">
<div class="single_feature_img">
<img src="<?php $this->basePath('') ?>/tamplate/img/service.png" alt="">
</div>
</div>
<div class="col-lg-3 col-sm-12">
<div class="single_feature">
<div class="single_feature_part">
<span class="single_feature_icon"><img src="<?php $this->basePath('') ?>/tamplate/img/icon/umum.png" alt=""></span>
<h4>Poli Umum</h4>
<p>Poli umum adalah...</p>
</div>
</div>
</div>
</div> </div>
</div> </div>
</section> </section>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<script src="<?php $this->basePath();?>/tamplateadmin/assets/js/plugins/notifications/sweet_alert.min.js"></script> <script src="<?php $this->basePath();?>/tamplateadmin/assets/js/plugins/notifications/sweet_alert.min.js"></script>
<script src="<?php $this->basePath();?>/tamplate/js/bootbox.all.min.js"></script> <script src="<?php $this->basePath();?>/tamplate/js/bootbox.all.min.js"></script>
<!-- Page level custom scripts --> <!-- Page level custom scripts -->
<script src="<?php $this->basePath();?>/tamplateadmin/vendor/chart.js/Chart.min.js"></script> <!-- <script src="<?php $this->basePath();?>/tamplateadmin/js/demo/datatables-demo.js"></script> -->
<body id="page-top"> <body id="page-top">
...@@ -120,24 +120,13 @@ ...@@ -120,24 +120,13 @@
<div class="sidebar-heading" > <div class="sidebar-heading" >
Feature Feature
</div> </div>
<li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages" aria-expanded="true" aria-controls="collapsePages">
<i class="fas fa-fw fa-table"></i>
<span>Kelola Antrian Pasien</span>
</a>
<div id="collapsePages" class="collapse" aria-labelledby="headingPages" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<a class="collapse-item"href="<?php echo $this->basePath('admin/antrianterlewat') ?>">Antrian Terlewat</a>
<a class="collapse-item"href="<?php echo $this->basePath('admin/antrianunregister') ?>">Antrian Unregister</a>
</div>
</div>
</li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link collapsed" href="<?php echo $this->basePath('admin/kelolapasien') ?>"> <a class="nav-link collapsed" href="<?php echo $this->basePath('admin/kelolapasien') ?>">
<i class="fas fa-fw fa-table"></i> <i class="fas fa-fw fa-table"></i>
<span>Kelola Pasien </span> <span>Kelola Antrian </span>
</a> </a>
</li> </li>
......
...@@ -43,15 +43,6 @@ ...@@ -43,15 +43,6 @@
float:left; margin:5px; float:left; margin:5px;
margin-bottom:1px; margin-bottom:1px;
} }
#h6a {
display: block;
margin-block-start: 0em;
margin-block-end: 0em;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-weight: bold;
}
</style> </style>
<body> <body>
...@@ -63,7 +54,9 @@ ...@@ -63,7 +54,9 @@
<div class="col-lg-12"> <div class="col-lg-12">
<nav class="navbar navbar-expand-lg navbar-light"> <nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="<?php echo $this->basePath('queue/beranda');?>"> <img src="<?php echo $this->basePath();?> /tamplate/img/logo.png" alt="logo"> </a> <a class="navbar-brand" href="<?php echo $this->basePath('queue/beranda');?>"> <img src="<?php echo $this->basePath();?> /tamplate/img/logo.png" alt="logo"> </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="collapse navbar-collapse main-menu-item justify-content-center" <div class="collapse navbar-collapse main-menu-item justify-content-center"
...@@ -73,20 +66,18 @@ ...@@ -73,20 +66,18 @@
<a class="nav-link" href="<?php echo $this->basePath('queue/beranda') ?>">Beranda</a> <a class="nav-link" href="<?php echo $this->basePath('queue/beranda') ?>">Beranda</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo $this->basePath('queue/cekdatapasien') ?>">Registrasi Antrian </a> <a class="nav-link" href="<?php echo $this->basePath('queue/cekdatapasien') ?>">Registrasi </a>
</li> </li>
<!-- <li class="nav-item">
<a class="nav-link" href="<?php echo $this->basePath('queue/') ?>">Pilih Antrian</a>
</li> -->
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo $this->basePath('queue/dokter') ?>">Doctors</a> <a class="nav-link" href="<?php echo $this->basePath('queue/dokter') ?>">Doctors</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo $this->basePath('queue/poli') ?>">Poli</a> <a class="nav-link" href="<?php echo $this->basePath('queue/poli') ?>">Poli</a>
</li> </li>
<!-- <li class="nav-item">
<a class="nav-link " href="<?php echo $this->basePath('user/login') ?>">Login</a>
</li>
-->
</ul> </ul>
</div> </div>
</nav> </nav>
...@@ -114,18 +105,22 @@ ...@@ -114,18 +105,22 @@
<div class="row justify-content-between"> <div class="row justify-content-between">
<div class="col-xl-2 col-md-4 col-sm-6 single-footer-widget"> <div class="col-xl-2 col-md-4 col-sm-6 single-footer-widget">
<a href="#" class="footer_logo"> <img src="<?php $this->basePath('queue/beranda') ?>/tamplate/img/logo.png" alt="#"> </a> <a href="#" class="footer_logo"> <img src="<?php $this->basePath('queue/beranda') ?>/tamplate/img/logo.png" alt="#"> </a>
<p>Hidup sehat adalah hidup sejahtera dan bahagia yang berawal dari diri kita sendiri</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor </p>
<div class="social_logo">
<a href="#"><i class="ti-facebook"></i></a>
<a href="#"> <i class="ti-twitter"></i> </a>
<a href="#"><i class="ti-instagram"></i></a>
<a href="#"><i class="ti-skype"></i></a>
</div>
</div> </div>
<div class="col-xl-9 col-sm-6 col-md-4 single-footer-widget"> <div class="col-xl-9 col-sm-6 col-md-4 single-footer-widget">
<h4>Quick Links</h4> <h4>Quick Links</h4>
<ul> <ul>
<li><a href="<?php echo $this->basePath('queue/beranda') ?>">Beranda</a></li> <li><a href="#">Beranda</a></li>
<li><a href="<?php echo $this->basePath('queue/pocekdatapasienli') ?>">Registrasi Antrian</a></li> <li><a href="#">Registrasi Antrian</a></li>
<li><a href="<?php echo $this->basePath('queue/dokter') ?>">Dokter</a></li> <li><a href="#">Dokter</a></li>
<li><a href="<?php echo $this->basePath('queue/poli') ?>">Poli</a></li> <li><a href="#">Poli</a></li>
<li><a href="<?php echo $this->basePath('user/login') ?>">Login</a></li> <li><a href="#">Tentang Kami</a></li>
</ul> </ul>
</div> </div>
...@@ -142,8 +137,19 @@ ...@@ -142,8 +137,19 @@
<div class="copyright_part"> <div class="copyright_part">
<div class="container"> <div class="container">
<div class="row align-items-center"> <div class="row align-items-center">
<p class="footer-text m-0 col-lg-8 col-md-12">
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright &copy;
is made with <i class="ti-heart" aria-hidden="true"></i> by <a href="https://colorlib.com"
target="_blank">Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</p>
<div class="col-lg-4 col-md-12 text-center text-lg-right footer-social">
<a href="#"><i class="ti-facebook"></i></a>
<a href="#"> <i class="ti-twitter"></i> </a>
<a href="#"><i class="ti-instagram"></i></a>
<a href="#"><i class="ti-skype"></i></a>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -181,6 +187,7 @@ ...@@ -181,6 +187,7 @@
->prependFile($this->basePath('js/bootstrap.min.js')) ->prependFile($this->basePath('js/bootstrap.min.js'))
->prependFile($this->basePath('js/jquery-3.1.0.min.js')) ->prependFile($this->basePath('js/jquery-3.1.0.min.js'))
->prependFile($this->basePath('/tamplate/js/bootbox.all.min.js')) ->prependFile($this->basePath('/tamplate/js/bootbox.all.min.js'))
//->prependFile($this->basePath('/js/jquery.nicescroll.js')) //->prependFile($this->basePath('/js/jquery.nicescroll.js'))
// ->prependFile($this->basePath('/js/jquery.seat-charts.js')) // ->prependFile($this->basePath('/js/jquery.seat-charts.js'))
// ->prependFile($this->basePath('/js/jquery.seat-charts.min.js')) // ->prependFile($this->basePath('/js/jquery.seat-charts.min.js'))
......
...@@ -30,17 +30,13 @@ ...@@ -30,17 +30,13 @@
width: 100wh; width: 100wh;
height: 90vh; height: 90vh;
color: #fff; color: #fff;
background-color: #4d5dfb; background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
background: linear-gradient(to right, #f05053 80%, #e1eec3);
background-size: 400% 400%; background-size: 400% 400%;
-webkit-animation: Gradient 15s ease infinite; -webkit-animation: Gradient 15s ease infinite;
-moz-animation: Gradient 15s ease infinite; -moz-animation: Gradient 15s ease infinite;
animation: Gradient 15s ease infinite; animation: Gradient 15s ease infinite;
overflow: hidden; overflow: hidden;
} }
@-webkit-keyframes Gradient { @-webkit-keyframes Gradient {
0% { 0% {
...@@ -88,7 +84,8 @@ ...@@ -88,7 +84,8 @@
<?= $this->headScript() <?= $this->headScript()
->prependFile($this->basePath('js/bootstrap.min.js')) ->prependFile($this->basePath('js/bootstrap.min.js'))
->prependFile($this->basePath('js/jquery-3.1.0.min.js')) ->prependFile($this->basePath('js/jquery-3.1.0.min.js'))
->prependFile($this->basePath('js/pusher.js'))
?> ?>
......
...@@ -15,7 +15,7 @@ function textToAudio() { ...@@ -15,7 +15,7 @@ function textToAudio() {
let no_antrian = document.getElementById("no_antrian").innerHTML; let no_antrian = document.getElementById("no_antrian").innerHTML;
let voice = "nomor antrian " + no_antrian; let voice = "nomor antrian " + no_antrian;
//
console.log(voice) console.log(voice)
...@@ -28,7 +28,7 @@ function textToAudio() { ...@@ -28,7 +28,7 @@ function textToAudio() {
speech.pitch = 1; speech.pitch = 1;
window.speechSynthesis.speak(speech); window.speechSynthesis.speak(speech);
} }
function textToAudioRuang() { function textToAudioRuang() {
// let msg1 = "nomor antrian"; // let msg1 = "nomor antrian";
...@@ -36,7 +36,7 @@ function textToAudioRuang() { ...@@ -36,7 +36,7 @@ function textToAudioRuang() {
var res = ruang.replace(".", " "); var res = ruang.replace(".", " ");
document.getElementById("nama_ruang").innerHTML = res; document.getElementById("nama_ruang").innerHTML = res;
let voice = "silahkan masuk ke " + res; let voice = "silahkan masuk ke ruang " + res;
console.log(voice) console.log(voice)
let speech = new SpeechSynthesisUtterance(); let speech = new SpeechSynthesisUtterance();
...@@ -93,6 +93,18 @@ $('#poli').on('change', function () { ...@@ -93,6 +93,18 @@ $('#poli').on('change', function () {
}); });
}); });
$( '#dokter' ).on( "change", function() {
$id_dokter =$('#dokter').val();
window.location.href = ("/admin/antrianadmin/" +$id_dokter);
});
if(window.location.pathname == "/admin/antrianadmin/" +id){
$( window ).on( "load", function() {
tampilangka(id)
loadantrian(id)
});
}
function loadpoli() { function loadpoli() {
$.ajax({ $.ajax({
...@@ -132,14 +144,15 @@ function loadpoli() { ...@@ -132,14 +144,15 @@ function loadpoli() {
}); });
} }
function loadantrian() {
var iddokter = $('#dokter').val(); function loadantrian(id) {
$iddok= $('#dokter').val();
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/api/loadAntrianAdmin', url: baseURL + '/api/loadAntrianAdmin',
data: { data: {
id: iddokter iid: id,
}, },
...@@ -186,28 +199,22 @@ function loadantrian() { ...@@ -186,28 +199,22 @@ function loadantrian() {
} }
$('#dokter').on('change', function () {
loadantrian();
tampilangka();
});
$('#no_antrian').html('-'); $('#no_antrian').html('-');
function tampilangka() { function tampilangka(id) {
var iddokter = $('#dokter').val();
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/api/loadNoAntrian', url: baseURL + '/api/loadNoAntrian',
data: { data: {
id_dokter: iddokter, id_dokter: id,
}, },
async: false, async: false,
success: function (result) { success: function (result) {
// console.log(result.data); console.log(result.data);
// console.log(result); // console.log(result);
if (result.data) { if (result.data) {
...@@ -275,41 +282,43 @@ function tampilangka() { ...@@ -275,41 +282,43 @@ function tampilangka() {
$('#btnNext').on('click', function () { $('#btnNext').on('click', function () {
actionqueue(noantrian + 1, 20); actionqueue(noantrian + 1, 20,id);
loadantrian() loadantrian()
}); });
$('#btnCall').on('click', function () { $('#btnCall').on('click', function () {
actionqueue(noantrian, 30); actionqueue(noantrian, 30,id);
}); });
$('#btnDone').on('click', function () { $('#btnDone').on('click', function () {
actionqueue(noantrian, 50); actionqueue(noantrian, 50,id);
}); });
$('#btnMissed').on('click', function () { $('#btnMissed').on('click', function () {
actionqueue(noantrian, 60); actionqueue(noantrian, 60,id);
}); });
$('#btnServed').on('click', function () { $('#btnServed').on('click', function () {
actionqueue(noantrian, 40); actionqueue(noantrian, 40,id);
}); });
function actionqueue(antrianno, status) { function actionqueue(antrianno, status, iddok) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/api/nextantrian', url: baseURL + '/api/nextantrian',
data: { data: {
inoantrian: antrianno, inoantrian: antrianno,
istatus: status,
idok: iddok, idok: iddok,
istatus: status
}, },
success: function (result) { success: function (result) {
if (result.data == null && status == 20) { if (result.data == null && status == 20) {
...@@ -320,13 +329,14 @@ function actionqueue(antrianno, status) { ...@@ -320,13 +329,14 @@ function actionqueue(antrianno, status) {
html: true, html: true,
type: "warning" type: "warning"
}); });
$('#no_antrian').html('-');
return false; return false;
} }
if (status == 20) { if (status == 20) {
var res = result['data'][0]; var res = result['data'][0];
var valTemp = res['kode_dokter'] + '' + res['no_antrian']; var valTemp = res['kode_dokter'] + '' + res['no_antrian'];
noantrian = res['no_antrian']; noantrian = res['no_antrian'];
......
$('#cekdata').on('click', function () { $('#cekdata').on('click', function () {
let no_rekam_medis = $('#no_rekam_medis').val(); let no_rekam_medis = $('#no_rekam_medis').val();
cekpasien(no_rekam_medis);
if (no_rekam_medis == null || no_rekam_medis == "") {
bootbox.alert({ message: 'No Rekam Medis tidak boleh kosong', centerVertical: true });
return false;
} else if (no_rekam_medis.toString().length > 8) {
bootbox.alert({ message: 'No Rekam Medis tidak boleh lebih dari 8 angka', centerVertical: true });
return false;
} else if (no_rekam_medis.toString().length < 8) {
bootbox.alert({ message: 'No Rekam Medis tidak boleh kurang dari 8 angka', centerVertical: true });
return false;
}
else {
cekpasien(no_rekam_medis);
}
}) })
function cekpasien(no_rekam_medis) { function cekpasien() {
let no_rekam_medis = $('#no_rekam_medis').val();
// alert(no_rekam_medis);
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/api/cekpasien', url: baseURL + '/api/cekpasien',
data: { data: {
ino_rekam_medis: no_rekam_medis, ino_rekam_medis: no_rekam_medis,
}, },
success: function (result) { success: function (result) {
// let data = result.data['datapasien'][0]['no_rekam_medis'];
// let validasi = result.data['validasiinput'];
console.log(result);
if (result.code != 0) {
bootbox.alert({ message: "No rekam medis atau NIK tidak sesuai!", centerVertical: true });
} if (result.code == 0) {
else if (result.code == 0) {
console.log(result.data['datapasien'][0]['no_rekam_medis']); console.log(result.data);
// alert('berhasil');
if (result.data['datapasien'][0]['no_rekam_medis'] == null) { if (result.data[0]['no_rekam_medis'] == null) {
let $id = result.data['datapasien'][0]['id_pasien']; let $id = result.data[0]['id_pasien'];
let $encodedId = btoa($id); let $encodedId = btoa($id);
window.location.href = ("datapasien/" + $encodedId); window.location.href = ("datapasien/" + $encodedId);
} }
if (result.data['datapasien'][0]['no_rekam_medis'] != null && (result.data['datapasien'][0]['status_code'] == 10)) { if (result.data[0]['no_rekam_medis'] != null && (result.data[0]['status_code'] == 10)) {
let $idantrian = result.data['datapasien'][0]['id_antrian']; let $idantrian = result.data[0]['id_antrian'];
let $encodedIdantrian = btoa($idantrian) let $encodedIdantrian = btoa($idantrian)
let no_rekam_medis = result.data['datapasien'][0]['no_rekam_medis']; let no_rekam_medis = result.data[0]['no_rekam_medis'];
let nama = result.data['datapasien'][0]['nama']; let nama = result.data[0]['nama'];
swal({ swal({
title: " Nama pasien '" + nama + "' sedang dalam antrian. \n Apakah anda ingin mencetak no antrian lagi ? ", title: " Nama pasien '" + nama + "' sedang dalam antrian. \n Apakah anda ingin mencetak no antrian lagi ? ",
type: "error", type: "error",
...@@ -64,117 +41,50 @@ function cekpasien(no_rekam_medis) { ...@@ -64,117 +41,50 @@ function cekpasien(no_rekam_medis) {
window.location = (baseURL + "/queue/cetakantrian/" + $encodedIdantrian); window.location = (baseURL + "/queue/cetakantrian/" + $encodedIdantrian);
}); });
} else if (result.data['datapasien'][0]['status_code'] == 20) {
} else if (result.data[0]['status_code'] == 20) {
bootbox.alert({ message: "Pasien Sedang Dalam Antrian", centerVertical: true }); bootbox.alert({ message: "Pasien Sedang Dalam Antrian", centerVertical: true });
} else if (result.data['datapasien'][0]['status_code'] == 30) { } else if (result.data[0]['status_code'] == 30) {
bootbox.alert({ message: "Pasien Sedang Dalam Panggilan Antrian", centerVertical: true }); bootbox.alert({ message: "Pasien Sedang Dalam Panggilan Antrian", centerVertical: true });
} else if (result.data['datapasien'][0]['status_code'] == 40) { } else if (result.data[0]['status_code'] == 40) {
bootbox.alert({ message: "Pasien Sedang Diperika Dokter", centerVertical: true }); bootbox.alert({ message: "Pasien Sedang Diperika Dokter", centerVertical: true });
} else if (result.data['datapasien'][0]['status_code'] == 50) { } else if (result.data[0]['status_code'] == 50) {
bootbox.alert({ message: "Pasien Telah Selesai Diperiksa", centerVertical: true }); bootbox.alert({ message: "Pasien Telah Selesai Diperiksa", centerVertical: true });
} else if (result.data['datapasien'][0]['status_code'] == 60) { } else if (result.data[0]['status_code'] == 60) {
bootbox.alert({ message: "Pasien Sedang Telah Terlewat Silahkan Hubungi Petugas", centerVertical: true }); bootbox.alert({ message: "Pasien Sedang Telah Terlewat Silahkan Hubungi Petugas", centerVertical: true });
} }
// } else if (result.data['validasiinput'] == 1) {
// bootbox.alert({ message: "No Induk Kependudukan tidak sesuai", centerVertical: true });
} else {
// bootbox.alert({ message: "Pasien Tidak Terdaftar <br> Silahkan Daftar Terlebih Dahulu", centerVertical: true });
}
},
error: function (xhr) {
alert(xhr.status + '-' + xhr.statusText);
}
});
}
// $('#id_pasien').val(data[0].id_pasien);
// $('#no_rekam_medis').val(data[0].no_rekam_medis);
// $('#ktp').val(data[0].ktp);
// $('#nama').val(data[0].nama);
// $('#tempat_lahir').val(data[0].tempat_lahir);
// $('#tanggal_lahir').val(data[0].tanggal_lahir);
// $('#alamat').val(data[0].alamat);
// $('#no_hp').val(data[0].no_hp);
function validasidokter(no_rekam_medis, ktp) {
var exist = 0; } else {
bootbox.alert({ message: "Pasien Tidak Terdaftar <br> Silahkan Daftar Terlebih Dahulu", centerVertical: true });
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + '/api/loadpasien',
async: false,
data: {
id: null,
},
success: function (result) {
// console.log(result)
var data = result.data;
for (x in data) {
if (no_rekam_medis == data[x]['no_rekam_medis']) {
exist = 1;
}
if (ktp == data[x]['ktp']) {
exist = 2;
}
} }
}, },
error: function (xhr) { error: function (xhr) {
//alert(xhr.status+'-'+xhr.statusText); alert(xhr.status + '-' + xhr.statusText);
} }
}); });
return exist;
} }
var inputQuantity = [];
$(function () {
$("#ktp").each(function (i) {
inputQuantity[i] = this.defaultValue;
$(this).data("idx", i); // save this field's index to access later
});
$("#ktp").on("keyup", function (e) {
var $field = $(this),
val = this.value,
$thisIndex = parseInt($field.data("idx"), 10); // retrieve the index
// window.console && console.log($field.is(":invalid"));
// $field.is(":invalid") is for Safari, it must be the last to not error in IE8
if (this.validity && this.validity.badInput || isNaN(val) || $field.is(":invalid")) {
this.value = inputQuantity[$thisIndex];
return;
}
if (val.length > Number($field.attr("maxlength"))) {
val = val.slice(0, 16);
$field.val(val);
}
inputQuantity[$thisIndex] = val;
});
})
var inputQuantity = [];
$(function () {
$("#no_rekam_medis").each(function (i) {
inputQuantity[i] = this.defaultValue;
$(this).data("idx", i); // save this field's index to access later
});
$("#no_rekam_medis").on("keyup", function (e) {
var $field = $(this),
val = this.value,
$thisIndex = parseInt($field.data("idx"), 10); // retrieve the index
// window.console && console.log($field.is(":invalid"));
// $field.is(":invalid") is for Safari, it must be the last to not error in IE8
if (this.validity && this.validity.badInput || isNaN(val) || $field.is(":invalid")) {
this.value = inputQuantity[$thisIndex];
return;
}
if (val.length > Number($field.attr("maxlength"))) {
val = val.slice(0, 8);
$field.val(val);
}
inputQuantity[$thisIndex] = val;
});
})
...@@ -2,17 +2,18 @@ ...@@ -2,17 +2,18 @@
$('#cetak').on('click', function (e) { $('#cetak').on('click', function (e) {
//alert("kepanggil"); //alert("kepanggil");
e.preventDefault(); e.preventDefault();
var w = window.open('', '', 'width=300,height=400'); var w = window.open('', '', 'width=300,height=400');
w.document.write('<html><body><table border="" >' + w.document.write('<html><body><table border="" >' +
'<tr><th><h1>SELAMAT DATANG</h1><h2> Di Rumah Sakit</h2></th></tr></thead>' + '<tr><th><h1>SELAMAT DATANG</h1><h2> Di Rumah Sakit</h2></th></tr></thead>' +
'<tbody><tr>' + '<tbody><tr>' +
'<th><h3>No Rekam Medis : ' + no_rekam_medis_cetak + '</h3>' + '<th><h2>ANTRIAN</h2>' +
'<h2>ANTRIAN</h2>' +
'<h1>' + kode_dokter_cetak + + no_antrian_cetak + '</h1>' + '<h1>' + kode_dokter_cetak + + no_antrian_cetak + '</h1>' +
'<h4>Nama Pasien : ' + nama_pasien_cetak + '</h4>' + '<h3>Nama Pasien : ' + nama_pasien_cetak + '</h3>' +
'<h4>Poli : ' + kode_poli_cetak + '</h4>' + '<h3>Poli : ' + kode_poli_cetak + '</h3>' +
'<h5>Nama Dokter : ' + nama_dokter_cetak + '</h5>' + '<h3>Nama Dokter : ' + nama_dokter_cetak + '</h3>' +
'<div class="h6a" style="text-align:right;font-size: 11px;";>No rekam medis tidak boleh hilang</div>' + '<h3>Jumlah yang sedang dalam antrian : ' + sisa_antrian + '</h3>' +
'<h4>waktu : ' + new Date().toLocaleString("en-US", {timeZone: "Asia/Jakarta"}) + '</h4>' +
'</th></tr></tbody></table></body></html>'); '</th></tr></tbody></table></body></html>');
w.window.print(); w.window.print();
w.document.close(); w.document.close();
......
...@@ -24,96 +24,12 @@ $(document).ready(function () { ...@@ -24,96 +24,12 @@ $(document).ready(function () {
$('#tambahdata').on('click', function () { $('#tambahdata').on('click', function () {
let nama = $('#nama').val(); SaveDataAja();
let tempat_lahir = $('#tempat_lahir').val();
let tanggal_lahir = $('#tanggal_lahir').val();
let alamat = $('#alamat').val();
let no_hp = $('#no_hp').val();
let KTP = $('#ktp').val();
if (KTP == null || KTP == "") {
bootbox.alert({ message: 'No Induk Kependudukan (NIK) tidak boleh kosong', centerVertical: true });
return false;
}
else if (nama == null || nama == "") {
bootbox.alert({ message: 'Nama tidak boleh kosong', centerVertical: true });
return false;
} else if (tempat_lahir == null || tempat_lahir == "") {
bootbox.alert({ message: 'Tempat lahir tidak boleh kosong', centerVertical: true });
return false;
} else if (tanggal_lahir == null || tanggal_lahir == "") {
bootbox.alert({ message: 'Tanggal lahir tidak boleh kosong', centerVertical: true });
return false;
} else if (alamat == null || alamat == "") {
bootbox.alert({ message: 'Alamat tidak boleh kosong', centerVertical: true });
return false;
} else if (no_hp == null || no_hp == "") {
bootbox.alert({ message: 'No hp tidak boleh kosong', centerVertical: true });
return false;
} else if (KTP.toString().length > 16) {
bootbox.alert({ message: 'No Induk Kependudukan (NIK) tidak boleh lebih dari 16 angka', centerVertical: true });
return false;
} else if (KTP.toString().length < 16) {
bootbox.alert({ message: 'No Induk Kependudukan (NIK) tidak boleh kurang dari 16 angka', centerVertical: true });
return false;
} else if (no_hp.toString().length > 13) {
bootbox.alert({ message: 'No HP tidak boleh lebih dari 13 angka', centerVertical: true });
return false;
}
else if (validasipoli(KTP) == 1) {
bootbox.alert({ message: 'KTP Sudah Digunakan!', centerVertical: true });
}
else {
validasinorekammedis();
}
}) })
function makeid(length) { function SaveDataAja() {
let result = ''; let id_pasien = $('#nama').val();
let characters = let no_rekam_medis = $('#nama').val();
'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
let charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
function makeidnumber(length) {
let result = '';
let characters =
'1234567890';
let charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
function validasinorekammedis() {
let norekamedis = makeid(2) + makeidnumber(6);
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + '/api/loadpasien',
data: {
no_rekam_medis: norekamedis
},
success: function (result) {
if (result.info == 'Not Found') {
SaveDataAja(norekamedis);
} else {
validasinorekammedis();
}
}
});
}
function SaveDataAja(norekamedis) {
let no_rekam_medis = norekamedis;
let id_pasien = $('#id_pasien').val();
let nama = $('#nama').val(); let nama = $('#nama').val();
let tempat_lahir = $('#tempat_lahir').val(); let tempat_lahir = $('#tempat_lahir').val();
let tanggal_lahir = $('#tanggal_lahir').val(); let tanggal_lahir = $('#tanggal_lahir').val();
...@@ -122,26 +38,57 @@ function SaveDataAja(norekamedis) { ...@@ -122,26 +38,57 @@ function SaveDataAja(norekamedis) {
let ktp = $('#ktp').val(); let ktp = $('#ktp').val();
// console.log(no_antrian);
/* save data */
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
url: baseURL + '/api/savedatapasien', url: baseURL + '/api/savedatapasien',
data: { data: {
id_pasien: id_pasien, id_pasien: id_pasien,
ino_rekam_medis: no_rekam_medis,
iktp: ktp, iktp: ktp,
inama: nama, inama: nama,
itempat_lahir: tempat_lahir, itempat_lahir: tempat_lahir,
itanggal_lahir: tanggal_lahir, itanggal_lahir: tanggal_lahir,
ialamat: alamat, ialamat: alamat,
ino_hp: no_hp, ino_hp: no_hp,
inorm: no_rekam_medis
}, },
success: function (response) { success: function (response) {
// alert("success"); // alert("success");
// response[data]; // response[data];
// if (ktp == null || ktp == "") {
// bootbox.alert({ message: 'Ktp tidak boleh kosong', centerVertical: true });
// return false;
// }
// else if (nama == null || nama == "") {
// bootbox.alert({ message: 'Nama tidak boleh kosong', centerVertical: true });
// return false;
// } else if (tempat_lahir == null || tempat_lahir == "") {
// bootbox.alert({ message: 'Tempat lahir tidak boleh kosong', centerVertical: true });
// return false;
// } else if (tanggal_lahir == null || tanggal_lahir == "") {
// bootbox.alert({ message: 'Tanggal lahir tidak boleh kosong', centerVertical: true });
// return false;
// } else if (alamat == null || alamat == "") {
// bootbox.alert({ message: 'Alamat tidak boleh kosong', centerVertical: true });
// return false;
// } else if (no_hp == null || no_hp == "") {
// bootbox.alert({ message: 'No hp tidak boleh kosong', centerVertical: true });
// return false;
// } else if (ktp.toString().length > 16) {
// bootbox.alert({ message: 'KTP tidak boleh lebih dari 16 angka', centerVertical: true });
// return false;
// } else if (ktp.toString().length < 16) {
// bootbox.alert({ message: 'KTP tidak boleh kurang dari 16 angka', centerVertical: true });
// return false;
// } else if (no_hp.toString().length > 13) {
// bootbox.alert({ message: 'No HP tidak boleh lebih dari 13 angka', centerVertical: true });
// return false;
// }
if (response['code'] == 0) { if (response['code'] == 0) {
console.log(response); console.log(response);
let $id = response.data['id_pasien']; let $id = response.data['id_pasien'];
...@@ -150,7 +97,7 @@ function SaveDataAja(norekamedis) { ...@@ -150,7 +97,7 @@ function SaveDataAja(norekamedis) {
window.location.href = ("datapasien/" + $encodedId); window.location.href = ("datapasien/" + $encodedId);
} else { } else {
bootbox.alert({ message: 'Gagal Ditambahkan', centerVertical: true }); bootbox.alert({ message: ' gagal', centerVertical: true });
} }
}, error: function (xhr) { }, error: function (xhr) {
...@@ -164,42 +111,7 @@ function SaveDataAja(norekamedis) { ...@@ -164,42 +111,7 @@ function SaveDataAja(norekamedis) {
}); });
} }
// alert('this');
function validasipoli(KTP) {
var exist = 0;
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + '/api/loadpasien',
async: false,
data: {
id: null,
},
success: function (result) {
var data = result.data;
for (x in data) {
if (KTP == data[x]['ktp']) {
exist = 1;
}
}
},
error: function (xhr) {
//alert(xhr.status+'-'+xhr.statusText);
}
});
return exist;
}
var inputQuantity = []; var inputQuantity = [];
$(function () { $(function () {
$("#ktp").each(function (i) { $("#ktp").each(function (i) {
......
// alert(id); // alert(id);
var functionsavedata = false;
loaddatapasien(id) loaddatapasien(id)
function loaddatapasien(param) { function loaddatapasien(param) {
...@@ -27,10 +31,11 @@ function loaddatapasien(param) { ...@@ -27,10 +31,11 @@ function loaddatapasien(param) {
$('#tanggal_lahir').val(data[0].tanggal_lahir); $('#tanggal_lahir').val(data[0].tanggal_lahir);
$('#alamat').val(data[0].alamat); $('#alamat').val(data[0].alamat);
$('#no_hp').val(data[0].no_hp); $('#no_hp').val(data[0].no_hp);
} else { } else {
bootbox.alert({ message: 'Data Kosong', centerVertical: true }); alert(result.info);
} }
}, },
error: function (xhr) { error: function (xhr) {
...@@ -40,16 +45,56 @@ function loaddatapasien(param) { ...@@ -40,16 +45,56 @@ function loaddatapasien(param) {
} }
function loadsisaantrian() {
let dokter = $('#dokter option:selected').attr("value");
let no_antrian = $("input[name=antrian]:checked").val();
var sisa_antrian;
console.log(dokter);
console.log(no_antrian);
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + '/api/loadsisaantrian',
async: false,
data: {
id: dokter,
no: no_antrian,
},
success: function (result) {
// console.log(result);
// $('.loaddata').empty();
// console.log(result);
if (result.code == 0) {
let data = result.data;
console.log(data[0].count);
sisa_antrian = data[0].count;
// $('#sisa_antrian').val(data[0].count);
} else {
alert(result.info);
}
},
error: function (xhr) {
alert(xhr.status + '-' + xhr.statusText);
}
});
return sisa_antrian;
}
$('#tambah').on('click', function () { $('#tambah').on('click', function () {
savedataaja(); loadsisaantrian()
savedataaja()
}) })
function savedataaja() { function savedataaja() {
let id = $('#id_pasien').val(); let id = $('#id_pasien').val();
let nama = $('#nama').val(); let nama = $('#nama').val();
let tempat_lahir = $('#tempat_lahir').val(); let tempat_lahir = $('#tempat_lahir').val();
...@@ -59,11 +104,13 @@ function savedataaja() { ...@@ -59,11 +104,13 @@ function savedataaja() {
let no_rekam_medis = $('#no_rekam_medis').val(); let no_rekam_medis = $('#no_rekam_medis').val();
let poli = $("#poli option:selected").attr("value"); let poli = $("#poli option:selected").attr("value");
let dokter = $('#dokter option:selected').attr("value"); let dokter = $('#dokter option:selected').attr("value");
let sisa_antrian = loadsisaantrian()
console.log(sisa_antrian);
let ktp = $('#ktp').val(); let ktp = $('#ktp').val();
let no_antrian = $("input[name=antrian]:checked").val(); let no_antrian = $("input[name=antrian]:checked").val();
// console.log(id); // console.log(id);
/* save data */ /* save data */
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
...@@ -81,14 +128,16 @@ function savedataaja() { ...@@ -81,14 +128,16 @@ function savedataaja() {
ipoli: poli, ipoli: poli,
idokter: dokter, idokter: dokter,
ino_antrian: no_antrian, ino_antrian: no_antrian,
isisa_antrian :sisa_antrian,
}, },
success: function (response) { success: function (response) {
if (response['code'] == 0) { if (response['code'] == 0) {
console.log(response); // console.log(response);
let $id = response.data[0].id_antrian; let $id = response.data[0].id_antrian;
// console.log($id);
let $encodedId = btoa($id); let $encodedId = btoa($id);
...@@ -114,7 +163,7 @@ function savedataaja() { ...@@ -114,7 +163,7 @@ function savedataaja() {
loadpoli(); loadpoli();
$('#poli').on('change', function () { $('#poli').on('change', function () {
var idpoli = $('#poli').val(); var idpoli = $('#poli').val();
console.log(idpoli); // console.log(idpoli);
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
dataType: 'json', dataType: 'json',
...@@ -214,7 +263,7 @@ function pilihAntrian() { ...@@ -214,7 +263,7 @@ function pilihAntrian() {
// console.log($antrian); // console.log($antrian);
// console.log(response); // console.log(response);
if ($antrian) { if ($antrian) {
var hour = 0;; var hour = 0;
var splithour = []; var splithour = [];
splithour[0] = $antrian[0]['jam_mulai'].split(':'); splithour[0] = $antrian[0]['jam_mulai'].split(':');
...@@ -225,10 +274,10 @@ function pilihAntrian() { ...@@ -225,10 +274,10 @@ function pilihAntrian() {
minute = parseInt(splithour[0][1]); minute = parseInt(splithour[0][1]);
$('.antrian').empty();
for (var i = 0; i < $antrian.length; i++) { for (var i = 0; i < $antrian.length; i++) {
if ($antrian[i]['id_pasien'] === null) { if ($antrian[i]['id_pasien'] === null) {//jika masih kosong
let y = ''; let y = '';
...@@ -241,6 +290,9 @@ function pilihAntrian() { ...@@ -241,6 +290,9 @@ function pilihAntrian() {
hour += Math.floor(minute / 60); hour += Math.floor(minute / 60);
minute = minute % 60; minute = minute % 60;
} }
if(hour >=24){
hour=0;
}
if (minute.toString().length === 1) { if (minute.toString().length === 1) {
y += `<div class="col-lg-1"> y += `<div class="col-lg-1">
...@@ -265,7 +317,7 @@ function pilihAntrian() { ...@@ -265,7 +317,7 @@ function pilihAntrian() {
minute += parseInt(splittime[i][1]); minute += parseInt(splittime[i][1]);
} else if ($antrian[i]['status_code'] == 10 || $antrian[i]['status_code'] == 20 || $antrian[i]['status_code'] == 30 || $antrian[i]['status_code'] == 40) { } else if ($antrian[i]['status_code'] == 10 || $antrian[i]['status_code'] == 20 || $antrian[i]['status_code'] == 30 || $antrian[i]['status_code'] == 40) {//jika antrian sudah terisi
var splittime = []; var splittime = [];
splittime[i] = $antrian[i]['waktu_antrian'].split(':'); splittime[i] = $antrian[i]['waktu_antrian'].split(':');
let y = ''; let y = '';
...@@ -274,8 +326,15 @@ function pilihAntrian() { ...@@ -274,8 +326,15 @@ function pilihAntrian() {
if (minute >= 60) { if (minute >= 60) {
hour += Math.floor(minute / 60); hour += Math.floor(minute / 60);
minute = minute % 60; minute = minute % 60;
}
if(hour >=24){
hour=0;
} }
if (minute.toString().length === 1) { if (minute.toString().length === 1) {
...@@ -323,6 +382,10 @@ function pilihAntrian() { ...@@ -323,6 +382,10 @@ function pilihAntrian() {
if (minute >= 60) { if (minute >= 60) {
hour += Math.floor(minute / 60); hour += Math.floor(minute / 60);
minute = minute % 60; minute = minute % 60;
}
if(hour >=24){
hour=0;
} }
let y = ''; let y = '';
...@@ -349,10 +412,11 @@ function pilihAntrian() { ...@@ -349,10 +412,11 @@ function pilihAntrian() {
if (xhr.status != 200) { if (xhr.status != 200) {
//bootbox.alert(xhr.status + "-" + xhr.statusText + " <br>Silahkan coba kembali :) "); //bootbox.alert(xhr.status + "-" + xhr.statusText + " <br>Silahkan coba kembali :) ");
} else { } else {
bootbox.alert({ message: 'Cannot load queue', centerVertical: true }); alert('Cannot load queue');
} }
} }
}); });
} }
$(document).ready(function () { $(document).ready(function () {
......
...@@ -20,10 +20,9 @@ function loaddokter() { ...@@ -20,10 +20,9 @@ function loaddokter() {
y += ` <div class="col"> y += ` <div class="col">
<div class="card-hide" style="height:330px;width:200px; " > <div class="card-hide" style="height:330px;width:200px; " >
<div class="card-body text-center " > <div class="card-body text-center " >
<h5 class="card-title "> <img style="width:180px; height:200px;" src="/tamplate/img/doctor/`+ data[counter]['image_dokter'] + `" ></h5> <h5 class="card-title "> <img style="width:180px; height:200px;" src="/tamplate/img/doctor/`+ data[counter]['image'] + `" ></h5>
<h4 class="card-text font-weight-bold">`+ data[counter]['nama_dokter'] + `</h4> <h4 class="card-text font-weight-bold">`+ data[counter]['nama_dokter'] + `</h4>
<h6 class="card-text">`+ `Kode Dokter : ` + data[counter]['kode_dokter'] + `</h6> <h5 class="card-text">`+ data[counter]['nama_poli'] + `</h5>
<h5 class="card-text">`+ `Poli ` + data[counter]['nama_poli'] + `</h5>
</div> </div>
......
loadantrianumum();
function loadantrianumum() {
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + '/api/loadantrian',
success: function (result) {
// console.log(result);
// console.log(result.data);
$('loadantrian').empty();
if (result.code == 0) {
var res = result['data'];
let hasil = '';
for (var i = 0; i < res.length; i++) {
hasil += "<div class='box one" + i + "'> <div class='date'> <h4 >" + res[i]['nama_poli'] + "</h4> <h4 >" + res[i]['nama_ruang'] + "</h4></div> <div class='poster p" + i + "'> <h4 >" + res[i]['kode_dokter'] + "" + res[i]['no_antrian'] + "</h4> </div> </div>"
}
$("#box").append(hasil);
} else {
alert(result.info);
}
},
error: function (xhr) {
console.log('ERROR AJAX:' + xhr.status + '-' + xhr.statusText);
}
});
}
loadantrian(id_poli);
function loadantrian(param) {
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + `/api/loadantrian`,
data: {
id_poli: param,
},
success: function (result) {
console.log(result);
// $('.loaddata').empty();
// console.log(result);
if (result['code'] == 0) {
var res = result['data'];
$("#listdata").empty();
$('#no_antrian').empty();
let hasil = '';
for (var i = 0; i < res.length; i++) {
$('#no_antrian').empty();
$('#no_antrian').append("-");
if(res[i]['status_code']==30){
valTemp= res[i]['kode_dokter'] + res[i]['no_antrian'];
$('#no_antrian').empty();
$('#no_antrian').append(valTemp);
ruang= res[i]['nama_ruang'];
$('#ruang').empty();
$('#ruang').append(ruang);
}else{
$('#no_antrian').append("-");
}
hasil =
`
<div class="card col-sm-2" style="border-color: #e94c72;background: #faebd73b; width: 20rem;">
<div class="alert alert-info alert-styled-left alert-arrow-left alert-component" style="background: #faebd73b;">
<div><input type="hidden" value="nomer antrian" id="text-to-speech" placeholder="Enter text to speak..."/></div>
<h1 class="error-title" style=" font-weight:;font-size:53px;font-family: Times New Roman, Times, serif;color: #fff"><span > `+res[i]['kode_dokter']+`-`+res[i]['no_antrian']+` </span></h1>
</div>
<div><input type="hidden" value="no_antrian" id="no_antrian" /></div>
<div><input type="hidden" value="nama_ruang" id="nama_ruang" /><span style="visibility:hidden" id="nama_ruang"></span></div>
</div>
`
$("#listdata").append(hasil);
}
} else {
$('#no_antrian').empty();
$('#no_antrian').append("-");
}
},
error: function (xhr) {
alert(xhr.status + '-' + xhr.statusText);
}
});
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment