Passed
Pull Request — master (#7)
by Saepul
04:54
created
modal.php 2 patches
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -109,16 +109,16 @@  discard block
 block discarded – undo
109 109
                                          <p class="pull-right">
110 110
                                          <select name="itipe_barang" class="form-control" onChange="document.myform.submit();">
111 111
                                             <?php
112
-                                              $query = mysql_query('SELECT * FROM tipe_barang ORDER BY id_tipe_barang');
113
-                                               if ($query && mysql_num_rows($query) > 0) {
114
-                                                   while ($row = mysql_fetch_object($query)) {
115
-                                                       echo '<option value="'.$row->id_tipe_barang.'"';
116
-                                                       if ($row->id_tipe_barang == $tipe_barang) {
117
-                                                           echo ' selected';
118
-                                                       }
119
-                                                       echo '>'.$row->tipe_barang.'</option>';
120
-                                                   }
121
-                                               }
112
+                                                $query = mysql_query('SELECT * FROM tipe_barang ORDER BY id_tipe_barang');
113
+                                                if ($query && mysql_num_rows($query) > 0) {
114
+                                                    while ($row = mysql_fetch_object($query)) {
115
+                                                        echo '<option value="'.$row->id_tipe_barang.'"';
116
+                                                        if ($row->id_tipe_barang == $tipe_barang) {
117
+                                                            echo ' selected';
118
+                                                        }
119
+                                                        echo '>'.$row->tipe_barang.'</option>';
120
+                                                    }
121
+                                                }
122 122
                                             ?>  
123 123
                                             </select>        
124 124
                                         </p>
@@ -126,16 +126,16 @@  discard block
 block discarded – undo
126 126
                                          <p class="pull-right">
127 127
                                          <select name="ioutlet" class="form-control" onChange="document.myform.submit();">
128 128
                                             <?php
129
-                                              $query = mysql_query('SELECT * FROM outlet ORDER BY id_outlet');
130
-                                               if ($query && mysql_num_rows($query) > 0) {
131
-                                                   while ($row = mysql_fetch_object($query)) {
132
-                                                       echo '<option value="'.$row->id_outlet.'"';
133
-                                                       if ($row->id_outlet == $outlet) {
134
-                                                           echo ' selected';
135
-                                                       }
136
-                                                       echo '>'.$row->outlet.'</option>';
137
-                                                   }
138
-                                               }
129
+                                                $query = mysql_query('SELECT * FROM outlet ORDER BY id_outlet');
130
+                                                if ($query && mysql_num_rows($query) > 0) {
131
+                                                    while ($row = mysql_fetch_object($query)) {
132
+                                                        echo '<option value="'.$row->id_outlet.'"';
133
+                                                        if ($row->id_outlet == $outlet) {
134
+                                                            echo ' selected';
135
+                                                        }
136
+                                                        echo '>'.$row->outlet.'</option>';
137
+                                                    }
138
+                                                }
139 139
                                             ?>  
140 140
                                             </select>        
141 141
                                         </p>
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                             
176 176
                          <?php
177 177
 
178
-                          $SQL = "SELECT b.jenis_barang
178
+                            $SQL = "SELECT b.jenis_barang
179 179
                                     ,c.unit_barang
180 180
                                     ,a.kode as kode_barang
181 181
                                      ,a.id_barang
@@ -208,15 +208,15 @@  discard block
 block discarded – undo
208 208
                                         ,d.harga_jual
209 209
                                       ORDER BY a.id_jenis_barang,a.kode";
210 210
 
211
-                             $tampil = mysql_query($SQL);
211
+                                $tampil = mysql_query($SQL);
212 212
 
213
-                             $no = 1;
213
+                                $no = 1;
214 214
 
215
-                             while ($r = mysql_fetch_array($tampil)) {
216
-                                 $id_barang = $r['id_barang'];
217
-                                 $kode_barang = $r['kode_barang'];
215
+                                while ($r = mysql_fetch_array($tampil)) {
216
+                                    $id_barang = $r['id_barang'];
217
+                                    $kode_barang = $r['kode_barang'];
218 218
 
219
-                                 $dsql = mysql_query("SELECT sum(qty) as reserve
219
+                                    $dsql = mysql_query("SELECT sum(qty) as reserve
220 220
                                                       FROM stok_reserved
221 221
                                                       WHERE id_barang_promosi = '$id_barang'
222 222
                                                       AND id_outlet = '$outlet'
@@ -224,35 +224,35 @@  discard block
 block discarded – undo
224 224
                                                        and prd = '$prd'
225 225
                                                       ");
226 226
 
227
-                                 $d = mysql_fetch_array($dsql);
227
+                                    $d = mysql_fetch_array($dsql);
228 228
 
229
-                                 if ($d['reserve']) {
230
-                                     $reserve = $d['reserve'];
231
-                                 } else {
232
-                                     $reserve = 0;
233
-                                 }
229
+                                    if ($d['reserve']) {
230
+                                        $reserve = $d['reserve'];
231
+                                    } else {
232
+                                        $reserve = 0;
233
+                                    }
234 234
 
235
-                                 $sisa_stok = $r['stok'] - $reserve;
235
+                                    $sisa_stok = $r['stok'] - $reserve;
236 236
 
237
-                                 if ($sisa_stok == '0') {
238
-                                     echo '';
239
-                                 } else {
240
-                                     echo'<tr>';
241
-                                     echo" <td  style='text-align:center;'>";
242
-                                     echo"<a href='../../modul/mod_$module/aksi_$module.php?module=$module&act=add&barcode=$kode_barang&prd=$prd&notrans=$notrans&kode=$kode&tanggal=$tanggal&customer=$customer&outlet=$outlet&id_outlet=$id_outlet&id_module=$id_module&look=1'  title=''><span class='icon'><i class='fa fa-check'></i></span></a>";
237
+                                    if ($sisa_stok == '0') {
238
+                                        echo '';
239
+                                    } else {
240
+                                        echo'<tr>';
241
+                                        echo" <td  style='text-align:center;'>";
242
+                                        echo"<a href='../../modul/mod_$module/aksi_$module.php?module=$module&act=add&barcode=$kode_barang&prd=$prd&notrans=$notrans&kode=$kode&tanggal=$tanggal&customer=$customer&outlet=$outlet&id_outlet=$id_outlet&id_module=$id_module&look=1'  title=''><span class='icon'><i class='fa fa-check'></i></span></a>";
243 243
 
244
-                                     echo'</td>';
245
-                                     echo'<td>'.$r['jenis_barang'].'</td>';
246
-                                     echo'<td>'.$r['kode_barang'].'</td>';
247
-                                     echo'<td>'.$r['barang'].'</td>';
248
-                                     echo'<td>'.$r['unit_barang'].'</td>';
249
-                                     echo"<td style='text-align:right;'>".number_format($r['harga_jual'], 0, '.', ',').'</td>';
244
+                                        echo'</td>';
245
+                                        echo'<td>'.$r['jenis_barang'].'</td>';
246
+                                        echo'<td>'.$r['kode_barang'].'</td>';
247
+                                        echo'<td>'.$r['barang'].'</td>';
248
+                                        echo'<td>'.$r['unit_barang'].'</td>';
249
+                                        echo"<td style='text-align:right;'>".number_format($r['harga_jual'], 0, '.', ',').'</td>';
250 250
 
251
-                                     echo'</tr>';
252
-                                 }
251
+                                        echo'</tr>';
252
+                                    }
253 253
 
254
-                                 $no++;
255
-                             }
254
+                                    $no++;
255
+                                }
256 256
                                 ?>
257 257
                          </tbody>
258 258
                     </table>
Please login to merge, or discard this 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_report_revenue/eprint_report_revenue.php 2 patches
Indentation   +94 added lines, -94 removed lines patch added patch discarded remove patch
@@ -146,49 +146,49 @@  discard block
 block discarded – undo
146 146
 
147 147
       <?php
148 148
 
149
-       $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
149
+        $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
150 150
 
151
-       $g = mysql_fetch_array($gtampil);
151
+        $g = mysql_fetch_array($gtampil);
152 152
 
153
-      if ($g['pict']) {
154
-          $pict = $g['pict'];
155
-      } else {
156
-          $pict = '';
157
-      }
153
+        if ($g['pict']) {
154
+            $pict = $g['pict'];
155
+        } else {
156
+            $pict = '';
157
+        }
158 158
 
159
-      $company = ucwords($g['company']);
159
+        $company = ucwords($g['company']);
160 160
 
161
-      $jsql = mysql_query("SELECT * FROM jenis_transaksi
161
+        $jsql = mysql_query("SELECT * FROM jenis_transaksi
162 162
                             WHERE id_jenis_transaksi = '$jenis_transaksi' 
163 163
 
164 164
                            ");
165 165
 
166
-      $j = mysql_fetch_array($jsql);
166
+        $j = mysql_fetch_array($jsql);
167 167
 
168
-      $jenis_transaksi = $j['jenis_transaksi'];
168
+        $jenis_transaksi = $j['jenis_transaksi'];
169 169
 
170
-      $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
170
+        $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
171 171
                             ON a.id_shift = b.id_shift
172 172
                             WHERE a.id_kasir = '$k_ID' 
173 173
 
174 174
                            ");
175 175
 
176
-      $r = mysql_fetch_array($sql);
176
+        $r = mysql_fetch_array($sql);
177 177
 
178
-      $penjualan_barang = $r['id_kasir'];
178
+        $penjualan_barang = $r['id_kasir'];
179 179
 
180
-      $shift = $r['shift'];
180
+        $shift = $r['shift'];
181 181
 
182
-      $petugas = $r['petugas'];
182
+        $petugas = $r['petugas'];
183 183
 
184
-      $status = $r['status'];
184
+        $status = $r['status'];
185 185
 
186
-      $tanggal = date('d/m/Y', strtotime($r['tanggal']));
186
+        $tanggal = date('d/m/Y', strtotime($r['tanggal']));
187 187
 
188
-      ?>
188
+        ?>
189 189
 
190 190
       <?php if ($tipe == 'R') {
191
-          ?>
191
+            ?>
192 192
 
193 193
 
194 194
         <table width="100%">
@@ -214,14 +214,14 @@  discard block
 block discarded – undo
214 214
             <?php
215 215
             $htampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
216 216
 
217
-          $hjml = mysql_num_rows($htampil);
217
+            $hjml = mysql_num_rows($htampil);
218 218
 
219
-          while ($h = mysql_fetch_array($htampil)) {
220
-              echo '<tr>';
221
-              echo '<td>'.$h['jenis_transaksi'].'</td>';
219
+            while ($h = mysql_fetch_array($htampil)) {
220
+                echo '<tr>';
221
+                echo '<td>'.$h['jenis_transaksi'].'</td>';
222 222
 
223
-              //transaksi umum tunai
224
-              $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
223
+                //transaksi umum tunai
224
+                $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
225 225
                             , IFNULL(SUM(c.jumlah),0) as rp  
226 226
                           FROM kasir b LEFT JOIN kasir_detail c
227 227
                           ON  b.id_kasir = c.id_kasir
@@ -230,13 +230,13 @@  discard block
 block discarded – undo
230 230
                           AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
231 231
                           AND b.status != '4'");
232 232
 
233
-              $d = mysql_fetch_array($dtampil);
233
+                $d = mysql_fetch_array($dtampil);
234 234
 
235
-              echo '<th>'.$d['jml'].'</th>';
236
-              echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
235
+                echo '<th>'.$d['jml'].'</th>';
236
+                echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
237 237
 
238
-              echo '</tr>';
239
-          } ?>        
238
+                echo '</tr>';
239
+            } ?>        
240 240
 
241 241
 
242 242
              <tr>
@@ -250,10 +250,10 @@  discard block
 block discarded – undo
250 250
                                 WHERE b.tanggal like '$prd%'
251 251
                                 AND b.status != '4'");
252 252
 
253
-          $d = mysql_fetch_array($dtampil);
253
+            $d = mysql_fetch_array($dtampil);
254 254
 
255
-          echo '<th>'.$d['jml'].'</th>';
256
-          echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>'; ?>        
255
+            echo '<th>'.$d['jml'].'</th>';
256
+            echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>'; ?>        
257 257
 
258 258
               </tr>  
259 259
 
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
 
292 292
 
293 293
       <?php
294
-      } else {
295
-          ?>
294
+        } else {
295
+            ?>
296 296
 
297 297
           <table width="100%">
298 298
           <tr>
@@ -323,11 +323,11 @@  discard block
 block discarded – undo
323 323
 
324 324
                     $htampil = mysql_query("SELECT * FROM penjamin where aktif = 'Y' ORDER BY id_penjamin");
325 325
 
326
-          $hjml = mysql_num_rows($htampil);
326
+            $hjml = mysql_num_rows($htampil);
327 327
 
328
-          while ($h = mysql_fetch_array($htampil)) {
329
-              echo "<th colspan='2' rowspan='2'>".$h['penjamin'].'</th>';
330
-          } ?>   
328
+            while ($h = mysql_fetch_array($htampil)) {
329
+                echo "<th colspan='2' rowspan='2'>".$h['penjamin'].'</th>';
330
+            } ?>   
331 331
                  
332 332
                    <th colspan ="4" >UMUM</th>  
333 333
                    <th colspan ="2" rowspan='2'>TOTAL</th>  
@@ -367,15 +367,15 @@  discard block
 block discarded – undo
367 367
 
368 368
                 $htampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
369 369
 
370
-          $hjml = mysql_num_rows($htampil);
370
+            $hjml = mysql_num_rows($htampil);
371 371
 
372
-          while ($h = mysql_fetch_array($htampil)) {
373
-              echo'<tr>';
372
+            while ($h = mysql_fetch_array($htampil)) {
373
+                echo'<tr>';
374 374
 
375
-              echo'<td>'.$h['jenis_transaksi'].'</td>';
375
+                echo'<td>'.$h['jenis_transaksi'].'</td>';
376 376
 
377
-              //transaksi asuransi
378
-              $dtampil1 = mysql_query("SELECT a.id_penjamin
377
+                //transaksi asuransi
378
+                $dtampil1 = mysql_query("SELECT a.id_penjamin
379 379
                           , COUNT(c.jumlah) as jml 
380 380
                           , IFNULL(SUM(c.jumlah),0) as rp  
381 381
                         FROM penjamin a LEFT JOIN kasir b
@@ -391,12 +391,12 @@  discard block
 block discarded – undo
391 391
                         GROUP BY a.id_penjamin
392 392
                         ORDER BY a.id_penjamin");
393 393
 
394
-              while ($d1 = mysql_fetch_array($dtampil1)) {
395
-                  echo "<td style='text-align:center;'>".$d1['jml'].'</td>';
396
-                  echo "<td style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</td>';
397
-              }
394
+                while ($d1 = mysql_fetch_array($dtampil1)) {
395
+                    echo "<td style='text-align:center;'>".$d1['jml'].'</td>';
396
+                    echo "<td style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</td>';
397
+                }
398 398
 
399
-              $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
399
+                $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
400 400
                                             ,   IFNULL(SUM(c.jumlah),0) as rp  
401 401
                                         FROM kasir b LEFT JOIN kasir_detail c
402 402
                                         ON  b.id_kasir = c.id_kasir
@@ -406,12 +406,12 @@  discard block
 block discarded – undo
406 406
                       AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
407 407
                                         AND b.status != '4'");
408 408
 
409
-              $d2 = mysql_fetch_array($dtampil2);
409
+                $d2 = mysql_fetch_array($dtampil2);
410 410
 
411
-              echo "<td style='text-align:center;'>".$d2['jml'].'</td>';
412
-              echo "<td style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</td>';
411
+                echo "<td style='text-align:center;'>".$d2['jml'].'</td>';
412
+                echo "<td style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</td>';
413 413
 
414
-              $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
414
+                $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
415 415
                         , IFNULL(SUM(c.jumlah),0) as rp  
416 416
                       FROM kasir b LEFT JOIN kasir_detail c
417 417
                       ON  b.id_kasir = c.id_kasir
@@ -421,12 +421,12 @@  discard block
 block discarded – undo
421 421
                       AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
422 422
                       AND b.status != '4'");
423 423
 
424
-              $d3 = mysql_fetch_array($dtampil3);
424
+                $d3 = mysql_fetch_array($dtampil3);
425 425
 
426
-              echo "<td style='text-align:center;'>".$d3['jml'].'</td>';
427
-              echo "<td style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</td>';
426
+                echo "<td style='text-align:center;'>".$d3['jml'].'</td>';
427
+                echo "<td style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</td>';
428 428
 
429
-              $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
429
+                $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
430 430
                             , IFNULL(SUM(c.jumlah),0) as rp  
431 431
                           FROM kasir b LEFT JOIN kasir_detail c
432 432
                           ON  b.id_kasir = c.id_kasir
@@ -435,13 +435,13 @@  discard block
 block discarded – undo
435 435
                           AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
436 436
                           AND b.status != '4'");
437 437
 
438
-              $d = mysql_fetch_array($dtampil);
438
+                $d = mysql_fetch_array($dtampil);
439 439
 
440
-              echo "<td style='text-align:center;'>".$d['jml'].'</td>';
441
-              echo "<td style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</td>';
440
+                echo "<td style='text-align:center;'>".$d['jml'].'</td>';
441
+                echo "<td style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</td>';
442 442
 
443
-              echo'</tr>';
444
-          } ?>
443
+                echo'</tr>';
444
+            } ?>
445 445
 
446 446
             </tbody>
447 447
 
@@ -449,12 +449,12 @@  discard block
 block discarded – undo
449 449
 
450 450
               <?php 
451 451
 
452
-                 echo'<tr>';
452
+                    echo'<tr>';
453 453
 
454
-          echo'<th>TOTAL</th>';
454
+            echo'<th>TOTAL</th>';
455 455
 
456
-          //transaksi asuransi
457
-          $dtampil1 = mysql_query("SELECT a.id_penjamin
456
+            //transaksi asuransi
457
+            $dtampil1 = mysql_query("SELECT a.id_penjamin
458 458
                           , COUNT(c.jumlah) as jml 
459 459
                           , IFNULL(SUM(c.jumlah),0) as rp  
460 460
                         FROM penjamin a LEFT JOIN kasir b
@@ -469,12 +469,12 @@  discard block
 block discarded – undo
469 469
                         GROUP BY a.id_penjamin
470 470
                         ORDER BY a.id_penjamin");
471 471
 
472
-          while ($d1 = mysql_fetch_array($dtampil1)) {
473
-              echo '<th>'.$d1['jml'].'</th>';
474
-              echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
475
-          }
472
+            while ($d1 = mysql_fetch_array($dtampil1)) {
473
+                echo '<th>'.$d1['jml'].'</th>';
474
+                echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
475
+            }
476 476
 
477
-          $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
477
+            $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
478 478
                                             ,   IFNULL(SUM(c.jumlah),0) as rp  
479 479
                                         FROM kasir b LEFT JOIN kasir_detail c
480 480
                                         ON  b.id_kasir = c.id_kasir
@@ -483,12 +483,12 @@  discard block
 block discarded – undo
483 483
                                         WHERE b.tanggal LIKE '$prd%'
484 484
                                         AND b.status != '4'");
485 485
 
486
-          $d2 = mysql_fetch_array($dtampil2);
486
+            $d2 = mysql_fetch_array($dtampil2);
487 487
 
488
-          echo '<th>'.$d2['jml'].'</th>';
489
-          echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
488
+            echo '<th>'.$d2['jml'].'</th>';
489
+            echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
490 490
 
491
-          $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
491
+            $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
492 492
                         , IFNULL(SUM(c.jumlah),0) as rp  
493 493
                       FROM kasir b LEFT JOIN kasir_detail c
494 494
                       ON  b.id_kasir = c.id_kasir
@@ -497,12 +497,12 @@  discard block
 block discarded – undo
497 497
                       WHERE b.tanggal LIKE '$prd%'
498 498
                       AND b.status != '4'");
499 499
 
500
-          $d3 = mysql_fetch_array($dtampil3);
500
+            $d3 = mysql_fetch_array($dtampil3);
501 501
 
502
-          echo '<th>'.$d3['jml'].'</th>';
503
-          echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
502
+            echo '<th>'.$d3['jml'].'</th>';
503
+            echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
504 504
 
505
-          $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
505
+            $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
506 506
                             , IFNULL(SUM(c.jumlah),0) as rp  
507 507
                           FROM kasir b LEFT JOIN kasir_detail c
508 508
                           ON  b.id_kasir = c.id_kasir
@@ -510,12 +510,12 @@  discard block
 block discarded – undo
510 510
                           WHERE b.tanggal like '$prd%'
511 511
                           AND b.status != '4'");
512 512
 
513
-          $d = mysql_fetch_array($dtampil);
513
+            $d = mysql_fetch_array($dtampil);
514 514
 
515
-          echo '<th>'.$d['jml'].'</th>';
516
-          echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
515
+            echo '<th>'.$d['jml'].'</th>';
516
+            echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
517 517
 
518
-          echo'</tr>'; ?>
518
+            echo'</tr>'; ?>
519 519
 
520 520
       
521 521
 
@@ -529,17 +529,17 @@  discard block
 block discarded – undo
529 529
 
530 530
         $lastday = date('t', strtotime($iprd));
531 531
 
532
-          $year = date('Y', strtotime($iprd));
532
+            $year = date('Y', strtotime($iprd));
533 533
 
534
-          $month = date('m', strtotime($iprd)) * 1;
534
+            $month = date('m', strtotime($iprd)) * 1;
535 535
 
536
-          if ($month == '1') {
537
-              $imonth = 12;
538
-          } else {
539
-              $imonth = $month - 1;
540
-          }
536
+            if ($month == '1') {
537
+                $imonth = 12;
538
+            } else {
539
+                $imonth = $month - 1;
540
+            }
541 541
 
542
-          $nprd = $lastday.' '.getBulan1($imonth).' '.$year; ?>
542
+            $nprd = $lastday.' '.getBulan1($imonth).' '.$year; ?>
543 543
 
544 544
       <table width="100%">
545 545
           <tr>
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
        
571 571
 
572 572
     <?php
573
-      } ?>
573
+        } ?>
574 574
 
575 575
 
576 576
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 header('Content-Type: application/download');
119 119
 header('Content-Type: application/vnd.ms-excel');
120 120
 
121
-if ($tipe == 'R') {
121
+if ($tipe=='R') {
122 122
     header("Content-Disposition: attachment;filename=rekap_revenue_$nprd.xls ");
123 123
 } else {
124 124
     header("Content-Disposition: attachment;filename=detail_rekap_$nprd.xls ");
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
       ?>
189 189
 
190
-      <?php if ($tipe == 'R') {
190
+      <?php if ($tipe=='R') {
191 191
           ?>
192 192
 
193 193
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 
345 345
 
346 346
                    <?php 
347
-                    for ($j = 1; $j <= $hjml; $j++) {
347
+                    for ($j = 1; $j<=$hjml; $j++) {
348 348
                         echo '<th>KUNJ</th>';
349 349
                         echo '<th>REV</th>';
350 350
                     } ?> 
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
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;
Please login to merge, or discard this patch.
modul/mod_report_revenue/print_report_revenue.php 2 patches
Indentation   +98 added lines, -98 removed lines patch added patch discarded remove patch
@@ -244,50 +244,50 @@  discard block
 block discarded – undo
244 244
 
245 245
       <?php
246 246
 
247
-       $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
247
+        $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
248 248
 
249
-       $g = mysql_fetch_array($gtampil);
249
+        $g = mysql_fetch_array($gtampil);
250 250
 
251
-      if ($g['pict']) {
252
-          $pict = $g['pict'];
253
-      } else {
254
-          $pict = '';
255
-      }
251
+        if ($g['pict']) {
252
+            $pict = $g['pict'];
253
+        } else {
254
+            $pict = '';
255
+        }
256 256
 
257
-      $company = ucwords($g['company']);
257
+        $company = ucwords($g['company']);
258 258
 
259
-      $jsql = mysql_query("SELECT * FROM jenis_transaksi
259
+        $jsql = mysql_query("SELECT * FROM jenis_transaksi
260 260
                             WHERE id_jenis_transaksi = '$jenis_transaksi' 
261 261
 								
262 262
 
263 263
                            ");
264 264
 
265
-      $j = mysql_fetch_array($jsql);
265
+        $j = mysql_fetch_array($jsql);
266 266
 
267
-      $jenis_transaksi = $j['jenis_transaksi'];
267
+        $jenis_transaksi = $j['jenis_transaksi'];
268 268
 
269
-      $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
269
+        $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
270 270
                             ON a.id_shift = b.id_shift
271 271
                             WHERE a.id_kasir = '$k_ID' 
272 272
 
273 273
                            ");
274 274
 
275
-      $r = mysql_fetch_array($sql);
275
+        $r = mysql_fetch_array($sql);
276 276
 
277
-      $penjualan_barang = $r['id_kasir'];
277
+        $penjualan_barang = $r['id_kasir'];
278 278
 
279
-      $shift = $r['shift'];
279
+        $shift = $r['shift'];
280 280
 
281
-      $petugas = $r['petugas'];
281
+        $petugas = $r['petugas'];
282 282
 
283
-      $status = $r['status'];
283
+        $status = $r['status'];
284 284
 
285
-      $tanggal = date('d/m/Y', strtotime($r['tanggal']));
285
+        $tanggal = date('d/m/Y', strtotime($r['tanggal']));
286 286
 
287
-      ?>
287
+        ?>
288 288
 
289 289
       <?php if ($tipe == 'R') {
290
-          ?>
290
+            ?>
291 291
 
292 292
 
293 293
         <table width="100%">
@@ -314,14 +314,14 @@  discard block
 block discarded – undo
314 314
             <?php
315 315
             $htampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' AND id_jenis_transaksi != '6' ORDER BY id_jenis_transaksi");
316 316
 
317
-          $hjml = mysql_num_rows($htampil);
317
+            $hjml = mysql_num_rows($htampil);
318 318
 
319
-          while ($h = mysql_fetch_array($htampil)) {
320
-              echo '<tr>';
321
-              echo '<td>'.$h['jenis_transaksi'].'</td>';
319
+            while ($h = mysql_fetch_array($htampil)) {
320
+                echo '<tr>';
321
+                echo '<td>'.$h['jenis_transaksi'].'</td>';
322 322
 
323
-              //transaksi umum tunai
324
-              $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
323
+                //transaksi umum tunai
324
+                $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
325 325
                             , IFNULL(SUM(c.jumlah),0) as rp  
326 326
                           FROM kasir b LEFT JOIN kasir_detail c
327 327
                           ON  b.id_kasir = c.id_kasir
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
                           AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
331 331
                           AND b.status != '4'");
332 332
 
333
-              $d = mysql_fetch_array($dtampil);
333
+                $d = mysql_fetch_array($dtampil);
334 334
 
335
-              echo '<th>'.$d['jml'].'</th>';
336
-              echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
335
+                echo '<th>'.$d['jml'].'</th>';
336
+                echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
337 337
 
338
-              echo '</tr>';
339
-          } ?>        
338
+                echo '</tr>';
339
+            } ?>        
340 340
 
341 341
             </tbody>
342 342
 
@@ -351,10 +351,10 @@  discard block
 block discarded – undo
351 351
                                 WHERE b.tanggal like '$prd%'
352 352
                                 AND b.status != '4'");
353 353
 
354
-          $d = mysql_fetch_array($dtampil);
354
+            $d = mysql_fetch_array($dtampil);
355 355
 
356
-          echo '<th>'.$d['jml'].'</th>';
357
-          echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>'; ?>        
356
+            echo '<th>'.$d['jml'].'</th>';
357
+            echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>'; ?>        
358 358
 
359 359
               </tr>  
360 360
 
@@ -382,8 +382,8 @@  discard block
 block discarded – undo
382 382
 
383 383
 
384 384
       <?php
385
-      } else {
386
-          ?>
385
+        } else {
386
+            ?>
387 387
 
388 388
           <table width="100%">
389 389
           <tr>
@@ -404,11 +404,11 @@  discard block
 block discarded – undo
404 404
 
405 405
                     $htampil = mysql_query("SELECT * FROM penjamin where aktif = 'Y' ORDER BY id_penjamin");
406 406
 
407
-          $hjml = mysql_num_rows($htampil);
407
+            $hjml = mysql_num_rows($htampil);
408 408
 
409
-          while ($h = mysql_fetch_array($htampil)) {
410
-              echo "<th colspan='2' rowspan='2'>".$h['penjamin'].'</th>';
411
-          } ?> 	
409
+            while ($h = mysql_fetch_array($htampil)) {
410
+                echo "<th colspan='2' rowspan='2'>".$h['penjamin'].'</th>';
411
+            } ?> 	
412 412
                  
413 413
                    <th colspan ="4" >UMUM</th>  
414 414
                    <th colspan ="2" rowspan='2'>TOTAL</th>  
@@ -425,10 +425,10 @@  discard block
 block discarded – undo
425 425
 
426 426
 
427 427
                    <?php 
428
-                       for ($j = 1; $j <= $hjml; $j++) {
429
-                           echo '<th>KUNJ</th>';
430
-                           echo '<th>REV</th>';
431
-                       } ?>	
428
+                        for ($j = 1; $j <= $hjml; $j++) {
429
+                            echo '<th>KUNJ</th>';
430
+                            echo '<th>REV</th>';
431
+                        } ?>	
432 432
 
433 433
 
434 434
                    <th>KUNJ</th>  
@@ -448,15 +448,15 @@  discard block
 block discarded – undo
448 448
 
449 449
                 $htampil = mysql_query("SELECT * FROM jenis_transaksi where aktif = 'Y' ORDER BY id_jenis_transaksi");
450 450
 
451
-          $hjml = mysql_num_rows($htampil);
451
+            $hjml = mysql_num_rows($htampil);
452 452
 
453
-          while ($h = mysql_fetch_array($htampil)) {
454
-              echo'<tr>';
453
+            while ($h = mysql_fetch_array($htampil)) {
454
+                echo'<tr>';
455 455
 
456
-              echo'<td>'.$h['jenis_transaksi'].'</td>';
456
+                echo'<td>'.$h['jenis_transaksi'].'</td>';
457 457
 
458
-              //transaksi asuransi
459
-              $dtampil1 = mysql_query("SELECT a.id_penjamin
458
+                //transaksi asuransi
459
+                $dtampil1 = mysql_query("SELECT a.id_penjamin
460 460
                           , COUNT(c.jumlah) as jml 
461 461
                           , IFNULL(SUM(c.jumlah),0) as rp  
462 462
                         FROM penjamin a LEFT JOIN kasir b
@@ -472,12 +472,12 @@  discard block
 block discarded – undo
472 472
                         GROUP BY a.id_penjamin
473 473
                         ORDER BY a.id_penjamin");
474 474
 
475
-              while ($d1 = mysql_fetch_array($dtampil1)) {
476
-                  echo "<td style='text-align:center;'>".$d1['jml'].'</td>';
477
-                  echo "<td style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</td>';
478
-              }
475
+                while ($d1 = mysql_fetch_array($dtampil1)) {
476
+                    echo "<td style='text-align:center;'>".$d1['jml'].'</td>';
477
+                    echo "<td style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</td>';
478
+                }
479 479
 
480
-              $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
480
+                $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
481 481
                                             ,   IFNULL(SUM(c.jumlah),0) as rp  
482 482
                                         FROM kasir b LEFT JOIN kasir_detail c
483 483
                                         ON  b.id_kasir = c.id_kasir
@@ -487,12 +487,12 @@  discard block
 block discarded – undo
487 487
                       AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
488 488
                                         AND b.status != '4'");
489 489
 
490
-              $d2 = mysql_fetch_array($dtampil2);
490
+                $d2 = mysql_fetch_array($dtampil2);
491 491
 
492
-              echo "<td style='text-align:center;'>".$d2['jml'].'</td>';
493
-              echo "<td style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</td>';
492
+                echo "<td style='text-align:center;'>".$d2['jml'].'</td>';
493
+                echo "<td style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</td>';
494 494
 
495
-              $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
495
+                $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
496 496
                         , IFNULL(SUM(c.jumlah),0) as rp  
497 497
                       FROM kasir b LEFT JOIN kasir_detail c
498 498
                       ON  b.id_kasir = c.id_kasir
@@ -502,12 +502,12 @@  discard block
 block discarded – undo
502 502
                       AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
503 503
                       AND b.status != '4'");
504 504
 
505
-              $d3 = mysql_fetch_array($dtampil3);
505
+                $d3 = mysql_fetch_array($dtampil3);
506 506
 
507
-              echo "<td style='text-align:center;'>".$d3['jml'].'</td>';
508
-              echo "<td style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</td>';
507
+                echo "<td style='text-align:center;'>".$d3['jml'].'</td>';
508
+                echo "<td style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</td>';
509 509
 
510
-              $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
510
+                $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
511 511
                             , IFNULL(SUM(c.jumlah),0) as rp  
512 512
                           FROM kasir b LEFT JOIN kasir_detail c
513 513
                           ON  b.id_kasir = c.id_kasir
@@ -516,13 +516,13 @@  discard block
 block discarded – undo
516 516
                           AND c.id_jenis_transaksi = '".$h['id_jenis_transaksi']."'
517 517
                           AND b.status != '4'");
518 518
 
519
-              $d = mysql_fetch_array($dtampil);
519
+                $d = mysql_fetch_array($dtampil);
520 520
 
521
-              echo "<td style='text-align:center;'>".$d['jml'].'</td>';
522
-              echo "<td style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</td>';
521
+                echo "<td style='text-align:center;'>".$d['jml'].'</td>';
522
+                echo "<td style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</td>';
523 523
 
524
-              echo'</tr>';
525
-          } ?>
524
+                echo'</tr>';
525
+            } ?>
526 526
 
527 527
             </tbody>
528 528
 
@@ -530,12 +530,12 @@  discard block
 block discarded – undo
530 530
 
531 531
               <?php 
532 532
 
533
-                 echo'<tr>';
533
+                    echo'<tr>';
534 534
 
535
-          echo'<th>TOTAL</th>';
535
+            echo'<th>TOTAL</th>';
536 536
 
537
-          //transaksi asuransi
538
-          $dtampil1 = mysql_query("SELECT a.id_penjamin
537
+            //transaksi asuransi
538
+            $dtampil1 = mysql_query("SELECT a.id_penjamin
539 539
                           , COUNT(c.jumlah) as jml 
540 540
                           , IFNULL(SUM(c.jumlah),0) as rp  
541 541
                         FROM penjamin a LEFT JOIN kasir b
@@ -550,12 +550,12 @@  discard block
 block discarded – undo
550 550
                         GROUP BY a.id_penjamin
551 551
                         ORDER BY a.id_penjamin");
552 552
 
553
-          while ($d1 = mysql_fetch_array($dtampil1)) {
554
-              echo '<th>'.$d1['jml'].'</th>';
555
-              echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
556
-          }
553
+            while ($d1 = mysql_fetch_array($dtampil1)) {
554
+                echo '<th>'.$d1['jml'].'</th>';
555
+                echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
556
+            }
557 557
 
558
-          $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
558
+            $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
559 559
                                             ,   IFNULL(SUM(c.jumlah),0) as rp  
560 560
                                         FROM kasir b LEFT JOIN kasir_detail c
561 561
                                         ON  b.id_kasir = c.id_kasir
@@ -564,12 +564,12 @@  discard block
 block discarded – undo
564 564
                                         WHERE b.tanggal LIKE '$prd%'
565 565
                                         AND b.status != '4'");
566 566
 
567
-          $d2 = mysql_fetch_array($dtampil2);
567
+            $d2 = mysql_fetch_array($dtampil2);
568 568
 
569
-          echo '<th>'.$d2['jml'].'</th>';
570
-          echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
569
+            echo '<th>'.$d2['jml'].'</th>';
570
+            echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
571 571
 
572
-          $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
572
+            $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
573 573
                         , IFNULL(SUM(c.jumlah),0) as rp  
574 574
                       FROM kasir b LEFT JOIN kasir_detail c
575 575
                       ON  b.id_kasir = c.id_kasir
@@ -578,12 +578,12 @@  discard block
 block discarded – undo
578 578
                       WHERE b.tanggal LIKE '$prd%'
579 579
                       AND b.status != '4'");
580 580
 
581
-          $d3 = mysql_fetch_array($dtampil3);
581
+            $d3 = mysql_fetch_array($dtampil3);
582 582
 
583
-          echo '<th>'.$d3['jml'].'</th>';
584
-          echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
583
+            echo '<th>'.$d3['jml'].'</th>';
584
+            echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
585 585
 
586
-          $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
586
+            $dtampil = mysql_query("SELECT COUNT(c.jumlah) as jml 
587 587
                             , IFNULL(SUM(c.jumlah),0) as rp  
588 588
                           FROM kasir b LEFT JOIN kasir_detail c
589 589
                           ON  b.id_kasir = c.id_kasir
@@ -591,12 +591,12 @@  discard block
 block discarded – undo
591 591
                           WHERE b.tanggal like '$prd%'
592 592
                           AND b.status != '4'");
593 593
 
594
-          $d = mysql_fetch_array($dtampil);
594
+            $d = mysql_fetch_array($dtampil);
595 595
 
596
-          echo '<th>'.$d['jml'].'</th>';
597
-          echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
596
+            echo '<th>'.$d['jml'].'</th>';
597
+            echo "<th style='text-align:right;'>".number_format($d['rp'], 0, '.', ',').'</th>';
598 598
 
599
-          echo'</tr>'; ?>
599
+            echo'</tr>'; ?>
600 600
 
601 601
       
602 602
 
@@ -610,17 +610,17 @@  discard block
 block discarded – undo
610 610
 
611 611
         $lastday = date('t', strtotime($iprd));
612 612
 
613
-          $year = date('Y', strtotime($iprd));
613
+            $year = date('Y', strtotime($iprd));
614 614
 
615
-          $month = date('m', strtotime($iprd)) * 1;
615
+            $month = date('m', strtotime($iprd)) * 1;
616 616
 
617
-          if ($month == '1') {
618
-              $imonth = 12;
619
-          } else {
620
-              $imonth = $month - 1;
621
-          }
617
+            if ($month == '1') {
618
+                $imonth = 12;
619
+            } else {
620
+                $imonth = $month - 1;
621
+            }
622 622
 
623
-          $nprd = $lastday.' '.getBulan1($imonth).' '.$year; ?>
623
+            $nprd = $lastday.' '.getBulan1($imonth).' '.$year; ?>
624 624
 
625 625
       <table width="100%">
626 626
 
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
        
644 644
 
645 645
     <?php
646
-      } ?>
646
+        } ?>
647 647
 
648 648
 </body>
649 649
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 $jenis_transaksi = $_GET['jenis_transaksi'];
122 122
 
123
-if ($tipe == 'R') {
123
+if ($tipe=='R') {
124 124
     $kertas = 'portrait';
125 125
 } else {
126 126
     $kertas = 'landscape';
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
       ?>
288 288
 
289
-      <?php if ($tipe == 'R') {
289
+      <?php if ($tipe=='R') {
290 290
           ?>
291 291
 
292 292
 
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 
426 426
 
427 427
                    <?php 
428
-                       for ($j = 1; $j <= $hjml; $j++) {
428
+                       for ($j = 1; $j<=$hjml; $j++) {
429 429
                            echo '<th>KUNJ</th>';
430 430
                            echo '<th>REV</th>';
431 431
                        } ?>	
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 
615 615
           $month = date('m', strtotime($iprd)) * 1;
616 616
 
617
-          if ($month == '1') {
617
+          if ($month=='1') {
618 618
               $imonth = 12;
619 619
           } else {
620 620
               $imonth = $month - 1;
Please login to merge, or discard this patch.
modul/mod_report_pengeluaran_obat/print_report_pengeluaran_obat.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
 <?php
168 168
 $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
169
- $g = mysql_fetch_array($gtampil);
169
+    $g = mysql_fetch_array($gtampil);
170 170
 
171 171
 if ($g['pict']) {
172 172
     $pict = $g['pict'];
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                             
211 211
                          <?php
212 212
 
213
-             $tampil = mysql_query("SELECT b.obat
213
+                $tampil = mysql_query("SELECT b.obat
214 214
                                   , c.satuan
215 215
                                   , sum(a.qty) as jumlah
216 216
                                 FROM kunjungan_berobat h inner join kunjungan_berobat_detail  a 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 $id = $r['id_modul'];
13 13
 $fa_icon = $r['fa_icon'];
14 14
 
15
-if ($r[orientation] == 'P') {
15
+if ($r[orientation]=='P') {
16 16
     $orientation = 'portrait';
17 17
 } else {
18 18
     $orientation = 'landscape';
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
 <!--<body onload="cetakspk()">-->
141 141
 
142
-<?php if ($_GET['printto'] == '2') {
142
+<?php if ($_GET['printto']=='2') {
143 143
     ?>
144 144
 <body onload="icetak()">
145 145
 <?php
Please login to merge, or discard this patch.
modul/mod_general_setting/form_general_setting.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -371,11 +371,11 @@
 block discarded – undo
371 371
         <!-- /editor -->
372 372
 
373 373
          <?php 
374
-         if (empty($pict)) {
375
-             $ipict = 'logo.png';
376
-         } else {
377
-             $ipict = $pict;
378
-         } ?>
374
+            if (empty($pict)) {
375
+                $ipict = 'logo.png';
376
+            } else {
377
+                $ipict = $pict;
378
+            } ?>
379 379
 
380 380
         <script>
381 381
           var btnCust = '<button type="button" class="btn btn-default" title="Add picture tags" ' + 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
     if ($id) {
81 81
         $query = mysql_query('SELECT * FROM general_setting WHERE id_general_setting = "'.$id.'"');
82
-        if ($query && mysql_num_rows($query) == 1) {
82
+        if ($query && mysql_num_rows($query)==1) {
83 83
             $data = mysql_fetch_object($query);
84 84
         } else {
85 85
             die('Data general_setting tidak ditemukan');
Please login to merge, or discard this patch.
modul/mod_general_setting/aksi_general_setting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     $datetime = date('Y-m-d G:i:s', $hour);
18 18
     $userid = $_SESSION['userid'];
19 19
 
20
-    if ($module == 'general_setting' and $act == 'input') {
20
+    if ($module=='general_setting' and $act=='input') {
21 21
         $id_module = $_POST['id_module'];
22 22
 
23 23
         $lokasi_file = $_FILES['fupload']['tmp_name'];
Please login to merge, or discard this patch.
modul/mod_poli/form_poli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     if ($id) {
46 46
         $query = mysql_query('SELECT * FROM poli WHERE id_poli = "'.$id.'"');
47
-        if ($query && mysql_num_rows($query) == 1) {
47
+        if ($query && mysql_num_rows($query)==1) {
48 48
             $data = mysql_fetch_object($query);
49 49
         } else {
50 50
             die('Data modul tidak ditemukan');
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
           <?php if ($id) {
82 82
         ?>  
83 83
     
84
-            <?php if (@$data->aktif == 'Y') {
84
+            <?php if (@$data->aktif=='Y') {
85 85
             ?>
86 86
               
87 87
                 <div class="form-group">
Please login to merge, or discard this patch.
modul/mod_poli/aksi_poli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     $userid = $_SESSION['userid'];
17 17
 
18 18
     // Hapus modul
19
-    if ($module == 'poli' and $act == 'hapus') {
19
+    if ($module=='poli' and $act=='hapus') {
20 20
         $id = $_GET['id'];
21 21
         $id_module = $_GET['id_module'];
22 22
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     // Input group
36
-    elseif ($module == 'poli' and $act == 'input') {
36
+    elseif ($module=='poli' and $act=='input') {
37 37
         $id_module = $_POST['id_module'];
38 38
 
39 39
         if ($_POST['ID']) {
Please login to merge, or discard this patch.
modul/mod_kategori/aksi_kategori.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     $userid = $_SESSION['userid'];
17 17
 
18 18
     // Hapus modul
19
-    if ($module == 'kategori' and $act == 'hapus') {
19
+    if ($module=='kategori' and $act=='hapus') {
20 20
         $id = $_GET['id'];
21 21
         $id_module = $_GET['id_module'];
22 22
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     // Input group
36
-    elseif ($module == 'kategori' and $act == 'input') {
36
+    elseif ($module=='kategori' and $act=='input') {
37 37
         $id_module = $_POST['id_module'];
38 38
 
39 39
         if ($_POST['ID']) {
Please login to merge, or discard this patch.