@@ -84,7 +84,7 @@ |
||
| 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.'"'; |
@@ -44,7 +44,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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"> |
@@ -17,7 +17,7 @@ discard block |
||
| 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 |
||
| 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']) { |
@@ -139,46 +139,46 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -227,7 +227,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | <table width="100%"> |
| 518 | 518 | <tr><td colspan="26"><br></td></tr> |
| 519 | 519 | <tr> |
| 520 | - <td width="70%" colspan="20">Bekasi, <?=$nprd;?></td> |
|
| 520 | + <td width="70%" colspan="20">Bekasi, <?=$nprd; ?></td> |
|
| 521 | 521 | <td width="30%" colspan="7">Mengetahui,</td> |
| 522 | 522 | </tr> |
| 523 | 523 | <tr> |
@@ -238,46 +238,46 @@ discard block |
||
| 238 | 238 | |
| 239 | 239 | <?php |
| 240 | 240 | |
| 241 | - $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 241 | + $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'"); |
|
| 242 | 242 | |
| 243 | - $g = mysql_fetch_array($gtampil); |
|
| 243 | + $g = mysql_fetch_array($gtampil); |
|
| 244 | 244 | |
| 245 | - if ($g['pict']) { |
|
| 246 | - $pict = $g['pict']; |
|
| 247 | - } else { |
|
| 248 | - $pict = ''; |
|
| 249 | - } |
|
| 245 | + if ($g['pict']) { |
|
| 246 | + $pict = $g['pict']; |
|
| 247 | + } else { |
|
| 248 | + $pict = ''; |
|
| 249 | + } |
|
| 250 | 250 | |
| 251 | - $company = ucwords($g['company']); |
|
| 251 | + $company = ucwords($g['company']); |
|
| 252 | 252 | |
| 253 | - $jsql = mysql_query("SELECT * FROM jenis_transaksi
|
|
| 253 | + $jsql = mysql_query("SELECT * FROM jenis_transaksi
|
|
| 254 | 254 | WHERE id_jenis_transaksi = '$jenis_transaksi' |
| 255 | 255 | |
| 256 | 256 | "); |
| 257 | 257 | |
| 258 | - $j = mysql_fetch_array($jsql); |
|
| 258 | + $j = mysql_fetch_array($jsql); |
|
| 259 | 259 | |
| 260 | - $jenis_transaksi = $j['jenis_transaksi']; |
|
| 260 | + $jenis_transaksi = $j['jenis_transaksi']; |
|
| 261 | 261 | |
| 262 | - $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b
|
|
| 262 | + $sql = mysql_query("SELECT a.*,b.shift FROM kasir a LEFT JOIN shift b
|
|
| 263 | 263 | ON a.id_shift = b.id_shift |
| 264 | 264 | WHERE a.id_kasir = '$k_ID' |
| 265 | 265 | |
| 266 | 266 | "); |
| 267 | 267 | |
| 268 | - $r = mysql_fetch_array($sql); |
|
| 268 | + $r = mysql_fetch_array($sql); |
|
| 269 | 269 | |
| 270 | - $penjualan_barang = $r['id_kasir']; |
|
| 270 | + $penjualan_barang = $r['id_kasir']; |
|
| 271 | 271 | |
| 272 | - $shift = $r['shift']; |
|
| 272 | + $shift = $r['shift']; |
|
| 273 | 273 | |
| 274 | - $petugas = $r['petugas']; |
|
| 274 | + $petugas = $r['petugas']; |
|
| 275 | 275 | |
| 276 | - $status = $r['status']; |
|
| 276 | + $status = $r['status']; |
|
| 277 | 277 | |
| 278 | - $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
| 278 | + $tanggal = date('d/m/Y', strtotime($r['tanggal'])); |
|
| 279 | 279 | |
| 280 | - ?> |
|
| 280 | + ?> |
|
| 281 | 281 | |
| 282 | 282 | <table width="100%"> |
| 283 | 283 | <tr> |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | echo "<th colspan='2'>".$h['penjamin'].'</th>'; |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | - ?> |
|
| 311 | + ?> |
|
| 312 | 312 | |
| 313 | 313 | <th colspan ="4" >UMUM</th> |
| 314 | 314 | <th rowspan="2" >PIC</th> |
@@ -323,11 +323,11 @@ discard block |
||
| 323 | 323 | <tr> |
| 324 | 324 | |
| 325 | 325 | <?php |
| 326 | - for ($j = 1; $j <= $hjml; $j++) { |
|
| 327 | - echo '<th>JML</th>'; |
|
| 328 | - echo '<th>RUPIAH</th>'; |
|
| 329 | - } |
|
| 330 | - ?> |
|
| 326 | + for ($j = 1; $j <= $hjml; $j++) { |
|
| 327 | + echo '<th>JML</th>'; |
|
| 328 | + echo '<th>RUPIAH</th>'; |
|
| 329 | + } |
|
| 330 | + ?> |
|
| 331 | 331 | |
| 332 | 332 | |
| 333 | 333 | <th>JML</th> |
@@ -349,18 +349,18 @@ discard block |
||
| 349 | 349 | <tbody> |
| 350 | 350 | |
| 351 | 351 | <?php for ($i = 1; $i <= 31; $i++) { |
| 352 | - echo'<tr>'; |
|
| 352 | + echo'<tr>'; |
|
| 353 | 353 | |
| 354 | - echo"<td style='text-align:center;'>$i</td>"; |
|
| 354 | + echo"<td style='text-align:center;'>$i</td>"; |
|
| 355 | 355 | |
| 356 | - if (strlen($i) == '1') { |
|
| 357 | - $tgl = $prd.'-0'.$i; |
|
| 358 | - } else { |
|
| 359 | - $tgl = $prd.'-'.$i; |
|
| 360 | - } |
|
| 356 | + if (strlen($i) == '1') { |
|
| 357 | + $tgl = $prd.'-0'.$i; |
|
| 358 | + } else { |
|
| 359 | + $tgl = $prd.'-'.$i; |
|
| 360 | + } |
|
| 361 | 361 | |
| 362 | - //transaksi asuransi |
|
| 363 | - $dtampil1 = mysql_query("SELECT a.id_penjamin
|
|
| 362 | + //transaksi asuransi |
|
| 363 | + $dtampil1 = mysql_query("SELECT a.id_penjamin
|
|
| 364 | 364 | , COUNT(c.jumlah) as jml |
| 365 | 365 | , IFNULL(SUM(c.jumlah),0) as rp |
| 366 | 366 | FROM penjamin a LEFT JOIN kasir b |
@@ -376,13 +376,13 @@ discard block |
||
| 376 | 376 | GROUP BY a.id_penjamin |
| 377 | 377 | ORDER BY a.id_penjamin"); |
| 378 | 378 | |
| 379 | - while ($d1 = mysql_fetch_array($dtampil1)) { |
|
| 380 | - echo '<th>'.$d1['jml'].'</th>'; |
|
| 381 | - echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
| 382 | - } |
|
| 379 | + while ($d1 = mysql_fetch_array($dtampil1)) { |
|
| 380 | + echo '<th>'.$d1['jml'].'</th>'; |
|
| 381 | + echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
| 382 | + } |
|
| 383 | 383 | |
| 384 | - //transaksi umum tunai |
|
| 385 | - $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 384 | + //transaksi umum tunai |
|
| 385 | + $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 386 | 386 | , IFNULL(SUM(c.jumlah),0) as rp |
| 387 | 387 | FROM kasir b LEFT JOIN kasir_detail c |
| 388 | 388 | ON b.id_kasir = c.id_kasir |
@@ -392,13 +392,13 @@ discard block |
||
| 392 | 392 | WHERE b.tanggal = '$tgl' |
| 393 | 393 | AND b.status != '4'"); |
| 394 | 394 | |
| 395 | - $d2 = mysql_fetch_array($dtampil2); |
|
| 395 | + $d2 = mysql_fetch_array($dtampil2); |
|
| 396 | 396 | |
| 397 | - echo '<th>'.$d2['jml'].'</th>'; |
|
| 398 | - echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
| 397 | + echo '<th>'.$d2['jml'].'</th>'; |
|
| 398 | + echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
| 399 | 399 | |
| 400 | - //transaksi umum tunai |
|
| 401 | - $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 400 | + //transaksi umum tunai |
|
| 401 | + $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 402 | 402 | , IFNULL(SUM(c.jumlah),0) as rp |
| 403 | 403 | FROM kasir b LEFT JOIN kasir_detail c |
| 404 | 404 | ON b.id_kasir = c.id_kasir |
@@ -408,21 +408,21 @@ discard block |
||
| 408 | 408 | WHERE b.tanggal = '$tgl' |
| 409 | 409 | AND b.status != '4'"); |
| 410 | 410 | |
| 411 | - $d3 = mysql_fetch_array($dtampil3); |
|
| 411 | + $d3 = mysql_fetch_array($dtampil3); |
|
| 412 | 412 | |
| 413 | - echo '<th>'.$d3['jml'].'</th>'; |
|
| 414 | - echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
| 413 | + echo '<th>'.$d3['jml'].'</th>'; |
|
| 414 | + echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
| 415 | 415 | |
| 416 | - echo '<th></th>'; |
|
| 417 | - echo '<th></th>'; |
|
| 418 | - echo '<th></th>'; |
|
| 416 | + echo '<th></th>'; |
|
| 417 | + echo '<th></th>'; |
|
| 418 | + echo '<th></th>'; |
|
| 419 | 419 | |
| 420 | - echo '<th></th>'; |
|
| 421 | - echo '<th></th>'; |
|
| 422 | - echo '<th></th>'; |
|
| 420 | + echo '<th></th>'; |
|
| 421 | + echo '<th></th>'; |
|
| 422 | + echo '<th></th>'; |
|
| 423 | 423 | |
| 424 | - //total jml |
|
| 425 | - $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 424 | + //total jml |
|
| 425 | + $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 426 | 426 | FROM kasir b LEFT JOIN kasir_detail c |
| 427 | 427 | ON b.id_kasir = c.id_kasir |
| 428 | 428 | AND c.status != '4' |
@@ -430,12 +430,12 @@ discard block |
||
| 430 | 430 | WHERE b.tanggal = '$tgl' |
| 431 | 431 | AND b.status != '4'"); |
| 432 | 432 | |
| 433 | - $d4 = mysql_fetch_array($dtampil4); |
|
| 433 | + $d4 = mysql_fetch_array($dtampil4); |
|
| 434 | 434 | |
| 435 | - echo '<th>'.$d4['jml'].'</th>'; |
|
| 435 | + echo '<th>'.$d4['jml'].'</th>'; |
|
| 436 | 436 | |
| 437 | - //total pembayaran |
|
| 438 | - $dtampil5 = mysql_query("SELECT a.groups
|
|
| 437 | + //total pembayaran |
|
| 438 | + $dtampil5 = mysql_query("SELECT a.groups
|
|
| 439 | 439 | , IFNULL(SUM(c.jumlah),0) as rp |
| 440 | 440 | FROM jenis_pembayaran a LEFT JOIN kasir b |
| 441 | 441 | ON b.tanggal = '$tgl' |
@@ -448,23 +448,23 @@ discard block |
||
| 448 | 448 | GROUP BY a.groups |
| 449 | 449 | ORDER BY a.groups"); |
| 450 | 450 | |
| 451 | - while ($d5 = mysql_fetch_array($dtampil5)) { |
|
| 452 | - echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
| 453 | - } |
|
| 451 | + while ($d5 = mysql_fetch_array($dtampil5)) { |
|
| 452 | + echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
| 453 | + } |
|
| 454 | 454 | |
| 455 | - echo'</tr>'; |
|
| 456 | - } ?> |
|
| 455 | + echo'</tr>'; |
|
| 456 | + } ?> |
|
| 457 | 457 | |
| 458 | 458 | </tbody> |
| 459 | 459 | |
| 460 | 460 | <?php |
| 461 | 461 | |
| 462 | - echo'<tr>'; |
|
| 462 | + echo'<tr>'; |
|
| 463 | 463 | |
| 464 | - echo"<th style='text-align:center;'>TOTAL</th>"; |
|
| 464 | + echo"<th style='text-align:center;'>TOTAL</th>"; |
|
| 465 | 465 | |
| 466 | - //transaksi asuransi |
|
| 467 | - $dtampil1 = mysql_query("SELECT a.id_penjamin
|
|
| 466 | + //transaksi asuransi |
|
| 467 | + $dtampil1 = mysql_query("SELECT a.id_penjamin
|
|
| 468 | 468 | , COUNT(c.jumlah) as jml |
| 469 | 469 | , IFNULL(SUM(c.jumlah),0) as rp |
| 470 | 470 | FROM penjamin a LEFT JOIN kasir b |
@@ -480,13 +480,13 @@ discard block |
||
| 480 | 480 | GROUP BY a.id_penjamin |
| 481 | 481 | ORDER BY a.id_penjamin"); |
| 482 | 482 | |
| 483 | - while ($d1 = mysql_fetch_array($dtampil1)) { |
|
| 484 | - echo '<th>'.$d1['jml'].'</th>'; |
|
| 485 | - echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
| 486 | - } |
|
| 483 | + while ($d1 = mysql_fetch_array($dtampil1)) { |
|
| 484 | + echo '<th>'.$d1['jml'].'</th>'; |
|
| 485 | + echo "<th style='text-align:right;'>".number_format($d1['rp'], 0, '.', ',').'</th>'; |
|
| 486 | + } |
|
| 487 | 487 | |
| 488 | - //transaksi umum tunai |
|
| 489 | - $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 488 | + //transaksi umum tunai |
|
| 489 | + $dtampil2 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 490 | 490 | , IFNULL(SUM(c.jumlah),0) as rp |
| 491 | 491 | FROM kasir b LEFT JOIN kasir_detail c |
| 492 | 492 | ON b.id_kasir = c.id_kasir |
@@ -496,13 +496,13 @@ discard block |
||
| 496 | 496 | AND b.tanggal LIKE '$prd%' |
| 497 | 497 | AND b.status != '4'"); |
| 498 | 498 | |
| 499 | - $d2 = mysql_fetch_array($dtampil2); |
|
| 499 | + $d2 = mysql_fetch_array($dtampil2); |
|
| 500 | 500 | |
| 501 | - echo '<th>'.$d2['jml'].'</th>'; |
|
| 502 | - echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
| 501 | + echo '<th>'.$d2['jml'].'</th>'; |
|
| 502 | + echo "<th style='text-align:right;'>".number_format($d2['rp'], 0, '.', ',').'</th>'; |
|
| 503 | 503 | |
| 504 | - //transaksi umum tunai |
|
| 505 | - $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 504 | + //transaksi umum tunai |
|
| 505 | + $dtampil3 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 506 | 506 | , IFNULL(SUM(c.jumlah),0) as rp |
| 507 | 507 | FROM kasir b LEFT JOIN kasir_detail c |
| 508 | 508 | ON b.id_kasir = c.id_kasir |
@@ -512,21 +512,21 @@ discard block |
||
| 512 | 512 | WHERE b.tanggal LIKE '$prd%' |
| 513 | 513 | AND b.status != '4'"); |
| 514 | 514 | |
| 515 | - $d3 = mysql_fetch_array($dtampil3); |
|
| 515 | + $d3 = mysql_fetch_array($dtampil3); |
|
| 516 | 516 | |
| 517 | - echo '<th>'.$d3['jml'].'</th>'; |
|
| 518 | - echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
| 517 | + echo '<th>'.$d3['jml'].'</th>'; |
|
| 518 | + echo "<th style='text-align:right;'>".number_format($d3['rp'], 0, '.', ',').'</th>'; |
|
| 519 | 519 | |
| 520 | - echo '<th></th>'; |
|
| 521 | - echo '<th></th>'; |
|
| 522 | - echo '<th></th>'; |
|
| 520 | + echo '<th></th>'; |
|
| 521 | + echo '<th></th>'; |
|
| 522 | + echo '<th></th>'; |
|
| 523 | 523 | |
| 524 | - echo '<th></th>'; |
|
| 525 | - echo '<th></th>'; |
|
| 526 | - echo '<th></th>'; |
|
| 524 | + echo '<th></th>'; |
|
| 525 | + echo '<th></th>'; |
|
| 526 | + echo '<th></th>'; |
|
| 527 | 527 | |
| 528 | - //total jml |
|
| 529 | - $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 528 | + //total jml |
|
| 529 | + $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 530 | 530 | FROM kasir b LEFT JOIN kasir_detail c |
| 531 | 531 | ON b.id_kasir = c.id_kasir |
| 532 | 532 | AND c.status != '4' |
@@ -534,12 +534,12 @@ discard block |
||
| 534 | 534 | WHERE b.tanggal LIKE '$prd%' |
| 535 | 535 | AND b.status != '4'"); |
| 536 | 536 | |
| 537 | - $d4 = mysql_fetch_array($dtampil4); |
|
| 537 | + $d4 = mysql_fetch_array($dtampil4); |
|
| 538 | 538 | |
| 539 | - echo '<th>'.$d4['jml'].'</th>'; |
|
| 539 | + echo '<th>'.$d4['jml'].'</th>'; |
|
| 540 | 540 | |
| 541 | - //total pembayaran |
|
| 542 | - $dtampil5 = mysql_query("SELECT a.groups
|
|
| 541 | + //total pembayaran |
|
| 542 | + $dtampil5 = mysql_query("SELECT a.groups
|
|
| 543 | 543 | , IFNULL(SUM(c.jumlah),0) as rp |
| 544 | 544 | FROM jenis_pembayaran a LEFT JOIN kasir b |
| 545 | 545 | ON b.tanggal LIKE '$prd%' |
@@ -552,18 +552,18 @@ discard block |
||
| 552 | 552 | GROUP BY a.groups |
| 553 | 553 | ORDER BY a.groups"); |
| 554 | 554 | |
| 555 | - while ($d5 = mysql_fetch_array($dtampil5)) { |
|
| 556 | - echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
| 557 | - } |
|
| 555 | + while ($d5 = mysql_fetch_array($dtampil5)) { |
|
| 556 | + echo "<th style='text-align:right;'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
| 557 | + } |
|
| 558 | 558 | |
| 559 | - echo'</tr>'; |
|
| 559 | + echo'</tr>'; |
|
| 560 | 560 | |
| 561 | - echo'<tr>'; |
|
| 561 | + echo'<tr>'; |
|
| 562 | 562 | |
| 563 | - echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>"; |
|
| 563 | + echo"<th style='text-align:center;' colspan='23'>TOTAL REVENUE</th>"; |
|
| 564 | 564 | |
| 565 | - //total jml |
|
| 566 | - $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 565 | + //total jml |
|
| 566 | + $dtampil4 = mysql_query("SELECT COUNT(c.jumlah) as jml
|
|
| 567 | 567 | FROM kasir b LEFT JOIN kasir_detail c |
| 568 | 568 | ON b.id_kasir = c.id_kasir |
| 569 | 569 | AND c.status != '4' |
@@ -571,12 +571,12 @@ discard block |
||
| 571 | 571 | WHERE b.tanggal LIKE '$prd%' |
| 572 | 572 | AND b.status != '4'"); |
| 573 | 573 | |
| 574 | - $d4 = mysql_fetch_array($dtampil4); |
|
| 574 | + $d4 = mysql_fetch_array($dtampil4); |
|
| 575 | 575 | |
| 576 | - echo '<th>'.$d4['jml'].'</th>'; |
|
| 576 | + echo '<th>'.$d4['jml'].'</th>'; |
|
| 577 | 577 | |
| 578 | - //total pembayaran |
|
| 579 | - $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp
|
|
| 578 | + //total pembayaran |
|
| 579 | + $dtampil5 = mysql_query("SELECT IFNULL(SUM(c.jumlah),0) as rp
|
|
| 580 | 580 | FROM kasir b LEFT JOIN kasir_detail c |
| 581 | 581 | ON b.id_kasir = c.id_kasir |
| 582 | 582 | AND c.status != '4' |
@@ -584,9 +584,9 @@ discard block |
||
| 584 | 584 | WHERE b.tanggal LIKE '$prd%' |
| 585 | 585 | AND b.status != '4'"); |
| 586 | 586 | |
| 587 | - $d5 = mysql_fetch_array($dtampil5); |
|
| 587 | + $d5 = mysql_fetch_array($dtampil5); |
|
| 588 | 588 | |
| 589 | - echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
| 589 | + echo "<th style='text-align:right;' colspan='2'>".number_format($d5['rp'], 0, '.', ',').'</th>'; |
|
| 590 | 590 | |
| 591 | 591 | ?> |
| 592 | 592 | |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | <tr> |
| 324 | 324 | |
| 325 | 325 | <?php |
| 326 | - for ($j = 1; $j <= $hjml; $j++) { |
|
| 326 | + for ($j = 1; $j<=$hjml; $j++) { |
|
| 327 | 327 | echo '<th>JML</th>'; |
| 328 | 328 | echo '<th>RUPIAH</th>'; |
| 329 | 329 | } |
@@ -348,12 +348,12 @@ discard block |
||
| 348 | 348 | |
| 349 | 349 | <tbody> |
| 350 | 350 | |
| 351 | - <?php for ($i = 1; $i <= 31; $i++) { |
|
| 351 | + <?php for ($i = 1; $i<=31; $i++) { |
|
| 352 | 352 | echo'<tr>'; |
| 353 | 353 | |
| 354 | 354 | echo"<td style='text-align:center;'>$i</td>"; |
| 355 | 355 | |
| 356 | - if (strlen($i) == '1') { |
|
| 356 | + if (strlen($i)=='1') { |
|
| 357 | 357 | $tgl = $prd.'-0'.$i; |
| 358 | 358 | } else { |
| 359 | 359 | $tgl = $prd.'-'.$i; |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | |
| 603 | 603 | $month = date('m', strtotime($iprd)) * 1; |
| 604 | 604 | |
| 605 | - if ($month == '1') { |
|
| 605 | + if ($month=='1') { |
|
| 606 | 606 | $imonth = 12; |
| 607 | 607 | } else { |
| 608 | 608 | $imonth = $month - 1; |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | |
| 614 | 614 | <table width="100%"> |
| 615 | 615 | <tr> |
| 616 | - <td width="70%">Bekasi, <?=$nprd;?></td> |
|
| 616 | + <td width="70%">Bekasi, <?=$nprd; ?></td> |
|
| 617 | 617 | <td width="30%">Mengetahui,</td> |
| 618 | 618 | </tr> |
| 619 | 619 | <tr> |
@@ -15,12 +15,12 @@ discard block |
||
| 15 | 15 | $datetime = date('Y-m-d G:i:s', $hour);
|
| 16 | 16 | $userid = $_SESSION['userid']; |
| 17 | 17 | |
| 18 | - if ($module == 'approval_diskon_penjualan_barang' and $act == 'approve') { |
|
| 18 | + if ($module=='approval_diskon_penjualan_barang' and $act=='approve') { |
|
| 19 | 19 | $id_module = $_POST['id_module']; |
| 20 | 20 | |
| 21 | 21 | $jum = $_POST['jum'] - 1; |
| 22 | 22 | |
| 23 | - for ($i = 1; $i <= $jum; $i++) { |
|
| 23 | + for ($i = 1; $i<=$jum; $i++) { |
|
| 24 | 24 | $id = $_POST['id'.$i]; |
| 25 | 25 | $p_status = $_POST['p_status'.$i]; |
| 26 | 26 | $status = $_POST['status'.$i]; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $notrans = $_POST['notrans'.$i]; |
| 31 | 31 | $outlet = $_POST['outlet'.$i]; |
| 32 | 32 | |
| 33 | - if ($p_status == '1') { |
|
| 33 | + if ($p_status=='1') { |
|
| 34 | 34 | mysql_query("UPDATE penjualan_barang_detail
|
| 35 | 35 | SET disc = disc1 |
| 36 | 36 | , disc_value = disc_value1 |
@@ -194,7 +194,7 @@ discard block |
||
| 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 |
||
| 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"> |
@@ -22,7 +22,7 @@ |
||
| 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"); |