@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | <tr> |
324 | 324 | |
325 | 325 | <?php |
326 | - for ($j = 1; $j <= $hjml; $j++) { |
|
326 | + for ($j = 1; $j<=$hjml; $j++) { |
|
327 | 327 | echo '<th>JML</th>'; |
328 | 328 | echo '<th>RUPIAH</th>'; |
329 | 329 | } |
@@ -348,12 +348,12 @@ discard block |
||
348 | 348 | |
349 | 349 | <tbody> |
350 | 350 | |
351 | - <?php for ($i = 1; $i <= 31; $i++) { |
|
351 | + <?php for ($i = 1; $i<=31; $i++) { |
|
352 | 352 | echo'<tr>'; |
353 | 353 | |
354 | 354 | echo"<td style='text-align:center;'>$i</td>"; |
355 | 355 | |
356 | - if (strlen($i) == '1') { |
|
356 | + if (strlen($i)=='1') { |
|
357 | 357 | $tgl = $prd.'-0'.$i; |
358 | 358 | } else { |
359 | 359 | $tgl = $prd.'-'.$i; |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | |
603 | 603 | $month = date('m', strtotime($iprd)) * 1; |
604 | 604 | |
605 | - if ($month == '1') { |
|
605 | + if ($month=='1') { |
|
606 | 606 | $imonth = 12; |
607 | 607 | } else { |
608 | 608 | $imonth = $month - 1; |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | |
614 | 614 | <table width="100%"> |
615 | 615 | <tr> |
616 | - <td width="70%">Bekasi, <?=$nprd;?></td> |
|
616 | + <td width="70%">Bekasi, <?=$nprd; ?></td> |
|
617 | 617 | <td width="30%">Mengetahui,</td> |
618 | 618 | </tr> |
619 | 619 | <tr> |
@@ -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 |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'"); |
195 | 195 | $r = mysql_fetch_array($tampil); |
196 | 196 | |
197 | - if ($r[orientation] == 'P') { |
|
197 | + if ($r[orientation]=='P') { |
|
198 | 198 | ?> |
199 | 199 | |
200 | 200 | <SCRIPT TYPE="text/javascript"> |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | </SCRIPT> |
211 | 211 | |
212 | 212 | <?php |
213 | - } elseif ($r[orientation] == 'A') { |
|
213 | + } elseif ($r[orientation]=='A') { |
|
214 | 214 | ?> |
215 | 215 | |
216 | 216 | <SCRIPT TYPE="text/javascript"> |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $r = mysql_fetch_array($login); |
23 | 23 | |
24 | 24 | // Apabila userid dan password ditemukan |
25 | -if ($find > 0) { |
|
25 | +if ($find>0) { |
|
26 | 26 | session_start(); |
27 | 27 | //session_register("userid"); |
28 | 28 | // session_register("username"); |