| @@ -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 | } | 
| @@ -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>'; | 
| @@ -53,7 +53,7 @@ | ||
| 53 | 53 | echo"<td style='text-align:center;'>$r[aktif]</td>"; | 
| 54 | 54 | echo" <td style='text-align:center;'>"; | 
| 55 | 55 | |
| 56 | -                    if ($r_edit == 'Y') { | |
| 56 | +                    if ($r_edit=='Y') { | |
| 57 | 57 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_poli=$r[id_poli]&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>"; | 
| 58 | 58 | } | 
| 59 | 59 | |
| @@ -53,7 +53,7 @@ | ||
| 53 | 53 | echo"<td style='text-align:center;'>$r[aktif]</td>"; | 
| 54 | 54 | echo" <td style='text-align:center;'>"; | 
| 55 | 55 | |
| 56 | -                    if ($r_edit == 'Y') { | |
| 56 | +                    if ($r_edit=='Y') { | |
| 57 | 57 | echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kategori=$r[id_kategori]&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>"; | 
| 58 | 58 | } | 
| 59 | 59 | |
| @@ -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> | 
| @@ -2,18 +2,18 @@ | ||
| 2 | 2 | <?php | 
| 3 | 3 |  switch ($_GET[act]) { | 
| 4 | 4 | |
| 5 | -default: | |
| 5 | + default: | |
| 6 | 6 | |
| 7 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); | |
| 8 | - $g = mysql_fetch_array($gtampil); | |
| 7 | +     $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); | |
| 8 | + $g = mysql_fetch_array($gtampil); | |
| 9 | 9 | |
| 10 | -if ($g['pict']) { | |
| 11 | - $pict = $g['pict']; | |
| 10 | +    if ($g['pict']) { | |
| 11 | + $pict = $g['pict']; | |
| 12 | 12 |  } else { | 
| 13 | - $pict = ''; | |
| 13 | + $pict = ''; | |
| 14 | 14 | } | 
| 15 | 15 | |
| 16 | -?> | |
| 16 | + ?> | |
| 17 | 17 | <div class="col-md-12 col-sm-12 col-xs-12 center-block"> | 
| 18 | 18 | <div class="x_panel"> | 
| 19 | 19 | <div class="x_title"> | 
| @@ -2,18 +2,18 @@ | ||
| 2 | 2 | <?php | 
| 3 | 3 |  switch ($_GET[act]) { | 
| 4 | 4 | |
| 5 | -default: | |
| 5 | + default: | |
| 6 | 6 | |
| 7 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); | |
| 8 | - $g = mysql_fetch_array($gtampil); | |
| 7 | +     $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); | |
| 8 | + $g = mysql_fetch_array($gtampil); | |
| 9 | 9 | |
| 10 | -if ($g['pict']) { | |
| 11 | - $pict = $g['pict']; | |
| 10 | +    if ($g['pict']) { | |
| 11 | + $pict = $g['pict']; | |
| 12 | 12 |  } else { | 
| 13 | - $pict = ''; | |
| 13 | + $pict = ''; | |
| 14 | 14 | } | 
| 15 | 15 | |
| 16 | -?> | |
| 16 | + ?> | |
| 17 | 17 | <div class="col-md-12 col-sm-12 col-xs-12 "> | 
| 18 | 18 | <div class="x_panel"> | 
| 19 | 19 | <div class="x_title"> |