Passed
Pull Request — master (#7)
by Saepul
04:10
created
modul/mod_report_rekap_harian/eprint_report_rekap_harian.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
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.