Passed
Pull Request — master (#7)
by Saepul
04:10
created
config/functions.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -84,28 +84,28 @@
 block discarded – undo
84 84
     }
85 85
 
86 86
     switch ($size[2]) {
87
-       case 1:       //GIF
87
+        case 1:       //GIF
88 88
            $src = imagecreatefromgif($srcFile);
89
-           break;
90
-       case 2:       //JPEG
89
+            break;
90
+        case 2:       //JPEG
91 91
            $src = imagecreatefromjpeg($srcFile);
92
-           break;
93
-       case 3:       //PNG
92
+            break;
93
+        case 3:       //PNG
94 94
            $src = imagecreatefrompng($srcFile);
95
-           break;
96
-       default:
95
+            break;
96
+        default:
97 97
            return false;
98
-           break;
98
+            break;
99 99
     }
100 100
 
101 101
     imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]);
102 102
 
103 103
     switch ($size[2]) {
104
-       case 1:
104
+        case 1:
105 105
        case 2:
106 106
            imagejpeg($dest, $destFile, $quality);
107
-           break;
108
-       case 3:
107
+            break;
108
+        case 3:
109 109
            imagepng($dest, $destFile);
110 110
     }
111 111
 
Please login to merge, or discard this patch.
config/barcode_gen.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
config/bar128.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
modul/mod_rujukan/rujukan.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
2 2
 <?php
