Issues (4542)

modul/mod_kasir/kasir.php (56 issues)

1
<?php
2
if ($_GET['prd']) {
3
    $prd = $_GET['prd'];
4
} else {
5
    $prd = date('Y-m');
6
}
7
8
?>
9
10
11
12
<script>
13
14
15
16
function cektgl() {
17
18
19
20
  var prd = document.getElementById("prd").value;
21
22
  var tgl = document.getElementById("tanggal").value
23
24
  var shift = document.getElementById("shift").value
25
26
  var iprd = tgl.substring(0,7);
27
28
29
30
  if(prd != iprd) {
31
32
    document.getElementById("tanggal").focus(); 
33
34
    alert('Peringatan : Tanggal tidak sesuai periode aktif.'); 
35
36
    return false;     
37
38
  } else  if(shift == '0') {
39
40
    document.getElementById("shift").focus(); 
41
42
    alert('Peringatan : shift harus dipilih.'); 
43
44
    return false;     
45
46
47
  }  else {
48
49
     document.formData.submit();
50
51
  }
52
53
54
55
}
56
57
</script> 
58
59
60
61
62
63
64
<script>
65
66
67
68
  function mask_jumlah() {
69
70
71
72
   var jumlah   = document.getElementById("ijumlah").value; 
73
74
   document.getElementById("jumlah").value = jumlah;
75
76
77
78
  var ijumlah = jumlah.toString();
79
80
  document.getElementById("ijumlah").value = number_format(jumlah, 0,'.',','); 
81
82
83
84
   var total  = document.getElementById("qty").value*document.getElementById("jumlah").value;
85
86
  var itotal = total.toString();
87
88
  document.getElementById("itotal").value = number_format(itotal, 0,'.',','); 
89
90
  document.getElementById("total").value = total; 
91
92
93
94
  }
95
96
  </script> 
97
98
99
100
  <script>
101
102
103
104
  function mask_clear_jumlah() {
105
106
107
108
  var jumlah   = document.getElementById("jumlah").value;  
109
110
  var ijumlah = jumlah.toString();
111
112
  document.getElementById("ijumlah").value = jumlah; 
113
114
  document.getElementById("jumlah").value = jumlah ;
115
116
117
118
  }
119
120
  </script>  
121
122
123
124
<script>
125
126
127
128
  function mask_rate() {
129
130
131
132
   var rate   = document.getElementById("irate").value; 
133
134
   document.getElementById("rate").value = rate;
135
136
137
138
  var irate = rate.toString();
139
140
  document.getElementById("irate").value = number_format(rate, 0,'.',','); 
141
142
143
144
145
146
  }
147
148
  </script> 
149
150
151
152
  <script>
153
154
155
156
  function mask_clear_rate() {
157
158
159
160
  var rate   = document.getElementById("rate").value;  
161
162
  var irate = rate.toString();
163
164
  document.getElementById("irate").value = rate; 
165
166
  document.getElementById("rate").value = rate ;
167
168
169
170
  }
171
172
  </script>  
173
174
175
176
<?php
177
178
switch (isset($_GET['act']) && $_GET['act']):
179
180
    default:
181
182
      ?>
183
184
185
186
 <div class="">
187
188
  
189
190
   <div class="row">
191
192
193
194
       <div class="col-md-12 col-sm-12 col-xs-12">
195
196
           <div class="x_panel">
197
198
  <div class="x_title">
199
200
  <h2>List <?php echo $nmmodule; ?></h2>
201
202
203
204
     <p class="pull-right">
205
206
    <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>
207
208
    </p>
209
210
211
212
     <p class="pull-right">
213
214
    &nbsp&nbsp&nbsp
215
216
    </p>
217
218
219
220
    <form method=get action='<?php echo $_SERVER[PHP_SELF]?>' name='myform'>
0 ignored issues
show
The constant PHP_SELF was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
221
222
    <input type="hidden" name="id_module" value="<?php echo $id_module?>" /> 
223
224
    <input type="hidden" name="module" value="<?php echo $module?>" /> 
225
226
    <input type="hidden" name="kode" value="<?php echo $kode?>" /> 
227
228
229
    <p class="pull-right">
230
231
    <input type="month" name="prd" id="prd" value="<?php echo $prd; ?>" onChange="document.myform.submit();" class="form-control"  required>
232
233
    </p>
234
235
236
237
     <p class="pull-right">
238
239
     <label class="control-label"  style="padding-top:8px;">Periode &nbsp&nbsp</label>
240
241
    </p>
242
243
244
245
    </form>
246
247
   
248
249
250
251
252
253
   <div class="clearfix"></div>
254
255
  </div>
256
257
  <div class="x_content">
258
259
 <div id="tablewrapper">
260
261
262
263
   <div id="tableheader">
264
265
266
267
       <div class="search">  <select id="columns" onchange="sorter.search('query')"></select>
268
269
           <input type="text" id="query" onkeyup="sorter.search('query');" value="Pencarian berdasarkan ...."  onclick="this.value=''"/>
270
271
       </div>
272
273
       <span class="details">
274
275
          <div>Arsip <span id="startrecord"></span>-<span id="endrecord"></span> dari <span id="totalrecords"></span></div>
276
277
           <!--<div><a href="javascript:sorter.reset()">reset</a></div>-->
278
279
       </span>
280
281
   </div> <div>
282
283
       <table cellpadding="0" cellspacing="0" border="0" id="table" class="table table-striped responsive-utilities jambo_table" >
284
285
       <thead>
286
287
           <tr>
288
289
  <th><h3 style='font-size:12px;'>Tanggal</h3></th>            
290
291
  <th><h3 style='font-size:12px;'>Shift</h3></th>
292
293
  <th><h3 style='font-size:12px;'>Petugas</h3></th>  
294
295
  <th><h3 style='font-size:12px;'>Catatan</h3></th> 
296
297
<!--   <th><h3 style='font-size:12px;'>Status</h3></th>  -->
298
299
  <th><h3 style='font-size:12px;text-align: center;'>Aksi</h3></th> 
300
301
     
302
303
           </tr>
304
305
       </thead>
