Passed
Pull Request — master (#8)
by Saepul
04:20
created
menu.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>&nbsp&nbsp$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>&nbsp&nbsp$d[nama_modul]</a></li>";
Please login to merge, or discard this patch.
content.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
config/barcode_gen.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,24 +30,24 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
modal.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>';
Please login to merge, or discard this patch.
modul/mod_poli/poli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
modul/mod_kategori/kategori.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
modul/mod_kasir/ecetak_kasir.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
topmenu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
             $sql = mysql_query("select * from modul where aktif='Y' order by urutan");
36 36
 
37 37
     while ($r = mysql_fetch_array($sql)) {
38
-        if ($r[status_menu] == 'M' and !empty($r[link])) {
38
+        if ($r[status_menu]=='M' and !empty($r[link])) {
39 39
             echo "<li class='Aktif'><a href='$r[link]&menu=$r[nama_modul]'>$r[nama_modul]</a>";
40
-        } elseif ($r[status_menu] == 'M' and empty($r[link])) {
40
+        } elseif ($r[status_menu]=='M' and empty($r[link])) {
41 41
             echo "<li class='Aktif'><a href='#'>$r[nama_modul]</a>";
42 42
         }
43 43
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $detil = mysql_query("select * from modul where parentid='$r[id_modul]' and status_menu='C' and aktif='Y' order by urutan");
47 47
 
48 48
         while ($d = mysql_fetch_array($detil)) {
49
-            if ($d[is_form] == 'Y') {
49
+            if ($d[is_form]=='Y') {
50 50
                 echo"<li><a href='form/form_$d[link].php?width=850&height=600&module=$d[link]&imodule=$imodule&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' >$d[nama_modul]</a></li>";
51 51
             } else {
52 52
                 echo"<li><a href='$d[link]&menu=$r[nama_modul]&sub=$d[nama_modul]'>$d[nama_modul]</a></li>";
Please login to merge, or discard this patch.
config/bar128.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.