Passed
Pull Request — master (#7)
by Saepul
10:41 queued 06:17
created
modul/mod_report_rekam_medis/print_report_rekam_medis.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
 <?php
169 169
 $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
170
- $g = mysql_fetch_array($gtampil);
170
+    $g = mysql_fetch_array($gtampil);
171 171
 
172 172
 if ($g['pict']) {
173 173
     $pict = $g['pict'];
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 <hr>
197 197
 
198 198
 <?php
199
- $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
199
+    $tampil = mysql_query("SELECT a.*,b.agama,c.kategori
200 200
           FROM pasien a left join agama b 
201 201
            ON a.id_agama = b.id_agama
202 202
            left join kategori c
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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';
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
 <!--<body onload="cetakspk()">-->
142 142
 
143
-<?php if ($_GET['printto'] == '2') {
143
+<?php if ($_GET['printto']=='2') {
144 144
     ?>
145 145
 <body onload="icetak()">
146 146
 <?php
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 
208 208
 $tgl_lahir = date('d/m/Y', strtotime($r[tgl_lahir]));
209 209
 
210
-if ($r['gender'] == 'L') {
210
+if ($r['gender']=='L') {
211 211
     $gender = 'Laki-laki';
212 212
 } else {
213 213
     $gender = 'Perempuan';
Please login to merge, or discard this patch.
modul/mod_obat/form_obat.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
               <div class="col-md-6 col-sm-6 col-xs-12" >
85 85
                  <select name="satuan" class="form-control">                
86 86
                     <?php
87
-                      $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
87
+                        $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
88 88
     if ($query && mysql_num_rows($query) > 0) {
89 89
         while ($row = mysql_fetch_object($query)) {
90 90
             echo '<option value="'.$row->id_satuan.'"';
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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 obat WHERE id_obat = "'.$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');
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
                  <select name="satuan" class="form-control">                
86 86
                     <?php
87 87
                       $query = mysql_query('SELECT * FROM satuan ORDER BY satuan');
88
-    if ($query && mysql_num_rows($query) > 0) {
88
+    if ($query && mysql_num_rows($query)>0) {
89 89
         while ($row = mysql_fetch_object($query)) {
90 90
             echo '<option value="'.$row->id_satuan.'"';
91
-            if ($row->id_satuan == @$data->id_satuan) {
91
+            if ($row->id_satuan==@$data->id_satuan) {
92 92
                 echo ' selected';
93 93
             }
94 94
             echo '>'.$row->satuan.'</option>';
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
           <?php if ($id) {
109 109
         ?>  
110 110
     
111
-            <?php if (@$data->aktif == 'Y') {
111
+            <?php if (@$data->aktif=='Y') {
112 112
             ?>
113 113
               
114 114
                 <div class="form-group">
Please login to merge, or discard this patch.
modul/mod_obat/aksi_obat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     $business_type = $_SESSION['business_type'];
18 18
 
19 19
     // Hapus modul
20
-    if ($module == 'obat' and $act == 'hapus') {
20
+    if ($module=='obat' and $act=='hapus') {
21 21
         $id = $_GET['id'];
22 22
         $id_module = $_GET['id_module'];
23 23
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     // Input group
37
-    elseif ($module == 'obat' and $act == 'input') {
37
+    elseif ($module=='obat' and $act=='input') {
38 38
         $id_module = $_POST['id_module'];
39 39
 
40 40
         if ($_POST['ID']) {
Please login to merge, or discard this patch.
modul/mod_report_rekap_harian/eprint_report_rekap_harian.php 2 patches
Indentation   +109 added lines, -109 removed lines patch added patch discarded remove patch
@@ -139,46 +139,46 @@  discard block
 block discarded – undo
139 139
 
140 140
       <?php
141 141
 
142
-       $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
142
+        $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
143 143
 
144
-       $g = mysql_fetch_array($gtampil);
144
+        $g = mysql_fetch_array($gtampil);
145 145
 
146
-      if ($g['pict']) {
147
-          $pict = $g['pict'];
148
-      } else {
149
-          $pict = '';
150
-      }
146
+        if ($g['pict']) {
147
+            $pict = $g['pict'];
148
+        } else {
149
+            $pict = '';
150
+        }
151 151
 
152
-      $company = ucwords($g['company']);
152
+        $company = ucwords($g['company']);
153 153
 
154
-      $jsql = mysql_query("SELECT * FROM jenis_transaksi
154
+        $jsql = mysql_query("SELECT * FROM jenis_transaksi
155 155
                             WHERE id_jenis_transaksi = '$jenis_transaksi' 
156 156
 
157 157
                            ");
158 158
 
159
-      $j = mysql_fetch_array($jsql);
159
+        $j = mysql_fetch_array($jsql);
160 160
 
161
-      $jenis_transaksi = $j['jenis_transaksi'];
161
+        $jenis_transaksi = $j['jenis_transaksi'];
162 162
 
163
-      $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
163
+        $sql = mysql_query("SELECT a.*,b.shift FROM kasir  a LEFT JOIN shift b 
164 164
                             ON a.id_shift = b.id_shift
165 165
                             WHERE a.id_kasir = '$k_ID' 
166 166
 
167 167
                            ");
168 168
 
169
-      $r = mysql_fetch_array($sql);
169
+        $r = mysql_fetch_array($sql);
170 170
 
171
-      $penjualan_barang = $r['id_kasir'];
171
+        $penjualan_barang = $r['id_kasir'];
172 172
 
173
-      $shift = $r['shift'];
173
+        $shift = $r['shift'];
174 174
 
175
-      $petugas = $r['petugas'];
175
+        $petugas = $r['petugas'];
176 176
 
177
-      $status = $r['status'];
177
+        $status = $r['status'];
178 178
 
179
-      $tanggal = date('d/m/Y', strtotime($r['tanggal']));
179
+        $tanggal = date('d/m/Y', strtotime($r['tanggal']));
180 180
 
181
-      ?>
181
+        ?>
182 182
 
183 183
       <table width="100%">
184 184
       <tr>
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                     echo "<th colspan='2'>".$h['penjamin'].'</th>';
213 213
                 }
214 214
 
215
-               ?> 	
215
+                ?> 	
216 216
 
217 217
                <th colspan ="4" >UMUM</th>  
218 218
                <th rowspan="2" >PIC</th>  
@@ -227,11 +227,11 @@  discard block
 block discarded – undo
227 227
             <tr>
228 228
 
229 229
                <?php 
230
-                   for ($j = 1; $j <= $hjml; $j++) {
231
-                       echo '<th>JML</th>';
232
-                       echo '<th>RUPIAH</th>';
233
-                   }
234
-               ?>	
230
+                    for ($j = 1; $j <= $hjml; $j++) {
231
+                        echo '<th>JML</th>';
232
+                        echo '<th>RUPIAH</th>';
233
+                    }
234
+                ?>	
235 235
 
236 236
 
237 237
                <th>JML</th>  
@@ -253,18 +253,18 @@  discard block
 block discarded – undo
253 253
       	<tbody>
254 254
 
255 255
       	  <?php for ($i = 1; $i <= 31; $i++) {
256
-                   echo'<tr>';
256
+                    echo'<tr>';
257 257
 
258
-                   echo"<td style='text-align:center;'>$i</td>";
258
+                    echo"<td style='text-align:center;'>$i</td>";
259 259
 
260
-                   if (strlen($i) == '1') {
261
-                       $tgl = $prd.'-0'.$i;
262
-                   } else {
263
-                       $tgl = $prd.'-'.$i;
264
-                   }
260
+                    if (strlen($i) == '1') {
261
+                        $tgl = $prd.'-0'.$i;
262
+                    } else {
263
+                        $tgl = $prd.'-'.$i;
264
+                    }
265 265
 
266
-                   //transaksi asuransi
267
-                   $dtampil1 = mysql_query("SELECT a.id_penjamin
266
+                    //transaksi asuransi
267
+                    $dtampil1 = mysql_query("SELECT a.id_penjamin
268 268
 										,	COUNT(c.jumlah) as jml 
269 269
 										,	IFNULL(SUM(c.jumlah),0) as rp  
270 270
 									FROM penjamin a LEFT JOIN kasir b
@@ -280,13 +280,13 @@  discard block
 block discarded – undo
280 280
 									GROUP BY a.id_penjamin
281 281
 									ORDER BY a.id_penjamin");
282 282
 
283
-                   while ($d1 = mysql_fetch_array($dtampil1)) {
284
-                       echo '<th>'.$d1['jml'].'</th>';
285
-                       echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
286
-                   }
283
+                    while ($d1 = mysql_fetch_array($dtampil1)) {
284
+                        echo '<th>'.$d1['jml'].'</th>';
285
+                        echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
286
+                    }
287 287
 
288
-                   //transaksi umum tunai
289
-                   $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
288
+                    //transaksi umum tunai
289
+                    $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
290 290
 										,	IFNULL(SUM(c.jumlah),0) as rp  
291 291
 									FROM kasir b LEFT JOIN kasir_detail c
292 292
 									ON  b.id_kasir = c.id_kasir
@@ -296,13 +296,13 @@  discard block
 block discarded – undo
296 296
 									WHERE b.tanggal = '$tgl'
297 297
 									AND b.status != '4'");
298 298
 
299
-                   $d2 = mysql_fetch_array($dtampil2);
299
+                    $d2 = mysql_fetch_array($dtampil2);
300 300
 
301
-                   echo '<th>'.$d2['jml'].'</th>';
302
-                   echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
301
+                    echo '<th>'.$d2['jml'].'</th>';
302
+                    echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
303 303
 
304
-                   //transaksi umum tunai
305
-                   $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
304
+                    //transaksi umum tunai
305
+                    $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
306 306
 										,	IFNULL(SUM(c.jumlah),0) as rp  
307 307
 									FROM kasir b LEFT JOIN kasir_detail c
308 308
 									ON  b.id_kasir = c.id_kasir
@@ -312,21 +312,21 @@  discard block
 block discarded – undo
312 312
 									WHERE b.tanggal = '$tgl'
313 313
 									AND b.status != '4'");
314 314
 
315
-                   $d3 = mysql_fetch_array($dtampil3);
315
+                    $d3 = mysql_fetch_array($dtampil3);
316 316
 
317
-                   echo '<th>'.$d3['jml'].'</th>';
318
-                   echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
317
+                    echo '<th>'.$d3['jml'].'</th>';
318
+                    echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
319 319
 
320
-                   echo '<th></th>';
321
-                   echo '<th></th>';
322
-                   echo '<th></th>';
320
+                    echo '<th></th>';
321
+                    echo '<th></th>';
322
+                    echo '<th></th>';
323 323
 
324
-                   echo '<th></th>';
325
-                   echo '<th></th>';
326
-                   echo '<th></th>';
324
+                    echo '<th></th>';
325
+                    echo '<th></th>';
326
+                    echo '<th></th>';
327 327
 
328
-                   //total jml
329
-                   $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
328
+                    //total jml
329
+                    $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
330 330
 									FROM kasir b LEFT JOIN kasir_detail c
331 331
 									ON  b.id_kasir = c.id_kasir
332 332
 									AND c.status != '4'
@@ -334,12 +334,12 @@  discard block
 block discarded – undo
334 334
 									WHERE b.tanggal = '$tgl'
335 335
 									AND b.status != '4'");
336 336
 
337
-                   $d4 = mysql_fetch_array($dtampil4);
337
+                    $d4 = mysql_fetch_array($dtampil4);
338 338
 
339
-                   echo '<th>'.$d4['jml'].'</th>';
339
+                    echo '<th>'.$d4['jml'].'</th>';
340 340
 
341
-                   //total pembayaran
342
-                   $dtampil5 = mysql_query("SELECT a.groups
341
+                    //total pembayaran
342
+                    $dtampil5 = mysql_query("SELECT a.groups
343 343
 										,	IFNULL(SUM(c.jumlah),0) as rp  
344 344
 									FROM jenis_pembayaran a LEFT JOIN kasir b
345 345
 									ON  b.tanggal = '$tgl'
@@ -352,23 +352,23 @@  discard block
 block discarded – undo
352 352
 									GROUP BY a.groups
353 353
 									ORDER BY a.groups");
354 354
 
355
-                   while ($d5 = mysql_fetch_array($dtampil5)) {
356
-                       echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
357
-                   }
355
+                    while ($d5 = mysql_fetch_array($dtampil5)) {
356
+                        echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
357
+                    }
358 358
 
359
-                   echo'</tr>';
360
-               } ?>
359
+                    echo'</tr>';
360
+                } ?>
361 361
 
362 362
       	</tbody>
363 363
 
364 364
       	<?php 
365 365
 
366
-               echo'<tr>';
366
+                echo'<tr>';
367 367
 
368
-             echo"<th style='text-align:center;'>TOTAL</th>";
368
+                echo"<th style='text-align:center;'>TOTAL</th>";
369 369
 
370
-             //transaksi asuransi
371
-             $dtampil1 = mysql_query("SELECT a.id_penjamin
370
+                //transaksi asuransi
371
+                $dtampil1 = mysql_query("SELECT a.id_penjamin
372 372
 										,	COUNT(c.jumlah) as jml 
373 373
 										,	IFNULL(SUM(c.jumlah),0) as rp  
374 374
 									FROM penjamin a LEFT JOIN kasir b
@@ -384,13 +384,13 @@  discard block
 block discarded – undo
384 384
 									GROUP BY a.id_penjamin
385 385
 									ORDER BY a.id_penjamin");
386 386
 
387
-             while ($d1 = mysql_fetch_array($dtampil1)) {
388
-                 echo '<th>'.$d1['jml'].'</th>';
389
-                 echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
390
-             }
387
+                while ($d1 = mysql_fetch_array($dtampil1)) {
388
+                    echo '<th>'.$d1['jml'].'</th>';
389
+                    echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>';
390
+                }
391 391
 
392
-              //transaksi umum tunai
393
-              $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
392
+                //transaksi umum tunai
393
+                $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml 
394 394
 										,	IFNULL(SUM(c.jumlah),0) as rp  
395 395
 									FROM kasir b LEFT JOIN kasir_detail c
396 396
 									ON  b.id_kasir = c.id_kasir
@@ -400,13 +400,13 @@  discard block
 block discarded – undo
400 400
 									AND  b.tanggal LIKE '$prd%'
401 401
 									AND b.status != '4'");
402 402
 
403
-             $d2 = mysql_fetch_array($dtampil2);
403
+                $d2 = mysql_fetch_array($dtampil2);
404 404
 
405
-             echo '<th>'.$d2['jml'].'</th>';
406
-             echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
405
+                echo '<th>'.$d2['jml'].'</th>';
406
+                echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>';
407 407
 
408
-              //transaksi umum tunai
409
-              $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
408
+                //transaksi umum tunai
409
+                $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml 
410 410
 										,	IFNULL(SUM(c.jumlah),0) as rp  
411 411
 									FROM kasir b LEFT JOIN kasir_detail c
412 412
 									ON  b.id_kasir = c.id_kasir
@@ -416,33 +416,33 @@  discard block
 block discarded – undo
416 416
 									WHERE b.tanggal LIKE '$prd%'
417 417
 									AND b.status != '4'");
418 418
 
419
-             $d3 = mysql_fetch_array($dtampil3);
419
+                $d3 = mysql_fetch_array($dtampil3);
420 420
 
421
-             echo '<th>'.$d3['jml'].'</th>';
422
-             echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
421
+                echo '<th>'.$d3['jml'].'</th>';
422
+                echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>';
423 423
 
424
-             echo '<th></th>';
425
-             echo '<th></th>';
426
-             echo '<th></th>';
424
+                echo '<th></th>';
425
+                echo '<th></th>';
426
+                echo '<th></th>';
427 427
 
428
-             echo '<th></th>';
429
-             echo '<th></th>';
430
-             echo '<th></th>';
428
+                echo '<th></th>';
429
+                echo '<th></th>';
430
+                echo '<th></th>';
431 431
 
432
-             //total jml
433
-              $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
432
+                //total jml
433
+                $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
434 434
 									FROM kasir b LEFT JOIN kasir_detail c
435 435
 									ON  b.id_kasir = c.id_kasir
436 436
 									AND c.status != '4'
437 437
 									WHERE b.tanggal LIKE '$prd%'
438 438
 									AND b.status != '4'");
439 439
 
440
-             $d4 = mysql_fetch_array($dtampil4);
440
+                $d4 = mysql_fetch_array($dtampil4);
441 441
 
442
-             echo '<th>'.$d4['jml'].'</th>';
442
+                echo '<th>'.$d4['jml'].'</th>';
443 443
 
444
-             //total pembayaran
445
-             $dtampil5 = mysql_query("SELECT a.groups
444
+                //total pembayaran
445
+                $dtampil5 = mysql_query("SELECT a.groups
446 446
 										,	IFNULL(SUM(c.jumlah),0) as rp  
447 447
 									FROM jenis_pembayaran a LEFT JOIN kasir b
448 448
 									ON  b.tanggal LIKE '$prd%'
@@ -455,18 +455,18 @@  discard block
 block discarded – undo
455 455
 									GROUP BY a.groups
456 456
 									ORDER BY a.groups");
457 457
 
458
-             while ($d5 = mysql_fetch_array($dtampil5)) {
459
-                 echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
460
-             }
458
+                while ($d5 = mysql_fetch_array($dtampil5)) {
459
+                    echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>';
460
+                }
461 461
 
462
-             echo'</tr>';
462
+                echo'</tr>';
463 463
 
464
-             echo'<tr>';
464
+                echo'<tr>';
465 465
 
466
-             echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>";
466
+                echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>";
467 467
 
468
-             //total jml
469
-              $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
468
+                //total jml
469
+                $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml 
470 470
 									FROM kasir b LEFT JOIN kasir_detail c
471 471
 									ON  b.id_kasir = c.id_kasir
472 472
 									AND c.status != '4'
@@ -474,12 +474,12 @@  discard block
 block discarded – undo
474 474
 									WHERE b.tanggal LIKE '$prd%'
475 475
 									AND b.status != '4'");
476 476
 
477
-             $d4 = mysql_fetch_array($dtampil4);
477
+                $d4 = mysql_fetch_array($dtampil4);
478 478
 
479
-             echo '<th>'.$d4['jml'].'</th>';
479
+                echo '<th>'.$d4['jml'].'</th>';
480 480
 
481
-             //total pembayaran
482
-             $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp  
481
+                //total pembayaran
482
+                $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp  
483 483
 									FROM  kasir b LEFT JOIN kasir_detail c
484 484
 									ON  b.id_kasir = c.id_kasir
485 485
 									AND c.status != '4'
@@ -487,9 +487,9 @@  discard block
 block discarded – undo
487 487
 									WHERE b.tanggal LIKE '$prd%'
488 488
 									AND b.status != '4'");
489 489
 
490
-             $d5 = mysql_fetch_array($dtampil5);
490
+                $d5 = mysql_fetch_array($dtampil5);
491 491
 
492
-                  echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>';
492
+                    echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>';
493 493
 
494 494
             ?>
495 495
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             <tr>
228 228
 
229 229
                <?php 
230
-                   for ($j = 1; $j <= $hjml; $j++) {
230
+                   for ($j = 1; $j<=$hjml; $j++) {
231 231
                        echo '<th>JML</th>';
232 232
                        echo '<th>RUPIAH</th>';
233 233
                    }
@@ -252,12 +252,12 @@  discard block
 block discarded – undo
252 252
 
253 253
       	<tbody>
254 254
 
255
-      	  <?php for ($i = 1; $i <= 31; $i++) {
255
+      	  <?php for ($i = 1; $i<=31; $i++) {
256 256
                    echo'<tr>';
257 257
 
258 258
                    echo"<td style='text-align:center;'>$i</td>";
259 259
 
260
-                   if (strlen($i) == '1') {
260
+                   if (strlen($i)=='1') {
261 261
                        $tgl = $prd.'-0'.$i;
262 262
                    } else {
263 263
                        $tgl = $prd.'-'.$i;
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
 
506 506
     $month = date('m', strtotime($iprd)) * 1;
507 507
 
508
-    if ($month == '1') {
508
+    if ($month=='1') {
509 509
         $imonth = 12;
510 510
     } else {
511 511
         $imonth = $month - 1;
Please login to merge, or discard this patch.
main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'");
195 195
     $r = mysql_fetch_array($tampil);
196 196
 
197
-    if ($r[orientation] == 'P') {
197
+    if ($r[orientation]=='P') {
198 198
         ?>
199 199
         
200 200
 <SCRIPT TYPE="text/javascript">
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 </SCRIPT>
211 211
 
212 212
 <?php
213
-    } elseif ($r[orientation] == 'A') {
213
+    } elseif ($r[orientation]=='A') {
214 214
         ?>
215 215
 
216 216
 <SCRIPT TYPE="text/javascript">
Please login to merge, or discard this patch.
cek_login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 $r = mysql_fetch_array($login);
23 23
 
24 24
 // Apabila userid dan password ditemukan
25
-if ($find > 0) {
25
+if ($find>0) {
26 26
     session_start();
27 27
     //session_register("userid");
28 28
     //  session_register("username");
Please login to merge, or discard this patch.
config/fungsi_combobox.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 {
4 4
     echo "<select name=$var>";
5 5
     echo "<option value=0 selected>$default</option>";
6
-    for ($i = $awal; $i <= $akhir; $i++) {
6
+    for ($i = $awal; $i<=$akhir; $i++) {
7 7
         echo "<option value=$i>$i</option>";
8 8
     }
9 9
     echo '</select> ';
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     include '../config/library.php';
15 15
     echo "<select name=$var>";
16 16
     echo "<option value=0 selected>$default</option>";
17
-    for ($bln = $awal; $bln <= $akhir; $bln++) {
17
+    for ($bln = $awal; $bln<=$akhir; $bln++) {
18 18
         echo "<option value=$bln>$nama_bln[$bln]</option>";
19 19
     }
20 20
     echo '</select> ';
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 function combotgl2($awal, $akhir, $var, $terpilih)
24 24
 {
25 25
     echo "<select name=$var class='tselect_tgl'>";
26
-    for ($i = $awal; $i <= $akhir; $i++) {
27
-        if ($i == $terpilih) {
26
+    for ($i = $awal; $i<=$akhir; $i++) {
27
+        if ($i==$terpilih) {
28 28
             echo "<option value=$i selected>$i</option>";
29 29
         } else {
30 30
             echo "<option value=$i>$i</option>";
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 {
38 38
     include '../config/library.php';
39 39
     echo "<select name=$var  class='tselect_bln'>";
40
-    for ($bln = $awal; $bln <= $akhir; $bln++) {
41
-        if ($bln == $terpilih) {
40
+    for ($bln = $awal; $bln<=$akhir; $bln++) {
41
+        if ($bln==$terpilih) {
42 42
             echo "<option value=$bln selected>$nama_bln[$bln]</option>";
43 43
         } else {
44 44
             echo "<option value=$bln>$nama_bln[$bln]</option>";
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 function combothn($awal, $akhir, $var, $terpilih)
51 51
 {
52 52
     echo "<select name=$var class='tselect_thn'>";
53
-    for ($i = $awal; $i <= $akhir; $i++) {
54
-        if ($i == $terpilih) {
53
+    for ($i = $awal; $i<=$akhir; $i++) {
54
+        if ($i==$terpilih) {
55 55
             echo "<option value=$i selected>$i</option>";
56 56
         } else {
57 57
             echo "<option value=$i>$i</option>";
Please login to merge, or discard this patch.
config/functions.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     $thumbnailPath = '';
14 14
 
15 15
     // if a file is given
16
-    if (trim($image['tmp_name']) != '') {
16
+    if (trim($image['tmp_name'])!='') {
17 17
         $ext = substr(strrchr($image['name'], '.'), 1);
18 18
 
19 19
         // generate a random new file name to avoid name conflict
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
     $tmpDest = pathinfo(strtolower($destFile));
73 73
     $size = getimagesize($srcFile);
74 74
 
75
-    if ($tmpDest['extension'] == 'gif' || $tmpDest['extension'] == 'jpg') {
75
+    if ($tmpDest['extension']=='gif' || $tmpDest['extension']=='jpg') {
76 76
         $destFile = substr_replace($destFile, 'jpg', -3);
77 77
         $dest = imagecreatetruecolor($w, $h);
78 78
     //imageantialias($dest, TRUE);
79
-    } elseif ($tmpDest['extension'] == 'png') {
79
+    } elseif ($tmpDest['extension']=='png') {
80 80
         $dest = imagecreatetruecolor($w, $h);
81 81
     //imageantialias($dest, TRUE);
82 82
     } else {
Please login to merge, or discard this patch.
config/barcode_gen.php 2 patches
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.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 </style>
18 18
 
19 19
 <?php
20
-global $char128asc,$char128charWidth;
20
+global $char128asc, $char128charWidth;
21 21
 $char128asc = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~';
22 22
 $char128wid = [
23 23
     '212222', '222122', '222221', '121223', '121322', '131222', '122213', '122312', '132212', '221213', // 0-9
@@ -30,24 +30,24 @@  discard block
 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.