306
307
       <tbody>
308
309
           
310
311
        <?php
312
313
314
            $tampil = mysql_query("SELECT a.*,b.shift
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

314
            $tampil = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT a.*,b.shift

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
315
316
                             FROM kasir a left join shift b
317
318
                             ON a.id_shift = b.id_shift
319
320
                             AND b.aktif = 'Y'
321
322
                             WHERE a.tanggal LIKE '$prd%'
323
324
                             AND a.status != '4'
325
326
                            ORDER BY a.tanggal");
327
328
            $no = 1;
329
330
            while ($r = mysql_fetch_array($tampil)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

330
            while ($r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($tampil)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
331
                $tgl = date('d/m/Y', strtotime($r['tanggal']));
332
333
                if ($r['status'] == '0') {
334
                    $istatus = 'Baru';
335
                } elseif ($r['status'] == '1') {
336
                    $istatus = 'Disetujui';
337
                } elseif ($r['status'] == '2') {
338
                    $istatus = 'Ditolak';
339
                } elseif ($r['status'] == '9') {
340
                    $istatus = 'Posting';
341
                } else {
342
                    $istatus = 'Dibatalkan';
343
                }
344
345
                $ID = $r[id_kasir];
0 ignored issues
show
The constant id_kasir was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
346
347
                echo'<tr>';
348
349
                echo"<td>$tgl </td>";
350
351
                echo"<td>$r[shift]</td>";
352
353
                echo"<td>$r[petugas]</td>";
354
355
                echo"<td>$r[note]</td>";
356
357
                // echo"<td>$istatus</td>";
358
359
                echo"<td style='text-align:center;'>";
360
361
                if ($r_edit == 'Y') {
362
                    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>";
363
                }
364
365
                if ($r_delete == 'Y' and $r['status'] == '0') {
366
                    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>";
367
                } else {
368
                    echo"<i class='fa fa-trash'></i></span>";
369
                }
370
371
                echo'</td>';
372
373
                echo'</tr>';
374
375
                $no++;
376
            }
377
378
            ?>
379
380
        </tbody>
381
382
   </table>
383
384
 </div>
385
386
   <div id="tablefooter">
387
388
     <div id="tablenav">
389
390
           <div>
391
392
  <span class="glyphicon glyphicon-fast-backward" onclick="sorter.move(-1,true)" /></span>
393
394
  <span class="glyphicon glyphicon-step-backward" onclick="sorter.move(-1)" /></span>
395
396
  <span class="glyphicon glyphicon-step-forward" onclick="sorter.move(1)" /></span>
397
398
   <span  class="glyphicon glyphicon-fast-forward" onclick="sorter.move(1,true)" /></span>
399
400
           </div>
401
402
           <div>
403
404
  <select id="pagedropdown" style="width:40px;"></select>
405
406
           </div>
407
408
          <!-- <div>
409
410
  <a href="javascript:sorter.showall()">view all</a>
411
412
           </div> -->
413
414
       </div>
415
416
      
417
418
       <div id="tablelocation">
419
420
           <div>
421
422
  <select onchange="sorter.size(this.value)" style="width:50px;">
423
424
  <option value="5">5</option>
425
426
  <option value="10" selected="selected">10</option>
427
428
  <option value="20">20</option>
429
430
  <option value="50">50</option>
431
432
  <option value="100">100</option>
433
434
  </select>
435
436
  <span>Arsip Per Halaman</span> </div> <div>| Halaman <span id="currentpage"></span> dari <span id="totalpages"></span> | &nbsp  </div>
437
438
       </div>  
439
440
   </div>
441
442
   </div>
443
444
  </div>
445
446
           </div>
447
448
       </div>
449
450
451
452
       <br />
453
454
       <br />
455
456
       <br />
457
458
  </div>
459
460
        </div>
461
462
463
464
<?php
465
466
    break;
467
468
    case 'baru':
469
470
    $hour = time() + (30 * 25 * 60 * 60);
471
472
    $idate = date('Y-m-d');
473
474
    $idate = $idate;
475
476
    ?>
477
478
479
480
<div class="row" >
481
482
483
484
 <form action="<?php echo"modul/mod_$module/aksi_$module.php?module=$module&act=input"; ?>" method="post" name="formData" enctype="multipart/form-data"  > 
485
486
487
488
       <div class="col-md-12 col-sm-12 col-xs-12 form-group" >
489
490
          <div class="x_panel" >
491
492
<div class="x_title">
493
494
  <h2>Form <?php echo $nmmodule?></h2>
495
496
        <div class="pull-right">
497
498
   
499
500
          <button type="submit" class="btn btn-primary">Simpan</button>
501
502
503
504
          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&prd=$prd&notrans=$notrans&kode=$kode&outlet=$outlet"; ?>'" 
505
506
          class="btn btn-success" <?php if ($status != '0') {
507
        echo 'disabled';
508
    } ?>>Ubah</button>
509
510
511
512
           <?php if ($status == '0') {
513
        ?>
514
515
            <?php
516
517
            echo"<a href='modul/mod_$module/aksi_$module.php?module=$module&act=batal&id=$ID&id_module=$id&notrans=$notrans&prd=$prd&kode=$kodee&outlet=$outlet' onClick=\"return confirm('Hapus transaksi ?')\" title='Hapus $nmmodule'><span class='btn btn-danger'><span style='color:white;'>Hapus</span></a>"; ?>
518
519
        <?php
520
    } else {
521
        ?>
522
523
            <button type="button" class="btn btn-danger" disabled>Hapus</button>
524
525
           <?php
526
    } ?>  
527
528
529
530
                 
531
532
           <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>
533
534
        </div>
535
536
537
538
  
539
540
<div class="clearfix"></div>
541
542
</div>
543
544
<?php // heaeder?>
545
546
<div class="x_content">
547
548
  
549
550
  <input type="hidden" name="module" value="<?php echo $module?>" /> 
551
552
  <input type="hidden" name="id_module" value="<?php echo $id_module?>" /> 
553
554
  <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> 
555
556
  <input type="hidden" name="prd" id="prd" value="<?php echo $prd?>" /> 
557
558
  <input type="hidden" name="outlet" id="outlet" value="<?php echo $outlet; ?>">
559
560
  <input type="hidden" name="kode" id="kode" value="<?php echo $kode; ?>">
561
562
563
 
564
565
566
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
567
568
      <label class="control-label"  style="padding-top:8px;">Tanggal</label>
569
570
  </div>  
571
572
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
573
574
     <input type="date" name="tanggal" id="tanggal" value="<?php echo $idate; ?>" autofocus class="form-control"  required>  
575
576
  </div> 
577
578
579
580
 <div class="col-md-1 col-sm-1 col-xs-6 form-group">
581
582
      <label class="control-label"  style="padding-top:8px;">Shift</label>
583
584
  </div>  
585
586
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
587
588
    <select name="shift" id="shift" class="form-control" required>
589
590
 <?php
591
592
    $query = mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

592
    $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM shift WHERE  aktif = "Y" ORDER BY id_shift');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
593
594
    if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

594
    if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
$query is of type resource, thus it always evaluated to false.
Loading history...
595
        while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

595
        while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
596
            echo '<option value="'.$row->id_shift.'"';
597
598
            if ($row->id_shift == $shift) {
599
                echo ' selected';
600
            }
601
602
            echo '>'.$row->shift.'</option>';
603
        }
604
    }
