@@ -20,7 +20,7 @@ |
||
| 20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
| 21 | 21 | <?php |
| 22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
| 23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
| 23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
| 24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
| 25 | 25 | } |
| 26 | 26 | ?> |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | <script type="text/javascript" src="../unit_test.js"></script> |
| 21 | 21 | <?php |
| 22 | 22 | $aScripts = explode(':', $_GET['scripts']); |
| 23 | - for ($i = 0; $i < count($aScripts); $i++) { |
|
| 23 | + for ($i = 0; $i<count($aScripts); $i++) { |
|
| 24 | 24 | echo '<script type="text/javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n"; |
| 25 | 25 | } |
| 26 | 26 | ?> |
@@ -387,7 +387,7 @@ |
||
| 387 | 387 | |
| 388 | 388 | $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir])); |
| 389 | 389 | |
| 390 | -if ($r['gender'] == 'L') { |
|
| 390 | +if ($r['gender']=='L') { |
|
| 391 | 391 | $gender = 'Laki-laki'; |
| 392 | 392 | } else { |
| 393 | 393 | $gender = 'Perempuan'; |
@@ -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 |
@@ -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 |
@@ -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 |
@@ -15,12 +15,12 @@ discard block |
||
| 15 | 15 | $datetime = date('Y-m-d G:i:s', $hour); |
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | - if ($module == 'approval_diskon_penjualan_barang' and $act == 'approve') { |
|
| 18 | + if ($module=='approval_diskon_penjualan_barang' and $act=='approve') { |
|
| 19 | 19 | $id_module = $_POST['id_module']; |
| 20 | 20 | |
| 21 | 21 | $jum = $_POST['jum'] - 1; |
| 22 | 22 | |
| 23 | - for ($i = 1; $i <= $jum; $i++) { |
|
| 23 | + for ($i = 1; $i<=$jum; $i++) { |
|
| 24 | 24 | $id = $_POST['id'.$i]; |
| 25 | 25 | $p_status = $_POST['p_status'.$i]; |
| 26 | 26 | $status = $_POST['status'.$i]; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $notrans = $_POST['notrans'.$i]; |
| 31 | 31 | $outlet = $_POST['outlet'.$i]; |
| 32 | 32 | |
| 33 | - if ($p_status == '1') { |
|
| 33 | + if ($p_status=='1') { |
|
| 34 | 34 | mysql_query("UPDATE penjualan_barang_detail
|
| 35 | 35 | SET disc = disc1 |
| 36 | 36 | , disc_value = disc_value1 |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $onChar = 1; |
| 41 | 41 | for ($x = 0; $x < strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
| 42 | 42 | if (!(($pos = strpos($char128asc, $text[$x])) === false)) { // SKIP NOT FOUND CHARS |
| 43 | - $w .= $char128wid[$pos]; |
|
| 43 | + $w .= $char128wid[$pos]; |
|
| 44 | 44 | $sum += $onChar++ * $pos; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | global $char128asc, $char128wid; |
| 39 | 39 | $w = $char128wid[$sum = 104]; // START symbol |
| 40 | 40 | $onChar = 1; |
| 41 | - for ($x = 0; $x < strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
|
| 42 | - if (!(($pos = strpos($char128asc, $text[$x])) === false)) { // SKIP NOT FOUND CHARS |
|
| 41 | + for ($x = 0; $x<strlen($text); $x++) { // GO THRU TEXT GET LETTERS |
|
| 42 | + if (!(($pos = strpos($char128asc, $text[$x]))===false)) { // SKIP NOT FOUND CHARS |
|
| 43 | 43 | $w .= $char128wid[$pos]; |
| 44 | 44 | $sum += $onChar++ * $pos; |
| 45 | 45 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $w .= $char128wid[$sum % 103].$char128wid[106]; //Check Code, then END |
| 48 | 48 | //Part 2, Write rows |
| 49 | 49 | $html = '<table cellpadding=0 cellspacing=0><tr>'; |
| 50 | - for ($x = 0; $x < strlen($w); $x += 2) { // code 128 widths: black border, then white space |
|
| 50 | + for ($x = 0; $x<strlen($w); $x += 2) { // code 128 widths: black border, then white space |
|
| 51 | 51 | $html .= "<td><div class=\"b128\" style=\"border-left-width:{$w[$x]};width:{$w[$x + 1]}\"></div>"; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $no = 1; |
| 50 | 50 | |
| 51 | 51 | while ($r = mysql_fetch_array($tampil)) { |
| 52 | - if ($r[tipe] == 'R') { |
|
| 52 | + if ($r[tipe]=='R') { |
|
| 53 | 53 | $tipe = 'RS/Klinik'; |
| 54 | 54 | } else { |
| 55 | 55 | $tipe = 'Lab'; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | echo"<td style='text-align:center;'>$r[aktif]</td>"; |
| 62 | 62 | echo" <td style='text-align:center;'>"; |
| 63 | 63 | |
| 64 | - if ($r_edit == 'Y') { |
|
| 64 | + if ($r_edit=='Y') { |
|
| 65 | 65 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_rujukan=$r[id_rujukan]&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>"; |
| 66 | 66 | } |
| 67 | 67 | |