@@ -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']; |
@@ -49,37 +49,37 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | <?php |
| 51 | 51 | |
| 52 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 52 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 53 | 53 | |
| 54 | - $g = mysql_fetch_array($gtampil); |
|
| 54 | + $g = mysql_fetch_array($gtampil); |
|
| 55 | 55 | |
| 56 | - if ($g['pict']) { |
|
| 57 | - $pict = $g['pict']; |
|
| 58 | - } else { |
|
| 59 | - $pict = ''; |
|
| 60 | - } |
|
| 56 | + if ($g['pict']) { |
|
| 57 | + $pict = $g['pict']; |
|
| 58 | + } else { |
|
| 59 | + $pict = ''; |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - $company = ucwords($g['company']); |
|
| 62 | + $company = ucwords($g['company']); |
|
| 63 | 63 | |
| 64 | - $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b
|
|
| 64 | + $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b
|
|
| 65 | 65 | ON a.id_shift = b.id_shift |
| 66 | 66 | WHERE a.id_kasir = '$k_ID' |
| 67 | 67 | |
| 68 | 68 | "); |
| 69 | 69 | |
| 70 | - $r = mysql_fetch_array($sql); |
|
| 70 | + $r = mysql_fetch_array($sql); |
|
| 71 | 71 | |
| 72 | - $penjualan_barang = $r['id_kasir']; |
|
| 72 | + $penjualan_barang = $r['id_kasir']; |
|
| 73 | 73 | |
| 74 | - $shift = $r['shift']; |
|
| 74 | + $shift = $r['shift']; |
|
| 75 | 75 | |
| 76 | - $petugas = $r['petugas']; |
|
| 76 | + $petugas = $r['petugas']; |
|
| 77 | 77 | |
| 78 | - $status = $r['status']; |
|
| 78 | + $status = $r['status']; |
|
| 79 | 79 | |
| 80 | - $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
| 80 | + $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
| 81 | 81 | |
| 82 | - ?> |
|
| 82 | + ?> |
|
| 83 | 83 | |
| 84 | 84 | <table width="100%"> |
| 85 | 85 | <tr> |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | while ($i = mysql_fetch_array($itampil)) { |
| 117 | 117 | echo "<th>$i[jenis_transaksi]</th>"; |
| 118 | 118 | } |
| 119 | - ?> |
|
| 119 | + ?> |
|
| 120 | 120 | |
| 121 | 121 | <?php |
| 122 | 122 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | while ($i = mysql_fetch_array($itampil)) { |
| 126 | 126 | echo "<th>$i[jenis_pembayaran]</th>"; |
| 127 | 127 | } |
| 128 | - ?> |
|
| 128 | + ?> |
|
| 129 | 129 | |
| 130 | 130 | |
| 131 | 131 | </tr> |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | $no++; |
| 289 | 289 | } |
| 290 | - ?> |
|
| 290 | + ?> |
|
| 291 | 291 | </tbody> |
| 292 | 292 | |
| 293 | 293 | <tfoot> |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | |
| 301 | 301 | <?php |
| 302 | 302 | |
| 303 | - $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 303 | + $itampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi"); |
|
| 304 | 304 | |
| 305 | 305 | while ($i = mysql_fetch_array($itampil)) { |
| 306 | 306 | $jtampil = mysql_query("SELECT sum(b.jumlah) as jumlah FROM kasir a INNER JOIN kasir_detail b
|
@@ -325,10 +325,10 @@ discard block |
||
| 325 | 325 | ?> |
| 326 | 326 | |
| 327 | 327 | <?php |
| 328 | - $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 328 | + $itampil = mysql_query("SELECT * FROM jenis_pembayaran where aktif = 'Y' ORDER BY id_jenis_pembayaran"); |
|
| 329 | 329 | |
| 330 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 331 | - $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 330 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 331 | + $pSQL = "SELECT sum(a.jumlah) as jumlah |
|
| 332 | 332 | |
| 333 | 333 | FROM kasir_detail a LEFT JOIN jenis_transaksi b |
| 334 | 334 | |
@@ -356,20 +356,20 @@ discard block |
||
| 356 | 356 | |
| 357 | 357 | "; |
| 358 | 358 | |
| 359 | - $ptampil = mysql_query($pSQL); |
|
| 359 | + $ptampil = mysql_query($pSQL); |
|
| 360 | 360 | |
| 361 | - $p = mysql_fetch_array($ptampil); |
|
| 361 | + $p = mysql_fetch_array($ptampil); |
|
| 362 | 362 | |
| 363 | - if ($p[jumlah]) { |
|
| 364 | - $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 365 | - } else { |
|
| 366 | - $jml = 0; |
|
| 367 | - } |
|
| 363 | + if ($p[jumlah]) { |
|
| 364 | + $jml = number_format($p['jumlah'], 0, '.', ','); |
|
| 365 | + } else { |
|
| 366 | + $jml = 0; |
|
| 367 | + } |
|
| 368 | 368 | |
| 369 | - echo"<th style='text-align:right;'>$jml </th>"; |
|
| 370 | - } |
|
| 369 | + echo"<th style='text-align:right;'>$jml </th>"; |
|
| 370 | + } |
|
| 371 | 371 | |
| 372 | - ?> |
|
| 372 | + ?> |
|
| 373 | 373 | |
| 374 | 374 | <th></th> |
| 375 | 375 | |
@@ -389,16 +389,16 @@ discard block |
||
| 389 | 389 | |
| 390 | 390 | <?php |
| 391 | 391 | |
| 392 | - if ($r[id_shift] == '1') { |
|
| 393 | - $id_shift = '1'; |
|
| 394 | - } else { |
|
| 395 | - $id_shift = '%'; |
|
| 396 | - } |
|
| 392 | + if ($r[id_shift] == '1') { |
|
| 393 | + $id_shift = '1'; |
|
| 394 | + } else { |
|
| 395 | + $id_shift = '%'; |
|
| 396 | + } |
|
| 397 | 397 | |
| 398 | - $itampil = mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift"); |
|
| 398 | + $itampil = mysql_query("SELECT * FROM shift where aktif = 'Y' and id_shift LIKE '$id_shift' ORDER BY id_shift"); |
|
| 399 | 399 | |
| 400 | - while ($i = mysql_fetch_array($itampil)) { |
|
| 401 | - $shift = $i['shift']; ?> |
|
| 400 | + while ($i = mysql_fetch_array($itampil)) { |
|
| 401 | + $shift = $i['shift']; ?> |
|
| 402 | 402 | |
| 403 | 403 | <tr> |
| 404 | 404 | <th></th> |
@@ -437,15 +437,15 @@ discard block |
||
| 437 | 437 | |
| 438 | 438 | "; |
| 439 | 439 | |
| 440 | - $ptampil = mysql_query($pSQL); |
|
| 440 | + $ptampil = mysql_query($pSQL); |
|
| 441 | 441 | |
| 442 | - $p = mysql_fetch_array($ptampil); |
|
| 442 | + $p = mysql_fetch_array($ptampil); |
|
| 443 | 443 | |
| 444 | - if ($p[jumlah]) { |
|
| 445 | - $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 446 | - } else { |
|
| 447 | - $cash = 0; |
|
| 448 | - } ?> |
|
| 444 | + if ($p[jumlah]) { |
|
| 445 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 446 | + } else { |
|
| 447 | + $cash = 0; |
|
| 448 | + } ?> |
|
| 449 | 449 | <th style="text-align: right;"><?=$cash; ?></th> |
| 450 | 450 | <th style="text-align: left;">Credit</th> |
| 451 | 451 | |
@@ -480,15 +480,15 @@ discard block |
||
| 480 | 480 | |
| 481 | 481 | "; |
| 482 | 482 | |
| 483 | - $ptampil = mysql_query($pSQL); |
|
| 483 | + $ptampil = mysql_query($pSQL); |
|
| 484 | 484 | |
| 485 | - $p = mysql_fetch_array($ptampil); |
|
| 485 | + $p = mysql_fetch_array($ptampil); |
|
| 486 | 486 | |
| 487 | - if ($p[jumlah]) { |
|
| 488 | - $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 489 | - } else { |
|
| 490 | - $credit = 0; |
|
| 491 | - } ?> |
|
| 487 | + if ($p[jumlah]) { |
|
| 488 | + $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 489 | + } else { |
|
| 490 | + $credit = 0; |
|
| 491 | + } ?> |
|
| 492 | 492 | |
| 493 | 493 | <th style="text-align: right;"><?=$credit; ?></th> |
| 494 | 494 | <th colspan="4"></th> |
@@ -496,12 +496,12 @@ discard block |
||
| 496 | 496 | |
| 497 | 497 | |
| 498 | 498 | <?php |
| 499 | - } |
|
| 499 | + } |
|
| 500 | 500 | |
| 501 | - ?> |
|
| 501 | + ?> |
|
| 502 | 502 | |
| 503 | 503 | <?php if ($id_shift == '%') { |
| 504 | - ?> |
|
| 504 | + ?> |
|
| 505 | 505 | <tr> |
| 506 | 506 | <th></th> |
| 507 | 507 | <th></th> |
@@ -537,15 +537,15 @@ discard block |
||
| 537 | 537 | |
| 538 | 538 | "; |
| 539 | 539 | |
| 540 | - $ptampil = mysql_query($pSQL); |
|
| 540 | + $ptampil = mysql_query($pSQL); |
|
| 541 | 541 | |
| 542 | - $p = mysql_fetch_array($ptampil); |
|
| 542 | + $p = mysql_fetch_array($ptampil); |
|
| 543 | 543 | |
| 544 | - if ($p[jumlah]) { |
|
| 545 | - $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 546 | - } else { |
|
| 547 | - $cash = 0; |
|
| 548 | - } ?> |
|
| 544 | + if ($p[jumlah]) { |
|
| 545 | + $cash = number_format($p['jumlah'], 0, '.', ','); |
|
| 546 | + } else { |
|
| 547 | + $cash = 0; |
|
| 548 | + } ?> |
|
| 549 | 549 | <th style="text-align: right;"><?=$cash; ?></th> |
| 550 | 550 | <th style="text-align: left;">Credit</th> |
| 551 | 551 | |
@@ -578,22 +578,22 @@ discard block |
||
| 578 | 578 | |
| 579 | 579 | "; |
| 580 | 580 | |
| 581 | - $ptampil = mysql_query($pSQL); |
|
| 581 | + $ptampil = mysql_query($pSQL); |
|
| 582 | 582 | |
| 583 | - $p = mysql_fetch_array($ptampil); |
|
| 583 | + $p = mysql_fetch_array($ptampil); |
|
| 584 | 584 | |
| 585 | - if ($p[jumlah]) { |
|
| 586 | - $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 587 | - } else { |
|
| 588 | - $credit = 0; |
|
| 589 | - } ?> |
|
| 585 | + if ($p[jumlah]) { |
|
| 586 | + $credit = number_format($p['jumlah'], 0, '.', ','); |
|
| 587 | + } else { |
|
| 588 | + $credit = 0; |
|
| 589 | + } ?> |
|
| 590 | 590 | |
| 591 | 591 | <th style="text-align: right;"><?=$credit; ?></th> |
| 592 | 592 | <th colspan="4"></th> |
| 593 | 593 | </tr> |
| 594 | 594 | |
| 595 | 595 | <?php |
| 596 | - } ?> |
|
| 596 | + } ?> |
|
| 597 | 597 | |
| 598 | 598 | <tr><td colspan="12"> </td></tr> |
| 599 | 599 | |
@@ -644,13 +644,13 @@ discard block |
||
| 644 | 644 | |
| 645 | 645 | $p = mysql_fetch_array($ptampil); |
| 646 | 646 | |
| 647 | - if ($p[jumlah]) { |
|
| 648 | - $total = number_format($p['jumlah'], 0, '.', ','); |
|
| 649 | - } else { |
|
| 650 | - $total = 0; |
|
| 651 | - } |
|
| 647 | + if ($p[jumlah]) { |
|
| 648 | + $total = number_format($p['jumlah'], 0, '.', ','); |
|
| 649 | + } else { |
|
| 650 | + $total = 0; |
|
| 651 | + } |
|
| 652 | 652 | |
| 653 | - ?> |
|
| 653 | + ?> |
|
| 654 | 654 | |
| 655 | 655 | |
| 656 | 656 | <tr> |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | |
| 390 | 390 | <?php |
| 391 | 391 | |
| 392 | - if ($r[id_shift] == '1') { |
|
| 392 | + if ($r[id_shift]=='1') { |
|
| 393 | 393 | $id_shift = '1'; |
| 394 | 394 | } else { |
| 395 | 395 | $id_shift = '%'; |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | |
| 501 | 501 | ?> |
| 502 | 502 | |
| 503 | - <?php if ($id_shift == '%') { |
|
| 503 | + <?php if ($id_shift=='%') { |
|
| 504 | 504 | ?> |
| 505 | 505 | <tr> |
| 506 | 506 | <th></th> |
@@ -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']; |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | <?php |
| 214 | 214 | |
| 215 | 215 | |
| 216 | - $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 216 | + $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori
|
|
| 217 | 217 | ,e.rujukan as rujukan_rs |
| 218 | 218 | ,f.rujukan as rujukan_lab |
| 219 | 219 | FROM kunjungan_berobat a left join pasien b |
@@ -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 |