605
606
    ?>  
607
608
 </select>         
609
610
  </div> 
611
612
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
613
614
      <label class="control-label"  style="padding-top:8px;">Petugas</label>
615
616
  </div>  
617
618
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
619
620
      <input type="text" name="petugas" id="petugas" value="" required class="form-control" >  
621
622
  </div> 
623
624
625
</div>
626
627
628
629
630
<?php // detail?>
631
632
633
634
<div class="x_content" >
635
636
637
638
639
640
641
642
    <table cellpadding="0" width='100%' cellspacing="0" border="0" class="table table-striped responsive-utilities jambo_table" >
643
644
 <tr>
645
646
     <th width='10%'><h5 style='font-size:12px;'>No. Permintaan</h5></th>  
647
648
     <th><h5 style='font-size:12px;'>Barang</h5></th> 
649
650
     <th><h5 style='font-size:12px;'>jenis_transaksi</h5></th> 
651
652
     <th width='5%'><h5 style='font-size:12px;text-align: right;'>Qty</h5></th> 
653
654
     <th  width='10%'><h5 style='font-size:12px;'>Satuan</h5></th> 
655
656
     <th><h5 style='font-size:12px;text-align: right;'>jumlah</h5></th> 
657
658
     <th><h5 style='font-size:12px;text-align: right;'>Total</h5></th> 
659
660
      <th width='5%'><h3 style='font-size:12px;text-align:center;' >Aksi</h3></th>                  
661
662
 </tr>
663
664
665
666
667
668
 </table> 
669
670
671
672
673
674
</div>
675
676
677
 
678
679
</div>
680
681
682
683
 </form>
684
685
686
687
<?php // end row?>
688
689
</div>
690
691
</div>
692
693
<?php
694
695
    break;
696
697
    case 'save':
698
699
    $k_ID = $_GET['ID'];
