@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | <?php |
| 168 | 168 | $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
| 169 | - $g = mysql_fetch_array($gtampil); |
|
| 169 | + $g = mysql_fetch_array($gtampil); |
|
| 170 | 170 | |
| 171 | 171 | if ($g['pict']) { |
| 172 | 172 | $pict = $g['pict']; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | <?php |
| 212 | 212 | |
| 213 | - $tampil = mysql_query("SELECT b.obat
|
|
| 213 | + $tampil = mysql_query("SELECT b.obat
|
|
| 214 | 214 | , c.satuan |
| 215 | 215 | , sum(a.qty) as jumlah |
| 216 | 216 | FROM kunjungan_berobat h inner join kunjungan_berobat_detail a |
@@ -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'; |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | <!--<body onload="cetakspk()">--> |
| 141 | 141 | |
| 142 | -<?php if ($_GET['printto'] == '2') { |
|
| 142 | +<?php if ($_GET['printto']=='2') { |
|
| 143 | 143 | ?> |
| 144 | 144 | <body onload="icetak()"> |
| 145 | 145 | <?php |
@@ -371,11 +371,11 @@ |
||
| 371 | 371 | <!-- /editor --> |
| 372 | 372 | |
| 373 | 373 | <?php |
| 374 | - if (empty($pict)) { |
|
| 375 | - $ipict = 'logo.png'; |
|
| 376 | - } else { |
|
| 377 | - $ipict = $pict; |
|
| 378 | - } ?> |
|
| 374 | + if (empty($pict)) { |
|
| 375 | + $ipict = 'logo.png'; |
|
| 376 | + } else { |
|
| 377 | + $ipict = $pict; |
|
| 378 | + } ?> |
|
| 379 | 379 | |
| 380 | 380 | <script> |
| 381 | 381 | var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | if ($id) { |
| 81 | 81 | $query = mysql_query('SELECT * FROM general_setting WHERE id_general_setting = "'.$id.'"'); |
| 82 | - if ($query && mysql_num_rows($query) == 1) { |
|
| 82 | + if ($query && mysql_num_rows($query)==1) { |
|
| 83 | 83 | $data = mysql_fetch_object($query); |
| 84 | 84 | } else { |
| 85 | 85 | die('Data general_setting tidak ditemukan'); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $datetime = date('Y-m-d G:i:s', $hour); |
| 18 | 18 | $userid = $_SESSION['userid']; |
| 19 | 19 | |
| 20 | - if ($module == 'general_setting' and $act == 'input') { |
|
| 20 | + if ($module=='general_setting' and $act=='input') { |
|
| 21 | 21 | $id_module = $_POST['id_module']; |
| 22 | 22 | |
| 23 | 23 | $lokasi_file = $_FILES['fupload']['tmp_name']; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | if ($id) { |
| 46 | 46 | $query = mysql_query('SELECT * FROM poli WHERE id_poli = "'.$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 | 49 | } else { |
| 50 | 50 | die('Data modul tidak ditemukan'); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | <?php if ($id) { |
| 82 | 82 | ?> |
| 83 | 83 | |
| 84 | - <?php if (@$data->aktif == 'Y') { |
|
| 84 | + <?php if (@$data->aktif=='Y') { |
|
| 85 | 85 | ?> |
| 86 | 86 | |
| 87 | 87 | <div class="form-group"> |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | 18 | // Hapus modul |
| 19 | - if ($module == 'poli' and $act == 'hapus') { |
|
| 19 | + if ($module=='poli' and $act=='hapus') { |
|
| 20 | 20 | $id = $_GET['id']; |
| 21 | 21 | $id_module = $_GET['id_module']; |
| 22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Input group |
| 36 | - elseif ($module == 'poli' and $act == 'input') { |
|
| 36 | + elseif ($module=='poli' and $act=='input') { |
|
| 37 | 37 | $id_module = $_POST['id_module']; |
| 38 | 38 | |
| 39 | 39 | if ($_POST['ID']) { |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | 18 | // Hapus modul |
| 19 | - if ($module == 'kategori' and $act == 'hapus') { |
|
| 19 | + if ($module=='kategori' and $act=='hapus') { |
|
| 20 | 20 | $id = $_GET['id']; |
| 21 | 21 | $id_module = $_GET['id_module']; |
| 22 | 22 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Input group |
| 36 | - elseif ($module == 'kategori' and $act == 'input') { |
|
| 36 | + elseif ($module=='kategori' and $act=='input') { |
|
| 37 | 37 | $id_module = $_POST['id_module']; |
| 38 | 38 | |
| 39 | 39 | if ($_POST['ID']) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | if ($id) { |
| 46 | 46 | $query = mysql_query('SELECT * FROM kategori WHERE id_kategori = "'.$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 | 49 | } else { |
| 50 | 50 | die('Data modul tidak ditemukan'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | <?php if ($id) { |
| 84 | 84 | ?> |
| 85 | 85 | |
| 86 | - <?php if (@$data->aktif == 'Y') { |
|
| 86 | + <?php if (@$data->aktif=='Y') { |
|
| 87 | 87 | ?> |
| 88 | 88 | |
| 89 | 89 | <div class="form-group"> |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | <?php |
| 257 | 257 | |
| 258 | 258 | |
| 259 | - $SQL = "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang |
|
| 259 | + $SQL = "SELECT p.tanggal,a.*,c.id_unit_barang,c.unit_barang,b.kode as kode_bar,b.barang |
|
| 260 | 260 | |
| 261 | 261 | ,a.qty-a.qty_ps as iqty, b.id_merk, b.id_barang |
| 262 | 262 | ,ifnull((SELECT sum(saldo_akhir) |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | |
| 315 | 315 | while ($r = mysql_fetch_array($tampil)) { |
| 316 | 316 | |
| 317 | - //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty) |
|
| 317 | + //selectPR(no_pr,id_permintaan_barang_detail,ibarang,id_barang,unit_barang,iqty,qty) |
|
| 318 | 318 | |
| 319 | 319 | $hsql = mysql_query("SELECT harga as last_price
|
| 320 | 320 | FROM pemesanan_barang_detail |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | |
| 428 | 428 | |
| 429 | 429 | |
| 430 | - <?php if ($size == '10') { |
|
| 430 | + <?php if ($size=='10') { |
|
| 431 | 431 | ?> |
| 432 | 432 | |
| 433 | 433 | <option value="10" selected="selected">10</option> |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | |
| 444 | 444 | |
| 445 | 445 | |
| 446 | - <?php if ($size == '15') { |
|
| 446 | + <?php if ($size=='15') { |
|
| 447 | 447 | ?> |
| 448 | 448 | |
| 449 | 449 | <option value="15" selected="selected">15</option> |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | |
| 460 | 460 | |
| 461 | 461 | |
| 462 | - <?php if ($size == '20') { |
|
| 462 | + <?php if ($size=='20') { |
|
| 463 | 463 | ?> |
| 464 | 464 | |
| 465 | 465 | <option value="20" selected="selected">20</option> |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | |
| 477 | 477 | |
| 478 | - <?php if ($size == '50') { |
|
| 478 | + <?php if ($size=='50') { |
|
| 479 | 479 | ?> |
| 480 | 480 | |
| 481 | 481 | <option value="50" selected="selected">20</option> |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | |
| 492 | 492 | |
| 493 | 493 | |
| 494 | - <?php if ($size == '100') { |
|
| 494 | + <?php if ($size=='100') { |
|
| 495 | 495 | ?> |
| 496 | 496 | |
| 497 | 497 | <option value="100" selected="selected">100</option> |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | // Hapus modul |
| 27 | 27 | |
| 28 | - if ($module == 'kasir' and $act == 'hapus') { |
|
| 28 | + if ($module=='kasir' and $act=='hapus') { |
|
| 29 | 29 | $id = $_GET['id']; |
| 30 | 30 | |
| 31 | 31 | $id_module = $_GET['id_module']; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | // Input group |
| 55 | 55 | |
| 56 | - elseif ($module == 'kasir' and $act == 'input') { |
|
| 56 | + elseif ($module=='kasir' and $act=='input') { |
|
| 57 | 57 | $id_module = $_POST['id_module']; |
| 58 | 58 | |
| 59 | 59 | if ($_POST['ID']) { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | <?php |
| 125 | - } elseif ($module == 'kasir' and $act == 'add') { |
|
| 125 | + } elseif ($module=='kasir' and $act=='add') { |
|
| 126 | 126 | $id_module = $_POST['id_module']; |
| 127 | 127 | |
| 128 | 128 | $k_ID = $_POST['k_ID']; |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | |
| 243 | 243 | |
| 244 | 244 | <?php |
| 245 | - } elseif ($module == 'kasir' and $act == 'dhapus') { |
|
| 245 | + } elseif ($module=='kasir' and $act=='dhapus') { |
|
| 246 | 246 | $id = $_GET['id']; |
| 247 | 247 | |
| 248 | 248 | $id_module = $_GET['id_module']; |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | WHERE id_kasir_detail = '$id'"); |
| 259 | 259 | |
| 260 | 260 | header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save&ID='.$k_ID); |
| 261 | - } elseif ($module == 'kasir' and $act == 'verified') { |
|
| 261 | + } elseif ($module=='kasir' and $act=='verified') { |
|
| 262 | 262 | $id = $_GET['id']; |
| 263 | 263 | |
| 264 | 264 | $id_module = $_GET['id_module']; |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | "); |
| 311 | 311 | |
| 312 | 312 | header('location:../../main.php?module='.$module.'&id_module='.$id_module.'&act=save¬rans='.$notrans.'&prd='.$prd.'&kode='.$kode.'&outlet='.$outlet); |
| 313 | - } elseif ($module == 'kasir' and $act == 'reset') { |
|
| 313 | + } elseif ($module=='kasir' and $act=='reset') { |
|
| 314 | 314 | $id = $_GET['id']; |
| 315 | 315 | |
| 316 | 316 | $id_module = $_GET['id_module']; |