3 3
 switch ($_GET[act]) {
4 4
 
5
-default:
6
-  ?>
5
+    default:
6
+      ?>
7 7
 
8 8
  <div class="">
9 9
                    
@@ -44,35 +44,35 @@  discard block
 block discarded – undo
44 44
                             
45 45
                          <?php
46 46
 
47
-            $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan');
47
+                $tampil = mysql_query('SELECT * FROM rujukan ORDER BY id_rujukan');
48 48
 
49
-            $no = 1;
49
+                $no = 1;
50 50
 
51
-            while ($r = mysql_fetch_array($tampil)) {
52
-                if ($r[tipe] == 'R') {
53
-                    $tipe = 'RS/Klinik';
54
-                } else {
55
-                    $tipe = 'Lab';
56
-                }
51
+                while ($r = mysql_fetch_array($tampil)) {
52
+                    if ($r[tipe] == 'R') {
53
+                        $tipe = 'RS/Klinik';
54
+                    } else {
55
+                        $tipe = 'Lab';
56
+                    }
57 57
 
58
-                echo'<tr>';
59
-                echo"<td>$tipe</td>";
60
-                echo"<td>$r[rujukan]</td>";
61
-                echo"<td style='text-align:center;'>$r[aktif]</td>";
62
-                echo" <td  style='text-align:center;'>";
58
+                    echo'<tr>';
59
+                    echo"<td>$tipe</td>";
60
+                    echo"<td>$r[rujukan]</td>";
61
+                    echo"<td style='text-align:center;'>$r[aktif]</td>";
62
+                    echo" <td  style='text-align:center;'>";
63 63
 
64
-                if ($r_edit == 'Y') {
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
-                }
64
+                    if ($r_edit == 'Y') {
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
+                    }
67 67
 
68
-                // if($r_delete == 'Y') {
69
-                // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
70
-                // }
71
-                echo'</td>';
72
-                echo'</tr>';
73
-                $no++;
74
-            }
75
-                                ?>
68
+                    // if($r_delete == 'Y') {
69
+                    // echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$r[id_rujukan]&id_module=$id' onClick=\"return confirm('Hapus data ?')\" title='Delete $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
70
+                    // }
71
+                    echo'</td>';
72
+                    echo'</tr>';
73
+                    $no++;
74
+                }
75
+                                    ?>
76 76
                          </tbody>
77 77
                     </table>
78 78
                   </div>
Please login to merge, or discard this patch.
mod_approval_diskon_penjualan_barang/approval_diskon_penjualan_barang.php 1 patch
Switch Indentation   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -86,19 +86,19 @@  discard block
 block discarded – undo
86 86
 
87 87
 
88 88
 
89
-default:  
89
+    default:  
90 90
 
91 91
 
92 92
 
93 93
 
94 94
 
95
-if ($_SESSION['outlet'] == '0') {
95
+    if ($_SESSION['outlet'] == '0') {
96 96
 
97
-  $d_outlet = '%'; 
97
+      $d_outlet = '%'; 
98 98
 
99 99
 }  else {
100 100
 
101
-   $d_outlet = $_SESSION['outlet'];
101
+       $d_outlet = $_SESSION['outlet'];
102 102
 
103 103
 } 
104 104
 
@@ -106,23 +106,23 @@  discard block
 block discarded – undo
106 106
 
107 107
 
108 108
 
109
-if ($_GET['ioutlet']) {
109
+    if ($_GET['ioutlet']) {
110 110
 
111
-  $outlet = $_GET['ioutlet'];   
111
+      $outlet = $_GET['ioutlet'];   
112 112
 
113 113
 } else {
114 114
 
115
-  if ($_SESSION['outlet'] == '0') {
115
+      if ($_SESSION['outlet'] == '0') {
116 116
 
117
-    $outlet = '1';    
117
+        $outlet = '1';    
118 118
 
119
-  }  else {
119
+      }  else {
120 120
 
121
-     $outlet = $_SESSION['outlet'];
121
+         $outlet = $_SESSION['outlet'];
122 122
 
123 123
      
124 124
 
125
-  } 
125
+      } 
126 126
 
127 127
 }
128 128
 
@@ -130,41 +130,41 @@  discard block
 block discarded – undo
130 130
 
131 131
 
132 132
 
133
-$query = mysql_query('SELECT * FROM periode ');
133
+    $query = mysql_query('SELECT * FROM periode ');
134 134
 
135 135
 
136 136
 
137
-if($query && mysql_num_rows($query) == 1){
137
+    if($query && mysql_num_rows($query) == 1){
138 138
 
139
-  $data = mysql_fetch_object($query);
139
+      $data = mysql_fetch_object($query);
140 140
 
141
- }
141
+     }
142 142
 
143 143
   
144 144
 
145
-$iprd  =  $data->periode; 
145
+    $iprd  =  $data->periode; 
146 146
 
147 147
 
148 148
 
149
-if ($_GET['prd']) {
149
+    if ($_GET['prd']) {
150 150
 
151
-  $prd = $_GET['prd'];
151
+      $prd = $_GET['prd'];
152 152
 
153 153
 } else {
154 154
 
155
-  $prd = $prd;
155
+      $prd = $prd;
156 156
 
157 157
 }
158 158
 
159 159
 
160 160
 
161
-if ($_GET['istatus']) {
161
+    if ($_GET['istatus']) {
162 162
 
163
-  $status = $_GET['istatus'];   
163
+      $status = $_GET['istatus'];   
164 164
 
165 165
 } else {
166 166
 
167
-  $status = '0';
167
+      $status = '0';
168 168
 
169 169
    
170 170
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 
173 173
 
174 174
 
175
-  ?>
175
+      ?>
176 176
 
177 177
 
178 178
 
@@ -226,23 +226,23 @@  discard block
 block discarded – undo
226 226
 
227 227
        <?
228 228
 
229
-         $query = mysql_query("SELECT * FROM outlet where id_outlet like '$d_outlet' ORDER BY id_outlet");
229
+             $query = mysql_query("SELECT * FROM outlet where id_outlet like '$d_outlet' ORDER BY id_outlet");
230 230
 
231
-          if($query && mysql_num_rows($query) > 0){
231
+              if($query && mysql_num_rows($query) > 0){
232 232
 
233
-             while($row = mysql_fetch_object($query)){
233
+                 while($row = mysql_fetch_object($query)){
234 234
 
235
-             echo '<option value="'.$row->id_outlet.'"';
235
+                 echo '<option value="'.$row->id_outlet.'"';
236 236
 
237
-             if($row->id_outlet == $outlet) echo ' selected';
237
+                 if($row->id_outlet == $outlet) echo ' selected';
238 238
 
239
-             echo '>'.$row->outlet.'</option>';
239
+                 echo '>'.$row->outlet.'</option>';
240 240
 
241
-             }
241
+                 }
242 242
 
243
-          }        
243
+              }        
244 244
 
245
-       ?>  
245
+           ?>  
246 246
 
247 247
        </select>        
248 248
 
@@ -256,23 +256,23 @@  discard block
 block discarded – undo
256 256
 
257 257
         <?
258 258
 
259
-          $query = mysql_query('SELECT * FROM status ORDER BY id_status');
259
+              $query = mysql_query('SELECT * FROM status ORDER BY id_status');
260 260
 
261
-           if($query && mysql_num_rows($query) > 0){
261
+               if($query && mysql_num_rows($query) > 0){
262 262
 
263
-              while($row = mysql_fetch_object($query)){
263
+                  while($row = mysql_fetch_object($query)){
264 264
 
265
-              echo '<option value="'.$row->id_status.'"';
265
+                  echo '<option value="'.$row->id_status.'"';
266 266
 
267
-              if($row->id_status == $status) echo ' selected';
267
+                  if($row->id_status == $status) echo ' selected';
268 268
 
269
-              echo '>'.$row->status.'</option>';
269
+                  echo '>'.$row->status.'</option>';
270 270
 
271
-              }
271
+                  }
272 272
 
273
-           }        
273
+               }        
274 274
 
275
-        ?>  
275
+            ?>  
276 276
 
277 277
         </select>        
278 278
 
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 
329 329
 
330 330
 
331
-    $pjSQL = mysql_query("SELECT * FROM penjualan_barang_detail 
331
+        $pjSQL = mysql_query("SELECT * FROM penjualan_barang_detail 
332 332
 
333 333
                           WHERE status_diskon = '$status' and prd = '$prd' and disc1 > 0
334 334
 
@@ -338,35 +338,35 @@  discard block
 block discarded – undo
338 338
 
339 339
 
340 340
 
341
-   $pj=mysql_num_rows($pjSQL);
341
+       $pj=mysql_num_rows($pjSQL);
342 342
 
343 343
 
344 344
 
345
-   if ($iprd == $prd) {
345
+       if ($iprd == $prd) {
346 346
 
347
-      $disabled = ''; 
347
+          $disabled = ''; 
348 348
 
349
-    } else {
349
+        } else {
350 350
 
351
-      $disabled = 'disabled';
351
+          $disabled = 'disabled';
352 352
 
353
-    }
353
+        }
354 354
 
355 355
 
356 356
 
357
-    if ($pj == 0) {
357
+        if ($pj == 0) {
358 358
 
359
-      $disabled1 = 'disabled'; 
359
+          $disabled1 = 'disabled'; 
360 360
 
361
-    } else {
361
+        } else {
362 362
 
363
-      $disabled1 = '';
363
+          $disabled1 = '';
364 364
 
365
-    }
365
+        }
366 366
 
367 367
 
368 368
 
369
-    ?>
369
+        ?>
370 370
 
371 371
 
372 372
 
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
                   <button type="submit"   class="btn btn-success btn-sm   "
414 414
 
415 415
                   <?php echo $disabled?>
416
-
416
+    
417 417
                 <?php echo $disabled1?>
418 418
 
419 419
                   >
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 
449 449
 
450 450
 
451
-         $tampil=mysql_query("SELECT b.*,c.customer,a.tanggal 
451
+             $tampil=mysql_query("SELECT b.*,c.customer,a.tanggal 
452 452
 
453 453
                                 , case when b.id_barang = '0' then e.paket else d.barang end as barang 
454 454
 
@@ -492,63 +492,63 @@  discard block
 block discarded – undo
492 492
 
493 493
          
494 494
 
495
-         $no = 1;
495
+             $no = 1;
496 496
 
497 497
          
498 498
 
499
-         while ($r=mysql_fetch_array($tampil)){  
499
+             while ($r=mysql_fetch_array($tampil)){  
500 500
 
501 501
 
502 502
 
503 503
           
504 504
 
505
-          $tgl = date("d/m/y", strtotime($r['tanggal']));
505
+              $tgl = date("d/m/y", strtotime($r['tanggal']));
506 506
 
507 507
 
508 508
 
509 509
              
510 510
 
511
-         echo"<tr>";
511
+             echo"<tr>";
512 512
 
513 513
 
514 514
 
515
-         echo"<td>$tgl </td>";
515
+             echo"<td>$tgl </td>";
516 516
 
517
-         echo"<td>$r[notrans]</td>";
517
+             echo"<td>$r[notrans]</td>";
518 518
 
519
-         echo"<td>$r[customer]</td>";
519
+             echo"<td>$r[customer]</td>";
520 520
 
521
-         echo"<td>$r[barang]</td>";
521
+             echo"<td>$r[barang]</td>";
522 522
 
523
-         echo"<td  style='text-align:right;'>".number_format($r[total],'0','.',',')."</td>";
523
+             echo"<td  style='text-align:right;'>".number_format($r[total],'0','.',',')."</td>";
524 524
 
525
-         echo"<td  style='text-align:right;'>".number_format($r[disc1],'2','.',',')." % | Rp. ".number_format($r[disc_value1],'0','.',',')."</td>";
525
+             echo"<td  style='text-align:right;'>".number_format($r[disc1],'2','.',',')." % | Rp. ".number_format($r[disc_value1],'0','.',',')."</td>";
526 526
 
527
-         echo"<td>";
527
+             echo"<td>";
528 528
 
529
-         ?>
529
+             ?>
530 530
 
531 531
          <select name="status<?php echo $no;?>" class="form-control" onchange="Getstatus<?php echo $no;?>(this.value)">
532 532
 
533 533
         <?
534 534
 
535
-          $query = mysql_query('SELECT * FROM status ORDER BY id_status');
535
+              $query = mysql_query('SELECT * FROM status ORDER BY id_status');
536 536
 
537
-           if($query && mysql_num_rows($query) > 0){
537
+               if($query && mysql_num_rows($query) > 0){
538 538
 
539
-              while($row = mysql_fetch_object($query)){
539
+                  while($row = mysql_fetch_object($query)){
540 540
 
541
-              echo '<option value="'.$row->id_status.'"';
541
+                  echo '<option value="'.$row->id_status.'"';
542 542
 
543
-              if($row->id_status == $r[status_diskon]) echo ' selected';
543
+                  if($row->id_status == $r[status_diskon]) echo ' selected';
544 544
 
545
-              echo '>'.$row->status.'</option>';
545
+                  echo '>'.$row->status.'</option>';
546 546
 
547
-              }
547
+                  }
548 548
 
549
-           }        
549
+               }        
550 550
 
551
-        ?>  
551
+            ?>  
552 552
 
553 553
         </select>        
554 554
 
@@ -558,43 +558,43 @@  discard block
 block discarded – undo
558 558
 
559 559
          <?
560 560
 
561
-         echo"</td>";  
561
+             echo"</td>";  
562 562
 
563
-         echo"<td style='text-align:center;'>";  
563
+             echo"<td style='text-align:center;'>";  
564 564
 
565 565
        
566 566
 
567
-        echo"<input type='hidden' name='id".$no."' value = '$r[id_penjualan_barang_detail]'>";
567
+            echo"<input type='hidden' name='id".$no."' value = '$r[id_penjualan_barang_detail]'>";
568 568
 
569
-        echo"<input type='hidden' name='prd".$no."' value = '$r[prd]'>"; 
569
+            echo"<input type='hidden' name='prd".$no."' value = '$r[prd]'>"; 
570 570
 
571
-        echo"<input type='hidden' name='notrans".$no."' value = '$r[notrans]'>";
571
+            echo"<input type='hidden' name='notrans".$no."' value = '$r[notrans]'>";
572 572
 
573
-        echo"<input type='hidden' name='outlet".$no."' value = '$r[id_outlet]'>"; 
573
+            echo"<input type='hidden' name='outlet".$no."' value = '$r[id_outlet]'>"; 
574 574
 
575
-        echo"<input type='hidden' name='p_status".$no."' id='p_status".$no."' value = '$status'>"; 
575
+            echo"<input type='hidden' name='p_status".$no."' id='p_status".$no."' value = '$status'>"; 
576 576
 
577 577
 
578 578
 
579 579
          
580 580
 
581
-  // echo"<a class='btn btn-default btn-sm' href='?module=$module&id_module=$id_module&id_pemesanan_barang=$r[id_pemesanan_barang]&prd=$prd&outlet=$outlet&act=detail' title='Detail Penarikan Simpanan'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; 
581
+      // echo"<a class='btn btn-default btn-sm' href='?module=$module&id_module=$id_module&id_pemesanan_barang=$r[id_pemesanan_barang]&prd=$prd&outlet=$outlet&act=detail' title='Detail Penarikan Simpanan'><span class='icon'><i class='fa fa-pencil-square-o'></i></span></a>"; 
582 582
 
583 583
  
584 584
 
585
-         echo"</td>";          
585
+             echo"</td>";          
586 586
 
587 587
 
588 588
 
589
-         echo"</tr>";
589
+             echo"</tr>";
590 590
 
591
-         $no++;            
591
+             $no++;            
592 592
 
593
-         }
593
+             }
594 594
 
595 595
        
596 596
 
597
-         ?>
597
+             ?>
598 598
 
599 599
 
600 600
 
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
 
693 693
     <?php
694 694
 
695
-break;
695
+    break;
696 696
 
697 697
 }
698 698
 
Please login to merge, or discard this patch.