Passed
Pull Request — master (#7)
by Saepul
06:57 queued 02:15
created
modul/mod_home/xxhome.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 
2 2
 <?php
3
-switch($_GET[act]){
3
+switch ($_GET[act]) {
4 4
 
5 5
 default:  
6 6
 
7 7
 
8
- $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
- $g=mysql_fetch_array($gtampil);
8
+ $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
+ $g = mysql_fetch_array($gtampil);
10 10
 
11 11
 if ($g['pict']) {
12 12
 	$pict = $g['pict'];
Please login to merge, or discard this patch.
modul/mod_home/xhome.php 1 patch
Spacing   +133 added lines, -133 removed lines patch added patch discarded remove patch
@@ -47,22 +47,22 @@  discard block
 block discarded – undo
47 47
 </style>
48 48
 
49 49
 <?php
50
-switch($_GET[act]){
50
+switch ($_GET[act]) {
51 51
 
52 52
 default:  
53 53
 
54
-if($_GET['fdate']) {
54
+if ($_GET['fdate']) {
55 55
 	$fdate	= $_GET['fdate'];
56 56
 } else {
57 57
 	$hour = time() - (1 * 1 * 60 * 60);
58 58
 	$fdate	= date("Y-m-d", $hour);
59 59
 }
60 60
 
61
-if($_GET['ldate']) {
61
+if ($_GET['ldate']) {
62 62
 	$ldate	= $_GET['ldate'];
63 63
 } else {
64 64
 	$hour = time() - (1 * 1 * 60 * 60) + (168 * 1 * 60 * 60);
65
-	$ldate	= date("Y-m-d",$hour);
65
+	$ldate	= date("Y-m-d", $hour);
66 66
 }
67 67
 
68 68
 $fdate1 	= date("m/d/Y", strtotime($fdate));
@@ -76,31 +76,31 @@  discard block
 block discarded – undo
76 76
 	
77 77
 	$fmonthName = date("M", mktime(0, 0, 0, $fmonth, 10));
78 78
 	
79
-	$lday		= mysql_query("SELECT substr(LAST_DAY('$fdate'),-2,2) as lastday ");	 
80
-	$l			= mysql_fetch_array($lday);	  
81
-	$f_lastday  = $l['lastday'];
82
-	$f_jml	 	= ($f_lastday-$fday)+1;
79
+	$lday = mysql_query("SELECT substr(LAST_DAY('$fdate'),-2,2) as lastday ");	 
80
+	$l = mysql_fetch_array($lday);	  
81
+	$f_lastday = $l['lastday'];
82
+	$f_jml = ($f_lastday - $fday) + 1;
83 83
 	
84 84
 	//$ldate = '2014-08-15';
85 85
 	
86
-	$lday	 	= date("d", strtotime($ldate));
86
+	$lday = date("d", strtotime($ldate));
87 87
 	$lmonth 	= date("m", strtotime($ldate));
88 88
 	$lyear 		= date("Y", strtotime($ldate));
89 89
 	$l_jml	 	= $lday;
90 90
 	
91 91
 	$lmonthName = date("M", mktime(0, 0, 0, $lmonth, 10));
92 92
 	
93
-	$jml = ($lday - $fday)+1;
93
+	$jml = ($lday - $fday) + 1;
94 94
 
95 95
 
96
-if($_GET['ldate']) {
97
-	if ($lmonth == $fmonth  and $lyear == $fyear) {
98
-		$jcol =  $jml;
96
+if ($_GET['ldate']) {
97
+	if ($lmonth==$fmonth and $lyear==$fyear) {
98
+		$jcol = $jml;
99 99
 	 } else {
100
-		 $jcol =  $f_jml+$l_jml;		 
100
+		 $jcol = $f_jml + $l_jml;		 
101 101
 	 }
102 102
 } else {
103
-	$jcol =  8;
103
+	$jcol = 8;
104 104
 }
105 105
 
106 106
 ?>
@@ -123,10 +123,10 @@  discard block
 block discarded – undo
123 123
 							                 	<option value="">--------- Room Type ---------</option>
124 124
 							                    <?
125 125
 							                      $query = mysql_query('SELECT * FROM room_type ORDER BY room_type');
126
-							                       if($query && mysql_num_rows($query) > 0){
127
-							                          while($row = mysql_fetch_object($query)){
126
+							                       if ($query && mysql_num_rows($query)>0) {
127
+							                          while ($row = mysql_fetch_object($query)) {
128 128
 							                             echo '<option value="'.$row->id_room_type.'"';
129
-							                             if($row->id_room_type == $_GET['room_type']) echo ' selected';
129
+							                             if ($row->id_room_type==$_GET['room_type']) echo ' selected';
130 130
 							                             echo '>'.$row->room_type.'</option>';
131 131
 							                          }
132 132
 							                       }        
@@ -155,35 +155,35 @@  discard block
 block discarded – undo
155 155
 		                            <th style='text-align:center;' width='17%' ><h3 style='font-size:12px;'>Room</h3></th>
156 156
 
157 157
 		                        	<?
158
-		                        	$col = (83/$jcol);
158
+		                        	$col = (83 / $jcol);
159 159
 
160 160
 
161
-		                            if ($lmonth == $fmonth  and $lyear == $fyear) {
161
+		                            if ($lmonth==$fmonth and $lyear==$fyear) {
162 162
 		
163
-									for($i = $fday; $i <= $lday; $i++)	{
163
+									for ($i = $fday; $i<=$lday; $i++) {
164 164
 											
165
-										if (strlen($i) == '1') {
166
-											$tgl = 	'0'.$i;
165
+										if (strlen($i)=='1') {
166
+											$tgl = '0'.$i;
167 167
 										} else {
168
-											$tgl = 	$i;
168
+											$tgl = $i;
169 169
 										}
170 170
 
171 171
 										$tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
172 172
 
173
-										$DayName 	= date("D",strtotime($tanggal));
173
+										$DayName = date("D", strtotime($tanggal));
174 174
 										
175
-										 $sSQL=	"select sdate from special_day_detail where sdate in ('$tanggal')";	
175
+										 $sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')";	
176 176
 								 		 $sday = mysql_query($sSQL);
177
-		             					 $s=mysql_fetch_array($sday);
177
+		             					 $s = mysql_fetch_array($sday);
178 178
 
179 179
 		             					 $nday = date('N', strtotime($tanggal));
180 180
 
181
-		             					 if($s['sdate']) {
182
-		             					 	$bg ='#eba51c';
183
-		             					 } else if ($nday == '6' or $nday == '7') {
184
-		             					 	$bg ='#eb1c41';
181
+		             					 if ($s['sdate']) {
182
+		             					 	$bg = '#eba51c';
183
+		             					 } else if ($nday=='6' or $nday=='7') {
184
+		             					 	$bg = '#eb1c41';
185 185
 		             					 } else {	
186
-		             					 	$bg ='';
186
+		             					 	$bg = '';
187 187
 		             					 }
188 188
 
189 189
 										echo"<th style='text-align:center;background-color:$bg' width='$col%'>
@@ -198,30 +198,30 @@  discard block
 block discarded – undo
198 198
 									
199 199
 								} else {
200 200
 									
201
-									for($i = $fday; $i <= $f_lastday; $i++)	{
201
+									for ($i = $fday; $i<=$f_lastday; $i++) {
202 202
 											
203
-										if (strlen($i) == '1') {
204
-											$tgl = 	'0'.$i;
203
+										if (strlen($i)=='1') {
204
+											$tgl = '0'.$i;
205 205
 										} else {
206
-											$tgl = 	$i;
206
+											$tgl = $i;
207 207
 										}
208 208
 										
209 209
 										$tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
210 210
 
211
-										$DayName 	= date("D",strtotime($tanggal));
211
+										$DayName = date("D", strtotime($tanggal));
212 212
 										
213
-										$sSQL=	"select sdate from special_day_detail where sdate in ('$tanggal')";	
213
+										$sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')";	
214 214
 								 		 $sday = mysql_query($sSQL);
215
-		             					 $s=mysql_fetch_array($sday);
215
+		             					 $s = mysql_fetch_array($sday);
216 216
 
217 217
 		             					 $nday = date('N', strtotime($tanggal));
218 218
 
219
-		             					 if($s['sdate']) {
220
-		             					 	$bg ='#eba51c';
221
-		             					 } else if ($nday == '6' or $nday == '7') {
222
-		             					 	$bg ='#eb1c41';
219
+		             					 if ($s['sdate']) {
220
+		             					 	$bg = '#eba51c';
221
+		             					 } else if ($nday=='6' or $nday=='7') {
222
+		             					 	$bg = '#eb1c41';
223 223
 		             					 } else {	
224
-		             					 	$bg ='';
224
+		             					 	$bg = '';
225 225
 		             					 }
226 226
 
227 227
 										echo"<th style='text-align:center;background-color:$bg' width='$col%'>
@@ -234,31 +234,31 @@  discard block
 block discarded – undo
234 234
 										
235 235
 									}
236 236
 									
237
-									for($i = 1; $i <= $lday; $i++)	{
237
+									for ($i = 1; $i<=$lday; $i++) {
238 238
 											
239
-										if (strlen($i) == '1') {
240
-											$tgl = 	'0'.$i;
239
+										if (strlen($i)=='1') {
240
+											$tgl = '0'.$i;
241 241
 										} else {
242
-											$tgl = 	$i;
242
+											$tgl = $i;
243 243
 										}
244 244
 										
245 245
 										$tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
246 246
 
247 247
 
248
-										$DayName 	= date("D",strtotime($tanggal));
248
+										$DayName = date("D", strtotime($tanggal));
249 249
 										
250
-										$sSQL=	"select sdate from special_day_detail where sdate in ('$tanggal')";	
250
+										$sSQL = "select sdate from special_day_detail where sdate in ('$tanggal')";	
251 251
 								 		 $sday = mysql_query($sSQL);
252
-		             					 $s=mysql_fetch_array($sday);
252
+		             					 $s = mysql_fetch_array($sday);
253 253
 
254 254
 		             					 $nday = date('N', strtotime($tanggal));
255 255
 
256
-		             					 if($s['sdate']) {
257
-		             					 	$bg ='#eba51c';
258
-		             					 } else if ($nday == '6' or $nday == '7') {
259
-		             					 	$bg ='#eb1c41';
256
+		             					 if ($s['sdate']) {
257
+		             					 	$bg = '#eba51c';
258
+		             					 } else if ($nday=='6' or $nday=='7') {
259
+		             					 	$bg = '#eb1c41';
260 260
 		             					 } else {	
261
-		             					 	$bg ='';
261
+		             					 	$bg = '';
262 262
 		             					 }
263 263
 
264 264
 										echo"<th style='text-align:center;background-color:$bg' width='$col%'>
@@ -282,17 +282,17 @@  discard block
 block discarded – undo
282 282
 									
283 283
                             
284 284
                          <?						 
285
-								 $tSQL =	"SELECT * FROM room_type ";	
285
+								 $tSQL = "SELECT * FROM room_type ";	
286 286
 
287
-								 if ($_GET['room_type']){
288
-								 	$tSQL .=	"WHERE id_room_type = '$_GET[room_type]'";	
287
+								 if ($_GET['room_type']) {
288
+								 	$tSQL .= "WHERE id_room_type = '$_GET[room_type]'";	
289 289
 								 }
290 290
 
291
-								 $tSQL .=	"ORDER BY room_type";	
291
+								 $tSQL .= "ORDER BY room_type";	
292 292
 
293 293
 								 $type = mysql_query($tSQL);
294 294
 		             						 
295
-								 while($t=mysql_fetch_array($type)){
295
+								 while ($t = mysql_fetch_array($type)) {
296 296
 
297 297
 								 $id_room_type = $t['id_room_type'];  
298 298
 
@@ -301,14 +301,14 @@  discard block
 block discarded – undo
301 301
 		                         echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>".$t['room_type']."</td>";
302 302
 
303 303
 
304
-		                        if ($lmonth == $fmonth  and $lyear == $fyear) {
304
+		                        if ($lmonth==$fmonth and $lyear==$fyear) {
305 305
 		
306
-									for($i = $fday; $i <= $lday; $i++)	{
306
+									for ($i = $fday; $i<=$lday; $i++) {
307 307
 											
308
-										if (strlen($i) == '1') {
309
-											$tgl = 	'0'.$i;
308
+										if (strlen($i)=='1') {
309
+											$tgl = '0'.$i;
310 310
 										} else {
311
-											$tgl = 	$i;
311
+											$tgl = $i;
312 312
 										}
313 313
 
314 314
 										$tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
@@ -320,34 +320,34 @@  discard block
 block discarded – undo
320 320
 									
321 321
 								} else {
322 322
 									
323
-									for($i = $fday; $i <= $f_lastday; $i++)	{
323
+									for ($i = $fday; $i<=$f_lastday; $i++) {
324 324
 											
325
-										if (strlen($i) == '1') {
326
-											$tgl = 	'0'.$i;
325
+										if (strlen($i)=='1') {
326
+											$tgl = '0'.$i;
327 327
 										} else {
328
-											$tgl = 	$i;
328
+											$tgl = $i;
329 329
 										}
330 330
 										
331 331
 										$tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
332 332
 
333
-										$DayName 	= date("D",strtotime($tanggal));
333
+										$DayName = date("D", strtotime($tanggal));
334 334
 										
335 335
 										echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
336 336
 										</td>";
337 337
 										
338 338
 									}
339 339
 									
340
-									for($i = 1; $i <= $lday; $i++)	{
340
+									for ($i = 1; $i<=$lday; $i++) {
341 341
 											
342
-										if (strlen($i) == '1') {
343
-											$tgl = 	'0'.$i;
342
+										if (strlen($i)=='1') {
343
+											$tgl = '0'.$i;
344 344
 										} else {
345
-											$tgl = 	$i;
345
+											$tgl = $i;
346 346
 										}
347 347
 										
348 348
 										$tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
349 349
 
350
-										$DayName 	= date("D",strtotime($tanggal));
350
+										$DayName = date("D", strtotime($tanggal));
351 351
 										
352 352
 										echo"<td style='background-color: #1ABB9C;color: #E7E7E7;'>
353 353
 										</td>";
@@ -357,19 +357,19 @@  discard block
 block discarded – undo
357 357
 
358 358
 								 echo"</tr>";	
359 359
 
360
-									 $rSQL=	"SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no";	
360
+									 $rSQL = "SELECT * FROM room WHERE id_room_type = '$id_room_type' ORDER BY room_no";	
361 361
 								 
362 362
 									 $room = mysql_query($rSQL);
363 363
 		             				
364 364
 		             				 $no = 1;		 
365
-									 while($r=mysql_fetch_array($room)){
365
+									 while ($r = mysql_fetch_array($room)) {
366 366
 
367 367
 									 $aktif = $r['aktif']; 
368 368
 
369
-									 if(($no % 2)==0){
370
-									 	$sty="ftd";
371
-									 } else{
372
-									 	$sty="ltd";	
369
+									 if (($no % 2)==0) {
370
+									 	$sty = "ftd";
371
+									 } else {
372
+									 	$sty = "ltd";	
373 373
 									}	
374 374
 
375 375
 									 $id_room = $r['id_room'];  	
@@ -377,21 +377,21 @@  discard block
 block discarded – undo
377 377
 									echo"<tr>";
378 378
 									echo"<td style='padding-left:20px;text-align:left;' class=$sty>".$r['room_no']."</td>";
379 379
 
380
-									if ($lmonth == $fmonth  and $lyear == $fyear) {
380
+									if ($lmonth==$fmonth and $lyear==$fyear) {
381 381
 		
382
-									for($i = $fday; $i <= $lday; $i++)	{
382
+									for ($i = $fday; $i<=$lday; $i++) {
383 383
 											
384
-										if (strlen($i) == '1') {
385
-											$tgl = 	'0'.$i;
384
+										if (strlen($i)=='1') {
385
+											$tgl = '0'.$i;
386 386
 										} else {
387
-											$tgl = 	$i;
387
+											$tgl = $i;
388 388
 										}
389 389
 											
390 390
 										$tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
391 391
 
392 392
 										echo"<td class=$sty style='padding:0;'>";
393 393
 
394
-										if ($aktif == 'T') {
394
+										if ($aktif=='T') {
395 395
 											echo"
396 396
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
397 397
 												";
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 										echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
401 401
 										echo"<tr>";
402 402
 
403
-										$cSQL =	"SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
403
+										$cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
404 404
 													FROM room a left join room_reservation b
405 405
 													 ON a.id_room = b.id_room
406 406
 													 and b.status in ('0','1')
@@ -417,21 +417,21 @@  discard block
 block discarded – undo
417 417
 										$jml = mysql_num_rows($croom); 
418 418
 			             						 
419 419
 										//$c=mysql_fetch_array($croom);
420
-										while ($c=mysql_fetch_array($croom)){  
420
+										while ($c = mysql_fetch_array($croom)) {  
421 421
 
422 422
 										$rdate = $c['rdate'];  
423 423
 
424
-										$lSQL =	"SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate ";	
424
+										$lSQL = "SELECT '$rdate' - INTERVAL 1 DAY as ldate, '$rdate' + INTERVAL 1 DAY as ndate ";	
425 425
 								 		//echo $lSQL;
426 426
 										$ld = mysql_query($lSQL);	
427 427
 
428
-										$l=mysql_fetch_array($ld);
428
+										$l = mysql_fetch_array($ld);
429 429
 
430 430
 										$ldate = $l['ldate'];
431 431
 
432 432
 										$ndate = $l['ndate'];
433 433
 
434
-										$cSQL1 =	"SELECT * from room_reservation 
434
+										$cSQL1 = "SELECT * from room_reservation 
435 435
 													 WHERE id_room = '$id_room' 
436 436
 													 AND rdate = '$ldate'";	
437 437
 								 	
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 										}
445 445
 										
446 446
 									
447
-										$cSQL2 =	"SELECT * from room_reservation 
447
+										$cSQL2 = "SELECT * from room_reservation 
448 448
 													 WHERE id_room = '$id_room' 
449 449
 													 AND rdate = '$ndate'";	
450 450
 								 	
@@ -466,15 +466,15 @@  discard block
 block discarded – undo
466 466
 										$status = $c['status'];  
467 467
 										
468 468
 										
469
-										if ($status == 0) {
469
+										if ($status==0) {
470 470
 											$icolor = '#fff';
471 471
 										} else {
472 472
 											$icolor = '#fff';
473 473
 										}
474 474
 
475
-										if ($status == 0) {
475
+										if ($status==0) {
476 476
 											$istatus = 'Reserved';
477
-										} elseif ($status == 1) {
477
+										} elseif ($status==1) {
478 478
 											$istatus = 'Check In';
479 479
 										} else {
480 480
 											$istatus = 'Check Out';
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 
485 485
 
486 486
 
487
-										if($c['initial'] == 'Mr ' ) {
487
+										if ($c['initial']=='Mr ') {
488 488
 											$icon = 'fa fa-male';
489 489
 										} else {
490 490
 											$icon = 'fa fa-female';
@@ -494,15 +494,15 @@  discard block
 block discarded – undo
494 494
 
495 495
 										//if ($jml == '1') {
496 496
 										
497
-												if ($ljml == '0' and $jml == '1' and $njml == '1') {
497
+												if ($ljml=='0' and $jml=='1' and $njml=='1') {
498 498
 														echo"<td width='50%'>
499 499
 														</td>";
500 500
 												}
501 501
 
502
-												if 	($guest) {	
502
+												if ($guest) {	
503 503
 													
504 504
 
505
-													if 	($guest) {
505
+													if ($guest) {
506 506
 														echo"<td style='background-color:$legend;'  width='50%'>
507 507
 														<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
508 508
 														</td>";
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 
517 517
 											}
518 518
 
519
-												if ($ljml != '0' and $jml == '1') {
519
+												if ($ljml!='0' and $jml=='1') {
520 520
 														echo"<td width='50%'>
521 521
 														</td>";
522 522
 												}
@@ -534,19 +534,19 @@  discard block
 block discarded – undo
534 534
 									
535 535
 								} else {
536 536
 									
537
-									for($i = $fday; $i <= $f_lastday; $i++)	{
537
+									for ($i = $fday; $i<=$f_lastday; $i++) {
538 538
 											
539
-										if (strlen($i) == '1') {
540
-											$tgl = 	'0'.$i;
539
+										if (strlen($i)=='1') {
540
+											$tgl = '0'.$i;
541 541
 										} else {
542
-											$tgl = 	$i;
542
+											$tgl = $i;
543 543
 										}
544 544
 										
545 545
 										$tanggal = $fyear.'-'.$fmonth.'-'.$tgl;
546 546
 
547 547
 										echo"<td class=$sty style='padding:0;'>";
548 548
 
549
-										if ($aktif == 'T') {
549
+										if ($aktif=='T') {
550 550
 											echo"
551 551
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
552 552
 												";
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 										echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
556 556
 										echo"<tr>";
557 557
 
558
-										$cSQL =	"SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
558
+										$cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
559 559
 													FROM room a left join room_reservation b
560 560
 													 ON a.id_room = b.id_room
561 561
 													 and b.status in ('0','1')
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
 										$jml = mysql_num_rows($croom); 
573 573
 			             						 
574 574
 										//$c=mysql_fetch_array($croom);
575
-										while ($c=mysql_fetch_array($croom)){  
575
+										while ($c = mysql_fetch_array($croom)) {  
576 576
 
577 577
 
578 578
 										$guest = $c['guest'];
@@ -580,15 +580,15 @@  discard block
 block discarded – undo
580 580
 										$legend = $c['legend'];  
581 581
 										$status = $c['status'];  
582 582
 										
583
-										if ($status == 0) {
583
+										if ($status==0) {
584 584
 											$icolor = '#fff';
585 585
 										} else {
586 586
 											$icolor = '#fff';
587 587
 										}
588 588
 
589
-										if ($status == 0) {
589
+										if ($status==0) {
590 590
 											$istatus = 'Reserved';
591
-										} elseif ($status == 1) {
591
+										} elseif ($status==1) {
592 592
 											$istatus = 'Check In';
593 593
 										} else {
594 594
 											$istatus = 'Check Out';
@@ -598,16 +598,16 @@  discard block
 block discarded – undo
598 598
 
599 599
 
600 600
 
601
-										if($c['initial'] == 'Mr ' ) {
601
+										if ($c['initial']=='Mr ') {
602 602
 											$icon = 'fa fa-male';
603 603
 										} else {
604 604
 											$icon = 'fa fa-female';
605 605
 										}	
606 606
 
607
-										if 	($guest) {	
607
+										if ($guest) {	
608 608
 											
609 609
 
610
-											if 	($guest) {
610
+											if ($guest) {
611 611
 												echo"<td style='background-color:$legend;'  width='50%'>
612 612
 												<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
613 613
 												</td>";
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 
622 622
 									}
623 623
 
624
-											if ($jml == '1') {
624
+											if ($jml=='1') {
625 625
 										 
626 626
 
627 627
 												echo"<td width='50%'>
@@ -635,19 +635,19 @@  discard block
 block discarded – undo
635 635
 										
636 636
 									}
637 637
 									
638
-									for($i = 1; $i <= $lday; $i++)	{
638
+									for ($i = 1; $i<=$lday; $i++) {
639 639
 											
640
-										if (strlen($i) == '1') {
641
-											$tgl = 	'0'.$i;
640
+										if (strlen($i)=='1') {
641
+											$tgl = '0'.$i;
642 642
 										} else {
643
-											$tgl = 	$i;
643
+											$tgl = $i;
644 644
 										}
645 645
 										
646 646
 										$tanggal = $lyear.'-'.$lmonth.'-'.$tgl;
647 647
 
648 648
 										echo"<td class=$sty style='padding:0;'>";
649 649
 
650
-										if ($aktif == 'T') {
650
+										if ($aktif=='T') {
651 651
 											echo"
652 652
 												<i class='fa fa-warning' style='color: red;font-size:18px' onMouseover=\"ddrivetip('Out of Order')\"; onMouseout=\"hideddrivetip()\"></i>
653 653
 												";
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
 										echo"<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
657 657
 										echo"<tr>";
658 658
 
659
-										$cSQL =	"SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
659
+										$cSQL = "SELECT a.id_room,a.room_no,b.rdate,b.status,a.aktif,c.guest,c.initial,d.legend
660 660
 													FROM room a left join room_reservation b
661 661
 													 ON a.id_room = b.id_room
662 662
 													 and b.status in ('0','1')
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
 										$jml = mysql_num_rows($croom); 
674 674
 			             						 
675 675
 										//$c=mysql_fetch_array($croom);
676
-										while ($c=mysql_fetch_array($croom)){  
676
+										while ($c = mysql_fetch_array($croom)) {  
677 677
 
678 678
 
679 679
 										$guest = $c['guest'];
@@ -681,15 +681,15 @@  discard block
 block discarded – undo
681 681
 										$legend = $c['legend'];  
682 682
 										$status = $c['status'];  
683 683
 										
684
-										if ($status == 0) {
684
+										if ($status==0) {
685 685
 											$icolor = '#fff';
686 686
 										} else {
687 687
 											$icolor = '#fff';
688 688
 										}
689 689
 
690
-										if ($status == 0) {
690
+										if ($status==0) {
691 691
 											$istatus = 'Reserved';
692
-										} elseif ($status == 1) {
692
+										} elseif ($status==1) {
693 693
 											$istatus = 'Check In';
694 694
 										} else {
695 695
 											$istatus = 'Check Out';
@@ -699,16 +699,16 @@  discard block
 block discarded – undo
699 699
 
700 700
 
701 701
 
702
-										if($c['initial'] == 'Mr ' ) {
702
+										if ($c['initial']=='Mr ') {
703 703
 											$icon = 'fa fa-male';
704 704
 										} else {
705 705
 											$icon = 'fa fa-female';
706 706
 										}	
707 707
 
708
-										if 	($guest) {	
708
+										if ($guest) {	
709 709
 											
710 710
 
711
-											if 	($guest) {
711
+											if ($guest) {
712 712
 												echo"<td style='background-color:$legend;'  width='50%'>
713 713
 												<a href='' onMouseover=\"ddrivetip('$iguest')\"; onMouseout=\"hideddrivetip()\" title=''><i class='$icon' style='color: $icolor;font-size:15px'></i></a>
714 714
 												</td>";
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
 
723 723
 									}
724 724
 
725
-											if ($jml == '1') {
725
+											if ($jml=='1') {
726 726
 												echo"<td width='50%'>
727 727
 												</td>";
728 728
 											}
@@ -755,10 +755,10 @@  discard block
 block discarded – undo
755 755
 										<tr>
756 756
 										<td style='padding-right:3px;'>Room Status : </td>	
757 757
 										<?
758
-											 $SQL=	"SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status";	
759
-											 $tampil=mysql_query($SQL);
758
+											 $SQL = "SELECT * FROM room_status where aktif ='Y' ORDER BY id_room_status";	
759
+											 $tampil = mysql_query($SQL);
760 760
 					             						 
761
-											 while($r=mysql_fetch_array($tampil)){
761
+											 while ($r = mysql_fetch_array($tampil)) {
762 762
 
763 763
 											 	
764 764
 											 echo"<td style='width:20px;background-color:".$r['legend'].";'>&nbsp</td>";
Please login to merge, or discard this patch.
modul/mod_kasir/kasir.php 1 patch
Spacing   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
 <?php
190 190
 
191
-switch($_GET[act]){
191
+switch ($_GET[act]) {
192 192
 
193 193
 
194 194
 
@@ -216,13 +216,13 @@  discard block
 block discarded – undo
216 216
 
217 217
   <div class="x_title">
218 218
 
219
-  <h2>List <?php echo $nmmodule;?></h2>
219
+  <h2>List <?php echo $nmmodule; ?></h2>
220 220
 
221 221
 
222 222
 
223 223
      <p class="pull-right">
224 224
 
225
-    <a href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&outlet=$outlet&kode=$kode&act=baru";?>' title='Form <?php echo $nmmodule;?>' class='btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a>
225
+    <a href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&outlet=$outlet&kode=$kode&act=baru"; ?>' title='Form <?php echo $nmmodule; ?>' class='btn btn-sm btn-success'><i class="fa fa-plus"></i> Baru</a>
226 226
 
227 227
     </p>
228 228
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
     <p class="pull-right">
249 249
 
250
-    <input type="month" name="prd" id="prd" value="<?php echo $prd;?>" onChange="document.myform.submit();" class="form-control"  required>
250
+    <input type="month" name="prd" id="prd" value="<?php echo $prd; ?>" onChange="document.myform.submit();" class="form-control"  required>
251 251
 
252 252
     </p>
253 253
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
        
333 333
 
334
-         $tampil=mysql_query("SELECT a.*,b.shift
334
+         $tampil = mysql_query("SELECT a.*,b.shift
335 335
 
336 336
                              FROM kasir a left join shift b
337 337
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 
354 354
          
355 355
 
356
-         while ($r=mysql_fetch_array($tampil)){  
356
+         while ($r = mysql_fetch_array($tampil)) {  
357 357
 
358 358
 
359 359
 
@@ -365,19 +365,19 @@  discard block
 block discarded – undo
365 365
 
366 366
 
367 367
 
368
-          if($r['status'] == '0'){
368
+          if ($r['status']=='0') {
369 369
 
370 370
             $istatus = 'Baru';
371 371
 
372
-          } else if($r['status'] == '1'){
372
+          } else if ($r['status']=='1') {
373 373
 
374 374
             $istatus = 'Disetujui';
375 375
 
376
-          } else if($r['status'] == '2'){
376
+          } else if ($r['status']=='2') {
377 377
 
378 378
             $istatus = 'Ditolak';
379 379
 
380
-           } else if($r['status'] == '9'){
380
+           } else if ($r['status']=='9') {
381 381
 
382 382
             $istatus = 'Posting'; 
383 383
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 
411 411
 
412 412
 
413
-              if($r_edit == 'Y') {
413
+              if ($r_edit=='Y') {
414 414
 
415 415
                   echo"<a href='?module=$module&id_module=$id&act=save&ID=$ID' title='Update'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
416 416
 
@@ -419,11 +419,11 @@  discard block
 block discarded – undo
419 419
 
420 420
 
421 421
 
422
-                if($r_delete == 'Y' and $r['status'] == '0') {
422
+                if ($r_delete=='Y' and $r['status']=='0') {
423 423
 
424 424
                   echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=hapus&id=$ID&id_module=$id&id_module=$id' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='icon'><i class='fa fa-trash'></i></span></a>";
425 425
 
426
-                  }  else {
426
+                  } else {
427 427
                       echo"<i class='fa fa-trash'></i></span>";
428 428
                   }
429 429
 
@@ -538,11 +538,11 @@  discard block
 block discarded – undo
538 538
 
539 539
 
540 540
 
541
-$hour  = time() + (30 * 25 * 60 * 60);
541
+$hour = time() + (30 * 25 * 60 * 60);
542 542
 
543 543
 
544 544
 
545
-$idate    = date("Y-m-d");
545
+$idate = date("Y-m-d");
546 546
 
547 547
 $idate = $idate;
548 548
 
@@ -579,13 +579,13 @@  discard block
 block discarded – undo
579 579
 
580 580
 
581 581
 
582
-          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd&notrans=$notrans&kode=$kode&outlet=$outlet";?>'" 
582
+          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd&notrans=$notrans&kode=$kode&outlet=$outlet"; ?>'" 
583 583
 
584
-          class="btn btn-success" <?php if ($status != '0') { echo 'disabled'; } ?>>Ubah</button>
584
+          class="btn btn-success" <?php if ($status!='0') { echo 'disabled'; } ?>>Ubah</button>
585 585
 
586 586
 
587 587
 
588
-           <?php if ($status == '0') { ?>
588
+           <?php if ($status=='0') { ?>
589 589
 
590 590
             <?
591 591
 
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 
604 604
                  
605 605
 
606
-           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode";?>'" class="btn btn-warning">Kembali Ke List</button>
606
+           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode"; ?>'" class="btn btn-warning">Kembali Ke List</button>
607 607
 
608 608
         </div>
609 609
 
@@ -629,9 +629,9 @@  discard block
 block discarded – undo
629 629
 
630 630
   <input type="hidden" name="prd" id="prd" value="<?php echo $prd?>" /> 
631 631
 
632
-  <input type="hidden" name="outlet" id="outlet" value="<?php echo $outlet;?>">
632
+  <input type="hidden" name="outlet" id="outlet" value="<?php echo $outlet; ?>">
633 633
 
634
-  <input type="hidden" name="kode" id="kode" value="<?php echo $kode;?>">
634
+  <input type="hidden" name="kode" id="kode" value="<?php echo $kode; ?>">
635 635
 
636 636
 
637 637
  
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
 
646 646
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
647 647
 
648
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $idate;?>" autofocus class="form-control"  required>  
648
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $idate; ?>" autofocus class="form-control"  required>  
649 649
 
650 650
   </div> 
651 651
 
@@ -665,13 +665,13 @@  discard block
 block discarded – undo
665 665
 
666 666
    $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
667 667
 
668
-    if($query && mysql_num_rows($query) > 0){
668
+    if ($query && mysql_num_rows($query)>0) {
669 669
 
670
-       while($row = mysql_fetch_object($query)){
670
+       while ($row = mysql_fetch_object($query)) {
671 671
 
672 672
        echo '<option value="'.$row->id_shift.'"';
673 673
 
674
-       if($row->id_shift == $shift) echo ' selected';
674
+       if ($row->id_shift==$shift) echo ' selected';
675 675
 
676 676
        echo '>'.$row->shift.'</option>';
677 677
 
@@ -776,11 +776,11 @@  discard block
 block discarded – undo
776 776
 
777 777
 
778 778
 
779
-$k_ID    = $_GET['ID']; 
779
+$k_ID = $_GET['ID']; 
780 780
 
781 781
 
782 782
 
783
-$sql   = mysql_query("SELECT * FROM kasir 
783
+$sql = mysql_query("SELECT * FROM kasir 
784 784
 
785 785
                         WHERE id_kasir = '$k_ID' 
786 786
 
@@ -788,18 +788,18 @@  discard block
 block discarded – undo
788 788
 
789 789
 
790 790
 
791
-$r     = mysql_fetch_array($sql); 
791
+$r = mysql_fetch_array($sql); 
792 792
 
793 793
 
794
-$penjualan_barang   = $r['id_kasir'];  
794
+$penjualan_barang = $r['id_kasir'];  
795 795
 
796
-$shift   = $r['id_shift'];  
796
+$shift = $r['id_shift'];  
797 797
 
798
-$petugas   = $r['petugas'];  
798
+$petugas = $r['petugas'];  
799 799
 
800
-$status   = $r['status']; 
800
+$status = $r['status']; 
801 801
 
802
-$tanggal   = $r['tanggal'];  
802
+$tanggal = $r['tanggal'];  
803 803
 
804 804
 //$ID   = $r['id_kasir'];  
805 805
 
@@ -833,19 +833,19 @@  discard block
 block discarded – undo
833 833
 
834 834
 
835 835
 
836
-          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID";?>'" 
836
+          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID"; ?>'" 
837 837
 
838
-          class="btn btn-success" <?php if ($status != '0') { echo 'disabled'; } ?>>Ubah</button>
838
+          class="btn btn-success" <?php if ($status!='0') { echo 'disabled'; } ?>>Ubah</button>
839 839
 
840 840
 
841 841
 
842 842
 
843 843
 
844
-           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode";?>'" class="btn btn-warning">Kembali Ke List</button>
844
+           <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&prd=$prd&ioutlet=$outlet&kode=$kode"; ?>'" class="btn btn-warning">Kembali Ke List</button>
845 845
 
846 846
 
847 847
 
848
-                 <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module;?>/cetak_kasir.php?k_ID=<?php echo $k_ID;?>&report_id=<?php echo $_GET[id_module];?>', '', 'height=650,width=800,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')">
848
+                 <a href='#' title='Cetak' onclick="window.open('./modul/mod_<?php echo $module; ?>/cetak_kasir.php?k_ID=<?php echo $k_ID; ?>&report_id=<?php echo $_GET[id_module]; ?>', '', 'height=650,width=800,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no')">
849 849
 
850 850
               <span class='btn btn-success' style='color:white;'><i class='fa fa-print'></i> Cetak</span>
851 851
 
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
 
880 880
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
881 881
 
882
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal;?>" class="form-control"  readonly required>  
882
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" class="form-control"  readonly required>  
883 883
 
884 884
   </div> 
885 885
 
@@ -900,14 +900,14 @@  discard block
 block discarded – undo
900 900
 
901 901
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
902 902
 
903
-    if($query && mysql_num_rows($query) > 0){
903
+    if ($query && mysql_num_rows($query)>0) {
904 904
 
905 905
 
906
-       while($row = mysql_fetch_object($query)){
906
+       while ($row = mysql_fetch_object($query)) {
907 907
 
908 908
        echo '<option value="'.$row->id_shift.'"';
909 909
 
910
-       if($row->id_shift == $shift) echo ' selected';
910
+       if ($row->id_shift==$shift) echo ' selected';
911 911
 
912 912
        echo '>'.$row->shift.'</option>';
913 913
 
@@ -1013,13 +1013,13 @@  discard block
 block discarded – undo
1013 1013
 
1014 1014
        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1015 1015
 
1016
-        if($query && mysql_num_rows($query) > 0){
1016
+        if ($query && mysql_num_rows($query)>0) {
1017 1017
 
1018
-           while($row = mysql_fetch_object($query)){
1018
+           while ($row = mysql_fetch_object($query)) {
1019 1019
 
1020 1020
               echo '<option value="'.$row->id_jenis_transaksi.'"';
1021 1021
 
1022
-              if($row->id_jenis_transaksi == @$data->id_jenis_transaksi) echo ' selected';
1022
+              if ($row->id_jenis_transaksi==@$data->id_jenis_transaksi) echo ' selected';
1023 1023
 
1024 1024
               echo '>'.$row->jenis_transaksi.'</option>';
1025 1025
 
@@ -1060,13 +1060,13 @@  discard block
 block discarded – undo
1060 1060
 
1061 1061
        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
1062 1062
 
1063
-        if($query && mysql_num_rows($query) > 0){
1063
+        if ($query && mysql_num_rows($query)>0) {
1064 1064
 
1065
-           while($row = mysql_fetch_object($query)){
1065
+           while ($row = mysql_fetch_object($query)) {
1066 1066
 
1067 1067
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
1068 1068
 
1069
-              if($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) echo ' selected';
1069
+              if ($row->id_jenis_pembayaran==@$data->id_jenis_pembayaran) echo ' selected';
1070 1070
 
1071 1071
               echo '>'.$row->jenis_pembayaran.'</option>';
1072 1072
 
@@ -1089,13 +1089,13 @@  discard block
 block discarded – undo
1089 1089
 
1090 1090
        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
1091 1091
 
1092
-        if($query && mysql_num_rows($query) > 0){
1092
+        if ($query && mysql_num_rows($query)>0) {
1093 1093
 
1094
-           while($row = mysql_fetch_object($query)){
1094
+           while ($row = mysql_fetch_object($query)) {
1095 1095
 
1096 1096
               echo '<option value="'.$row->id_penjamin.'"';
1097 1097
 
1098
-              if($row->id_penjamin == @$data->id_penjamin) echo ' selected';
1098
+              if ($row->id_penjamin==@$data->id_penjamin) echo ' selected';
1099 1099
 
1100 1100
               echo '>'.$row->penjamin.'</option>';
1101 1101
 
@@ -1169,17 +1169,17 @@  discard block
 block discarded – undo
1169 1169
 
1170 1170
 
1171 1171
 
1172
-$dtampil=mysql_query($dSQL);
1172
+$dtampil = mysql_query($dSQL);
1173 1173
 
1174 1174
 $no = 1;
1175 1175
 
1176 1176
             
1177 1177
 
1178
-while ($d=mysql_fetch_array($dtampil)){  
1178
+while ($d = mysql_fetch_array($dtampil)) {  
1179 1179
 
1180 1180
  
1181 1181
 
1182
- $d_id    = $d['id_kasir_detail'];    
1182
+ $d_id = $d['id_kasir_detail'];    
1183 1183
 
1184 1184
 
1185 1185
 
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
 
1189 1189
  $jumlah = number_format($d['jumlah'], 0, ".", "");
1190 1190
 
1191
- $total =  $total+$d['jumlah'];
1191
+ $total = $total + $d['jumlah'];
1192 1192
 
1193 1193
  $itotal = number_format($total, 0, ".", ",");
1194 1194
 
@@ -1201,20 +1201,20 @@  discard block
 block discarded – undo
1201 1201
 
1202 1202
  echo" <td>"; 
1203 1203
 
1204
- echo $d['notrans'] ;
1204
+ echo $d['notrans'];
1205 1205
 
1206 1206
  echo"</td>";  
1207 1207
 
1208 1208
  echo" <td>"; 
1209 1209
 
1210
- echo $d['pasien'] ;
1210
+ echo $d['pasien'];
1211 1211
 
1212 1212
  echo"</td>"; 
1213 1213
 
1214 1214
 
1215 1215
  echo" <td>"; 
1216 1216
 
1217
- echo $d['jenis_transaksi'] ;
1217
+ echo $d['jenis_transaksi'];
1218 1218
 
1219 1219
  echo"</td>";  
1220 1220
 
@@ -1256,7 +1256,7 @@  discard block
 block discarded – undo
1256 1256
 
1257 1257
 
1258 1258
 
1259
-            if($r_edit == 'Y') {
1259
+            if ($r_edit=='Y') {
1260 1260
 
1261 1261
                 echo"<a href='?module=$module&id_module=$_GET[id_module]&act=edit&k_ID=$k_ID&d_id=$d_id' title='Update'><span class='btn btn-success btn-xs'><i class='fa fa-pencil'></i></span></a>";
1262 1262
 
@@ -1266,7 +1266,7 @@  discard block
 block discarded – undo
1266 1266
 
1267 1267
 
1268 1268
 
1269
-              if($r_delete == 'Y') {
1269
+              if ($r_delete=='Y') {
1270 1270
 
1271 1271
                 echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&id_module=$_GET[id_module]&act=dhapus&id=$d_id&k_ID=$k_ID' onClick=\"return confirm('Hapus Data ?')\" title='Hapus $nmmodule'><span class='btn btn-danger btn-xs'><i class='fa fa-trash'></i></span></a>";
1272 1272
 
@@ -1285,7 +1285,7 @@  discard block
 block discarded – undo
1285 1285
  <tr>
1286 1286
 
1287 1287
      <th width='10%' colspan="3"><h5 style='font-size:12px;'>Total</h5></th>  
1288
-     <th width='10%'><h5 style='font-size:12px;text-align: right;'><?=$itotal;?></h5></th> 
1288
+     <th width='10%'><h5 style='font-size:12px;text-align: right;'><?=$itotal; ?></h5></th> 
1289 1289
 
1290 1290
      <th  width='10%' colspan="3"><h5 style='font-size:12px;'></h5></th> 
1291 1291
 
@@ -1327,11 +1327,11 @@  discard block
 block discarded – undo
1327 1327
 
1328 1328
 
1329 1329
 
1330
-$k_ID    = $_GET['k_ID']; 
1330
+$k_ID = $_GET['k_ID']; 
1331 1331
 
1332 1332
 
1333 1333
 
1334
-$sql   = mysql_query("SELECT * FROM kasir 
1334
+$sql = mysql_query("SELECT * FROM kasir 
1335 1335
 
1336 1336
                         WHERE id_kasir = '$k_ID' 
1337 1337
 
@@ -1339,31 +1339,31 @@  discard block
 block discarded – undo
1339 1339
 
1340 1340
 
1341 1341
 
1342
-$r     = mysql_fetch_array($sql); 
1342
+$r = mysql_fetch_array($sql); 
1343 1343
 
1344 1344
 
1345
-$ID   = $r['id_kasir'];  
1345
+$ID = $r['id_kasir'];  
1346 1346
 
1347
-$shift   = $r['id_shift'];  
1347
+$shift = $r['id_shift'];  
1348 1348
 
1349
-$petugas   = $r['petugas'];  
1349
+$petugas = $r['petugas'];  
1350 1350
 
1351
-$status   = $r['status']; 
1351
+$status = $r['status']; 
1352 1352
 
1353
-$tanggal   = $r['tanggal'];  
1353
+$tanggal = $r['tanggal'];  
1354 1354
 
1355 1355
 
1356
-$dsql   = mysql_query("SELECT * FROM kasir_detail 
1356
+$dsql = mysql_query("SELECT * FROM kasir_detail 
1357 1357
 
1358 1358
                         WHERE id_kasir = '$k_ID' ");
1359 1359
 
1360 1360
 
1361 1361
 
1362
-$jml     = mysql_num_rows($dsql);
1362
+$jml = mysql_num_rows($dsql);
1363 1363
 
1364 1364
 
1365 1365
 
1366
-if ($jml > 0 ) {
1366
+if ($jml>0) {
1367 1367
 
1368 1368
   // $readonly = 'readonly';
1369 1369
 
@@ -1424,7 +1424,7 @@  discard block
 block discarded – undo
1424 1424
 
1425 1425
   
1426 1426
 
1427
-            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID";?>'" class="btn btn-warning">Batal</button>
1427
+            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID"; ?>'" class="btn btn-warning">Batal</button>
1428 1428
 
1429 1429
 
1430 1430
 
@@ -1454,11 +1454,11 @@  discard block
 block discarded – undo
1454 1454
 
1455 1455
   <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> 
1456 1456
 
1457
- <input type="hidden" name="ID" id="ID" value="<?php echo $ID;?>">
1457
+ <input type="hidden" name="ID" id="ID" value="<?php echo $ID; ?>">
1458 1458
 
1459
- <input type="hidden" name="k_ID" id="k_ID" value="<?php echo $k_ID;?>">
1459
+ <input type="hidden" name="k_ID" id="k_ID" value="<?php echo $k_ID; ?>">
1460 1460
 
1461
- <input type="hidden" name="jml" id="jml" value="<?php echo $jml;?>">
1461
+ <input type="hidden" name="jml" id="jml" value="<?php echo $jml; ?>">
1462 1462
 
1463 1463
 
1464 1464
  
@@ -1472,7 +1472,7 @@  discard block
 block discarded – undo
1472 1472
 
1473 1473
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1474 1474
 
1475
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal;?>" <?php echo $readonly;?> class="form-control" required>  
1475
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" <?php echo $readonly; ?> class="form-control" required>  
1476 1476
 
1477 1477
   </div> 
1478 1478
 
@@ -1493,13 +1493,13 @@  discard block
 block discarded – undo
1493 1493
 
1494 1494
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1495 1495
 
1496
-    if($query && mysql_num_rows($query) > 0){
1496
+    if ($query && mysql_num_rows($query)>0) {
1497 1497
 
1498
-       while($row = mysql_fetch_object($query)){
1498
+       while ($row = mysql_fetch_object($query)) {
1499 1499
 
1500 1500
        echo '<option value="'.$row->id_shift.'"';
1501 1501
 
1502
-       if($row->id_shift == $shift) echo ' selected';
1502
+       if ($row->id_shift==$shift) echo ' selected';
1503 1503
 
1504 1504
        echo '>'.$row->shift.'</option>';
1505 1505
 
@@ -1590,17 +1590,17 @@  discard block
 block discarded – undo
1590 1590
 
1591 1591
 
1592 1592
 
1593
-$dtampil=mysql_query($dSQL);
1593
+$dtampil = mysql_query($dSQL);
1594 1594
 
1595 1595
 $no = 1;
1596 1596
 
1597 1597
             
1598 1598
 
1599
-while ($d=mysql_fetch_array($dtampil)){  
1599
+while ($d = mysql_fetch_array($dtampil)) {  
1600 1600
 
1601 1601
  
1602 1602
 
1603
- $d_id    = $d['id_kasir_detail'];    
1603
+ $d_id = $d['id_kasir_detail'];    
1604 1604
 
1605 1605
 
1606 1606
 
@@ -1609,7 +1609,7 @@  discard block
 block discarded – undo
1609 1609
 
1610 1610
  $jumlah = number_format($d['jumlah'], 0, ".", "");
1611 1611
 
1612
- $total =  $total+$d['jumlah'];
1612
+ $total = $total + $d['jumlah'];
1613 1613
 
1614 1614
  $itotal = number_format($total, 0, ".", ",");
1615 1615
 
@@ -1622,20 +1622,20 @@  discard block
 block discarded – undo
1622 1622
 
1623 1623
  echo" <td>"; 
1624 1624
 
1625
- echo $d['notrans'] ;
1625
+ echo $d['notrans'];
1626 1626
 
1627 1627
  echo"</td>";  
1628 1628
 
1629 1629
  echo" <td>"; 
1630 1630
 
1631
- echo $d['pasien'] ;
1631
+ echo $d['pasien'];
1632 1632
 
1633 1633
  echo"</td>"; 
1634 1634
 
1635 1635
 
1636 1636
  echo" <td>"; 
1637 1637
 
1638
- echo $d['jenis_transaksi'] ;
1638
+ echo $d['jenis_transaksi'];
1639 1639
 
1640 1640
  echo"</td>";  
1641 1641
 
@@ -1705,11 +1705,11 @@  discard block
 block discarded – undo
1705 1705
 
1706 1706
 
1707 1707
 
1708
-$k_ID    = $_GET['k_ID']; 
1708
+$k_ID = $_GET['k_ID']; 
1709 1709
 
1710 1710
 
1711 1711
 
1712
-$sql   = mysql_query("SELECT * FROM kasir 
1712
+$sql = mysql_query("SELECT * FROM kasir 
1713 1713
 
1714 1714
                         WHERE id_kasir = '$k_ID' 
1715 1715
 
@@ -1717,18 +1717,18 @@  discard block
 block discarded – undo
1717 1717
 
1718 1718
 
1719 1719
 
1720
-$r     = mysql_fetch_array($sql); 
1720
+$r = mysql_fetch_array($sql); 
1721 1721
 
1722 1722
 
1723
-$penjualan_barang   = $r['id_kasir'];  
1723
+$penjualan_barang = $r['id_kasir'];  
1724 1724
 
1725
-$shift   = $r['id_shift'];  
1725
+$shift = $r['id_shift'];  
1726 1726
 
1727
-$petugas   = $r['petugas'];  
1727
+$petugas = $r['petugas'];  
1728 1728
 
1729
-$status   = $r['status']; 
1729
+$status = $r['status']; 
1730 1730
 
1731
-$tanggal   = $r['tanggal'];  
1731
+$tanggal = $r['tanggal'];  
1732 1732
 
1733 1733
 //$ID   = $r['id_kasir'];  
1734 1734
 
@@ -1766,7 +1766,7 @@  discard block
 block discarded – undo
1766 1766
 
1767 1767
         
1768 1768
 
1769
-            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID";?>'" class="btn btn-warning">Batal</button>
1769
+            <button type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=save&ID=$k_ID"; ?>'" class="btn btn-warning">Batal</button>
1770 1770
 
1771 1771
 
1772 1772
 
@@ -1801,7 +1801,7 @@  discard block
 block discarded – undo
1801 1801
 
1802 1802
   <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1803 1803
 
1804
-     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal;?>" class="form-control"  readonly required>  
1804
+     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" class="form-control"  readonly required>  
1805 1805
 
1806 1806
   </div> 
1807 1807
 
@@ -1822,14 +1822,14 @@  discard block
 block discarded – undo
1822 1822
 
1823 1823
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
1824 1824
 
1825
-    if($query && mysql_num_rows($query) > 0){
1825
+    if ($query && mysql_num_rows($query)>0) {
1826 1826
 
1827 1827
 
1828
-       while($row = mysql_fetch_object($query)){
1828
+       while ($row = mysql_fetch_object($query)) {
1829 1829
 
1830 1830
        echo '<option value="'.$row->id_shift.'"';
1831 1831
 
1832
-       if($row->id_shift == $shift) echo ' selected';
1832
+       if ($row->id_shift==$shift) echo ' selected';
1833 1833
 
1834 1834
        echo '>'.$row->shift.'</option>';
1835 1835
 
@@ -1902,7 +1902,7 @@  discard block
 block discarded – undo
1902 1902
 
1903 1903
  <?
1904 1904
 
1905
- $d_id    = $_GET['d_id']; 
1905
+ $d_id = $_GET['d_id']; 
1906 1906
 
1907 1907
 
1908 1908
 $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
@@ -1932,13 +1932,13 @@  discard block
 block discarded – undo
1932 1932
 
1933 1933
 
1934 1934
 
1935
-$dtampil=mysql_query($dSQL);
1935
+$dtampil = mysql_query($dSQL);
1936 1936
 
1937 1937
 $no = 1;
1938 1938
 
1939 1939
             
1940 1940
 
1941
-while ($d=mysql_fetch_array($dtampil)){  
1941
+while ($d = mysql_fetch_array($dtampil)) {  
1942 1942
 
1943 1943
  $jid = $d['id_kasir_detail'];
1944 1944
 
@@ -1950,7 +1950,7 @@  discard block
 block discarded – undo
1950 1950
 
1951 1951
 
1952 1952
 
1953
- if ($jid == $d_id) {
1953
+ if ($jid==$d_id) {
1954 1954
 
1955 1955
  ?> 
1956 1956
 
@@ -1968,20 +1968,20 @@  discard block
 block discarded – undo
1968 1968
 
1969 1969
   <input type="hidden" name="k_ID" value="<?php echo $k_ID?>" />  
1970 1970
 
1971
-  <input type="hidden" name="ID" value="<?php echo $jid;?>" /> 
1971
+  <input type="hidden" name="ID" value="<?php echo $jid; ?>" /> 
1972 1972
 
1973 1973
 
1974 1974
  <tr>
1975 1975
 
1976 1976
  <td>
1977 1977
 
1978
- <input type="text" name="notrans" id="notrans" value="<?=$d['notrans'];?>" autofocus required="required"  class="form-control">
1978
+ <input type="text" name="notrans" id="notrans" value="<?=$d['notrans']; ?>" autofocus required="required"  class="form-control">
1979 1979
 
1980 1980
  </td>
1981 1981
 
1982 1982
  <td>
1983 1983
 
1984
- <input type="text" name="pasien" id="pasien" value="<?=$d['pasien'];?>" class="form-control">
1984
+ <input type="text" name="pasien" id="pasien" value="<?=$d['pasien']; ?>" class="form-control">
1985 1985
 
1986 1986
 
1987 1987
  </td>
@@ -1995,13 +1995,13 @@  discard block
 block discarded – undo
1995 1995
 
1996 1996
        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
1997 1997
 
1998
-        if($query && mysql_num_rows($query) > 0){
1998
+        if ($query && mysql_num_rows($query)>0) {
1999 1999
 
2000
-           while($row = mysql_fetch_object($query)){
2000
+           while ($row = mysql_fetch_object($query)) {
2001 2001
 
2002 2002
               echo '<option value="'.$row->id_jenis_transaksi.'"';
2003 2003
 
2004
-              if($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) echo ' selected';
2004
+              if ($row->id_jenis_transaksi==@$d['id_jenis_transaksi']) echo ' selected';
2005 2005
 
2006 2006
               echo '>'.$row->jenis_transaksi.'</option>';
2007 2007
 
@@ -2019,7 +2019,7 @@  discard block
 block discarded – undo
2019 2019
 
2020 2020
   <td>
2021 2021
 
2022
- <input type="text" name='ijumlah' id='ijumlah' min='1'  value="<?=$ijumlah;?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"
2022
+ <input type="text" name='ijumlah' id='ijumlah' min='1'  value="<?=$ijumlah; ?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"
2023 2023
 
2024 2024
 onBlur="mask_jumlah()"
2025 2025
 
@@ -2027,7 +2027,7 @@  discard block
 block discarded – undo
2027 2027
 
2028 2028
 >
2029 2029
 
2030
-<input type="hidden" name='jumlah' id='jumlah' value="<?=$jumlah;?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"> 
2030
+<input type="hidden" name='jumlah' id='jumlah' value="<?=$jumlah; ?>" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"> 
2031 2031
 
2032 2032
  </td>
2033 2033
 
@@ -2042,13 +2042,13 @@  discard block
 block discarded – undo
2042 2042
 
2043 2043
        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
2044 2044
 
2045
-        if($query && mysql_num_rows($query) > 0){
2045
+        if ($query && mysql_num_rows($query)>0) {
2046 2046
 
2047
-           while($row = mysql_fetch_object($query)){
2047
+           while ($row = mysql_fetch_object($query)) {
2048 2048
 
2049 2049
               echo '<option value="'.$row->id_jenis_pembayaran.'"';
2050 2050
 
2051
-              if($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) echo ' selected';
2051
+              if ($row->id_jenis_pembayaran==@$d['id_jenis_pembayaran']) echo ' selected';
2052 2052
 
2053 2053
               echo '>'.$row->jenis_pembayaran.'</option>';
2054 2054
 
@@ -2071,13 +2071,13 @@  discard block
 block discarded – undo
2071 2071
 
2072 2072
        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
2073 2073
 
2074
-        if($query && mysql_num_rows($query) > 0){
2074
+        if ($query && mysql_num_rows($query)>0) {
2075 2075
 
2076
-           while($row = mysql_fetch_object($query)){
2076
+           while ($row = mysql_fetch_object($query)) {
2077 2077
 
2078 2078
               echo '<option value="'.$row->id_penjamin.'"';
2079 2079
 
2080
-              if($row->id_penjamin == @$d['id_penjamin']) echo ' selected';
2080
+              if ($row->id_penjamin==@$d['id_penjamin']) echo ' selected';
2081 2081
 
2082 2082
               echo '>'.$row->penjamin.'</option>';
2083 2083
 
@@ -2093,7 +2093,7 @@  discard block
 block discarded – undo
2093 2093
 
2094 2094
   <td>
2095 2095
 
2096
-  <textarea  name="ket" id="ket" col=1><?=$d['ket'];?></textarea>
2096
+  <textarea  name="ket" id="ket" col=1><?=$d['ket']; ?></textarea>
2097 2097
 
2098 2098
  </td>
2099 2099
 
@@ -2135,7 +2135,7 @@  discard block
 block discarded – undo
2135 2135
 
2136 2136
  echo" <td>"; 
2137 2137
 
2138
- echo $d['notrans'] ;
2138
+ echo $d['notrans'];
2139 2139
 
2140 2140
  echo"</td>";  
2141 2141
 
@@ -2143,7 +2143,7 @@  discard block
 block discarded – undo
2143 2143
 
2144 2144
  echo" <td>"; 
2145 2145
 
2146
- echo $d['pasien'] ;
2146
+ echo $d['pasien'];
2147 2147
 
2148 2148
  echo"</td>";  
2149 2149
 
@@ -2192,7 +2192,7 @@  discard block
 block discarded – undo
2192 2192
 
2193 2193
   
2194 2194
 
2195
-            if($r_edit == 'Y') {
2195
+            if ($r_edit=='Y') {
2196 2196
 
2197 2197
             echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
2198 2198
 
@@ -2200,7 +2200,7 @@  discard block
 block discarded – undo
2200 2200
 
2201 2201
 
2202 2202
 
2203
-          if($r_delete == 'Y') {
2203
+          if ($r_delete=='Y') {
2204 2204
 
2205 2205
             echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
2206 2206
 
Please login to merge, or discard this patch.
modul/mod_kasir/xcetak_kasir.php 1 patch
Spacing   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
 
13 13
 $SQL = "SELECT* FROM periode ";
14 14
 
15
-$tampil=mysql_query($SQL);
15
+$tampil = mysql_query($SQL);
16 16
 
17
-$p=mysql_fetch_array($tampil);
17
+$p = mysql_fetch_array($tampil);
18 18
 
19 19
 
20 20
 
@@ -24,23 +24,23 @@  discard block
 block discarded – undo
24 24
 
25 25
 
26 26
 
27
-$tampil=mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
27
+$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
28 28
 
29 29
 						
30 30
 
31
-$r=mysql_fetch_array($tampil);
31
+$r = mysql_fetch_array($tampil);
32 32
 
33 33
 
34 34
 
35
-$module 	= $_GET['module'];
35
+$module = $_GET['module'];
36 36
 
37
-$imodule 	= ucwords($r['nama_modul']);
37
+$imodule = ucwords($r['nama_modul']);
38 38
 
39
-$nmmodule 	= ucwords($r['nama_modul']);
39
+$nmmodule = ucwords($r['nama_modul']);
40 40
 
41
-$id     	= $r['id_modul'];
41
+$id = $r['id_modul'];
42 42
 
43
-$fa_icon   	= $r['fa_icon'];
43
+$fa_icon = $r['fa_icon'];
44 44
 
45 45
 
46 46
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
 
64 64
 
65
-$status		= $_GET['status'];
65
+$status = $_GET['status'];
66 66
 
67 67
 
68 68
 
@@ -315,37 +315,37 @@  discard block
 block discarded – undo
315 315
 
316 316
   $abil = array("", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas");
317 317
 
318
-  if ($x < 12)
318
+  if ($x<12)
319 319
 
320
-    return " " . $abil[$x];
320
+    return " ".$abil[$x];
321 321
 
322
-  elseif ($x < 20)
322
+  elseif ($x<20)
323 323
 
324
-    return Terbilang($x - 10) . "belas";
324
+    return Terbilang($x - 10)."belas";
325 325
 
326
-  elseif ($x < 100)
326
+  elseif ($x<100)
327 327
 
328
-    return Terbilang($x / 10) . " puluh" . Terbilang($x % 10);
328
+    return Terbilang($x / 10)." puluh".Terbilang($x % 10);
329 329
 
330
-  elseif ($x < 200)
330
+  elseif ($x<200)
331 331
 
332
-    return " seratus" . Terbilang($x - 100);
332
+    return " seratus".Terbilang($x - 100);
333 333
 
334
-  elseif ($x < 1000)
334
+  elseif ($x<1000)
335 335
 
336
-    return Terbilang($x / 100) . " ratus" . Terbilang($x % 100);
336
+    return Terbilang($x / 100)." ratus".Terbilang($x % 100);
337 337
 
338
-  elseif ($x < 2000)
338
+  elseif ($x<2000)
339 339
 
340
-    return " seribu" . Terbilang($x - 1000);
340
+    return " seribu".Terbilang($x - 1000);
341 341
 
342
-  elseif ($x < 1000000)
342
+  elseif ($x<1000000)
343 343
 
344
-    return Terbilang($x / 1000) . " ribu" . Terbilang($x % 1000);
344
+    return Terbilang($x / 1000)." ribu".Terbilang($x % 1000);
345 345
 
346
-  elseif ($x < 1000000000)
346
+  elseif ($x<1000000000)
347 347
 
348
-    return Terbilang($x / 1000000) . " juta" . Terbilang($x % 1000000);
348
+    return Terbilang($x / 1000000)." juta".Terbilang($x % 1000000);
349 349
 
350 350
 }
351 351
 
@@ -409,9 +409,9 @@  discard block
 block discarded – undo
409 409
 
410 410
 
411 411
 
412
- $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
412
+ $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
413 413
 
414
- $g=mysql_fetch_array($gtampil);
414
+ $g = mysql_fetch_array($gtampil);
415 415
 
416 416
 
417 417
 
@@ -433,9 +433,9 @@  discard block
 block discarded – undo
433 433
 
434 434
 
435 435
 
436
- $otampil=mysql_query("SELECT * FROM  outlet where id_outlet = '$outlet'");
436
+ $otampil = mysql_query("SELECT * FROM  outlet where id_outlet = '$outlet'");
437 437
 
438
- $o=mysql_fetch_array($otampil);
438
+ $o = mysql_fetch_array($otampil);
439 439
 
440 440
 
441 441
 
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 
450 450
 <td width='10%'>
451 451
 
452
-<img src="../../images/logo/<?php echo $pict;?>" width='150px'>
452
+<img src="../../images/logo/<?php echo $pict; ?>" width='150px'>
453 453
 
454 454
 </td>
455 455
 
@@ -483,17 +483,17 @@  discard block
 block discarded – undo
483 483
 
484 484
 <?
485 485
 
486
-$prd    = $_GET['prd']; 
486
+$prd = $_GET['prd']; 
487 487
 
488 488
 $notrans = $_GET['notrans'];
489 489
 
490 490
 $kode    = $_GET['kode']; 
491 491
 
492
-$Outlet    = $_GET['outlet']; 
492
+$Outlet = $_GET['outlet']; 
493 493
 
494 494
 
495 495
 
496
-$SQL =	'SELECT a.*,b.outlet,c.supplier,d.mata_uang,d.ket as cnote 
496
+$SQL = 'SELECT a.*,b.outlet,c.supplier,d.mata_uang,d.ket as cnote 
497 497
 
498 498
 	 FROM pemesanan_barang a left join outlet b
499 499
 
@@ -527,11 +527,11 @@  discard block
 block discarded – undo
527 527
 
528 528
 
529 529
 
530
-$tampil=mysql_query($SQL);         
530
+$tampil = mysql_query($SQL);         
531 531
 
532 532
                    
533 533
 
534
-$r=mysql_fetch_array($tampil);	
534
+$r = mysql_fetch_array($tampil);	
535 535
 
536 536
 
537 537
 
@@ -549,19 +549,19 @@  discard block
 block discarded – undo
549 549
 
550 550
 
551 551
 
552
-if($r['status'] == '0'){
552
+if ($r['status']=='0') {
553 553
 
554 554
   $istatus = 'Baru';
555 555
 
556
-} else if($r['status'] == '1'){
556
+} else if ($r['status']=='1') {
557 557
 
558 558
   $istatus = 'Disetujui';
559 559
 
560
-} else if($r['status'] == '2'){
560
+} else if ($r['status']=='2') {
561 561
 
562 562
   $istatus = 'Ditolak';
563 563
 
564
- } else if($r['status'] == '9'){
564
+ } else if ($r['status']=='9') {
565 565
 
566 566
   $istatus = 'Posting'; 
567 567
 
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 
686 686
 <?
687 687
 
688
-$sSQL =	'SELECT c.*
688
+$sSQL = 'SELECT c.*
689 689
 
690 690
 	 FROM pemesanan_barang a left join outlet b
691 691
 
@@ -719,11 +719,11 @@  discard block
 block discarded – undo
719 719
 
720 720
 
721 721
 
722
-$stampil=mysql_query($sSQL);         
722
+$stampil = mysql_query($sSQL);         
723 723
 
724 724
                    
725 725
 
726
-$s=mysql_fetch_array($stampil);	
726
+$s = mysql_fetch_array($stampil);	
727 727
 
728 728
 
729 729
 
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
 
740 740
         </tr>
741 741
 
742
-        <tr><td width="30%">Telepon</td><td width="1%">:</td><td><?php echo $s['phone'];?></td></tr>
742
+        <tr><td width="30%">Telepon</td><td width="1%">:</td><td><?php echo $s['phone']; ?></td></tr>
743 743
 
744 744
 </table>        
745 745
 
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
 
750 750
 <?
751 751
 
752
-$cSQL =	'SELECT b.*
752
+$cSQL = 'SELECT b.*
753 753
 
754 754
 	 FROM pemesanan_barang a left join outlet b
755 755
 
@@ -783,11 +783,11 @@  discard block
 block discarded – undo
783 783
 
784 784
 
785 785
 
786
-$ctampil=mysql_query($cSQL);         
786
+$ctampil = mysql_query($cSQL);         
787 787
 
788 788
                    
789 789
 
790
-$c=mysql_fetch_array($ctampil);	
790
+$c = mysql_fetch_array($ctampil);	
791 791
 
792 792
 
793 793
 
@@ -845,13 +845,13 @@  discard block
 block discarded – undo
845 845
 
846 846
      <th width='15%'  class="iborder" style="text-align: right">Harga</th> 
847 847
 
848
-     <?php if ($mata_uang == '1') { ?> 
848
+     <?php if ($mata_uang=='1') { ?> 
849 849
 
850 850
      <th width='15%'  class="lborder" style="text-align: right">Total</th>
851 851
 
852 852
      <?php } else { ?>
853 853
 
854
-     <th width='10%'  class="iborder" style="text-align: right">Total (<?php echo $curr;?>)</th>
854
+     <th width='10%'  class="iborder" style="text-align: right">Total (<?php echo $curr; ?>)</th>
855 855
 
856 856
      <th width='10%'  class="lborder" style="text-align: right">Total (IDR)</th>
857 857
 
@@ -887,13 +887,13 @@  discard block
 block discarded – undo
887 887
 
888 888
          ";
889 889
 
890
-$dtampil=mysql_query($dSQL);
890
+$dtampil = mysql_query($dSQL);
891 891
 
892 892
 $no = 1;
893 893
 
894 894
             
895 895
 
896
-while ($d=mysql_fetch_array($dtampil)){  
896
+while ($d = mysql_fetch_array($dtampil)) {  
897 897
 
898 898
  
899 899
 
@@ -923,7 +923,7 @@  discard block
 block discarded – undo
923 923
 
924 924
 echo" <td class='border' style='text-align: center;'>"; 
925 925
 
926
- echo $no.'.' ;
926
+ echo $no.'.';
927 927
 
928 928
  echo"</td>"; 
929 929
 
@@ -931,7 +931,7 @@  discard block
 block discarded – undo
931 931
 
932 932
  echo" <td class='border'>"; 
933 933
 
934
- echo $ibarang ;
934
+ echo $ibarang;
935 935
 
936 936
  echo"</td>";  
937 937
 
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
 
962 962
 
963 963
 
964
- if ($mata_uang == '1') {
964
+ if ($mata_uang=='1') {
965 965
 
966 966
 	 echo" <td  class='border' style='text-align:right;'>"; 
967 967
 
@@ -997,9 +997,9 @@  discard block
 block discarded – undo
997 997
 
998 998
 
999 999
 
1000
-if ($no < 10) {
1000
+if ($no<10) {
1001 1001
 
1002
-		while ($no < 10)  {
1002
+		while ($no<10) {
1003 1003
 
1004 1004
 			   echo "<tr>";
1005 1005
 
@@ -1017,7 +1017,7 @@  discard block
 block discarded – undo
1017 1017
 
1018 1018
 
1019 1019
 
1020
-$sql   = mysql_query("SELECT * FROM pemesanan_barang 
1020
+$sql = mysql_query("SELECT * FROM pemesanan_barang 
1021 1021
 
1022 1022
                         WHERE prd = '$prd' and notrans = '$notrans' and kode = '$kode'
1023 1023
 
@@ -1025,7 +1025,7 @@  discard block
 block discarded – undo
1025 1025
 
1026 1026
                         ");
1027 1027
 
1028
-$r     = mysql_fetch_array($sql); 
1028
+$r = mysql_fetch_array($sql); 
1029 1029
 
1030 1030
 
1031 1031
 
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
 
1054 1054
 
1055 1055
 
1056
-if ($mata_uang == '1') {
1056
+if ($mata_uang=='1') {
1057 1057
 
1058 1058
 	$rterbilang = ucwords(Terbilang($igtotal)).' Rupiah';
1059 1059
 
@@ -1087,17 +1087,17 @@  discard block
 block discarded – undo
1087 1087
 
1088 1088
 <td style="text-align:right;border-bottom:1px black solid;">
1089 1089
 
1090
-<?php echo $ctotal;?>
1090
+<?php echo $ctotal; ?>
1091 1091
 
1092 1092
 
1093 1093
 
1094 1094
 </td>
1095 1095
 
1096
-<?php if ($mata_uang != '1') { ?> 
1096
+<?php if ($mata_uang!='1') { ?> 
1097 1097
 
1098 1098
 <td style="text-align:right;border-bottom:1px black solid;">
1099 1099
 
1100
-<?php echo $total;?>
1100
+<?php echo $total; ?>
1101 1101
 
1102 1102
 </td>
1103 1103
 
@@ -1115,29 +1115,29 @@  discard block
 block discarded – undo
1115 1115
 
1116 1116
 <?
1117 1117
 
1118
-$pg_sql   = mysql_query("SELECT * FROM pg_lainnya");
1118
+$pg_sql = mysql_query("SELECT * FROM pg_lainnya");
1119 1119
 
1120
-$pg     = mysql_fetch_array($pg_sql); 
1120
+$pg = mysql_fetch_array($pg_sql); 
1121 1121
 
1122 1122
 $ippn = $pg['ppn'];
1123 1123
 
1124 1124
 ?>
1125 1125
 
1126
-PPN <?php echo $ippn;?> %
1126
+PPN <?php echo $ippn; ?> %
1127 1127
 
1128 1128
 </td>
1129 1129
 
1130 1130
 <td style="text-align:right;border-bottom:1px black solid;">
1131 1131
 
1132
-<?php echo $cppn;?>
1132
+<?php echo $cppn; ?>
1133 1133
 
1134 1134
 </td>
1135 1135
 
1136
-<?php if ($mata_uang != '1') { ?> 
1136
+<?php if ($mata_uang!='1') { ?> 
1137 1137
 
1138 1138
 <td style="text-align:right;border-bottom:1px black solid;">
1139 1139
 
1140
-<?php echo $ppn;?>
1140
+<?php echo $ppn; ?>
1141 1141
 
1142 1142
 </td>
1143 1143
 
@@ -1157,15 +1157,15 @@  discard block
 block discarded – undo
1157 1157
 
1158 1158
 <td style="text-align:right;border-bottom:1px black solid;">
1159 1159
 
1160
-<?php echo $cgtotal;?>
1160
+<?php echo $cgtotal; ?>
1161 1161
 
1162 1162
 </td>
1163 1163
 
1164
-<?php if ($mata_uang != '1') { ?> 
1164
+<?php if ($mata_uang!='1') { ?> 
1165 1165
 
1166 1166
 <td style="text-align:right;border-bottom:1px black solid;">
1167 1167
 
1168
-<?php echo $gtotal;?>
1168
+<?php echo $gtotal; ?>
1169 1169
 
1170 1170
 </td>
1171 1171
 
@@ -1175,7 +1175,7 @@  discard block
 block discarded – undo
1175 1175
 
1176 1176
 
1177 1177
 
1178
-<tr><td colspan="6"><br>Catatan : <?php echo $r['note'];?></td></tr>
1178
+<tr><td colspan="6"><br>Catatan : <?php echo $r['note']; ?></td></tr>
1179 1179
 
1180 1180
 </table>
1181 1181
 
@@ -1187,7 +1187,7 @@  discard block
 block discarded – undo
1187 1187
 
1188 1188
 	
1189 1189
 
1190
-	$tanda_tangan	= mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1190
+	$tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1191 1191
 
1192 1192
 							ON a.id_kode_transaksi = b.id_kode_transaksi
1193 1193
 
@@ -1195,17 +1195,17 @@  discard block
 block discarded – undo
1195 1195
 
1196 1196
 
1197 1197
 
1198
-	$jml		= mysql_num_rows($tanda_tangan);
1198
+	$jml = mysql_num_rows($tanda_tangan);
1199 1199
 
1200 1200
 	
1201 1201
 
1202
-	$cp			= $jml +1 ;
1202
+	$cp = $jml + 1;
1203 1203
 
1204 1204
     
1205 1205
 
1206
-	$ps			= 100/$cp;   
1206
+	$ps = 100 / $cp;   
1207 1207
 
1208
-    $user		= $_SESSION['userid'];
1208
+    $user = $_SESSION['userid'];
1209 1209
 
1210 1210
 	
1211 1211
 
@@ -1227,7 +1227,7 @@  discard block
 block discarded – undo
1227 1227
 
1228 1228
     
1229 1229
 
1230
-    <?php while($s   = mysql_fetch_array($tanda_tangan)) { ?>
1230
+    <?php while ($s = mysql_fetch_array($tanda_tangan)) { ?>
1231 1231
 
1232 1232
     <td align="center" width="<?php echo $ps?>%" valign="bottom"><?php echo $s['judul']?></td>
1233 1233
 
@@ -1247,7 +1247,7 @@  discard block
 block discarded – undo
1247 1247
 
1248 1248
     <?
1249 1249
 
1250
-	$tanda_tangan	= mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1250
+	$tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1251 1251
 
1252 1252
 							ON a.id_kode_transaksi = b.id_kode_transaksi
1253 1253
 
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
 
1256 1256
 	?>    
1257 1257
 
1258
-    <?php while($s   = mysql_fetch_array($tanda_tangan)) { ?>
1258
+    <?php while ($s = mysql_fetch_array($tanda_tangan)) { ?>
1259 1259
 
1260 1260
     <td align="center" width="<?php echo $ps?>%" valign="bottom" style="padding-top:60px;">(<span style="padding-left:10px; padding-right:10px;";><?php echo $s['penanda_tangan']?></span>)</td>
1261 1261
 
@@ -1271,7 +1271,7 @@  discard block
 block discarded – undo
1271 1271
 
1272 1272
     <br><br><br>
1273 1273
 
1274
-    <div>Status Dokumen : <?php echo $istatus;?></div>
1274
+    <div>Status Dokumen : <?php echo $istatus; ?></div>
1275 1275
 
1276 1276
 
1277 1277
 
Please login to merge, or discard this patch.
modul/mod_resep_obat/aksi_resep_obat.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 session_start();
3
-if (empty($_SESSION['username']) AND empty($_SESSION['password'])){
3
+if (empty($_SESSION['username']) AND empty($_SESSION['password'])) {
4 4
   echo "<script>window.alert('Please login first.'); window.location=('../../index.php.php')</script>";
5
-} else{
5
+} else {
6 6
 include "./../../config/koneksi.php";
7 7
 include "./../../config/fungsi_thumb.php";
8 8
 
9
-$module=$_GET[module];
10
-$act=$_GET[act];
9
+$module = $_GET[module];
10
+$act = $_GET[act];
11 11
 
12 12
 $date     = date("d/m/Y");  
13 13
 $idate    = date("Y-m-d");
14 14
 $hour = time() - (1 * 1 * 60 * 60);
15
-$datetime   = date("Y-m-d G:i:s", $hour);
15
+$datetime = date("Y-m-d G:i:s", $hour);
16 16
 $userid   = $_SESSION['userid'];
17 17
 $business_type = $_SESSION['business_type']; 
18 18
 
19 19
 // Hapus modul
20
-if ($module=='resep_obat' AND $act=='dhapus'){
20
+if ($module=='resep_obat' AND $act=='dhapus') {
21 21
   $id = $_GET['id'];
22 22
   $id_module = $_GET['id_module'];
23 23
   $id_kunjungan_berobat = $_GET['id_kunjungan_berobat'];
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
  }
35 35
 
36 36
   // Input group
37
-elseif ($module=='resep_obat' AND $act=='input'){
37
+elseif ($module=='resep_obat' AND $act=='input') {
38 38
 
39 39
   $id_module = $_POST['id_module'];
40 40
   $id_kunjungan_berobat = $_POST['id_kunjungan_berobat'];
41 41
 
42 42
 
43
-  if($_POST['ID']){
43
+  if ($_POST['ID']) {
44 44
            mysql_query("UPDATE kunjungan_berobat_detail SET id_obat   = '$_POST[obat]'
45 45
                             ,qty   = '$_POST[qty]'  
46 46
                             ,descr   = '$_POST[descr]'
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
    
94 94
 
95 95
   <!-- <script language="javascript">
96
-     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>";  
96
+     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
97 97
      window.parent.tb_remove();
98 98
    </script> -->
99 99
   
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
  
102 102
 
103 103
 }  // Input group
104
-elseif ($module=='resep_obat' AND $act=='close'){
104
+elseif ($module=='resep_obat' AND $act=='close') {
105 105
 
106 106
 $id_module = $_POST['id_module'];
107 107
 ?>
108 108
 
109 109
   <script language="javascript">
110
-     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module";?>";  
110
+     window.parent.location.href = "<?php echo"./../../main.php?module=$module&id_module=$id_module"; ?>";  
111 111
      window.parent.tb_remove();
112 112
    </script> 
113 113
 
Please login to merge, or discard this patch.
modul/mod_resep_obat/resep_obat.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-switch($_GET[act]){
2
+switch ($_GET[act]) {
3 3
 
4 4
 default:  
5 5
   ?>
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
                         <div class="col-md-12 col-sm-12 col-xs-12">
12 12
                             <div class="x_panel">
13 13
                                 <div class="x_title">
14
-                                    <h2><?php echo $nmmodule;?></h2>
14
+                                    <h2><?php echo $nmmodule; ?></h2>
15 15
                                      <div class="clearfix"></div>
16 16
                                 </div>
17 17
                                 <div class="x_content">
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                             
48 48
                          <?
49 49
                         
50
-            $tampil=mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
50
+            $tampil = mysql_query("SELECT a.*,b.nama,b.tgl_lahir,b.ktp,c.poli,d.kategori                                  
51 51
                                 FROM kunjungan_berobat a left join pasien b 
52 52
                                  ON a.id_pasien = b.id_pasien
53 53
                                  left join poli c 
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
             
59 59
             $no = 1;
60 60
             
61
-            while ($r=mysql_fetch_array($tampil)){  
61
+            while ($r = mysql_fetch_array($tampil)) {  
62 62
 
63 63
             $id        = $r[id_kunjungan_berobat];    
64
-            $tgl       = DATE('d/m/Y',strtotime($r[tanggal]));
65
-            $tgl_lahir = DATE('d/m/Y',strtotime($r[tgl_lahir]));
64
+            $tgl       = DATE('d/m/Y', strtotime($r[tanggal]));
65
+            $tgl_lahir = DATE('d/m/Y', strtotime($r[tgl_lahir]));
66 66
 
67 67
             echo"<tr>";
68 68
             echo"<td>$tgl</td>";
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             echo"<td>$r[diagnosa]</td>";
75 75
             echo"<td>";
76 76
 
77
-                $dtampil=mysql_query("SELECT a.*,b.obat,c.satuan
77
+                $dtampil = mysql_query("SELECT a.*,b.obat,c.satuan
78 78
                                       FROM kunjungan_berobat_detail  a LEFT JOIN obat b
79 79
                                       ON a.id_obat = b.id_obat  
80 80
                                       LEFT JOIN satuan c
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             
85 85
             
86 86
             
87
-                while ($d=mysql_fetch_array($dtampil)){  
87
+                while ($d = mysql_fetch_array($dtampil)) {  
88 88
 
89 89
                     echo"<table width='100%'>";
90 90
                     echo"<tr>";
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             echo"</td>";
99 99
             echo" <td  style='text-align:center;'>";
100 100
 
101
-            if($r_edit == 'Y') {
101
+            if ($r_edit=='Y') {
102 102
                echo"<a class='thickbox' href='modul/mod_$module/form_$module.php?id_kunjungan_berobat=$r[id_kunjungan_berobat]&id_module=$id&width=720&height=620&module=$module&TB_iframe=true' title='Tambah $nmmodule'><span class='icon'><i class='fa fa-pencil'></i></span></a>";
103 103
                }
104 104
 
Please login to merge, or discard this patch.
modul/mod_home/home.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 
2 2
 <?php
3
-switch($_GET[act]){
3
+switch ($_GET[act]) {
4 4
 
5 5
 default:  
6 6
 
7 7
 
8
- $gtampil=mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
- $g=mysql_fetch_array($gtampil);
8
+ $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
9
+ $g = mysql_fetch_array($gtampil);
10 10
 
11 11
 if ($g['pict']) {
12 12
 	$pict = $g['pict'];
Please login to merge, or discard this patch.
menu.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 session_start();
3 3
 include 'config/koneksi.php';
4 4
 
5
-  if ($_SESSION['role'] == 'SA') {
5
+  if ($_SESSION['role']=='SA') {
6 6
       $sql = mysql_query("select * from modul where aktif='Y' and status_menu = 'M' order by urutan");
7 7
 
8 8
       $gjml = '1';
@@ -23,15 +23,15 @@  discard block
 block discarded – undo
23 23
   }
24 24
 
25 25
                              while ($r = mysql_fetch_array($sql)) {
26
-                                 if ($r[status_menu] == 'M' and !empty($r[link])) {
26
+                                 if ($r[status_menu]=='M' and !empty($r[link])) {
27 27
                                      echo "<li><a href='$r[link]&id_module=$r[id_modul]'><i class='$r[icon]'></i> $r[nama_modul]</a>";
28
-                                 } elseif ($r[status_menu] == 'M' and empty($r[link])) {
28
+                                 } elseif ($r[status_menu]=='M' and empty($r[link])) {
29 29
                                      echo "<li><a href='#'><i class='$r[icon]'></i> $r[nama_modul] <span class='fa fa-chevron-down'></span></a>";
30 30
                                  }
31 31
 
32 32
                                  echo'<ul class="nav child_menu" style="display: none">';
33 33
 
34
-                                 if ($_SESSION['role'] == 'SA') {
34
+                                 if ($_SESSION['role']=='SA') {
35 35
                                      $detil = mysql_query("select * from modul where aktif='Y' and status_menu = 'C' and parentid = '$r[id_modul]' order by urutan");
36 36
                                  } else {
37 37
                                      $detil = mysql_query("select distinct c.* 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                                                          order by c.urutan");
46 46
                                  }
47 47
                                  while ($d = mysql_fetch_array($detil)) {
48
-                                     if ($d[is_form] == 'Y') {
48
+                                     if ($d[is_form]=='Y') {
49 49
                                          echo"<li><a href='modul/mod_$d[link]/form_$d[link].php?width=$d[f_width]&height=$d[f_height]&module=$d[link]&imodule=$imodule&id_module=$id&imenu=$imenu&isub=$isub&TB_iframe=true' title='$d[nama_modul]' class='thickbox' ><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
50 50
                                      } else {
51 51
                                          echo"<li><a href='$d[link]&id_module=$d[id_modul]'><i class='$d[fa_icon]'></i>&nbsp&nbsp$d[nama_modul]</a></li>";
Please login to merge, or discard this patch.
js/datatables/unit_testing/controller.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
                 function fnReadDir(&$aReturn, $path)
48 48
                 {
49 49
                     $rDir = opendir($path);
50
-                    while (($file = readdir($rDir)) !== false) {
51
-                        if ($file == '.' || $file == '..' || $file == '.DS_Store') {
50
+                    while (($file = readdir($rDir))!==false) {
51
+                        if ($file=='.' || $file=='..' || $file=='.DS_Store') {
52 52
                             continue;
53 53
                         } elseif (is_dir($path.'/'.$file)) {
54 54
                             fnReadDir($aReturn, $path.'/'.$file);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 $aFiles = [];
64 64
                 fnReadDir($aFiles, 'tests');
65 65
 
66
-                for ($i = 0; $i < count($aFiles); $i++) {
66
+                for ($i = 0; $i<count($aFiles); $i++) {
67 67
                     $sTemplate;
68 68
                     $fp = fopen($aFiles[$i], 'r');
69 69
                     fscanf($fp, '// DATA_TEMPLATE: %s', $sTemplate);
Please login to merge, or discard this patch.