| @@ -27,7 +27,7 @@ public class BackCari extends JPanel { | ||
|
|
||
| public BackCari() { | ||
| super(); | ||
| this.setBorder(javax.swing.BorderFactory.createLineBorder(new Color(234,250,233))); | ||
| } | ||
|
|
||
| @Override | ||
| @@ -0,0 +1,108 @@ | ||
| <?php | ||
| session_start(); | ||
| require_once('conf/conf.php'); | ||
| header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | ||
| header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); | ||
| header("Cache-Control: no-store, no-cache, must-revalidate"); | ||
| header("Cache-Control: post-check=0, pre-check=0", false); | ||
| header("Pragma: no-cache"); // HTTP/1.0 | ||
| $tanggal= mktime(date("m"),date("d"),date("Y")); | ||
| date_default_timezone_set('Asia/Jakarta'); | ||
| $jam=date("H:i"); | ||
| ?> | ||
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
| <link href="css/default.css" rel="stylesheet" type="text/css" /> | ||
| <script type="text/javascript" src="conf/validator.js"></script> | ||
| <title>Jadwal Praktek Dokter</title> | ||
| <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> | ||
| <script src="Scripts/AC_ActiveX.js" type="text/javascript"></script> | ||
| <style type="text/css"> | ||
| <!-- | ||
| body { | ||
| background-image: url(); | ||
| background-repeat: no-repeat; | ||
| background-color: #FFFFCC; | ||
| } | ||
| --> | ||
| </style> | ||
| </head> | ||
| <body> | ||
|
|
||
| <div align="left"> | ||
| <script type="text/javascript"> | ||
| AC_AX_RunContent( 'width','32','height','32' ); //end AC code | ||
| </script> | ||
| <noscript> | ||
| <object width="32" height="32"> | ||
| <embed width="32" height="32"></embed> | ||
| </object> | ||
| </noscript> | ||
| <?php | ||
| $kd_poli = str_replace("_"," ",isset($_GET['kd_poli']))?str_replace("_"," ",$_GET['kd_poli']):NULL; | ||
| $kd_dokter = str_replace("_"," ",isset($_GET['kd_dokter']))?str_replace("_"," ",$_GET['kd_dokter']):NULL; | ||
| $setting = mysqli_fetch_array(bukaquery("select nama_instansi,alamat_instansi,kabupaten,propinsi,kontak,email,logo from setting")); | ||
| echo " | ||
| <table width='100%' align='center' border='0' class='tbl_form' cellspacing='0' cellpadding='0'> | ||
| <tr> | ||
| <td width='10%' align='right' valign='center'> | ||
| <img width='90' height='90' src='data:image/jpeg;base64,". base64_encode($setting['logo']). "'/> | ||
| </td> | ||
| <td> | ||
| <center> | ||
| <font size='6' color='#AA00AA' face='Tahoma'>".$setting["nama_instansi"]."</font><br> | ||
| <font size='5' color='#AA00AA' face='Tahoma'> | ||
| ".$setting["alamat_instansi"].", ".$setting["kabupaten"].", ".$setting["propinsi"]."<br> | ||
| </font> | ||
| <font size='5' color='#AAAA00' face='Tahoma' >Antrian Poli ".getOne("select nm_poli from poliklinik where kd_poli='".$kd_poli."'").", Dokter ".getOne("select nm_dokter from dokter where kd_dokter='".$kd_dokter."'")."<br> ".date("d-M-Y", $tanggal)." ". $jam."</font> | ||
| <br><br> | ||
| </center> | ||
| </td> | ||
| <td width='10%' align='left'> | ||
| | ||
| </td> | ||
| <td width='10%' align='left' valign='top'> | ||
| <img width='180' height='130' src='header-kanan.jpg'/> | ||
| </td> | ||
| </tr> | ||
| </table> "; | ||
| ?> | ||
| <table width='100%' bgcolor='FFFFFF' border='0' align='center' cellpadding='0' cellspacing='0'> | ||
| <tr class='head5'> | ||
| <td width='100%'><div align='center'></div></td> | ||
| </tr> | ||
| </table> | ||
| <table width='100%' bgcolor='FFFFFF' border='0' align='center' cellpadding='0' cellspacing='0'> | ||
| <tr class='head4'> | ||
| <td width='10%'><div align='center'><font size='5'><b>NO</b></font></div></td> | ||
| <td width='25%'><div align='center'><font size='5'><b>NO.RM</b></font></div></td> | ||
| <td width='65%'><div align='center'><font size='5'><b>NAMA PASIEN</b></font></div></td> | ||
| </tr> | ||
|
|
||
| <?php | ||
|
|
||
| $_sql="select reg_periksa.no_reg,reg_periksa.no_rkm_medis,pasien.nm_pasien | ||
| from reg_periksa inner join pasien on reg_periksa.no_rkm_medis=pasien.no_rkm_medis | ||
| where reg_periksa.kd_poli='".$kd_poli."' and reg_periksa.kd_dokter='".$kd_dokter."' | ||
| and reg_periksa.tgl_registrasi='".date("Y-m-d", $tanggal)."' and stts='Belum' order by reg_periksa.no_reg" ; | ||
| $hasil=bukaquery($_sql); | ||
|
|
||
| while ($data = mysqli_fetch_array ($hasil)){ | ||
| echo "<tr class='isi7' > | ||
| <td align='center'><font size='5' color='gray' face='Tahoma'>".$data['no_reg']."</font></td> | ||
| <td align='center'><font color='#DDDD00' size='5' face='Tahoma'>".$data['no_rkm_medis']."</font></td> | ||
| <td align='center'><font color='gren' size='5' face='Tahoma'>".$data['nm_pasien']."</font></td> | ||
| </tr> "; | ||
| } | ||
| ?> | ||
| </table> | ||
| <table width='100%' bgcolor='FFFFFF' border='0' align='center' cellpadding='0' cellspacing='0'> | ||
| <tr class='head5'> | ||
| <td width='100%'><div align='center'></div></td> | ||
| </tr> | ||
| </table> | ||
| <img src="ft-2.jpg" alt="bar-pic" width="100%" height="83"> | ||
| </body> | ||
| <?php | ||
| echo "<meta http-equiv='refresh' content='30;URL=?kd_dokter=".str_replace(" ","_",$kd_dokter)."&kd_poli=".str_replace(" ","_",$kd_poli)."'>"; | ||
| ?> |
| @@ -0,0 +1,42 @@ | ||
| Fitur-fitur: | ||
|
|
||
| Versi 1.6 | ||
| - Penambahan pembatasan jam daftar di config.php | ||
| - Minor bugs fixed | ||
| - Cleanup code | ||
|
|
||
| Versi 1.5 | ||
| - Penambahan fitur pendaftaran pasien baru | ||
| - Penambahan configurasi enable/disable pendaftaran pasien baru (file config.php) | ||
| - Penambahan pembatasan hari pendaftaran antrian loket (ex. daftar untuk 3 hari kedepan. file config.php) | ||
| - Minor bugs fixed | ||
| - Cleanup code | ||
|
|
||
| Versi 1.4 | ||
| - Penambahan fitur dashboard pasien | ||
| - Pasien login dengan No Rekam Medik dan No KTP | ||
| - Penambahan fitur dasbor kunjungan pasien | ||
| - Penambahan fitur grafik kunjungan poliklinik hari ini | ||
| - Fitur antrian poliklinik (jika sudah terdaftar dalam antrin) | ||
| - Fitur antrian elektronik (paperless quewe) | ||
| - Pendaftaran online dengan verifikasi NO. RM, No. KTP, Jadwal Dokter dan Metode Pembayaran | ||
| - Penambahan fitur jadwal praktek dokter | ||
| - Panambahan fitur informasi ketersediaan kamar dan tempat tidur | ||
|
|
||
| Versi 1.3 | ||
| - Bugs fix | ||
|
|
||
| Versi 1.2 | ||
| - Change layout | ||
|
|
||
| Versi 1.1 | ||
| - Login system using no_rkm_medis and tgl_lahir | ||
|
|
||
| Versi 1.0 | ||
| - Initial version | ||
|
|
||
| demo: | ||
| https://demo.rshdbarabai.com/pasien/ | ||
| User: 000007 | ||
| Pass: 6307060704920001 | ||
|
|
| @@ -0,0 +1,37 @@ | ||
| Fitur-fitur: | ||
|
|
||
| Versi 1.5 | ||
| - Penambahan fitur pendaftaran pasien baru | ||
| - Penambahan configurasi enable/disable pendaftaran pasien baru (file config.php) | ||
| - Penambahan pembatasan hari pendaftaran antrian loket (ex. daftar untuk 3 hari kedepan. file config.php) | ||
| - Minor bugs fixed | ||
| - Cleanup code | ||
|
|
||
| Versi 1.4 | ||
| - Penambahan fitur dashboard pasien | ||
| - Pasien login dengan No Rekam Medik dan No KTP | ||
| - Penambahan fitur dasbor kunjungan pasien | ||
| - Penambahan fitur grafik kunjungan poliklinik hari ini | ||
| - Fitur antrian poliklinik (jika sudah terdaftar dalam antrin) | ||
| - Fitur antrian elektronik (paperless quewe) | ||
| - Pendaftaran online dengan verifikasi NO. RM, No. KTP, Jadwal Dokter dan Metode Pembayaran | ||
| - Penambahan fitur jadwal praktek dokter | ||
| - Panambahan fitur informasi ketersediaan kamar dan tempat tidur | ||
|
|
||
| Versi 1.3 | ||
| - Bugs fix | ||
|
|
||
| Versi 1.2 | ||
| - Change layout | ||
|
|
||
| Versi 1.1 | ||
| - Login system using no_rkm_medis and tgl_lahir | ||
|
|
||
| Versi 1.0 | ||
| - Initial version | ||
|
|
||
| demo: | ||
| https://demo.rshdbarabai.com/pasien/ | ||
| User: 000007 | ||
| Pass: 6307060704920001 | ||
|
|
| @@ -0,0 +1,136 @@ | ||
| <?php | ||
|
|
||
| /*** | ||
| * e-Dokter from version 0.1 Beta | ||
| * Last modified: 02 Pebruari 2018 | ||
| * Author : drg. Faisol Basoro | ||
| * Email : drg.faisol@basoro.org | ||
| * | ||
| * File : config.php | ||
| * Description : Main config, function and helper | ||
| * Licence under GPL | ||
| ***/ | ||
|
|
||
| if (preg_match ('/config.php/', basename($_SERVER['PHP_SELF']))) die ('Unable to access this script directly from browser!'); | ||
|
|
||
| define('DB_HOST', 'localhost'); | ||
| define('DB_USER', 'root'); | ||
| define('DB_PASS', ''); | ||
| define('DB_NAME', 'sik'); | ||
|
|
||
| $connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); | ||
|
|
||
| define('VERSION', '1.5 Beta'); | ||
| define('URL', ''); | ||
| define('DIR', ''); | ||
| define('HARIDAFTAR', '3'); // Batasi hari pendaftaran 3 hari kedepan | ||
| define('LIMITJAM', '23:59:00'); // Batasi jam pendaftaran | ||
| define('SIGNUP', 'ENABLE'); // ENABLE atau DISABLE pendaftaran pasien baru | ||
|
|
||
| function escape($string) { | ||
| global $connection; | ||
| return mysqli_real_escape_string($connection, $string); | ||
| } | ||
|
|
||
| function query($sql) { | ||
| global $connection; | ||
| $query = mysqli_query($connection, $sql); | ||
| confirm($query); | ||
| return $query; | ||
| } | ||
|
|
||
| function confirm($query) { | ||
| global $connection; | ||
| if(!$query) { | ||
| die("Query failed! " . mysqli_error($connection)); | ||
| } | ||
| } | ||
|
|
||
| function fetch_array($result) { | ||
| return mysqli_fetch_array($result); | ||
| } | ||
|
|
||
| function fetch_assoc($result) { | ||
| return mysqli_fetch_assoc($result); | ||
| } | ||
|
|
||
| function num_rows($result) { | ||
| return mysqli_num_rows($result); | ||
| } | ||
|
|
||
| // Get date and time | ||
| date_default_timezone_set('Asia/jakarta'); | ||
| $month = date('Y-m'); | ||
| $date = date('Y-m-d'); | ||
| $time = date('H:i:s'); | ||
| $date_time = date('Y-m-d H:i:s'); | ||
|
|
||
| // Namahari | ||
| $hari=fetch_array(query("SELECT DAYNAME(current_date())")); | ||
| $namahari=""; | ||
| if($hari[0]=="Sunday"){ | ||
| $namahari="AKHAD"; | ||
| }else if($hari[0]=="Monday"){ | ||
| $namahari="SENIN"; | ||
| }else if($hari[0]=="Tuesday"){ | ||
| $namahari="SELASA"; | ||
| }else if($hari[0]=="Wednesday"){ | ||
| $namahari="RABU"; | ||
| }else if($hari[0]=="Thursday"){ | ||
| $namahari="KAMIS"; | ||
| }else if($hari[0]=="Friday"){ | ||
| $namahari="JUMAT"; | ||
| }else if($hari[0]=="Saturday"){ | ||
| $namahari="SABTU"; | ||
| } | ||
|
|
||
| // Get settings | ||
| $getSettings = query("SELECT * FROM setting"); | ||
| $dataSettings = fetch_assoc($getSettings); | ||
|
|
||
| // htmlentities remove #$%#$%@ values | ||
| function clean($string) { | ||
| return htmlentities($string); | ||
| } | ||
|
|
||
| // redirect to another page | ||
| function redirect($location) { | ||
| return header("Location: {$location}"); | ||
| } | ||
|
|
||
| // add message to session | ||
| function set_message($message) { | ||
| if(!empty($message)) { | ||
| $_SESSION['message'] = $message; | ||
| } else { | ||
| $message = ""; | ||
| } | ||
| } | ||
|
|
||
| // display session message | ||
| function display_message() { | ||
| if(isset($_SESSION['message'])) { | ||
| echo '<div class="alert bg-pink alert-dismissible" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>'.$_SESSION['message'].'</div>'; | ||
| unset($_SESSION['message']); | ||
| } | ||
| } | ||
|
|
||
| // show errors | ||
| function validation_errors($error) { | ||
| $errors = '<div class="alert bg-pink alert-dismissible" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>'.$error.'</div>'; | ||
| return $errors; | ||
| } | ||
|
|
||
| // check if nik exits | ||
| function nik_exits($no_ktp) { | ||
| $sql = "SELECT no_ktp FROM pasien WHERE no_ktp = '$no_ktp' "; | ||
| $result = query($sql); | ||
| // check if we found something | ||
| if(num_rows($result) == 1) { | ||
| return true; | ||
| } else { | ||
| return false; | ||
| } | ||
| } | ||
|
|
||
|
|
| @@ -0,0 +1,23 @@ | ||
| /* fallback */ | ||
| @font-face { | ||
| font-family: 'Material Icons'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: url(../fonts/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2'); | ||
| } | ||
|
|
||
| .material-icons { | ||
| font-family: 'Material Icons'; | ||
| font-weight: normal; | ||
| font-style: normal; | ||
| font-size: 24px; | ||
| line-height: 1; | ||
| letter-spacing: normal; | ||
| text-transform: none; | ||
| display: inline-block; | ||
| white-space: nowrap; | ||
| word-wrap: normal; | ||
| direction: ltr; | ||
| -webkit-font-feature-settings: 'liga'; | ||
| -webkit-font-smoothing: antialiased; | ||
| } |
| @@ -0,0 +1,112 @@ | ||
| /* cyrillic-ext */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: local('Roboto'), local('Roboto-Regular'), url(../fonts/ek4gzZ-GeXAPcSbHtCeQI_esZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); | ||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | ||
| } | ||
| /* cyrillic */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: local('Roboto'), local('Roboto-Regular'), url(../fonts/mErvLBYg_cXG3rLvUsKT_fesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); | ||
| unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ||
| } | ||
| /* greek-ext */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: local('Roboto'), local('Roboto-Regular'), url(../fonts/-2n2p-_Y08sg57CNWQfKNvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); | ||
| unicode-range: U+1F00-1FFF; | ||
| } | ||
| /* greek */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: local('Roboto'), local('Roboto-Regular'), url(../fonts/u0TOpm082MNkS5K0Q4rhqvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); | ||
| unicode-range: U+0370-03FF; | ||
| } | ||
| /* vietnamese */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: local('Roboto'), local('Roboto-Regular'), url(../fonts/NdF9MtnOpLzo-noMoG0miPesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); | ||
| unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; | ||
| } | ||
| /* latin-ext */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: local('Roboto'), local('Roboto-Regular'), url(../fonts/Fcx7Wwv8OzT71A3E1XOAjvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); | ||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; | ||
| } | ||
| /* latin */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| src: local('Roboto'), local('Roboto-Regular'), url(../fonts/CWB0XYA8bzo0kSThX0UTuA.woff2) format('woff2'); | ||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215; | ||
| } | ||
| /* cyrillic-ext */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 700; | ||
| src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/77FXFjRbGzN4aCrSFhlh3hJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); | ||
| unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; | ||
| } | ||
| /* cyrillic */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 700; | ||
| src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/isZ-wbCXNKAbnjo6_TwHThJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); | ||
| unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ||
| } | ||
| /* greek-ext */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 700; | ||
| src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/UX6i4JxQDm3fVTc1CPuwqhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); | ||
| unicode-range: U+1F00-1FFF; | ||
| } | ||
| /* greek */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 700; | ||
| src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/jSN2CGVDbcVyCnfJfjSdfBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); | ||
| unicode-range: U+0370-03FF; | ||
| } | ||
| /* vietnamese */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 700; | ||
| src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/PwZc-YbIL414wB9rB1IAPRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); | ||
| unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; | ||
| } | ||
| /* latin-ext */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 700; | ||
| src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/97uahxiqZRoncBaCEI3aWxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); | ||
| unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; | ||
| } | ||
| /* latin */ | ||
| @font-face { | ||
| font-family: 'Roboto'; | ||
| font-style: normal; | ||
| font-weight: 700; | ||
| src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/d-6IYplOFocCacKzxwXSOFtXRa8TVwTICgirnJhmVJw.woff2) format('woff2'); | ||
| unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215; | ||
| } |
| @@ -0,0 +1,45 @@ | ||
| .theme-blue .navbar { | ||
| background-color: #2196F3; } | ||
|
|
||
| .theme-blue .navbar-brand { | ||
| color: #fff; } | ||
| .theme-blue .navbar-brand:hover { | ||
| color: #fff; } | ||
| .theme-blue .navbar-brand:active { | ||
| color: #fff; } | ||
| .theme-blue .navbar-brand:focus { | ||
| color: #fff; } | ||
|
|
||
| .theme-blue .nav > li > a { | ||
| color: #fff; } | ||
| .theme-blue .nav > li > a:hover { | ||
| background-color: transparent; } | ||
| .theme-blue .nav > li > a:focus { | ||
| background-color: transparent; } | ||
|
|
||
| .theme-blue .nav .open > a { | ||
| background-color: transparent; } | ||
| .theme-blue .nav .open > a:hover { | ||
| background-color: transparent; } | ||
| .theme-blue .nav .open > a:focus { | ||
| background-color: transparent; } | ||
|
|
||
| .theme-blue .bars { | ||
| color: #fff; } | ||
|
|
||
| .theme-blue .sidebar .menu .list li.active { | ||
| background-color: transparent; } | ||
| .theme-blue .sidebar .menu .list li.active > :first-child i, .theme-blue .sidebar .menu .list li.active > :first-child span { | ||
| color: #2196F3; } | ||
|
|
||
| .theme-blue .sidebar .menu .list .toggled { | ||
| background-color: transparent; } | ||
|
|
||
| .theme-blue .sidebar .menu .list .ml-menu { | ||
| background-color: transparent; } | ||
|
|
||
| .theme-blue .sidebar .legal { | ||
| background-color: #fff; } | ||
| .theme-blue .sidebar .legal .copyright a { | ||
| color: #2196F3 !important; } | ||
|
|
| @@ -0,0 +1,49 @@ | ||
| <?php | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| include ('../config.php'); | ||
|
|
||
| $get_id_poli = fetch_array(query("SELECT a.nm_poli, b.kd_poli FROM poliklinik a, reg_periksa b WHERE a.kd_poli = b.kd_poli AND b.no_rkm_medis = '$_SESSION[username]' AND b.tgl_registrasi='$date'")); | ||
|
|
||
| $table = <<<EOT | ||
| ( | ||
| SELECT | ||
| f.nm_pasien, | ||
| c.nm_dokter, | ||
| a.no_reg, | ||
| a.stts | ||
| FROM reg_periksa a | ||
| LEFT JOIN poliklinik b ON a.kd_poli = b.kd_poli | ||
| LEFT JOIN dokter c ON a.kd_dokter = c.kd_dokter | ||
| LEFT JOIN penjab d ON a.kd_pj = d.kd_pj | ||
| LEFT JOIN pasien f ON a.no_rkm_medis = f.no_rkm_medis | ||
| WHERE a.tgl_registrasi='$date' AND a.kd_poli = '$get_id_poli[1]' | ||
| ORDER BY a.no_reg ASC | ||
| ) temp | ||
| EOT; | ||
|
|
||
| $primaryKey = 'no_reg'; | ||
| $columns = array( | ||
| array( 'db' => 'nm_pasien','dt' => 1 ), | ||
| array( 'db' => 'nm_dokter','dt' => 2 ), | ||
| array( 'db' => 'no_reg','dt' => 3 ), | ||
| array( 'db' => 'stts','dt' => 4 ), | ||
| ); | ||
|
|
||
| $sql_details = array( | ||
| 'user' => DB_USER, | ||
| 'pass' => DB_PASS, | ||
| 'db' => DB_NAME, | ||
| 'host' => DB_HOST | ||
| ); | ||
| require('ssp.class.php'); | ||
| $result=SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ); | ||
| $start=$_REQUEST['start']+1; | ||
| foreach($result['data'] as &$res){ | ||
| $res[0]=(string)$start; | ||
| $start++; | ||
| } | ||
| echo json_encode($result); | ||
| ?> |
| @@ -0,0 +1,59 @@ | ||
| <?php | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| include ('../config.php'); | ||
|
|
||
| $table = <<<EOT | ||
| ( | ||
| SELECT nama.nm_bangsal, nama.kd_bangsal | ||
| , ( | ||
| SELECT COUNT(*) | ||
| FROM kamar | ||
| WHERE kd_bangsal = nama.kd_bangsal | ||
| AND statusdata='1' | ||
| ) AS total | ||
| , ( | ||
| SELECT COUNT(*) | ||
| FROM kamar | ||
| WHERE kd_bangsal = nama.kd_bangsal | ||
| AND statusdata='1' | ||
| AND status='ISI' | ||
| ) AS isi | ||
| , ( | ||
| SELECT COUNT(*) | ||
| FROM kamar | ||
| WHERE kd_bangsal = nama.kd_bangsal | ||
| AND statusdata='1' | ||
| AND status='KOSONG' | ||
| ) AS kosong | ||
| FROM ( | ||
| SELECT DISTINCT nm_bangsal, kd_bangsal | ||
| FROM bangsal | ||
| WHERE status='1' | ||
| AND kd_bangsal IN(SELECT kd_bangsal FROM kamar) | ||
| ) AS nama | ||
| ) temp | ||
| EOT; | ||
|
|
||
| $primaryKey = 'nm_bangsal'; | ||
|
|
||
| $columns = array( | ||
| array( 'db' => 'nm_bangsal','dt' => 0 ), | ||
| array( 'db' => 'total','dt' => 1 ), | ||
| array( 'db' => 'isi','dt' => 2 ), | ||
| array( 'db' => 'kosong','dt' => 3 ), | ||
| ); | ||
|
|
||
| $sql_details = array( | ||
| 'user' => DB_USER, | ||
| 'pass' => DB_PASS, | ||
| 'db' => DB_NAME, | ||
| 'host' => DB_HOST | ||
| ); | ||
| require('ssp.class.php'); | ||
| echo json_encode( | ||
| SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) | ||
| ); | ||
| ?> |
| @@ -0,0 +1,32 @@ | ||
| <?php | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| include ('../config.php'); | ||
|
|
||
| $table = <<<EOT | ||
| ( | ||
| select * from utd_stok_darah WHERE status='ADA' | ||
| ) temp | ||
| EOT; | ||
|
|
||
| $primaryKey = 'no_kantong'; | ||
| $columns = array( | ||
| array( 'db' => 'no_kantong','dt' => 0 ), | ||
| array( 'db' => 'kode_komponen','dt' => 1 ), | ||
| array( 'db' => 'golongan_darah','dt' => 2 ), | ||
| array( 'db' => 'tanggal_kadaluarsa','dt' => 3 ), | ||
| ); | ||
|
|
||
| $sql_details = array( | ||
| 'user' => DB_USER, | ||
| 'pass' => DB_PASS, | ||
| 'db' => DB_NAME, | ||
| 'host' => DB_HOST | ||
| ); | ||
| require('ssp.class.php'); | ||
| echo json_encode( | ||
| SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) | ||
| ); | ||
| ?> |
| @@ -0,0 +1,57 @@ | ||
| <?php | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| include ('../config.php'); | ||
|
|
||
| $table = <<<EOT | ||
| ( | ||
| SELECT nama.kelas | ||
| , ( | ||
| SELECT COUNT(*) | ||
| FROM kamar | ||
| WHERE kelas = nama.kelas | ||
| AND statusdata='1' | ||
| ) AS total | ||
| , ( | ||
| SELECT COUNT(*) | ||
| FROM kamar | ||
| WHERE kelas = nama.kelas | ||
| AND statusdata='1' | ||
| AND status='ISI' | ||
| ) AS isi | ||
| , ( | ||
| SELECT COUNT(*) | ||
| FROM kamar | ||
| WHERE kelas = nama.kelas | ||
| AND statusdata='1' | ||
| AND status='KOSONG' | ||
| ) AS kosong | ||
| FROM ( | ||
| SELECT DISTINCT kelas | ||
| FROM kamar | ||
| WHERE statusdata='1' | ||
| ) AS nama | ||
| ) temp | ||
| EOT; | ||
|
|
||
| $primaryKey = 'total'; | ||
| $columns = array( | ||
| array( 'db' => 'kelas','dt' => 0 ), | ||
| array( 'db' => 'total','dt' => 1 ), | ||
| array( 'db' => 'isi','dt' => 2 ), | ||
| array( 'db' => 'kosong','dt' => 3 ), | ||
| ); | ||
|
|
||
| $sql_details = array( | ||
| 'user' => DB_USER, | ||
| 'pass' => DB_PASS, | ||
| 'db' => DB_NAME, | ||
| 'host' => DB_HOST | ||
| ); | ||
| require('ssp.class.php'); | ||
| echo json_encode( | ||
| SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) | ||
| ); | ||
| ?> |
| @@ -0,0 +1,41 @@ | ||
| <?php | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| include ('../config.php'); | ||
|
|
||
| $table = <<<EOT | ||
| ( | ||
| SELECT | ||
| dokter.nm_dokter, | ||
| poliklinik.nm_poli, | ||
| DATE_FORMAT(jadwal.jam_mulai, '%H:%i') AS jam_mulai, | ||
| DATE_FORMAT(jadwal.jam_selesai, '%H:%i') AS jam_selesai | ||
| FROM jadwal | ||
| INNER JOIN dokter | ||
| INNER JOIN poliklinik on dokter.kd_dokter=jadwal.kd_dokter | ||
| AND jadwal.kd_poli=poliklinik.kd_poli | ||
| WHERE jadwal.hari_kerja='$namahari' | ||
| ) temp | ||
| EOT; | ||
|
|
||
| $primaryKey = 'nm_dokter'; | ||
| $columns = array( | ||
| array( 'db' => 'nm_dokter','dt' => 0 ), | ||
| array( 'db' => 'nm_poli','dt' => 1 ), | ||
| array( 'db' => 'jam_mulai','dt' => 2 ), | ||
| array( 'db' => 'jam_selesai','dt' => 3 ), | ||
| ); | ||
|
|
||
| $sql_details = array( | ||
| 'user' => DB_USER, | ||
| 'pass' => DB_PASS, | ||
| 'db' => DB_NAME, | ||
| 'host' => DB_HOST | ||
| ); | ||
| require('ssp.class.php'); | ||
| echo json_encode( | ||
| SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) | ||
| ); | ||
| ?> |
| @@ -0,0 +1,18 @@ | ||
| <?php | ||
|
|
||
| include ('../config.php'); | ||
|
|
||
| error_reporting(0); | ||
|
|
||
| $idpoli = 'U0017'; | ||
|
|
||
| $dokter = query("select jadwal.kd_dokter, dokter.nm_dokter from jadwal,poliklinik,dokter where jadwal.kd_poli=poliklinik.kd_poli and | ||
| jadwal.kd_dokter=dokter.kd_dokter and jadwal.kd_poli='$idpoli' and jadwal.hari_kerja LIKE '%$namahari%'"); | ||
|
|
||
| echo'<option value="0">Pilih Kota</option>'; | ||
| while ($row = fetch_assoc($dokter)) { | ||
|
|
||
| echo'<option value="'.$row['kd_dokter'].'">'.$row['nm_dokter'].'</option>'; | ||
| } | ||
|
|
||
| ?> |
| @@ -0,0 +1,47 @@ | ||
| <?php | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| include ('../config.php'); | ||
|
|
||
| $table = <<<EOT | ||
| ( | ||
| SELECT | ||
| a.tgl_registrasi, | ||
| a.no_rawat, | ||
| a.no_reg, | ||
| b.nm_poli, | ||
| c.nm_dokter, | ||
| a.status_lanjut, | ||
| d.png_jawab | ||
| FROM reg_periksa a | ||
| LEFT JOIN poliklinik b ON a.kd_poli = b.kd_poli | ||
| LEFT JOIN dokter c ON a.kd_dokter = c.kd_dokter | ||
| LEFT JOIN penjab d ON a.kd_pj = d.kd_pj | ||
| WHERE a.no_rkm_medis = '{$_SESSION['username']}' | ||
| ) temp | ||
| EOT; | ||
|
|
||
| $primaryKey = 'no_rawat'; | ||
| $columns = array( | ||
| array( 'db' => 'tgl_registrasi','dt' => 0 ), | ||
| array( 'db' => 'no_rawat','dt' => 1 ), | ||
| array( 'db' => 'no_reg','dt' => 2 ), | ||
| array( 'db' => 'nm_poli','dt' => 3 ), | ||
| array( 'db' => 'nm_dokter','dt' => 4 ), | ||
| array( 'db' => 'status_lanjut','dt' => 5 ), | ||
| array( 'db' => 'png_jawab','dt' => 6 ), | ||
| ); | ||
|
|
||
| $sql_details = array( | ||
| 'user' => DB_USER, | ||
| 'pass' => DB_PASS, | ||
| 'db' => DB_NAME, | ||
| 'host' => DB_HOST | ||
| ); | ||
| require('ssp.class.php'); | ||
| echo json_encode( | ||
| SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) | ||
| ); | ||
| ?> |
| @@ -0,0 +1,158 @@ | ||
| <?php include_once ('layout/header.php'); ?> | ||
|
|
||
| <section class="content"> | ||
| <div class="container-fluid"> | ||
| <div class="block-header"> | ||
| <h2>DASHBOARD PASIEN</h2> | ||
| </div> | ||
|
|
||
| <!-- Widgets --> | ||
| <div class="row clearfix"> | ||
| <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> | ||
| <div class="info-box bg-pink hover-expand-effect"> | ||
| <div class="icon"> | ||
| <i class="material-icons">enhanced_encryption</i> | ||
| </div> | ||
| <div class="content"> | ||
| <div class="text">TOTAL KUNJUNGAN</div> | ||
| <div class="number count-to" data-from="0" data-to="<?php echo num_rows(query("SELECT no_rkm_medis FROM reg_periksa WHERE no_rkm_medis = '{$_SESSION['username']}'"));?>" data-speed="3000" data-fresh-interval="20"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> | ||
| <div class="info-box bg-cyan hover-expand-effect"> | ||
| <div class="icon"> | ||
| <i class="material-icons">airline_seat_recline_normal</i> | ||
| </div> | ||
| <div class="content"> | ||
| <div class="text">RAWAT JALAN</div> | ||
| <div class="number count-to" data-from="0" data-to="<?php echo num_rows(query("SELECT no_rkm_medis FROM reg_periksa WHERE no_rkm_medis = '{$_SESSION['username']}' AND status_lanjut = 'Ralan'"));?>" data-speed="2000" data-fresh-interval="20"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> | ||
| <div class="info-box bg-light-green hover-expand-effect"> | ||
| <div class="icon"> | ||
| <i class="material-icons">local_hotel</i> | ||
| </div> | ||
| <div class="content"> | ||
| <div class="text">RAWAT INAP</div> | ||
| <div class="number count-to" data-from="0" data-to="<?php echo num_rows(query("SELECT no_rkm_medis FROM reg_periksa WHERE no_rkm_medis = '{$_SESSION['username']}' AND status_lanjut = 'Ranap'"));?>" data-speed="1000" data-fresh-interval="20"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12"> | ||
| <div class="info-box bg-orange hover-expand-effect"> | ||
| <div class="icon"> | ||
| <i class="material-icons">today</i> | ||
| </div> | ||
| <div class="content"> | ||
| <div class="text">BULAN INI</div> | ||
| <div class="number count-to" data-from="0" data-to="<?php echo num_rows(query("SELECT no_rkm_medis FROM reg_periksa WHERE tgl_registrasi LIKE '%$month%' AND no_rkm_medis = '{$_SESSION['username']}'"));?>" data-speed="1000" data-fresh-interval="20"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Widgets --> | ||
| <!-- CPU Usage --> | ||
| <div class="row clearfix"> | ||
| <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> | ||
| <div class="card"> | ||
| <div class="header"> | ||
| <div class="row clearfix"> | ||
| <div class="col-xs-12 col-sm-6"> | ||
| <h2>POLIKLINIK HARI INI</h2> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="body"> | ||
| <div id="kunjungan"> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #END# CPU Usage --> | ||
|
|
||
| <?php | ||
| $get_poli = fetch_array(query("SELECT a.nm_poli, b.kd_poli FROM poliklinik a, reg_periksa b WHERE a.kd_poli = b.kd_poli AND b.no_rkm_medis = '$_SESSION[username]' AND b.tgl_registrasi='$date'")); | ||
| ?> | ||
| <div class="row clearfix"> | ||
| <!-- Task Info --> | ||
| <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8"> | ||
| <div class="card"> | ||
| <div class="header"> | ||
| <h2>ANTRIAN <?php echo $get_poli['0']; ?></h2> | ||
| </div> | ||
| <div class="body"> | ||
| <table id="antrian_pasien" class="table table-bordered table-striped table-hover display nowrap dashboard-task-infos" width="100%"> | ||
| <thead> | ||
| <tr> | ||
| <th>#</th> | ||
| <th>Nama Pasien</th> | ||
| <th>Nama Dokter</th> | ||
| <th>No. Antri</th> | ||
| <th>Status</th> | ||
| </tr> | ||
| </thead> | ||
| </table> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Task Info --> | ||
| <!-- Browser Usage --> | ||
| <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"> | ||
| <div class="card"> | ||
| <div class="header bg-indigo"> | ||
| <h2>ANTRIAN ANDA</h2> | ||
| </div> | ||
| <?php | ||
| $antri=fetch_array(query(" | ||
| SELECT | ||
| a.tgl_registrasi, | ||
| a.jam_reg, | ||
| b.nm_poli, | ||
| f.nm_pasien, | ||
| c.nm_dokter, | ||
| a.no_reg, | ||
| a.stts | ||
| FROM | ||
| reg_periksa a | ||
| LEFT JOIN | ||
| poliklinik b ON a.kd_poli = b.kd_poli | ||
| LEFT JOIN | ||
| dokter c ON a.kd_dokter = c.kd_dokter | ||
| LEFT JOIN | ||
| penjab d ON a.kd_pj = d.kd_pj | ||
| LEFT JOIN | ||
| pasien f ON a.no_rkm_medis = f.no_rkm_medis | ||
| WHERE | ||
| a.tgl_registrasi='$date' | ||
| AND | ||
| a.no_rkm_medis = '$_SESSION[username]' | ||
| ")); | ||
| ?> | ||
| <div class="body align-center"> | ||
| <?php | ||
| if($antri == '') { | ||
| echo '<div class="font-20">Anda belum terdaftar dalam antrian Poliklinik</div>'; | ||
| echo '<br><a href="pendaftaran.php"><button type="button" class="btn bg-green btn-lg waves-effect">Daftar</button></a><br><br>'; | ||
| echo '<div class="font-15">Silahkan klik tombol diatas untuk mendaftar antrian On-Line</div>'; | ||
| } else { | ||
| ?> | ||
| <div class="font-20"><?php echo $antri[3]; ?></div> | ||
| <div class="font-50"><?php echo $antri[5]; ?></div> | ||
| <div class="font-15"><?php echo $antri[0]; ?></div> | ||
| <div class="font-20"><?php echo $antri[2]; ?></div> | ||
| <div class="font-20"><?php echo $antri[4]; ?></div> | ||
| <div class="font-24"><?php echo $antri[6]; ?></div> | ||
| <?php } ?> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Browser Usage --> | ||
| </div> | ||
| </div> | ||
| </section> | ||
|
|
||
| <?php include_once ('layout/footer.php'); ?> |
| @@ -0,0 +1,38 @@ | ||
| <?php include_once ('layout/header.php'); ?> | ||
|
|
||
| <section class="content"> | ||
| <div class="container-fluid"> | ||
| <div class="block-header"> | ||
| <h2>INFO KETERSEDIAAN DARAH UTD</h2> | ||
| </div> | ||
|
|
||
| <!-- Basic Examples --> | ||
| <div class="row clearfix"> | ||
| <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | ||
| <div class="card"> | ||
| <div class="header"> | ||
| <h2> | ||
| Tanggal : <?php echo $date; ?> | ||
| </h2> | ||
| </div> | ||
| <div class="body"> | ||
| <table id="informasi_darah" class="table table-bordered table-striped table-hover display nowrap" width="100%"> | ||
| <thead> | ||
| <tr> | ||
| <th>No Kantong</th> | ||
| <th>Kode Komponen</th> | ||
| <th>Golongan Darah</th> | ||
| <th>Tanggal Kadaluarsa</th> | ||
| </tr> | ||
| </thead> | ||
| </table> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Basic Examples --> | ||
|
|
||
| </div> | ||
| </section> | ||
|
|
||
| <?php include_once ('layout/footer.php'); ?> |
| @@ -0,0 +1,48 @@ | ||
| <?php include_once ('layout/header.php'); ?> | ||
|
|
||
| <section class="content"> | ||
| <div class="container-fluid"> | ||
| <div class="block-header"> | ||
| <h2>INFO KAMAR & BANGSAL</h2> | ||
| </div> | ||
|
|
||
| <!-- Basic Examples --> | ||
| <div class="row clearfix"> | ||
| <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | ||
| <div class="card"> | ||
| <div class="header"> | ||
| <h2> | ||
| Tanggal : <?php echo $date; ?> | ||
| </h2> | ||
| </div> | ||
| <div class="body"> | ||
| <table id="informasi_kamar" class="table table-bordered table-striped table-hover display nowrap" width="100%"> | ||
| <thead> | ||
| <tr> | ||
| <th>Kelas Kamar</th> | ||
| <th>Jumlah Bed</th> | ||
| <th>Bed Terisi</th> | ||
| <th>Bed Kosong</th> | ||
| </tr> | ||
| </thead> | ||
| </table> | ||
| <table id="informasi_bangsal" class="table table-bordered table-striped table-hover display nowrap" width="100%"> | ||
| <thead> | ||
| <tr> | ||
| <th>Nama Kamar</th> | ||
| <th>Jumlah Bed</th> | ||
| <th>Bed Terisi</th> | ||
| <th>Bed Kosong</th> | ||
| </tr> | ||
| </thead> | ||
| </table> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Basic Examples --> | ||
|
|
||
| </div> | ||
| </section> | ||
|
|
||
| <?php include_once ('layout/footer.php'); ?> |
| @@ -0,0 +1,38 @@ | ||
| <?php include_once ('layout/header.php'); ?> | ||
|
|
||
| <section class="content"> | ||
| <div class="container-fluid"> | ||
| <div class="block-header"> | ||
| <h2>JADWAL DOKTER</h2> | ||
| </div> | ||
|
|
||
| <!-- Basic Examples --> | ||
| <div class="row clearfix"> | ||
| <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | ||
| <div class="card"> | ||
| <div class="header"> | ||
| <h2> | ||
| Tanggal : <?php echo $date; ?> | ||
| </h2> | ||
| </div> | ||
| <div class="body"> | ||
| <table id="jadwal_dokter" class="table table-bordered table-striped table-hover display nowrap" width="100%"> | ||
| <thead> | ||
| <tr> | ||
| <th>Nama Dokter</th> | ||
| <th>Poliklinik</th> | ||
| <th>Jam Mulai</th> | ||
| <th>Jam Selesai</th> | ||
| </tr> | ||
| </thead> | ||
| </table> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Basic Examples --> | ||
|
|
||
| </div> | ||
| </section> | ||
|
|
||
| <?php include_once ('layout/footer.php'); ?> |
| @@ -0,0 +1,113 @@ | ||
| <?php | ||
|
|
||
| /*** | ||
| * e-Dokter from version 0.1 Beta | ||
| * Last modified: 02 Pebruari 2018 | ||
| * Author : drg. Faisol Basoro | ||
| * Email : drg.faisol@basoro.org | ||
| * | ||
| * File : layout/header.php | ||
| * Description : Header layout | ||
| * Licence under GPL | ||
| ***/ | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| require_once('config.php'); | ||
|
|
||
| $data=fetch_array(query("SELECT no_rkm_medis as username, no_ktp as password FROM pasien WHERE no_rkm_medis = '{$_COOKIE['username']}' AND no_ktp = '{$_COOKIE['password']}'")); | ||
|
|
||
| $user = $data[0]; | ||
| $pass = $data[1]; | ||
|
|
||
| if (!isset($_COOKIE['username']) && !isset($_COOKIE['password'])) { | ||
| redirect('login.php'); | ||
| } else if (($_COOKIE['username'] != $user) || ($_COOKIE['password'] != $pass)) { | ||
| redirect('login.php?action=logout'); | ||
| } else { | ||
| $_SESSION['username'] = $_COOKIE['username']; | ||
| } | ||
|
|
||
| ?> | ||
| <!DOCTYPE html> | ||
| <html> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> | ||
| <title><?php echo $dataSettings['nama_instansi']; ?></title> | ||
| <!-- Favicon--> | ||
| <link rel="icon" href="favicon.png" type="image/x-icon"> | ||
|
|
||
| <!-- Google Fonts --> | ||
| <link href="css/roboto.css" rel="stylesheet"> | ||
|
|
||
| <!-- Material Icon Css --> | ||
| <link href="css/material-icon.css" rel="stylesheet"> | ||
|
|
||
| <!-- Bootstrap Core Css --> | ||
| <link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet"> | ||
|
|
||
| <!-- Waves Effect Css --> | ||
| <link href="plugins/node-waves/waves.css" rel="stylesheet" /> | ||
|
|
||
| <!-- Animation Css --> | ||
| <link href="plugins/animate-css/animate.css" rel="stylesheet" /> | ||
|
|
||
| <!-- Sweet Alert Css --> | ||
| <link href="plugins/sweetalert/sweetalert.css" rel="stylesheet" /> | ||
|
|
||
| <!-- JQuery DataTable Css --> | ||
| <link href="plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css" rel="stylesheet"> | ||
| <link href="plugins/jquery-datatable/extensions/responsive/css/responsive.dataTables.min.css" rel="stylesheet"> | ||
|
|
||
| <!-- Bootstrap Material Datetime Picker Css --> | ||
| <link href="plugins/bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker.css" rel="stylesheet" /> | ||
|
|
||
| <!-- Bootstrap Select Css --> | ||
| <link href="plugins/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" /> | ||
|
|
||
| <!-- Wait Me Css --> | ||
| <link href="plugins/waitme/waitMe.css" rel="stylesheet" /> | ||
|
|
||
| <!-- Custom Css --> | ||
| <link href="css/style.css" rel="stylesheet"> | ||
|
|
||
| <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes --> | ||
| <link href="css/theme-blue.css" rel="stylesheet" /> | ||
| </head> | ||
|
|
||
| <body class="theme-blue"> | ||
| <!-- Page Loader --> | ||
| <div class="page-loader-wrapper"> | ||
| <div class="loader"> | ||
| <div class="preloader"> | ||
| <div class="spinner-layer pl-red"> | ||
| <div class="circle-clipper left"> | ||
| <div class="circle"></div> | ||
| </div> | ||
| <div class="circle-clipper right"> | ||
| <div class="circle"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <p>Memproses data ke server.....</p> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Page Loader --> | ||
| <!-- Overlay For Sidebars --> | ||
| <div class="overlay"></div> | ||
| <!-- #END# Overlay For Sidebars --> | ||
| <!-- Top Bar --> | ||
| <nav class="navbar"> | ||
| <div class="container-fluid"> | ||
| <div class="navbar-header"> | ||
| <a href="javascript:void(0);" class="bars"></a> | ||
| <a class="navbar-brand" href="index.php"><?php echo $dataSettings['nama_instansi']; ?></a> | ||
| </div> | ||
| </div> | ||
| </nav> | ||
| <!-- #Top Bar --> | ||
|
|
||
| <?php include_once ('sidebar.php'); ?> |
| @@ -0,0 +1,84 @@ | ||
|
|
||
| <section> | ||
| <!-- Left Sidebar --> | ||
| <aside id="leftsidebar" class="sidebar"> | ||
| <!-- User Info --> | ||
| <div class="user-info"> | ||
| <?php $dataGet = fetch_array(query("SELECT nm_pasien, jk FROM pasien WHERE no_rkm_medis='{$_SESSION['username']}'")); ?> | ||
| <div class="image"> | ||
| <?php | ||
| if ($dataGet['1'] == 'L') { | ||
| echo '<img src="images/pria.png" width="48" height="48" alt="User" />'; | ||
| } else if ($dataGet['1'] == 'P') { | ||
| echo '<img src="images/wanita.png" width="48" height="48" alt="User" />'; | ||
| } | ||
| ?> | ||
| </div> | ||
| <div class="info-container"> | ||
| <div class="name" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo $dataGet['0']; ?></div> | ||
| <div class="email"><?php echo $_SESSION['username']; ?></div> | ||
| <div class="btn-group user-helper-dropdown"> | ||
| <i class="material-icons" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">keyboard_arrow_down</i> | ||
| <ul class="dropdown-menu pull-right"> | ||
| <li><a href="javascript:void(0);"><i class="material-icons">person</i>Profile</a></li> | ||
| <li role="seperator" class="divider"></li> | ||
| <li><a href="login.php?action=logout"><i class="material-icons">input</i>Sign Out</a></li> | ||
| </ul> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- #User Info --> | ||
| <!-- Menu --> | ||
| <div class="menu"> | ||
| <ul class="list"> | ||
| <li class="header">MENU UTAMA</li> | ||
| <li class="active"> | ||
| <a href="index.php"> | ||
| <i class="material-icons">home</i> | ||
| <span>Beranda</span> | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a href="pendaftaran.php"> | ||
| <i class="material-icons">person_add</i> | ||
| <span>Pendaftaran</span> | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a href="riwayat-periksa.php"> | ||
| <i class="material-icons">local_pharmacy</i> | ||
| <span>Riwayat Periksa</span> | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a href="jadwal-dokter.php"> | ||
| <i class="material-icons">event_available</i> | ||
| <span>Jadwal Dokter</span> | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a href="informasi-kamar.php"> | ||
| <i class="material-icons">hotel</i> | ||
| <span>Informasi Kamar</span> | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a href="informasi-darah.php"> | ||
| <i class="material-icons">enhanced_encryption</i> | ||
| <span>Informasi Darah</span> | ||
| </a> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| <!-- #Menu --> | ||
| <!-- Footer --> | ||
| <div class="legal"> | ||
| <div class="copyright"> | ||
| © 2013 - 2018 <a href="javascript:void(0);">Team SIMRS (ICT)</a>. | ||
| </div> | ||
| </div> | ||
| <!-- #Footer --> | ||
| </aside> | ||
| <!-- #END# Left Sidebar --> | ||
| </section> | ||
|
|
| @@ -0,0 +1,208 @@ | ||
| <?php | ||
|
|
||
| /*** | ||
| * e-Dokter from version 0.1 Beta | ||
| * Last modified: 02 Pebruari 2018 | ||
| * Author : drg. Faisol Basoro | ||
| * Email : drg.faisol@basoro.org | ||
| * | ||
| * File : login.php | ||
| * Description : Login, cookie and session process | ||
| * Licence under GPL | ||
| ***/ | ||
|
|
||
| ob_start(); | ||
| session_start(); | ||
|
|
||
| require_once('config.php'); | ||
|
|
||
| if (isset($_COOKIE['username']) && isset($_COOKIE['password'])) { redirect('index.php'); } | ||
|
|
||
| ?> | ||
| <!DOCTYPE html> | ||
| <html> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> | ||
| <title><?php echo $dataSettings['nama_instansi']; ?></title> | ||
| <!-- Favicon--> | ||
| <link rel="icon" href="favicon.png" type="image/x-icon"> | ||
|
|
||
| <!-- Google Fonts --> | ||
| <link href="css/roboto.css" rel="stylesheet"> | ||
|
|
||
| <!-- Material Icon Css --> | ||
| <link href="css/material-icon.css" rel="stylesheet"> | ||
|
|
||
| <!-- Bootstrap Core Css --> | ||
| <link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet"> | ||
|
|
||
| <!-- Waves Effect Css --> | ||
| <link href="plugins/node-waves/waves.css" rel="stylesheet" /> | ||
|
|
||
| <!-- Animation Css --> | ||
| <link href="plugins/animate-css/animate.css" rel="stylesheet" /> | ||
|
|
||
| <!-- Custom Css --> | ||
| <link href="css/style.css" rel="stylesheet"> | ||
|
|
||
| <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes --> | ||
| <link href="css/theme-blue.css" rel="stylesheet" /> | ||
| </head> | ||
|
|
||
| <body class="login-page"> | ||
| <!-- Page Loader --> | ||
| <div class="page-loader-wrapper"> | ||
| <div class="loader"> | ||
| <div class="preloader"> | ||
| <div class="spinner-layer pl-red"> | ||
| <div class="circle-clipper left"> | ||
| <div class="circle"></div> | ||
| </div> | ||
| <div class="circle-clipper right"> | ||
| <div class="circle"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <p>Memproses data ke server.....</p> | ||
| </div> | ||
| </div> | ||
| <!-- #END# Page Loader --> | ||
| <div class="login-box" style="margin: 20px;"> | ||
| <div class="logo"> | ||
| <a href="index.php"><?php echo $dataSettings['nama_instansi']; ?></a> | ||
| <small><?php echo $dataSettings['alamat_instansi']; ?> - <?php echo $dataSettings['kabupaten']; ?></small> | ||
| </div> | ||
|
|
||
| <?php if(!isset($_GET['action'])){ | ||
|
|
||
| if($_SERVER['REQUEST_METHOD'] == "POST") { | ||
|
|
||
| if (empty ($_POST['username']) || empty ($_POST['password'])) { | ||
| $errors[] = 'Username or password empty'; | ||
| } | ||
|
|
||
| if ($_POST['username'] !=="" || $_POST['password'] !=="") { | ||
|
|
||
| $sql = "SELECT no_rkm_medis as username, no_ktp as password FROM pasien WHERE no_rkm_medis = '{$_POST['username']}'"; | ||
| $found = query($sql); | ||
|
|
||
| if(num_rows($found) !== 1) { | ||
| $errors[] = 'Pasien tidak terdaftar.'; | ||
| } | ||
|
|
||
| if(num_rows($found) == 1) { | ||
| $user = fetch_assoc($found); | ||
| if($user['password'] !== $_POST['password']) { | ||
| $errors[] = 'NIK tidak valid.'; | ||
| } | ||
| } | ||
|
|
||
| } | ||
|
|
||
| if(!empty($errors)) { | ||
|
|
||
| foreach($errors as $error) { | ||
| echo validation_errors($error); | ||
| } | ||
|
|
||
| } else { | ||
|
|
||
| if (isset($_POST['remember'])) { | ||
| /* Set cookie to last 1 year */ | ||
| setcookie('username', $_POST['username'], time()+60*60*24*365); | ||
| setcookie('password', $_POST['password'], time()+60*60*24*365); | ||
|
|
||
| } else { | ||
| /* Cookie expires when browser closes */ | ||
| setcookie('username', $_POST['username'], false); | ||
| setcookie('password', $_POST['password'], false); | ||
| } | ||
|
|
||
| redirect('index.php'); | ||
|
|
||
| } | ||
|
|
||
| } | ||
| ?> | ||
|
|
||
| <div class="card"> | ||
|
|
||
| <div class="body"> | ||
| <form id="sign_in" method="POST"> | ||
| <div class="msg">Silahkan login dulu untuk memulai</div> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"> | ||
| <i class="material-icons">person</i> | ||
| </span> | ||
| <div class="form-line"> | ||
| <input type="text" class="form-control" name="username" placeholder="Nomor Rekam Medik" required autofocus> | ||
| </div> | ||
| </div> | ||
| <div class="input-group"> | ||
| <span class="input-group-addon"> | ||
| <i class="material-icons">lock</i> | ||
| </span> | ||
| <div class="form-line"> | ||
| <input type="password" class="form-control" name="password" placeholder="Nomor Induk Kependudukan" required> | ||
| </div> | ||
| </div> | ||
| <div class="row"> | ||
| <div class="col-xs-8 p-t-5"> | ||
| <input type="checkbox" name="remember" id="remember" class="filled-in chk-col-pink"> | ||
| <label for="remember">Remember</label> | ||
| </div> | ||
| <div class="col-xs-4"> | ||
| <button class="btn btn-block bg-pink waves-effect" type="submit">SIGN IN</button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <?php if(SIGNUP == 'ENABLE') { ?> | ||
| <div class="m-t-25 m-b--5 align-center"> | ||
| <a href="signup.php">Belum terdaftar sebagai pasien?</a> | ||
| </div> | ||
| <?php } ?> | ||
| </form> | ||
| </div> | ||
|
|
||
| <?php } ?> | ||
|
|
||
| <?php | ||
| //logout | ||
| if(isset($_GET['action']) == "logout"){ | ||
|
|
||
| setcookie('username', '', time()-60*60*24*365); | ||
| setcookie('password', '', time()-60*60*24*365); | ||
|
|
||
| unset($_SESSION['username']); | ||
| unset($_SESSION['level']); | ||
| unset($_SESSION['jenis_poli']); | ||
| $_SESSION = array(); | ||
| session_destroy(); | ||
|
|
||
| redirect('login.php'); | ||
|
|
||
| } | ||
| ?> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Jquery Core Js --> | ||
| <script src="plugins/jquery/jquery.min.js"></script> | ||
|
|
||
| <!-- Bootstrap Core Js --> | ||
| <script src="plugins/bootstrap/js/bootstrap.js"></script> | ||
|
|
||
| <!-- Waves Effect Plugin Js --> | ||
| <script src="plugins/node-waves/waves.js"></script> | ||
|
|
||
| <!-- Validation Plugin Js --> | ||
| <script src="plugins/jquery-validation/jquery.validate.js"></script> | ||
|
|
||
| <!-- Custom Js --> | ||
| <script src="js/admin.js"></script> | ||
| <script src="js/pages/examples/sign-in.js"></script> | ||
| </body> | ||
|
|
||
| </html> |
| @@ -0,0 +1,262 @@ | ||
| /*! | ||
| Autosize 3.0.17 | ||
| license: MIT | ||
| http://www.jacklmoore.com/autosize | ||
| */ | ||
| (function (global, factory) { | ||
| if (typeof define === 'function' && define.amd) { | ||
| define(['exports', 'module'], factory); | ||
| } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { | ||
| factory(exports, module); | ||
| } else { | ||
| var mod = { | ||
| exports: {} | ||
| }; | ||
| factory(mod.exports, mod); | ||
| global.autosize = mod.exports; | ||
| } | ||
| })(this, function (exports, module) { | ||
| 'use strict'; | ||
|
|
||
| var set = typeof Set === 'function' ? new Set() : (function () { | ||
| var list = []; | ||
|
|
||
| return { | ||
| has: function has(key) { | ||
| return Boolean(list.indexOf(key) > -1); | ||
| }, | ||
| add: function add(key) { | ||
| list.push(key); | ||
| }, | ||
| 'delete': function _delete(key) { | ||
| list.splice(list.indexOf(key), 1); | ||
| } }; | ||
| })(); | ||
|
|
||
| var createEvent = function createEvent(name) { | ||
| return new Event(name); | ||
| }; | ||
| try { | ||
| new Event('test'); | ||
| } catch (e) { | ||
| // IE does not support `new Event()` | ||
| createEvent = function (name) { | ||
| var evt = document.createEvent('Event'); | ||
| evt.initEvent(name, true, false); | ||
| return evt; | ||
| }; | ||
| } | ||
|
|
||
| function assign(ta) { | ||
| if (!ta || !ta.nodeName || ta.nodeName !== 'TEXTAREA' || set.has(ta)) return; | ||
|
|
||
| var heightOffset = null; | ||
| var clientWidth = ta.clientWidth; | ||
| var cachedHeight = null; | ||
|
|
||
| function init() { | ||
| var style = window.getComputedStyle(ta, null); | ||
|
|
||
| if (style.resize === 'vertical') { | ||
| ta.style.resize = 'none'; | ||
| } else if (style.resize === 'both') { | ||
| ta.style.resize = 'horizontal'; | ||
| } | ||
|
|
||
| if (style.boxSizing === 'content-box') { | ||
| heightOffset = -(parseFloat(style.paddingTop) + parseFloat(style.paddingBottom)); | ||
| } else { | ||
| heightOffset = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth); | ||
| } | ||
| // Fix when a textarea is not on document body and heightOffset is Not a Number | ||
| if (isNaN(heightOffset)) { | ||
| heightOffset = 0; | ||
| } | ||
|
|
||
| update(); | ||
| } | ||
|
|
||
| function changeOverflow(value) { | ||
| { | ||
| // Chrome/Safari-specific fix: | ||
| // When the textarea y-overflow is hidden, Chrome/Safari do not reflow the text to account for the space | ||
| // made available by removing the scrollbar. The following forces the necessary text reflow. | ||
| var width = ta.style.width; | ||
| ta.style.width = '0px'; | ||
| // Force reflow: | ||
| /* jshint ignore:start */ | ||
| ta.offsetWidth; | ||
| /* jshint ignore:end */ | ||
| ta.style.width = width; | ||
| } | ||
|
|
||
| ta.style.overflowY = value; | ||
|
|
||
| resize(); | ||
| } | ||
|
|
||
| function getParentOverflows(el) { | ||
| var arr = []; | ||
|
|
||
| while (el && el.parentNode && el.parentNode instanceof Element) { | ||
| if (el.parentNode.scrollTop) { | ||
| arr.push({ | ||
| node: el.parentNode, | ||
| scrollTop: el.parentNode.scrollTop }); | ||
| } | ||
| el = el.parentNode; | ||
| } | ||
|
|
||
| return arr; | ||
| } | ||
|
|
||
| function resize() { | ||
| var originalHeight = ta.style.height; | ||
| var overflows = getParentOverflows(ta); | ||
| var docTop = document.documentElement && document.documentElement.scrollTop; // Needed for Mobile IE (ticket #240) | ||
|
|
||
| ta.style.height = 'auto'; | ||
|
|
||
| var endHeight = ta.scrollHeight + heightOffset; | ||
|
|
||
| if (ta.scrollHeight === 0) { | ||
| // If the scrollHeight is 0, then the element probably has display:none or is detached from the DOM. | ||
| ta.style.height = originalHeight; | ||
| return; | ||
| } | ||
|
|
||
| ta.style.height = endHeight + 'px'; | ||
|
|
||
| // used to check if an update is actually necessary on window.resize | ||
| clientWidth = ta.clientWidth; | ||
|
|
||
| // prevents scroll-position jumping | ||
| overflows.forEach(function (el) { | ||
| el.node.scrollTop = el.scrollTop; | ||
| }); | ||
|
|
||
| if (docTop) { | ||
| document.documentElement.scrollTop = docTop; | ||
| } | ||
| } | ||
|
|
||
| function update() { | ||
| resize(); | ||
|
|
||
| var computed = window.getComputedStyle(ta, null); | ||
| var computedHeight = Math.round(parseFloat(computed.height)); | ||
| var styleHeight = Math.round(parseFloat(ta.style.height)); | ||
|
|
||
| // The computed height not matching the height set via resize indicates that | ||
| // the max-height has been exceeded, in which case the overflow should be set to visible. | ||
| if (computedHeight !== styleHeight) { | ||
| if (computed.overflowY !== 'visible') { | ||
| changeOverflow('visible'); | ||
| } | ||
| } else { | ||
| // Normally keep overflow set to hidden, to avoid flash of scrollbar as the textarea expands. | ||
| if (computed.overflowY !== 'hidden') { | ||
| changeOverflow('hidden'); | ||
| } | ||
| } | ||
|
|
||
| if (cachedHeight !== computedHeight) { | ||
| cachedHeight = computedHeight; | ||
| var evt = createEvent('autosize:resized'); | ||
| ta.dispatchEvent(evt); | ||
| } | ||
| } | ||
|
|
||
| var pageResize = function pageResize() { | ||
| if (ta.clientWidth !== clientWidth) { | ||
| update(); | ||
| } | ||
| }; | ||
|
|
||
| var destroy = (function (style) { | ||
| window.removeEventListener('resize', pageResize, false); | ||
| ta.removeEventListener('input', update, false); | ||
| ta.removeEventListener('keyup', update, false); | ||
| ta.removeEventListener('autosize:destroy', destroy, false); | ||
| ta.removeEventListener('autosize:update', update, false); | ||
| set['delete'](ta); | ||
|
|
||
| Object.keys(style).forEach(function (key) { | ||
| ta.style[key] = style[key]; | ||
| }); | ||
| }).bind(ta, { | ||
| height: ta.style.height, | ||
| resize: ta.style.resize, | ||
| overflowY: ta.style.overflowY, | ||
| overflowX: ta.style.overflowX, | ||
| wordWrap: ta.style.wordWrap }); | ||
|
|
||
| ta.addEventListener('autosize:destroy', destroy, false); | ||
|
|
||
| // IE9 does not fire onpropertychange or oninput for deletions, | ||
| // so binding to onkeyup to catch most of those events. | ||
| // There is no way that I know of to detect something like 'cut' in IE9. | ||
| if ('onpropertychange' in ta && 'oninput' in ta) { | ||
| ta.addEventListener('keyup', update, false); | ||
| } | ||
|
|
||
| window.addEventListener('resize', pageResize, false); | ||
| ta.addEventListener('input', update, false); | ||
| ta.addEventListener('autosize:update', update, false); | ||
| set.add(ta); | ||
| ta.style.overflowX = 'hidden'; | ||
| ta.style.wordWrap = 'break-word'; | ||
|
|
||
| init(); | ||
| } | ||
|
|
||
| function destroy(ta) { | ||
| if (!(ta && ta.nodeName && ta.nodeName === 'TEXTAREA')) return; | ||
| var evt = createEvent('autosize:destroy'); | ||
| ta.dispatchEvent(evt); | ||
| } | ||
|
|
||
| function update(ta) { | ||
| if (!(ta && ta.nodeName && ta.nodeName === 'TEXTAREA')) return; | ||
| var evt = createEvent('autosize:update'); | ||
| ta.dispatchEvent(evt); | ||
| } | ||
|
|
||
| var autosize = null; | ||
|
|
||
| // Do nothing in Node.js environment and IE8 (or lower) | ||
| if (typeof window === 'undefined' || typeof window.getComputedStyle !== 'function') { | ||
| autosize = function (el) { | ||
| return el; | ||
| }; | ||
| autosize.destroy = function (el) { | ||
| return el; | ||
| }; | ||
| autosize.update = function (el) { | ||
| return el; | ||
| }; | ||
| } else { | ||
| autosize = function (el, options) { | ||
| if (el) { | ||
| Array.prototype.forEach.call(el.length ? el : [el], function (x) { | ||
| return assign(x, options); | ||
| }); | ||
| } | ||
| return el; | ||
| }; | ||
| autosize.destroy = function (el) { | ||
| if (el) { | ||
| Array.prototype.forEach.call(el.length ? el : [el], destroy); | ||
| } | ||
| return el; | ||
| }; | ||
| autosize.update = function (el) { | ||
| if (el) { | ||
| Array.prototype.forEach.call(el.length ? el : [el], update); | ||
| } | ||
| return el; | ||
| }; | ||
| } | ||
|
|
||
| module.exports = autosize; | ||
| }); |
| @@ -0,0 +1,49 @@ | ||
| .dtp { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); z-index: 2000; font-size: 15px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } | ||
| .dtp > .dtp-content { background: #fff; max-width: 300px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12); max-height: 520px; position: relative; left: 50%; } | ||
| .dtp > .dtp-content > .dtp-date-view > header.dtp-header { background: #689F38; color: #fff; text-align: center; padding: 0.3em; } | ||
|
|
||
| .dtp div.dtp-date, .dtp div.dtp-time { background: #8BC34A; text-align: center; color: #fff; padding: 10px; } | ||
| .dtp div.dtp-date > div { padding: 0; margin: 0; } | ||
| .dtp div.dtp-actual-month { font-size: 1.5em; } | ||
| .dtp div.dtp-actual-num { font-size: 3em; line-height: 0.9; } | ||
| .dtp div.dtp-actual-maxtime { font-size: 3em; line-height: 0.9; } | ||
| .dtp div.dtp-actual-year { font-size: 1.5em; color: #DCEDC8; } | ||
| .dtp div.dtp-picker { padding: 1em; text-align: center; } | ||
|
|
||
| .dtp div.dtp-picker-month, .dtp div.dtp-actual-time { font-weight: 500; text-align: center; } | ||
| .dtp div.dtp-picker-month { padding-bottom:20px!important; text-transform: uppercase!important; } | ||
|
|
||
| .dtp .dtp-close { position: absolute; top: 0.5em; right: 1em; } | ||
| .dtp .dtp-close > a { color: #fff; } | ||
| .dtp .dtp-close > a > i { font-size: 1em; } | ||
|
|
||
| .dtp table.dtp-picker-days { margin: 0; min-height: 251px;} | ||
| .dtp table.dtp-picker-days, .dtp table.dtp-picker-days tr, .dtp table.dtp-picker-days tr > td { border: none; } | ||
| .dtp table.dtp-picker-days tr > td { font-weight: 700; font-size: 0.8em; text-align: center; padding: 0.5em 0.3em; } | ||
| .dtp table.dtp-picker-days tr > td > span.dtp-select-day { color: #BDBDBD!important; } | ||
| .dtp table.dtp-picker-days tr > td > a, .dtp .dtp-picker-time > a { color: #212121; text-decoration: none; padding: 0.4em 0.5em 0.5em 0.6em; border-radius: 50%!important; } | ||
| .dtp table.dtp-picker-days tr > td > a.selected{ background: #8BC34A; color: #fff; } | ||
| .dtp table.dtp-picker-days tr > th { color: #757575; text-align: center; font-weight: 700; padding: 0.4em 0.3em; } | ||
|
|
||
| .dtp .p10 > a { color: #689F38; text-decoration: none; } | ||
| .dtp .p10 { width: 10%; display: inline-block; } | ||
| .dtp .p20 { width: 20%; display: inline-block; } | ||
| .dtp .p60 { width: 60%; display: inline-block; } | ||
| .dtp .p80 { width: 80%; display: inline-block; } | ||
|
|
||
| .dtp a.dtp-meridien-am, .dtp a.dtp-meridien-pm { position: relative; top: 10px; color: #212121; font-weight: 500; padding: 0.7em 0.5em; border-radius: 50%!important;text-decoration: none; background: #eee; font-size:1em; } | ||
| .dtp .dtp-actual-meridien a.selected { background: #689F38; color: #fff; } | ||
|
|
||
| .dtp .dtp-picker-time > .dtp-select-hour { cursor: pointer; } | ||
| .dtp .dtp-picker-time > .dtp-select-minute { cursor: pointer; } | ||
|
|
||
| .dtp .dtp-buttons { padding: 0 1em 1em 1em; text-align: right; } | ||
|
|
||
| .dtp.hidden, .dtp .hidden { display: none; } | ||
| .dtp .invisible { visibility: hidden; } | ||
|
|
||
| .dtp .left { float: left; } | ||
| .dtp .right { float: right; } | ||
| .dtp .clearfix { clear: both; } | ||
|
|
||
| .dtp .center { text-align: center; } |