@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | session_start(); |
| 3 | 3 | include 'config/koneksi.php'; |
| 4 | 4 | |
| 5 | - if ($_SESSION['role'] == 'SA') { |
|
| 5 | + if ($_SESSION['role']=='SA') { |
|
| 6 | 6 | $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan"); |
| 7 | 7 | |
| 8 | 8 | $gjml = '1'; |
@@ -23,15 +23,15 @@ discard block |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | while ($r = mysql_fetch_array($sql)) { |
| 26 | - if ($r[status_menu] == 'M' and !empty($r[link])) { |
|
| 26 | + if ($r[status_menu]=='M' and !empty($r[link])) { |
|
| 27 | 27 | echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>"; |
| 28 | - } elseif ($r[status_menu] == 'M' and empty($r[link])) { |
|
| 28 | + } elseif ($r[status_menu]=='M' and empty($r[link])) { |
|
| 29 | 29 | echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>"; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | echo'<ul class="nav child_menu" style="display: none">'; |
| 33 | 33 | |
| 34 | - if ($_SESSION['role'] == 'SA') { |
|
| 34 | + if ($_SESSION['role']=='SA') { |
|
| 35 | 35 | $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan"); |
| 36 | 36 | } else { |
| 37 | 37 | $detil = mysql_query("select distinct c.*
|
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | order by c.urutan"); |
| 46 | 46 | } |
| 47 | 47 | while ($d = mysql_fetch_array($detil)) { |
| 48 | - if ($d[is_form] == 'Y') { |
|
| 48 | + if ($d[is_form]=='Y') { |
|
| 49 | 49 | echo"<li><a href='modul/mod_$d[link]/form_$d[link].php?width=$d[f_width]&height=$d[f_height]&module=$d[link]&imodule=$imodule&id_module=$id&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' ><i class='$d[fa_icon]'></i>  $d[nama_modul]</a></li>"; |
| 50 | 50 | } else { |
| 51 | 51 | echo"<li><a href='$d[link]&id_module=$d[id_modul]'><i class='$d[fa_icon]'></i>  $d[nama_modul]</a></li>"; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | // echo"modul/mod_$mod.php<br>"; |
| 14 | 14 | // |
| 15 | 15 | |
| 16 | - if ($_GET['module'] == $mod) { |
|
| 16 | + if ($_GET['module']==$mod) { |
|
| 17 | 17 | //include "modul/mod_$mod.php"; |
| 18 | 18 | include "modul/mod_$mod/$mod.php"; |
| 19 | 19 | } |
@@ -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 | } |
@@ -464,11 +464,11 @@ |
||
| 464 | 464 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // |
| 465 | 465 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // |
| 466 | 466 | 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, // |
| 467 | - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, // |
|
| 467 | + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, // |
|
| 468 | 468 | -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, // |
| 469 | 469 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, // |
| 470 | 470 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // |
| 471 | - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // |
|
| 471 | + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // |
|
| 472 | 472 | ]; |
| 473 | 473 | |
| 474 | 474 | /** |
@@ -419,7 +419,7 @@ |
||
| 419 | 419 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 420 | 420 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 421 | 421 | 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, |
| 422 | - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, |
|
| 422 | + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, |
|
| 423 | 423 | -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
| 424 | 424 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, |
| 425 | 425 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
@@ -1460,7 +1460,7 @@ |
||
| 1460 | 1460 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 1461 | 1461 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 1462 | 1462 | 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, |
| 1463 | - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, |
|
| 1463 | + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, |
|
| 1464 | 1464 | -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
| 1465 | 1465 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, |
| 1466 | 1466 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
@@ -30,24 +30,24 @@ |
||
| 30 | 30 | '112412', '122114', '122411', '142112', '142211', '241211', '221114', '413111', '241112', '134111', // 70-79 |
| 31 | 31 | '111242', '121142', '121241', '114212', '124112', '124211', '411212', '421112', '421211', '212141', // 80-89 |
| 32 | 32 | '214121', '412121', '111143', '111341', '131141', '114113', '114311', '411113', '411311', '113141', // 90-99 |
| 33 | - '114131', '311141', '411131', '211412', '211214', '211232', '23311120', ]; // 100-106 |
|
| 33 | + '114131', '311141', '411131', '211412', '211214', '211232', '23311120', ]; // 100-106 |
|
| 34 | 34 | |
| 35 | 35 | ////Define Function |
| 36 | 36 | function bar128($text) |
| 37 | 37 | { // Part 1, make list of widths |
| 38 | - global $char128asc,$char128wid; |
|
| 39 | - $w = $char128wid[$sum = 104]; // START symbol |
|
| 38 | + global $char128asc, $char128wid; |
|
| 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 | } |
| 46 | 46 | } |
| 47 | - $w .= $char128wid[$sum % 103].$char128wid[106]; //Check Code, then END |
|
| 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 | |
@@ -110,10 +110,10 @@ discard block |
||
| 110 | 110 | <select name="itipe_barang" class="form-control" onChange="document.myform.submit();"> |
| 111 | 111 | <?php |
| 112 | 112 | $query = mysql_query('SELECT * FROM tipe_barang ORDER BY id_tipe_barang'); |
| 113 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 113 | + if ($query && mysql_num_rows($query)>0) { |
|
| 114 | 114 | while ($row = mysql_fetch_object($query)) { |
| 115 | 115 | echo '<option value="'.$row->id_tipe_barang.'"'; |
| 116 | - if ($row->id_tipe_barang == $tipe_barang) { |
|
| 116 | + if ($row->id_tipe_barang==$tipe_barang) { |
|
| 117 | 117 | echo ' selected'; |
| 118 | 118 | } |
| 119 | 119 | echo '>'.$row->tipe_barang.'</option>'; |
@@ -127,10 +127,10 @@ discard block |
||
| 127 | 127 | <select name="ioutlet" class="form-control" onChange="document.myform.submit();"> |
| 128 | 128 | <?php |
| 129 | 129 | $query = mysql_query('SELECT * FROM outlet ORDER BY id_outlet'); |
| 130 | - if ($query && mysql_num_rows($query) > 0) { |
|
| 130 | + if ($query && mysql_num_rows($query)>0) { |
|
| 131 | 131 | while ($row = mysql_fetch_object($query)) { |
| 132 | 132 | echo '<option value="'.$row->id_outlet.'"'; |
| 133 | - if ($row->id_outlet == $outlet) { |
|
| 133 | + if ($row->id_outlet==$outlet) { |
|
| 134 | 134 | echo ' selected'; |
| 135 | 135 | } |
| 136 | 136 | echo '>'.$row->outlet.'</option>'; |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | $sisa_stok = $r['stok'] - $reserve; |
| 236 | 236 | |
| 237 | - if ($sisa_stok == '0') { |
|
| 237 | + if ($sisa_stok=='0') { |
|
| 238 | 238 | echo ''; |
| 239 | 239 | } else { |
| 240 | 240 | echo'<tr>'; |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | ?> |
| 189 | 189 | |
| 190 | - <?php if ($tipe == 'R') { |
|
| 190 | + <?php if ($tipe=='R') { |
|
| 191 | 191 | ?> |
| 192 | 192 | |
| 193 | 193 | |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | |
| 534 | 534 | $month = date('m', strtotime($iprd)) * 1; |
| 535 | 535 | |
| 536 | - if ($month == '1') { |
|
| 536 | + if ($month=='1') { |
|
| 537 | 537 | $imonth = 12; |
| 538 | 538 | } else { |
| 539 | 539 | $imonth = $month - 1; |