@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
|
|
| 37 | + xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
|
|
| 38 | 38 | |
| 39 | 39 | xmlhttp.send(); |
| 40 | 40 | |
@@ -54,28 +54,28 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | <?php |
| 57 | -switch($_GET[act]){
|
|
| 57 | +switch ($_GET[act]) {
|
|
| 58 | 58 | |
| 59 | 59 | default: |
| 60 | 60 | |
| 61 | 61 | $fdate = date("Y-m-01");
|
| 62 | 62 | $ldate = date("Y-m-d");
|
| 63 | 63 | |
| 64 | -$prd = date("Y-m");
|
|
| 64 | +$prd = date("Y-m");
|
|
| 65 | 65 | |
| 66 | -$userid = $_SESSION['userid']; |
|
| 66 | +$userid = $_SESSION['userid']; |
|
| 67 | 67 | ?> |
| 68 | 68 | |
| 69 | 69 | <div class=""> |
| 70 | 70 | |
| 71 | 71 | <div class="row"> |
| 72 | 72 | |
| 73 | - <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
| 73 | + <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
| 74 | 74 | |
| 75 | 75 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 76 | 76 | <div class="x_panel"> |
| 77 | 77 | <div class="x_title"> |
| 78 | - <h2><?=$nmmodule;?></h2> |
|
| 78 | + <h2><?=$nmmodule; ?></h2> |
|
| 79 | 79 | <div class='pull-right'> |
| 80 | 80 | <Button type="submit" class="btn btn-primary"> |
| 81 | 81 | <span class="glyphicon glyphicon-print" style='color:#fff;'></span> |
@@ -123,8 +123,8 @@ discard block |
||
| 123 | 123 | <? |
| 124 | 124 | |
| 125 | 125 | $module = '?module='.$_GET['module']; |
| 126 | - $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 127 | - $r=mysql_fetch_array($tampil); |
|
| 126 | + $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 127 | + $r = mysql_fetch_array($tampil); |
|
| 128 | 128 | |
| 129 | 129 | echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
| 130 | 130 | echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | </form> |
| 133 | 133 | |
| 134 | 134 | </div> |
| 135 | - <?for($i = 0; $i <= 20; $i++) {
|
|
| 135 | + <?for ($i = 0; $i<=20; $i++) {
|
|
| 136 | 136 | ?> |
| 137 | 137 | <br /> |
| 138 | 138 | <? |
@@ -1,23 +1,23 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | session_start(); |
| 3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
|
|
| 3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) {
|
|
| 4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
|
| 5 | -} else{
|
|
| 5 | +} else {
|
|
| 6 | 6 | include "./../../config/koneksi.php"; |
| 7 | 7 | include "./../../config/fungsi_thumb.php"; |
| 8 | 8 | |
| 9 | -$module=$_GET[module]; |
|
| 10 | -$act=$_GET[act]; |
|
| 9 | +$module = $_GET[module]; |
|
| 10 | +$act = $_GET[act]; |
|
| 11 | 11 | |
| 12 | 12 | $date = date("d/m/Y");
|
| 13 | 13 | $idate = date("Y-m-d");
|
| 14 | 14 | $hour = time() - (1 * 1 * 60 * 60); |
| 15 | -$datetime = date("Y-m-d G:i:s", $hour);
|
|
| 15 | +$datetime = date("Y-m-d G:i:s", $hour);
|
|
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | $business_type = $_SESSION['business_type']; |
| 18 | 18 | |
| 19 | 19 | // Hapus modul |
| 20 | -if ($module=='groupmodul' AND $act=='hapus'){
|
|
| 20 | +if ($module=='groupmodul' AND $act=='hapus') {
|
|
| 21 | 21 | $id = $_GET['id']; |
| 22 | 22 | |
| 23 | 23 | mysql_query("DELETE FROM ".$module." WHERE id_".$module." = $id");
|
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | // Input groupmodul |
| 32 | -elseif ($module=='groupmodul' AND $act=='input'){
|
|
| 32 | +elseif ($module=='groupmodul' AND $act=='input') {
|
|
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | $jum = $_POST['jum']; |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | ,'Y')"); |
| 53 | 53 | |
| 54 | 54 | |
| 55 | - for($i = 1; $i <= $jum; $i++) {
|
|
| 55 | + for ($i = 1; $i<=$jum; $i++) {
|
|
| 56 | 56 | |
| 57 | 57 | $id = $_POST['id'.$i]; |
| 58 | 58 | $modul = $_POST['modul'.$i]; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ?> |
| 86 | 86 | |
| 87 | 87 | <script language="javascript"> |
| 88 | - window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
|
| 88 | + window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
|
| 89 | 89 | window.parent.tb_remove(); |
| 90 | 90 | </script> |
| 91 | 91 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | |
| 2 | 2 | <?php |
| 3 | -switch($_GET[act]){
|
|
| 3 | +switch ($_GET[act]) {
|
|
| 4 | 4 | |
| 5 | 5 | default: |
| 6 | 6 | ?> |
@@ -12,8 +12,8 @@ discard block |
||
| 12 | 12 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 13 | 13 | <div class="x_panel"> |
| 14 | 14 | <div class="x_title"> |
| 15 | - <h2><?php echo $nmmodule;?></h2> |
|
| 16 | - <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true";?>' title='New <?php echo $nmmodule;?>' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> New</a></p> |
|
| 15 | + <h2><?php echo $nmmodule; ?></h2> |
|
| 16 | + <p class="pull-right"><a href='<?php echo"modul/mod_$module/form_$module.php?width=720&height=560&module=$module&id_module=$id_module&TB_iframe=true"; ?>' title='New <?php echo $nmmodule; ?>' class='thickbox btn btn-sm btn-success'><i class="fa fa-plus"></i> New</a></p> |
|
| 17 | 17 | <div class="clearfix"></div> |
| 18 | 18 | </div> |
| 19 | 19 | <div class="x_content"> |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | <tbody> |
| 44 | 44 | <? |
| 45 | 45 | |
| 46 | - $tampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 46 | + $tampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 47 | 47 | ON a.id_groups = b.id_groups |
| 48 | 48 | INNER JOIN modul c |
| 49 | 49 | ON a.id_modul = c.id_modul |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | $no = 1; |
| 55 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 55 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | echo"<tr>"; |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | echo"<td><b>$r[nama_modul]</b></td>"; |
| 61 | 61 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 62 | 62 | echo" <td style='text-align:center;'>"; |
| 63 | - if($r_edit == 'Y') {
|
|
| 63 | + if ($r_edit=='Y') {
|
|
| 64 | 64 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_groupmodul=$r[id_groupmodul]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - if($r_delete == 'Y') {
|
|
| 67 | + if ($r_delete=='Y') {
|
|
| 68 | 68 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_groupmodul]&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 69 | 69 | } |
| 70 | 70 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | echo"</tr>"; |
| 73 | 73 | |
| 74 | 74 | |
| 75 | - $dtampil=mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 75 | + $dtampil = mysql_query("SELECT a.*,b.groups,c.nama_modul,c.status_menu FROM groupmodul a INNER JOIN groups b
|
|
| 76 | 76 | ON a.id_groups = b.id_groups |
| 77 | 77 | INNER JOIN modul c |
| 78 | 78 | ON a.id_modul = c.id_modul |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | ORDER BY a.id_groupmodul"); |
| 83 | 83 | |
| 84 | 84 | |
| 85 | - while ($d=mysql_fetch_array($dtampil)){
|
|
| 85 | + while ($d = mysql_fetch_array($dtampil)) {
|
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | echo"<tr>"; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | echo"<td style='text-align:center;'>$d[aktif]</td>"; |
| 93 | 93 | echo"<td style='text-align:right;'>"; |
| 94 | - if($r_delete == 'Y') {
|
|
| 94 | + if ($r_delete=='Y') {
|
|
| 95 | 95 | echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$d[id_groupmodul]&id_module=$id' onClick=\"return confirm('Delete this record ?')\"><span class='icon'><i class='fa fa-trash'></i></span></a>";
|
| 96 | 96 | |
| 97 | 97 | } |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <? |
| 2 | 2 | session_start(); |
| 3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
|
|
| 3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) {
|
|
| 4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
|
| 5 | -} else{
|
|
| 5 | +} else {
|
|
| 6 | 6 | include "./../../config/koneksi.php"; |
| 7 | 7 | ?> |
| 8 | 8 | <!doctype html> |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | $id = $_GET['id_groupmodul']; // isset($_GET['id_groupmodul']) ? intval($_GET['id_groupmodul']) : false; |
| 44 | 44 | |
| 45 | - if($id){
|
|
| 45 | + if ($id) {
|
|
| 46 | 46 | $query = mysql_query('SELECT * FROM groupmodul WHERE id_groupmodul = "'.$id.'"');
|
| 47 | - if($query && mysql_num_rows($query) == 1){
|
|
| 47 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 48 | 48 | $data = mysql_fetch_object($query); |
| 49 | - }else |
|
| 49 | + } else |
|
| 50 | 50 | die('Data groupmodul tidak ditemukan');
|
| 51 | 51 | } |
| 52 | 52 | |
@@ -79,10 +79,10 @@ discard block |
||
| 79 | 79 | <select name="igroup" class="form-control" autofocus > |
| 80 | 80 | <? |
| 81 | 81 | $query = mysql_query('SELECT * FROM groups ORDER BY groups');
|
| 82 | - if($query && mysql_num_rows($query) > 0){
|
|
| 83 | - while($row = mysql_fetch_object($query)){
|
|
| 82 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 83 | + while ($row = mysql_fetch_object($query)) {
|
|
| 84 | 84 | echo '<option value="'.$row->id_groups.'"'; |
| 85 | - if($row->id_groups == @$data->id_groups) echo ' selected'; |
|
| 85 | + if ($row->id_groups==@$data->id_groups) echo ' selected'; |
|
| 86 | 86 | echo '>'.$row->groups.'</option>'; |
| 87 | 87 | } |
| 88 | 88 | } |
@@ -95,14 +95,14 @@ discard block |
||
| 95 | 95 | <div class="form-group"> |
| 96 | 96 | <label class="control-label col-md-3 col-sm-3 col-xs-12" style='padding-top:10px;'>Groups :</label> |
| 97 | 97 | <div class="col-md-6 col-sm-6 col-xs-12" > |
| 98 | - <select name="imenu" class="form-control" required onChange="document.myform.submit();" <?php if($id) { ?> disabled <?php } ?>>
|
|
| 98 | + <select name="imenu" class="form-control" required onChange="document.myform.submit();" <?php if ($id) { ?> disabled <?php } ?>>
|
|
| 99 | 99 | <option value=''></option> |
| 100 | 100 | <? |
| 101 | 101 | $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'M' AND aktif = 'Y' ORDER BY urutan ASC");
|
| 102 | - if($query && mysql_num_rows($query) > 0){
|
|
| 103 | - while($row = mysql_fetch_object($query)){
|
|
| 102 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 103 | + while ($row = mysql_fetch_object($query)) {
|
|
| 104 | 104 | echo '<option value="'.$row->id_modul.'"'; |
| 105 | - if($imenu == $row->id_modul) echo ' selected'; |
|
| 105 | + if ($imenu==$row->id_modul) echo ' selected'; |
|
| 106 | 106 | echo '>'.$row->nama_modul.'</option>'; |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | <?php |
| 132 | 132 | //echo"<div id='iframe'>"; |
| 133 | - if($id){
|
|
| 133 | + if ($id) {
|
|
| 134 | 134 | $query = mysql_query("SELECT DISTINCT a.*
|
| 135 | 135 | ,CASE WHEN ifnull(b.id_groupmodul,0) = '0' THEN 0 ELSE 1 END as flag |
| 136 | 136 | FROM modul a left join groupmodul b |
@@ -139,14 +139,14 @@ discard block |
||
| 139 | 139 | WHERE a.status_menu = 'C' AND a.aktif = 'Y' AND a.parentid = '$imenu' |
| 140 | 140 | ORDER BY a.urutan ASC"); |
| 141 | 141 | |
| 142 | - if($query && mysql_num_rows($query) > 0){
|
|
| 142 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 143 | 143 | $no = 1; |
| 144 | - while($row = mysql_fetch_object($query)){
|
|
| 144 | + while ($row = mysql_fetch_object($query)) {
|
|
| 145 | 145 | |
| 146 | 146 | $status = $row->status_menu; |
| 147 | 147 | |
| 148 | 148 | |
| 149 | - if ($row->flag == '1') {
|
|
| 149 | + if ($row->flag=='1') {
|
|
| 150 | 150 | echo"<input checked type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
| 151 | 151 | } else {
|
| 152 | 152 | echo"<input type='checkbox' value='id".$no."' name='id".$no."' style='width:12px;'>"; |
@@ -163,9 +163,9 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | $query = mysql_query("SELECT * FROM modul WHERE status_menu = 'C' AND aktif = 'Y' AND parentid= '$imenu' ORDER BY urutan ASC");
|
| 165 | 165 | |
| 166 | - if($query && mysql_num_rows($query) > 0){
|
|
| 166 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 167 | 167 | $no = 1; |
| 168 | - while($row = mysql_fetch_object($query)){
|
|
| 168 | + while ($row = mysql_fetch_object($query)) {
|
|
| 169 | 169 | $status = $row->status_menu; |
| 170 | 170 | |
| 171 | 171 | |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | |
| 189 | 189 | <div class="form-group"> |
| 190 | 190 | <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" style='margin-top:20px;'> |
| 191 | - <input type='hidden' name='jum' value="<?php echo $no-1?>" /> |
|
| 191 | + <input type='hidden' name='jum' value="<?php echo $no - 1?>" /> |
|
| 192 | 192 | <input type="hidden" name="groups" value="<?php echo $group?>" /> |
| 193 | 193 | <input type="hidden" name="imenu" value="<?php echo $imenu?>" /> |
| 194 | 194 | <input type="hidden" name="ID" value="<?php echo @$data->id_groupmodul?>" /> |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -switch($_GET[act]){
|
|
| 2 | +switch ($_GET[act]) {
|
|
| 3 | 3 | |
| 4 | 4 | default: |
| 5 | 5 | ?> |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 12 | 12 | <div class="x_panel"> |
| 13 | 13 | <div class="x_title"> |
| 14 | - <h2><?php echo $nmmodule;?></h2> |
|
| 14 | + <h2><?php echo $nmmodule; ?></h2> |
|
| 15 | 15 | <div class="clearfix"></div> |
| 16 | 16 | </div> |
| 17 | 17 | <div class="x_content"> |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | <? |
| 48 | 48 | |
| 49 | - $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 49 | + $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 50 | 50 | ,e.rujukan as rujukan_rs |
| 51 | 51 | ,f.rujukan as rujukan_lab |
| 52 | 52 | FROM kunjungan_berobat a left join pasien b |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $no = 1; |
| 66 | 66 | |
| 67 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 67 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 68 | 68 | |
| 69 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 70 | - $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 69 | + $tgl = DATE('d/m/Y', strtotime($r[tanggal]));
|
|
| 70 | + $tgl_lahir = DATE('d/m/Y', strtotime($r[tgl_lahir]));
|
|
| 71 | 71 | |
| 72 | 72 | echo"<tr>"; |
| 73 | 73 | echo"<td>$tgl</td>"; |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | echo"<td>$r[rujukan_lab]</td>"; |
| 80 | 80 | echo" <td style='text-align:center;'>"; |
| 81 | 81 | |
| 82 | - if($r_edit == 'Y') {
|
|
| 82 | + if ($r_edit=='Y') {
|
|
| 83 | 83 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=560&module=$module&TB_iframe=true' title='Update $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>"; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <? |
| 2 | 2 | session_start(); |
| 3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
|
|
| 3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) {
|
|
| 4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
|
| 5 | -} else{
|
|
| 5 | +} else {
|
|
| 6 | 6 | include "./../../config/koneksi.php"; |
| 7 | 7 | ?> |
| 8 | 8 | <!doctype html> |
@@ -37,17 +37,17 @@ discard block |
||
| 37 | 37 | $modul = $_GET['module']; |
| 38 | 38 | $title = $_GET['title']; |
| 39 | 39 | $business_type = $_SESSION['business_type']; |
| 40 | -$role = $_SESSION['role']; |
|
| 40 | +$role = $_SESSION['role']; |
|
| 41 | 41 | |
| 42 | 42 | $id_module = $_GET['id_module']; |
| 43 | 43 | |
| 44 | 44 | $id = isset($_GET['id_kunjungan_berobat']) ? intval($_GET['id_kunjungan_berobat']) : false; |
| 45 | 45 | |
| 46 | - if($id){
|
|
| 46 | + if ($id) {
|
|
| 47 | 47 | $query = mysql_query('SELECT * FROM kunjungan_berobat WHERE id_kunjungan_berobat = "'.$id.'"');
|
| 48 | - if($query && mysql_num_rows($query) == 1){
|
|
| 48 | + if ($query && mysql_num_rows($query)==1) {
|
|
| 49 | 49 | $data = mysql_fetch_object($query); |
| 50 | - }else |
|
| 50 | + } else |
|
| 51 | 51 | die('Data modul tidak ditemukan');
|
| 52 | 52 | } |
| 53 | 53 | |
@@ -97,13 +97,13 @@ discard block |
||
| 97 | 97 | <option>--Pilih Pasien--</option> |
| 98 | 98 | <? |
| 99 | 99 | $query = mysql_query('SELECT * FROM pasien ORDER BY nama');
|
| 100 | - if($query && mysql_num_rows($query) > 0){
|
|
| 101 | - while($row = mysql_fetch_object($query)){
|
|
| 100 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 101 | + while ($row = mysql_fetch_object($query)) {
|
|
| 102 | 102 | |
| 103 | 103 | $pasien = $row->ktp.'-'.$row->nama; |
| 104 | 104 | |
| 105 | 105 | echo '<option value="'.$row->id_pasien.'"'; |
| 106 | - if($row->id_pasien == @$data->id_pasien) echo ' selected'; |
|
| 106 | + if ($row->id_pasien==@$data->id_pasien) echo ' selected'; |
|
| 107 | 107 | echo '>'.$pasien.'</option>'; |
| 108 | 108 | } |
| 109 | 109 | } |
@@ -118,10 +118,10 @@ discard block |
||
| 118 | 118 | <option>--Pilih Poliklinik --</option> |
| 119 | 119 | <? |
| 120 | 120 | $query = mysql_query('SELECT * FROM poli ORDER BY poli');
|
| 121 | - if($query && mysql_num_rows($query) > 0){
|
|
| 122 | - while($row = mysql_fetch_object($query)){
|
|
| 121 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 122 | + while ($row = mysql_fetch_object($query)) {
|
|
| 123 | 123 | echo '<option value="'.$row->id_poli.'"'; |
| 124 | - if($row->id_poli == @$data->id_poli) echo ' selected'; |
|
| 124 | + if ($row->id_poli==@$data->id_poli) echo ' selected'; |
|
| 125 | 125 | echo '>'.$row->poli.'</option>'; |
| 126 | 126 | } |
| 127 | 127 | } |
@@ -136,10 +136,10 @@ discard block |
||
| 136 | 136 | <option>--Pilih Rujukan RS --</option> |
| 137 | 137 | <? |
| 138 | 138 | $query = mysql_query('SELECT * FROM rujukan WHERE tipe = "R" ORDER BY rujukan');
|
| 139 | - if($query && mysql_num_rows($query) > 0){
|
|
| 140 | - while($row = mysql_fetch_object($query)){
|
|
| 139 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 140 | + while ($row = mysql_fetch_object($query)) {
|
|
| 141 | 141 | echo '<option value="'.$row->id_rujukan.'"'; |
| 142 | - if($row->id_rujukan == @$data->id_rujukan_rs) echo ' selected'; |
|
| 142 | + if ($row->id_rujukan==@$data->id_rujukan_rs) echo ' selected'; |
|
| 143 | 143 | echo '>'.$row->rujukan.'</option>'; |
| 144 | 144 | } |
| 145 | 145 | } |
@@ -154,10 +154,10 @@ discard block |
||
| 154 | 154 | <option>--Pilih Rujukan Lab --</option> |
| 155 | 155 | <? |
| 156 | 156 | $query = mysql_query('SELECT * FROM rujukan WHERE tipe = "L" ORDER BY rujukan');
|
| 157 | - if($query && mysql_num_rows($query) > 0){
|
|
| 158 | - while($row = mysql_fetch_object($query)){
|
|
| 157 | + if ($query && mysql_num_rows($query)>0) {
|
|
| 158 | + while ($row = mysql_fetch_object($query)) {
|
|
| 159 | 159 | echo '<option value="'.$row->id_rujukan.'"'; |
| 160 | - if($row->id_rujukan == @$data->id_rujukan_lab) echo ' selected'; |
|
| 160 | + if ($row->id_rujukan==@$data->id_rujukan_lab) echo ' selected'; |
|
| 161 | 161 | echo '>'.$row->rujukan.'</option>'; |
| 162 | 162 | } |
| 163 | 163 | } |
@@ -1,22 +1,22 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | session_start(); |
| 3 | -if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
|
|
| 3 | +if (empty($_SESSION['username']) AND empty($_SESSION['password'])) {
|
|
| 4 | 4 | echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
|
| 5 | -} else{
|
|
| 5 | +} else {
|
|
| 6 | 6 | include "./../../config/koneksi.php"; |
| 7 | 7 | include "./../../config/fungsi_thumb.php"; |
| 8 | 8 | |
| 9 | -$module=$_GET[module]; |
|
| 10 | -$act=$_GET[act]; |
|
| 9 | +$module = $_GET[module]; |
|
| 10 | +$act = $_GET[act]; |
|
| 11 | 11 | |
| 12 | 12 | $date = date("d/m/Y");
|
| 13 | 13 | $idate = date("Y-m-d");
|
| 14 | 14 | $hour = time() - (1 * 1 * 60 * 60); |
| 15 | -$datetime = date("Y-m-d G:i:s", $hour);
|
|
| 15 | +$datetime = date("Y-m-d G:i:s", $hour);
|
|
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | $business_type = $_SESSION['business_type']; |
| 18 | 18 | |
| 19 | -if ($module=='rujukan_pasien' AND $act=='update'){
|
|
| 19 | +if ($module=='rujukan_pasien' AND $act=='update') {
|
|
| 20 | 20 | |
| 21 | 21 | $id_module = $_POST['id_module']; |
| 22 | 22 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | ?> |
| 37 | 37 | |
| 38 | 38 | <script language="javascript"> |
| 39 | - window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>"; |
|
| 39 | + window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>"; |
|
| 40 | 40 | window.parent.tb_remove(); |
| 41 | 41 | </script> |
| 42 | 42 | |
@@ -2,9 +2,9 @@ discard block |
||
| 2 | 2 | include "./../../config/koneksi.php"; |
| 3 | 3 | include "./../../config/fungsi_indobulan.php"; |
| 4 | 4 | |
| 5 | -$tampil=mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
|
|
| 5 | +$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
|
|
| 6 | 6 | |
| 7 | -$r=mysql_fetch_array($tampil); |
|
| 7 | +$r = mysql_fetch_array($tampil); |
|
| 8 | 8 | |
| 9 | 9 | $module = $_GET['module']; |
| 10 | 10 | $imodule = ucwords($r['nama_modul']); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | $id = $r['id_modul']; |
| 13 | 13 | $fa_icon = $r['fa_icon']; |
| 14 | 14 | |
| 15 | -if($r[orientation] == 'P') {
|
|
| 15 | +if ($r[orientation]=='P') {
|
|
| 16 | 16 | $orientation = 'portrait'; |
| 17 | 17 | } else {
|
| 18 | 18 | $orientation = 'landscape'; |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | $fdate = $_GET['fdate']; |
| 23 | 23 | $ldate = $_GET['ldate']; |
| 24 | 24 | |
| 25 | -$ftgl = DATE('d/m/Y',strtotime($_GET['fdate']));
|
|
| 26 | -$ltgl = DATE('d/m/Y',strtotime($_GET['ldate']));
|
|
| 25 | +$ftgl = DATE('d/m/Y', strtotime($_GET['fdate']));
|
|
| 26 | +$ltgl = DATE('d/m/Y', strtotime($_GET['ldate']));
|
|
| 27 | 27 | |
| 28 | 28 | ?> |
| 29 | 29 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | |
| 141 | 141 | <!--<body onload="cetakspk()">--> |
| 142 | 142 | |
| 143 | -<? if ($_GET['printto'] == '2') { ?>
|
|
| 143 | +<? if ($_GET['printto']=='2') { ?>
|
|
| 144 | 144 | <body onload="icetak()"> |
| 145 | 145 | <? } else { ?>
|
| 146 | 146 | <body> |
@@ -162,8 +162,8 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | <? |
| 165 | -$gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 166 | - $g=mysql_fetch_array($gtampil); |
|
| 165 | +$gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
|
|
| 166 | + $g = mysql_fetch_array($gtampil); |
|
| 167 | 167 | |
| 168 | 168 | if ($g['pict']) {
|
| 169 | 169 | $pict = $g['pict']; |
@@ -177,12 +177,12 @@ discard block |
||
| 177 | 177 | <table width='100%' style="padding-top:10px;"> |
| 178 | 178 | <tr> |
| 179 | 179 | <td width='10%'> |
| 180 | -<!-- <img src="../../images/logo/<?=$pict;?>" width=100px> --> |
|
| 180 | +<!-- <img src="../../images/logo/<?=$pict; ?>" width=100px> --> |
|
| 181 | 181 | </td> |
| 182 | 182 | <td style="text-align:center;" width='80%'> |
| 183 | -<span class='h1'><?=$nmmodule;?></span> |
|
| 183 | +<span class='h1'><?=$nmmodule; ?></span> |
|
| 184 | 184 | <? echo "<span class='h2'>".$g['company']."</span><br>"; ?> |
| 185 | -<br>Periode : <?=$ftgl;?> - <?=$ltgl;?> |
|
| 185 | +<br>Periode : <?=$ftgl; ?> - <?=$ltgl; ?> |
|
| 186 | 186 | </td> |
| 187 | 187 | <td width='10%'> |
| 188 | 188 |   |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | <? |
| 211 | 211 | |
| 212 | 212 | |
| 213 | - $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 213 | + $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 214 | 214 | ,e.rujukan as rujukan_rs |
| 215 | 215 | ,f.rujukan as rujukan_lab |
| 216 | 216 | FROM kunjungan_berobat a left join pasien b |
@@ -232,10 +232,10 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | $no = 1; |
| 234 | 234 | |
| 235 | - while ($r=mysql_fetch_array($tampil)){
|
|
| 235 | + while ($r = mysql_fetch_array($tampil)) {
|
|
| 236 | 236 | |
| 237 | - $tgl = DATE('d/m/Y',strtotime($r[tanggal]));
|
|
| 238 | - $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
|
|
| 237 | + $tgl = DATE('d/m/Y', strtotime($r[tanggal]));
|
|
| 238 | + $tgl_lahir = DATE('d/m/Y', strtotime($r[tgl_lahir]));
|
|
| 239 | 239 | |
| 240 | 240 | echo"<tr>"; |
| 241 | 241 | echo"<td>$tgl</td>"; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q=";?>"+str,true);
|
|
| 37 | + xmlhttp.open("GET","<?php echo"./modul/mod_$module/getlokasi.php?q="; ?>"+str,true);
|
|
| 38 | 38 | |
| 39 | 39 | xmlhttp.send(); |
| 40 | 40 | |
@@ -54,28 +54,28 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | <?php |
| 57 | -switch($_GET[act]){
|
|
| 57 | +switch ($_GET[act]) {
|
|
| 58 | 58 | |
| 59 | 59 | default: |
| 60 | 60 | |
| 61 | 61 | $fdate = date("Y-m-01");
|
| 62 | 62 | $ldate = date("Y-m-d");
|
| 63 | 63 | |
| 64 | -$prd = date("Y-m");
|
|
| 64 | +$prd = date("Y-m");
|
|
| 65 | 65 | |
| 66 | -$userid = $_SESSION['userid']; |
|
| 66 | +$userid = $_SESSION['userid']; |
|
| 67 | 67 | ?> |
| 68 | 68 | |
| 69 | 69 | <div class=""> |
| 70 | 70 | |
| 71 | 71 | <div class="row"> |
| 72 | 72 | |
| 73 | - <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php";?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
| 73 | + <form name="myform" id="myform" method="get" action="<? echo"modul/mod_$module/print_$module.php"; ?>" onSubmit="popup<?=$module?>(this, 'join')"> |
|
| 74 | 74 | |
| 75 | 75 | <div class="col-md-12 col-sm-12 col-xs-12"> |
| 76 | 76 | <div class="x_panel"> |
| 77 | 77 | <div class="x_title"> |
| 78 | - <h2><?=$nmmodule;?></h2> |
|
| 78 | + <h2><?=$nmmodule; ?></h2> |
|
| 79 | 79 | <div class='pull-right'> |
| 80 | 80 | <Button type="submit" class="btn btn-primary"> |
| 81 | 81 | <span class="glyphicon glyphicon-print" style='color:#fff;'></span> |
@@ -116,8 +116,8 @@ discard block |
||
| 116 | 116 | <? |
| 117 | 117 | |
| 118 | 118 | $module = '?module='.$_GET['module']; |
| 119 | - $tampil=mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | - $r=mysql_fetch_array($tampil); |
|
| 119 | + $tampil = mysql_query("SELECT id_modul as id FROM modul WHERE link='".$module."'");
|
|
| 120 | + $r = mysql_fetch_array($tampil); |
|
| 121 | 121 | |
| 122 | 122 | echo"<input type='hidden' name='report_id' id='report_id' value=".$r[id].">"; |
| 123 | 123 | echo"<input type='hidden' name='module' value=".$_GET[module].">"; |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | </form> |
| 126 | 126 | |
| 127 | 127 | </div> |
| 128 | - <?for($i = 0; $i <= 20; $i++) {
|
|
| 128 | + <?for ($i = 0; $i<=20; $i++) {
|
|
| 129 | 129 | ?> |
| 130 | 130 | <br /> |
| 131 | 131 | <? |