700
701
    $sql = mysql_query("SELECT * FROM kasir 
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

701
    $sql = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT * FROM kasir 

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
702
703
                        WHERE id_kasir = '$k_ID' 
704
705
                        ");
706
707
    $r = mysql_fetch_array($sql);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

707
    $r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($sql);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
708
709
    $penjualan_barang = $r['id_kasir'];
710
711
    $shift = $r['id_shift'];
712
713
    $petugas = $r['petugas'];
714
715
    $status = $r['status'];
716
717
    $tanggal = $r['tanggal'];
718
719
    //$ID   = $r['id_kasir'];
720
721
    ?>
722
723
724
725
<div class="row" >
726
727
728
729
730
731
       <div class="col-md-12 col-sm-12 col-xs-12 form-group" >
732
733
          <div class="x_panel" >
734
735
<div class="x_title">
736
737
  <h2>Form <?php echo $nmmodule?></h2>
738
739
        <div class="pull-right">
740
741
742
743
   
744
745
          <button type="button" onclick="cektgl()" class="btn btn-primary" disabled>Simpan</button>
746
747
748
749
          <button  type="button" onClick="location.href='<?php echo"?module=$module&id_module=$id_module&act=ubah&k_ID=$k_ID"; ?>'" 
750
751
          class="btn btn-success" <?php if ($status != '0') {
752
        echo 'disabled';
753
    } ?>>Ubah</button>
754
755
756
757
758
759
           <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>
760
761
762
763
                 <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')">
0 ignored issues
show
The constant id_module was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
764
765
              <span class='btn btn-success' style='color:white;'><i class='fa fa-print'></i> Cetak</span>
766
767
              </a>
768
  
769
770
        </div>
771
772
773
774
  
775
776
<div class="clearfix"></div>
777
778
</div>
779
`
780
<?php // heaeder?>
781
782
<div class="x_content">
783
784
  
785
786
787
788
789
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
790
791
      <label class="control-label"  style="padding-top:8px;">Tanggal</label>
792
793
  </div>  
794
795
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
796
797
     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" class="form-control"  readonly required>  
798
799
  </div> 
800
801
802
803
 <div class="col-md-1 col-sm-1 col-xs-6 form-group">
804
805
      <label class="control-label"  style="padding-top:8px;">Shift</label>
806
807
  </div>  
808
809
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
810
811
    <select name="shift" id="shift" class="form-control" disabled>
812
813
814
 <?php
815
816
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

816
    $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
817
818
    if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
$query is of type resource, thus it always evaluated to false.
Loading history...
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

818
    if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
819
        while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

819
        while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
820
            echo '<option value="'.$row->id_shift.'"';
821
822
            if ($row->id_shift == $shift) {
823
                echo ' selected';
824
            }
825
826
            echo '>'.$row->shift.'</option>';
827
        }
828
    }
829
830
    ?>  
831
832
 </select>         
833
834
  </div> 
835
836
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
837
838
      <label class="control-label"  style="padding-top:8px;">Petugas</label>
839
840
  </div>  
841
842
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
843
844
      <input type="text" name="petugas" id="petugas" value="<?php echo $petugas?>" 
845
846
      readonly class="form-control" >  
847
848
849
  </div> 
850
851
852
853
854
</div>
855
856
<?php // detail?>
857
858
859
860
<div class="x_content" >
861
862
863
864
    <table cellpadding="0" width='100%' cellspacing="0" border="0" class="table table-striped responsive-utilities jambo_table" >
865
866
 <tr>
867
868
     <th width='10%'><h5 style='font-size:12px;'>No.Kwitansi</h5></th>  
869
870
     <th width='10%'><h5 style='font-size:12px;'>Nama Pasien</h5></th> 
871
872
     <th width='15%'><h5 style='font-size:12px;'>Jenis Transaksi</h5></th>      
873
874
     <th width='10%'><h5 style='font-size:12px;text-align: right;'>Jumlah</h5></th> 
875
876
     <th  width='10%'><h5 style='font-size:12px;'>Jenis Pembayaran</h5></th> 
877
878
     <th  width='10%'><h5 style='font-size:12px;'>Penjamin</h5></th> 
879
880
     <th  width='10%'><h5 style='font-size:12px;'>Keterangan</h5></th> 
881
882
     <th width='7%'><h3 style='font-size:12px;text-align:center;' >Aksi</h3></th>                  
883
884
 </tr>
885
886
887
888
 <?php //if ($status == '0' && $penjualan_barang == 0) {?>
889
890
891
892
 <form action="<?php echo"modul/mod_$module/aksi_$module.php?module=$module&act=add"; ?>" method="post" name="formData" enctype="multipart/form-data"  > 
893
894
895
896
  <input type="hidden" name="module" value="<?php echo $module?>" /> 
897
898
  <input type="hidden" name="id_module" value="<?php echo $id_module?>" /> 
899
900
  <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> 
901
902
  <input type="hidden" name="k_ID" value="<?php echo $k_ID?>" /> 
903
904
 <tr>
905
906
 <td>
907
908
 <input type="text" name="notrans" id="notrans" value="" autofocus required="required"  class="form-control">
909
910
 </td>
911
912
 <td>
913
914
 <input type="text" name="pasien" id="pasien" value="" class="form-control">
915
916
917
 </td>
918
919
 <td>
920
921
  <select name="jenis_transaksi" id="jenis_transaksi" class="form-control">
922
923
924
     <?php
925
926
        $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

926
        $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
927
928
        if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
$query is of type resource, thus it always evaluated to false.
Loading history...
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

928
        if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
929
            while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

929
            while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
930
                echo '<option value="'.$row->id_jenis_transaksi.'"';
931
932
                if ($row->id_jenis_transaksi == @$data->id_jenis_transaksi) {
933
                    echo ' selected';
934
                }
935
936
                echo '>'.$row->jenis_transaksi.'</option>';
937
            }
938
        }
939
940
        ?>
941
942
     </select>
943
944
 </td>
945
946
947
948
  <td>
949
950
 <input type="text" name='ijumlah' id='ijumlah' min='1'  value="0" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"
951
952
onBlur="mask_jumlah()"
953
954
onFocus="mask_clear_jumlah()" 
955
956
>
957
958
<input type="hidden" name='jumlah' id='jumlah' value="0" style='text-align:right;' required="required" class="form-control col-md-7 col-xs-12"> 
959
960
 </td>
961
962
963
964
 <td>
965
966
  <select name="jenis_pembayaran" id="jenis_pembayaran" class="form-control" >
967
968
  
969
     <?php
970
971
        $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

971
        $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
972
973
        if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
$query is of type resource, thus it always evaluated to false.
Loading history...
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

973
        if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
974
            while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

974
            while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
975
                echo '<option value="'.$row->id_jenis_pembayaran.'"';
976
977
                if ($row->id_jenis_pembayaran == @$data->id_jenis_pembayaran) {
978
                    echo ' selected';
979
                }
980
981
                echo '>'.$row->jenis_pembayaran.'</option>';
982
            }
983
        }
984
985
        ?>
986
987
     </select>
988
989
 </td>
990
991
<td>
992
993
  <select name="penjamin" id="penjamin" class="form-control" >
994
  <option value='0'></option>
995
  
996
     <?php
997
998
        $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

998
        $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
999
1000
        if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
$query is of type resource, thus it always evaluated to false.
Loading history...
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1000
        if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1001
            while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1001
            while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1002
                echo '<option value="'.$row->id_penjamin.'"';
1003
1004
                if ($row->id_penjamin == @$data->id_penjamin) {
1005
                    echo ' selected';
1006
                }
1007
1008
                echo '>'.$row->penjamin.'</option>';
1009
            }
1010
        }
1011
1012
        ?>
1013
1014
     </select>
1015
1016
 </td>
1017
1018
  <td>
1019
1020
  <textarea  name="ket" id="ket" col=1></textarea>
1021
1022
 </td>
1023
1024
1025
 <td>
1026
1027
 <button type="submit" class="btn btn-primary btn-xs" title='Simpan'>
1028
1029
      <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>
1030
1031
     </button>
1032
1033
 </td>
1034
1035
 </tr>  
1036
1037
1038
1039
1040
1041
</form>
1042
1043
1044
1045
<?php //}?>
1046
    
1047
1048
1049
 <?php
1050
1051
1052
    $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1053
1054
1055
         FROM kasir_detail a LEFT JOIN jenis_transaksi b
1056
1057
         ON a.id_jenis_transaksi = b.id_jenis_transaksi
1058
1059
         left join penjamin c
1060
1061
         ON a.id_penjamin = c.id_penjamin
1062
1063
         left join jenis_pembayaran d
1064
1065
         ON a.id_jenis_pembayaran = d.id_jenis_pembayaran
1066
1067
         WHERE a.id_kasir = '$k_ID'
1068
1069
         AND a.status <> '4'
1070
1071
         ORDER BY a.seqno
1072
1073
         ";
1074
1075
    $dtampil = mysql_query($dSQL);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1075
    $dtampil = /** @scrutinizer ignore-deprecated */ mysql_query($dSQL);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1076
1077
    $no = 1;
1078
1079
    while ($d = mysql_fetch_array($dtampil)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1079
    while ($d = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($dtampil)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1080
        $d_id = $d['id_kasir_detail'];
1081
1082
        $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1083
1084
        $jumlah = number_format($d['jumlah'], 0, '.', '');
1085
1086
        $total = $total + $d['jumlah'];
1087
1088
        $itotal = number_format($total, 0, '.', ',');
1089
1090
        echo'<tr>';
1091
1092
        echo' <td>';
1093
1094
        echo $d['notrans'];
1095
1096
        echo'</td>';
1097
1098
        echo' <td>';
1099
1100
        echo $d['pasien'];
1101
1102
        echo'</td>';
1103
1104
        echo' <td>';
1105
1106
        echo $d['jenis_transaksi'];
1107
1108
        echo'</td>';
1109
1110
        echo" <td  style='text-align:right;'>";
1111
1112
        echo $ijumlah;
1113
1114
        echo'</td>';
1115
1116
        echo' <td>';
1117
1118
        echo $d['jenis_pembayaran'];
1119
1120
        echo'</td>';
1121
1122
        echo' <td>';
1123
1124
        echo $d['penjamin'];
1125
1126
        echo'</td>';
1127
1128
        echo' <td>';
1129
1130
        echo $d['ket'];
1131
1132
        echo'</td>';
1133
1134
        echo" <td  style='text-align:center;'>";
1135
1136
        if ($r_edit == 'Y') {
1137
            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>";
1138
        }
1139
1140
        if ($r_delete == 'Y') {
1141
            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>";
1142
        }
1143
1144
        echo'</td>';
1145
1146
        echo'</tr>';
1147
    }
1148
1149
    ?>
1150
1151
1152
 <tr>
1153
1154
     <th width='10%' colspan="3"><h5 style='font-size:12px;'>Total</h5></th>  
1155
     <th width='10%'><h5 style='font-size:12px;text-align: right;'><?=$itotal; ?></h5></th> 
1156
1157
     <th  width='10%' colspan="3"><h5 style='font-size:12px;'></h5></th> 
1158
1159
     <th width='5%'><h3 style='font-size:12px;text-align:center;' ></h3></th>                  
1160
1161
 </tr>
1162
1163
</table>  
1164
1165
1166
1167
</div>
1168
1169
1170
  
1171
1172
</div>
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
<?php // end row?>
1183
1184
</div>
1185
1186
</div>
1187
1188
<?php
1189
1190
break;
1191
1192
    case 'ubah':
1193
1194
    $k_ID = $_GET['k_ID'];
1195
1196
    $sql = mysql_query("SELECT * FROM kasir 
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1196
    $sql = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT * FROM kasir 

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1197
1198
                        WHERE id_kasir = '$k_ID' 
1199
1200
                        ");
1201
1202
    $r = mysql_fetch_array($sql);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1202
    $r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($sql);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1203
1204
    $ID = $r['id_kasir'];
1205
1206
    $shift = $r['id_shift'];
1207
1208
    $petugas = $r['petugas'];
1209
1210
    $status = $r['status'];
1211
1212
    $tanggal = $r['tanggal'];
1213
1214
    $dsql = mysql_query("SELECT * FROM kasir_detail 
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1214
    $dsql = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT * FROM kasir_detail 

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1215
1216
                        WHERE id_kasir = '$k_ID' ");
1217
1218
    $jml = mysql_num_rows($dsql);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1218
    $jml = /** @scrutinizer ignore-deprecated */ mysql_num_rows($dsql);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1219
1220
    if ($jml > 0) {
1221
1222
        // $readonly = 'readonly';
1223
1224
        // $disabled = 'disabled';
1225
1226
        $readonly = '';
1227
1228
        $disabled = '';
1229
    } else {
1230
        $readonly = '';
1231
1232
        $disabled = '';
1233
    }
1234
1235
    ?>
1236
1237
1238
1239
<div class="row" >
1240
1241
1242
1243
   <form action="<?php echo"modul/mod_$module/aksi_$module.php?module=$module&act=input"; ?>" method="post" name="formData" enctype="multipart/form-data"  > 
1244
1245
1246
1247
       <div class="col-md-12 col-sm-12 col-xs-12 form-group" >
1248
1249
          <div class="x_panel" >
1250
1251
<div class="x_title">
1252
1253
  <h2>Form <?php echo $nmmodule?></h2>
1254
1255
        <div class="pull-right">
1256
1257
1258
1259
   
1260
1261
          <button type="submit"  class="btn btn-primary">Simpan</button>
1262
1263
1264
1265
          <button type="button"  class="btn btn-success" disabled>Ubah</button>
1266
1267
1268
1269
          <button type="button" class="btn btn-danger" disabled>Hapus</button>
1270
1271
1272
1273
  
1274
1275
            <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>
1276
1277
1278
1279
             <button type="button" disabled class="btn btn-success disabeld"><i class='fa fa-print'></i> Cetak</button>
1280
1281
1282
1283
        </div>
1284
1285
1286
1287
  
1288
1289
<div class="clearfix"></div>
1290
1291
</div>
1292
1293
<?php // heaeder?>
1294
1295
<div class="x_content">
1296
1297
  
1298
1299
  <input type="hidden" name="module" value="<?php echo $module?>" /> 
1300
1301
  <input type="hidden" name="id_module" value="<?php echo $id_module?>" /> 
1302
1303
  <input type="hidden" name="imodule" value="<?php echo $imodule?>" /> 
1304
1305
 <input type="hidden" name="ID" id="ID" value="<?php echo $ID; ?>">
1306
1307
 <input type="hidden" name="k_ID" id="k_ID" value="<?php echo $k_ID; ?>">
1308
1309
 <input type="hidden" name="jml" id="jml" value="<?php echo $jml; ?>">
1310
1311
1312
 
1313
1314
1315
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
1316
1317
      <label class="control-label"  style="padding-top:8px;">Tanggal</label>
1318
1319
  </div>  
1320
1321
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1322
1323
     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" <?php echo $readonly; ?> class="form-control" required>  
1324
1325
  </div> 
1326
1327
1328
1329
 <div class="col-md-1 col-sm-1 col-xs-6 form-group">
1330
1331
      <label class="control-label"  style="padding-top:8px;">shift</label>
1332
1333
  </div>  
1334
1335
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1336
1337
    <select name="shift" id="shift" class="form-control" >
1338
1339
1340
 <?php
1341
1342
        $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1342
        $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1343
1344
        if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
$query is of type resource, thus it always evaluated to false.
Loading history...
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1344
        if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1345
            while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1345
            while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1346
                echo '<option value="'.$row->id_shift.'"';
1347
1348
                if ($row->id_shift == $shift) {
1349
                    echo ' selected';
1350
                }
1351
1352
                echo '>'.$row->shift.'</option>';
1353
            }
1354
        }
1355
1356
        ?>  
1357
1358
 </select>         
1359
1360
  </div> 
1361
1362
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
1363
1364
      <label class="control-label"  style="padding-top:8px;">Petugas</label>
1365
1366
  </div>  
1367
1368
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1369
1370
      <input type="text" name="petugas" id="petugas" value="<?php echo $petugas?>" class="form-control" >  
1371
1372
1373
  </div> 
1374
1375
1376
1377
</div>
1378
1379
<?php // detail?>
1380
1381
1382
1383
<div class="x_content" >
1384
1385
1386
<table cellpadding="0" width='100%' cellspacing="0" border="0" class="table table-striped responsive-utilities jambo_table" >
1387
1388
 <tr>
1389
1390
     <th width='10%'><h5 style='font-size:12px;'>No.Kwitansi</h5></th>  
1391
1392
     <th width='10%'><h5 style='font-size:12px;'>Nama Pasien</h5></th> 
1393
1394
     <th width='15%'><h5 style='font-size:12px;'>Jenis Transaksi</h5></th>      
1395
1396
     <th width='10%'><h5 style='font-size:12px;text-align: right;'>Jumlah</h5></th> 
1397
1398
     <th  width='10%'><h5 style='font-size:12px;'>Jenis Pembayaran</h5></th> 
1399
1400
     <th  width='10%'><h5 style='font-size:12px;'>Penjamin</h5></th> 
1401
1402
     <th  width='10%'><h5 style='font-size:12px;'>Keterangan</h5></th> 
1403
              
1404
1405
 </tr>
1406
1407
1408
1409
1410
 <?php
1411
1412
1413
        $dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1414
1415
1416
         FROM kasir_detail a LEFT JOIN jenis_transaksi b
1417
1418
         ON a.id_jenis_transaksi = b.id_jenis_transaksi
1419
1420
         left join penjamin c
1421
1422
         ON a.id_penjamin = c.id_penjamin
1423
1424
         left join jenis_pembayaran d
1425
1426
         ON a.id_jenis_pembayaran = d.id_jenis_pembayaran
1427
1428
         WHERE a.id_kasir = '$k_ID'
1429
1430
         AND a.status <> '4'
1431
1432
         ORDER BY a.seqno
1433
1434
         ";
1435
1436
        $dtampil = mysql_query($dSQL);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1436
        $dtampil = /** @scrutinizer ignore-deprecated */ mysql_query($dSQL);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1437
1438
        $no = 1;
1439
1440
        while ($d = mysql_fetch_array($dtampil)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1440
        while ($d = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($dtampil)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1441
            $d_id = $d['id_kasir_detail'];
1442
1443
            $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1444
1445
            $jumlah = number_format($d['jumlah'], 0, '.', '');
1446
1447
            $total = $total + $d['jumlah'];
1448
1449
            $itotal = number_format($total, 0, '.', ',');
1450
1451
            echo'<tr>';
1452
1453
            echo' <td>';
1454
1455
            echo $d['notrans'];
1456
1457
            echo'</td>';
1458
1459
            echo' <td>';
1460
1461
            echo $d['pasien'];
1462
1463
            echo'</td>';
1464
1465
            echo' <td>';
1466
1467
            echo $d['jenis_transaksi'];
1468
1469
            echo'</td>';
1470
1471
            echo" <td  style='text-align:right;'>";
1472
1473
            echo $ijumlah;
1474
1475
            echo'</td>';
1476
1477
            echo' <td>';
1478
1479
            echo $d['jenis_pembayaran'];
1480
1481
            echo'</td>';
1482
1483
            echo' <td>';
1484
1485
            echo $d['penjamin'];
1486
1487
            echo'</td>';
1488
1489
            echo' <td>';
1490
1491
            echo $d['ket'];
1492
1493
            echo'</td>';
1494
1495
            echo'</tr>';
1496
        }
1497
1498
        ?>
1499
1500
1501
</table> 
1502
1503
1504
1505
</div>
1506
1507
1508
1509
1510
1511
1512
1513
1514
<?php // end row?>
1515
1516
</div>
1517
1518
</div>
1519
1520
<?php
1521
1522
        break;
1523
1524
    case 'edit':
1525
1526
    $k_ID = $_GET['k_ID'];
1527
1528
    $sql = mysql_query("SELECT * FROM kasir 
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1528
    $sql = /** @scrutinizer ignore-deprecated */ mysql_query("SELECT * FROM kasir 

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1529
1530
                        WHERE id_kasir = '$k_ID' 
1531
1532
                        ");
1533
1534
    $r = mysql_fetch_array($sql);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1534
    $r = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($sql);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1535
1536
    $penjualan_barang = $r['id_kasir'];
1537
1538
    $shift = $r['id_shift'];
1539
1540
    $petugas = $r['petugas'];
1541
1542
    $status = $r['status'];
1543
1544
    $tanggal = $r['tanggal'];
1545
1546
    //$ID   = $r['id_kasir'];
1547
1548
    ?>
1549
1550
1551
1552
<div class="row" >
1553
1554
1555
1556
1557
1558
       <div class="col-md-12 col-sm-12 col-xs-12 form-group" >
1559
1560
          <div class="x_panel" >
1561
1562
<div class="x_title">
1563
1564
  <h2>Form <?php echo $nmmodule?></h2>
1565
1566
        <div class="pull-right">
1567
1568
   
1569
1570
          <button type="submit" class="btn btn-primary" disabled>Simpan</button>
1571
1572
1573
1574
          <button  type="button" disabled class="btn btn-success" >Ubah</button>
1575
1576
1577
1578
          <button type="button" class="btn btn-danger" disabled>Hapus</button>
1579
1580
        
1581
1582
            <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>
1583
1584
1585
1586
           <button type="button" disabled class="btn btn-success disabeld"><i class='fa fa-print'></i> Cetak</button>
1587
1588
1589
1590
        </div>
1591
1592
1593
1594
  
1595
1596
<div class="clearfix"></div>
1597
1598
</div>
1599
1600
<?php // heaeder?>
1601
1602
<div class="x_content">
1603
1604
  
1605
1606
1607
1608
1609
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
1610
1611
      <label class="control-label"  style="padding-top:8px;">Tanggal</label>
1612
1613
  </div>  
1614
1615
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1616
1617
     <input type="date" name="tanggal" id="tanggal" value="<?php echo $tanggal; ?>" class="form-control"  readonly required>  
1618
1619
  </div> 
1620
1621
1622
1623
 <div class="col-md-1 col-sm-1 col-xs-6 form-group">
1624
1625
      <label class="control-label"  style="padding-top:8px;">Shift</label>
1626
1627
  </div>  
1628
1629
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1630
1631
    <select name="shift" id="shift" class="form-control" disabled>
1632
1633
1634
 <?php
1635
1636
    $query = mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1636
    $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM shift WHERE aktif = "Y" ORDER BY shift');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1637
1638
    if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1638
    if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
$query is of type resource, thus it always evaluated to false.
Loading history...
1639
        while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1639
        while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1640
            echo '<option value="'.$row->id_shift.'"';
1641
1642
            if ($row->id_shift == $shift) {
1643
                echo ' selected';
1644
            }
1645
1646
            echo '>'.$row->shift.'</option>';
1647
        }
1648
    }
1649
1650
    ?>  
1651
1652
 </select>         
1653
1654
  </div> 
1655
1656
  <div class="col-md-1 col-sm-1 col-xs-6 form-group">
1657
1658
      <label class="control-label"  style="padding-top:8px;">Petugas</label>
1659
1660
  </div>  
1661
1662
  <div class="col-md-3 col-sm-3 col-xs-6 form-group">
1663
1664
      <input type="text" name="petugas" id="petugas" value="<?php echo $petugas?>" 
1665
1666
      readonly class="form-control" >  
1667
1668
1669
  </div> 
1670
1671
1672
1673
1674
</div>
1675
1676
1677
1678
<?php // detail?>
1679
1680
1681
1682
<div class="x_content" >
1683
1684
1685
1686
1687
1688
 <table cellpadding="0" width='100%' cellspacing="0" border="0" class="table table-striped responsive-utilities jambo_table" >
1689
1690
 <tr>
1691
1692
      <th width='10%'><h5 style='font-size:12px;'>No.Kwitansi</h5></th>  
1693
1694
     <th width='10%'><h5 style='font-size:12px;'>Nama Pasien</h5></th> 
1695
1696
     <th width='15%'><h5 style='font-size:12px;'>Jenis Transaksi</h5></th>      
1697
1698
     <th width='10%'><h5 style='font-size:12px;text-align: right;'>Jumlah</h5></th> 
1699
1700
     <th  width='10%'><h5 style='font-size:12px;'>Jenis Pembayaran</h5></th> 
1701
1702
     <th  width='10%'><h5 style='font-size:12px;'>Penjamin</h5></th> 
1703
1704
     <th  width='10%'><h5 style='font-size:12px;'>Keterangan</h5></th> 
1705
1706
     <th width='7%'><h3 style='font-size:12px;text-align:center;' >Aksi</h3></th>                  
1707
1708
1709
 </tr>
1710
1711
1712
1713
 <?php
1714
1715
    $d_id = $_GET['d_id'];
1716
1717
$dSQL = "SELECT a.*,b.jenis_transaksi,c.penjamin,d.jenis_pembayaran
1718
1719
1720
         FROM kasir_detail a LEFT JOIN jenis_transaksi b
1721
1722
         ON a.id_jenis_transaksi = b.id_jenis_transaksi
1723
1724
         left join penjamin c
1725
1726
         ON a.id_penjamin = c.id_penjamin
1727
1728
         left join jenis_pembayaran d
1729
1730
         ON a.id_jenis_pembayaran = d.id_jenis_pembayaran
1731
1732
         WHERE a.id_kasir = '$k_ID'
1733
1734
         AND a.status <> '4'
1735
1736
         ORDER BY a.seqno
1737
1738
         ";
1739
1740
    $dtampil = mysql_query($dSQL);
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1740
    $dtampil = /** @scrutinizer ignore-deprecated */ mysql_query($dSQL);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1741
1742
    $no = 1;
1743
1744
    while ($d = mysql_fetch_array($dtampil)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1744
    while ($d = /** @scrutinizer ignore-deprecated */ mysql_fetch_array($dtampil)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1745
        $jid = $d['id_kasir_detail'];
1746
1747
        $ijumlah = number_format($d['jumlah'], 0, '.', ',');
1748
1749
        $jumlah = number_format($d['jumlah'], 0, '.', '');
1750
1751
        if ($jid == $d_id) {
1752
            echo '<form action="modul/mod_'.$module.'/aksi_'.$module.'.php?module='.$module.'&act=add method="post" name="formData" enctype="multipart/form-data">';
1753
1754
            echo '<input type="hidden" name="module" value="'.$module.'" />';
1755
1756
            echo '<input type="hidden" name="id_module" value=" '.$id_module.'" />';
1757
1758
            echo '<input type="hidden" name="imodule" value="'.$imodule.'" />';
1759
1760
            echo '<input type="hidden" name="k_ID" value="'.$k_ID.'" />';
1761
1762
            echo  '<input type="hidden" name="ID" value="'.$jid.'" />';
1763
1764
            echo '<tr>';
1765
1766
            echo '<td>';
1767
1768
            echo '<input type="text" name="notrans" id="notrans" value=" '.$d['notrans'].'" autofocus required="required"  class="form-control">';
1769
1770
            echo '</td>';
1771
1772
            echo '<td>';
1773
1774
            echo '<input type="text" name="pasien" id="pasien" value="'.$d['pasien'].'" class="form-control">';
1775
1776
            echo '</td>';
1777
1778
            echo '<td>';
1779
1780
            echo '<select name="jenis_transaksi" id="jenis_transaksi" class="form-control">';
1781
1782
            $query = mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1782
            $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM jenis_transaksi WHERE aktif = "Y" ORDER BY id_jenis_transaksi');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1783
1784
            if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1784
            if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1785
                while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1785
                while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1786
                    $selected = ($row->id_jenis_transaksi == @$d['id_jenis_transaksi']) ? 'selected' : '';
1787
                    printf('<option value="%s" %s>%s</option>', $row->id_jenis_transaksi, $selected, $row->jenis_transaksi);
1788
                }
1789
            }
1790
1791
            echo '</select>';
1792
1793
            echo '</td>';
1794
1795
            echo '<td>';
1796
1797
            echo '<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" onBlur="mask_jumlah()" onFocus="mask_clear_jumlah()"/>';
1798
1799
            echo '<input type="hidden" name="jumlah" id="jumlah" value="'.$jumlah.'" style="text-align:right;" required="required" class="form-control col-md-7 col-xs-12">';
1800
1801
            echo '</td>';
1802
1803
            echo '<td>';
1804
1805
            echo '<select name="jenis_pembayaran" id="jenis_pembayaran" class="form-control">';
1806
1807
            $query = mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1807
            $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM jenis_pembayaran WHERE aktif = "Y" ORDER BY id_jenis_pembayaran');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1808
1809
            if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1809
            if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1810
                while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1810
                while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1811
                    $selected = ($row->id_jenis_pembayaran == @$d['id_jenis_pembayaran']) ? 'selected' : '';
1812
                    printf('<option value="%s" %s>%s</option>', $row->id_jenis_pembayaran, $selected, $row->jenis_pembayaran);
1813
                }
1814
            }
1815
1816
            echo '</select>';
1817
1818
            echo '</td>';
1819
1820
            echo '<td>';
1821
1822
            echo '<select name="penjamin" id="penjamin" class="form-control">';
1823
            echo '<option value="0"></option>';
1824
1825
            $query = mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');
0 ignored issues
show
Deprecated Code introduced by
The function mysql_query() has been deprecated: 5.5 Send a MySQL query ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1825
            $query = /** @scrutinizer ignore-deprecated */ mysql_query('SELECT * FROM penjamin WHERE aktif = "Y" ORDER BY id_penjamin');

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1826
1827
            if ($query && mysql_num_rows($query) > 0) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_num_rows() has been deprecated: 5.5 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1827
            if ($query && /** @scrutinizer ignore-deprecated */ mysql_num_rows($query) > 0) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1828
                while ($row = mysql_fetch_object($query)) {
0 ignored issues
show
Deprecated Code introduced by
The function mysql_fetch_object() has been deprecated: 5.5 Fetch a result row as an object ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

1828
                while ($row = /** @scrutinizer ignore-deprecated */ mysql_fetch_object($query)) {

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
1829
                    $selected = ($row->id_penjamin == @$d['id_penjamin']) ? 'selected' : '';
1830
                    printf('<option value="%s" %s>%s</option>', $row->id_penjamin, $selected, $row->penjamin);
1831
                }
1832
            }
1833
1834
            echo '</select>';
1835
1836
            echo '</td>';
1837
1838
            echo '<td>';
1839
1840
            echo '<textarea  name="ket" id="ket" col=1>'.$d['ket'].'</textarea>';
1841
1842
            echo '</td>';
1843
1844
            echo '<td>';
1845
1846
            echo '<button type="submit"  class="btn btn-primary btn-xs">';
1847
1848
            echo '<span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>';
1849
1850
            echo '</button>';
1851
1852
            echo '</td>';
1853
1854
            echo '</tr>';
1855
1856
            echo '</form>';
1857
        } else {
1858
            echo'<tr>';
1859
1860
            echo' <td>';
1861
1862
            echo $d['notrans'];
1863
1864
            echo'</td>';
1865
1866
            echo' <td>';
1867
1868
            echo $d['pasien'];
1869
1870
            echo'</td>';
1871
1872
            echo' <td>';
1873
1874
            echo $d['jenis_transaksi'];
1875
1876
            echo'</td>';
1877
1878
            echo" <td  style='text-align:right;'>";
1879
1880
            echo $ijumlah;
1881
1882
            echo'</td>';
1883
1884
            echo' <td>';
1885
1886
            echo $d['jenis_pembayaran'];
1887
1888
            echo'</td>';
1889
1890
            echo' <td>';
1891
1892
            echo $d['penjamin'];
1893
1894
            echo'</td>';
1895
1896
            echo' <td>';
1897
1898
            echo $d['ket'];
1899
1900
            echo'</td>';
1901
1902
            echo" <td  style='text-align:center;'>";
1903
1904
            if ($r_edit == 'Y') {
1905
                echo"<span class='btn btn-success btn-sm' disabled><i class='fa fa-pencil'></i></span>";
1906
            }
1907
1908
            if ($r_delete == 'Y') {
1909
                echo"<span class='btn btn-danger btn-sm' disabled><i class='fa fa-trash'></i></span>";
1910
            }
1911
1912
            echo'</td>';
1913
1914
            echo'</tr>';
1915
        }
1916
    }
1917
1918
    ?>
1919
1920
1921
1922
</table> 
1923
1924
 
1925
1926
1927
1928
</div>
1929
 
1930
1931
</div>
1932
1933
1934
1935
<?php // end row?>
1936
1937
</div>
1938
1939
</div>
1940
1941
<?php
1942
1943
    endswitch;
1944
1945
?>