Passed
Push — master ( d91862...237c42 )
by Saepul
04:48
created

Terbilang()   B

Complexity

Conditions 9
Paths 9

Size

Total Lines 37
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 9
eloc 17
nc 9
nop 1
dl 0
loc 37
rs 8.0555
c 0
b 0
f 0
1
<?php
2
3
session_start();
4
5
include './../../config/koneksi.php';
6
7
include './../../config/fungsi_indobulan.php';
8
9
$SQL = 'SELECT* FROM periode ';
10
11
$tampil = mysql_query($SQL);
12
13
$p = mysql_fetch_array($tampil);
14
15
$prd = $_GET['prd'];
16
17
$tampil = mysql_query("SELECT * FROM modul WHERE id_modul ='".$_GET[report_id]."'");
18
19
$r = mysql_fetch_array($tampil);
20
21
$module = $_GET['module'];
22
23
$imodule = ucwords($r['nama_modul']);
24
25
$nmmodule = ucwords($r['nama_modul']);
26
27
$id = $r['id_modul'];
28
29
$fa_icon = $r['fa_icon'];
30
31
// if($r[orientation] == 'P') {
32
33
// 	$orientation = 'portrait';
34
35
// } else {
36
37
// 	$orientation = 'landscape';
38
39
// }
40
41
$orientation = 'portrait';
42
43
$status = $_GET['status'];
44
45
?>
46
47
48
49
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
50
51
<html xmlns="http://www.w3.org/1999/xhtml"><head>
52
53
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
54
55
<link rel="shortcut icon" type="image/x-icon" href="../images/favicon.png">
56
57
<title></title>
58
59
60
61
<link href='../config/css/style.css' source='text/css' rel='stylesheet'>
62
63
64
65
<style type="text/css">
66
67
68
69
.icon {
70
71
	font-size: 30px;
72
73
	color : #006699;
74
75
76
77
}
78
79
80
81
@page { 
82
83
	size: <?php echo $orientation?>; 	
84
85
	margin-top: 10px;
86
    margin-bottom: 0px;
87
88
89
	}
90
91
92
93
94
body {
95
96
	font-family:tahoma;
97
98
	font-size : 12px;
99
100
	
101
102
}
103
104
105
106
.h1{
107
108
109
110
	font-size: 22px;
111
112
	font-weight: bold;
113
114
	padding:4px;
115
116
}
117
118
119
120
.h2{
121
122
123
124
	font-size:20px;
125
126
	font-weight: bold;
127
128
	padding:0px;
129
130
}
131
132
133
134
.h3{
135
136
137
138
	font-size:15px;
139
140
	font-weight: bold;
141
142
	padding:2px;
143
144
}
145
146
147
148
149
150
.h4{
151
152
153
154
	font-size: 11px;
155
156
	font-weight: bold;
157
158
	padding:4px;
159
160
}
161
162
td{
163
164
	vertical-align: top;
165
166
	padding: 3px;
167
168
}
169
170
@media print{
171
172
.noprint{display:none}
173
174
}
175
176
.style1 {
177
178
	font-size: large;
179
180
	font-weight: bold;
181
182
}
183
184
185
186
.fborder {
187
188
	border-top:1px solid black;
189
190
	border-left:1px solid black;
191
192
	border-bottom:1px solid black;
193
194
	padding:6px;
195
196
	text-align: left;
197
198
199
200
}
201
202
203
204
.iborder {
205
206
	border-top:1px solid black;
207
208
	border-bottom:1px solid black;
209
210
	padding:6px;
211
212
	text-align: left;
213
214
215
216
}
217
218
219
220
.lborder {
221
222
	border-top:1px solid black;
223
224
	border-right:1px solid black;
225
226
	border-bottom:1px solid black;
227
228
	padding:6px;
229
230
	text-align: left;
231
232
233
234
}
235
236
237
238
.border {
239
240
	padding:6px;
241
242
	border-bottom:1px solid black;
243
244
245
246
}
247
248
249
250
251
252
253
254
</style>
255
256
<script language="javascript" type="text/javascript">
257
258
function cetak(){
259
260
    window.print();
261
262
	/*window.close();*/
263
264
}
265
266
function icetak(){
267
268
    window.print();
269
270
	setTimeout(function(){window.close();}, 1);
271
272
}
273
274
</script>
275
276
277
278
<link href='./../../config/css/font-awesome.min.css' type='text/css' rel='stylesheet'>
279
280
281
282
<?php
283
284
285
function Terbilang($x)
286
{
287
    $abil = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas'];
288
289
    if ($x < 12) {
290
        return ' '.$abil[$x];
291
    } elseif ($x < 20) {
292
        return Terbilang($x - 10).'belas';
293
    } elseif ($x < 100) {
294
        return Terbilang($x / 10).' puluh'.Terbilang($x % 10);
295
    } elseif ($x < 200) {
296
        return ' seratus'.Terbilang($x - 100);
297
    } elseif ($x < 1000) {
298
        return Terbilang($x / 100).' ratus'.Terbilang($x % 100);
299
    } elseif ($x < 2000) {
300
        return ' seribu'.Terbilang($x - 1000);
301
    } elseif ($x < 1000000) {
302
        return Terbilang($x / 1000).' ribu'.Terbilang($x % 1000);
303
    } elseif ($x < 1000000000) {
304
        return Terbilang($x / 1000000).' juta'.Terbilang($x % 1000000);
305
    }
306
}
307
308
?>
309
310
311
312
</head>
313
314
315
316
<!--<body onload="icetak()">-->
317
318
319
320
321
322
<body onload="icetak()">
323
324
325
326
   <div class="noprint themeborderleft themeborderright themebordertop themeborderbottom"  >
327
328
    <table width="100%" >
329
330
    <tr>
331
332
    <td width="100%"align="right">
333
334
    <a href="" onclick="javascript:cetak()" title='Print'><span class='icon'><i class='fa fa-print'></i></span></a>
335
336
	&nbsp&nbsp&nbsp&nbsp
337
338
	<a href="javascript:window.close()" title='Close'><span class='icon'><i class='fa fa-close'></i></span></a>
339
340
</td>
341
342
    </tr>
343
344
    </table>
345
346
 
347
348
</div>
349
350
	
351
352
<?php
353
354
$time = time() - (1 * 1 * 60 * 60);
355
356
$datetime = date('d/m/Y G:i:s', $time);
357
358
$tgl = tgl_indo(date('Y-m-d', $time));
359
360
$outlet = $_GET['outlet'];
361
362
 $gtampil = mysql_query("SELECT * FROM informasi_perusahaan where id_informasi_perusahaan = '1'");
363
364
 $g = mysql_fetch_array($gtampil);
365
366
if ($g['pict']) {
367
    $pict = $g['pict'];
368
} else {
369
    $pict = '';
370
}
371
372
$company = ucwords($g['company']);
373
374
 $otampil = mysql_query("SELECT * FROM  outlet where id_outlet = '$outlet'");
375
376
 $o = mysql_fetch_array($otampil);
377
378
 ?>
379
380
381
382
<table width='100%' style="padding-top:10px;">
383
384
<!-- <tr>
385
386
<td width='10%'>
387
388
<img src="../../images/logo/<?php echo $pict; ?>" width='150px'>
389
390
</td>
391
392
</tr> -->
393
394
<tr>
395
396
<td style="text-align:center;" width='100%'>
397
398
<?php echo "<br><span class='h1'>".$nmmodule.'</span><br>'; ?>
399
400
<?php //echo "<span class='h3'>".$g['address']."<br>".$g['city']."</span>";?>
401
402
</td>
403
404
<td width='10%' >
405
406
&nbsp
407
408
</td>
409
410
</tr>
411
412
</table>
413
414
415
416
<div style="border-bottom: 4px double black;width:100%;">&nbsp</div>
417
418
<br>
419
420
<?php
421
422
$prd = $_GET['prd'];
423
424
$notrans = $_GET['notrans'];
425
426
$kode = $_GET['kode'];
427
428
$Outlet = $_GET['outlet'];
429
430
$SQL = 'SELECT a.*,b.outlet,c.supplier,d.mata_uang,d.ket as cnote 
431
432
	 FROM pemesanan_barang a left join outlet b
433
434
     ON a.id_outlet = b.id_outlet
435
436
     AND b.aktif = "Y"  
437
438
     left join supplier c
439
440
     ON a.id_supplier = c.id_supplier
441
442
     AND c.aktif = "Y"
443
444
     left join mata_uang d
445
446
     ON a.id_mata_uang = d.id_mata_uang
447
448
     AND d.aktif = "Y"
449
450
     WHERE a.prd = "'.$prd.'"
451
452
     and a.notrans = "'.$notrans.'"
453
454
     and a.kode = "'.$kode.'"
455
456
     and a.id_outlet = "'.$outlet.'"
457
458
     ';
459
460
$tampil = mysql_query($SQL);
461
462
$r = mysql_fetch_array($tampil);
463
464
$curr = $r['mata_uang'];
465
466
$mata_uang = $r['id_mata_uang'];
467
468
$cnote = $r['cnote'];
469
470
$tgl = date('d/m/Y', strtotime($r['tanggal']));
471
472
if ($r['status'] == '0') {
473
    $istatus = 'Baru';
474
} elseif ($r['status'] == '1') {
475
    $istatus = 'Disetujui';
476
} elseif ($r['status'] == '2') {
477
    $istatus = 'Ditolak';
478
} elseif ($r['status'] == '9') {
479
    $istatus = 'Posting';
480
} else {
481
    $istatus = 'Dibatalkan';
482
}
483
484
?>
485
486
487
488
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin: 0px;padding-top: 0px;">
489
490
<tr>
491
492
<td rowspan='4' valign="top" width="50%">
493
494
<?php echo "<span style='padding-top:4px;font-weight:bold;'>".$g['company'].'</span><br>'; ?>
495
496
<?php echo "<span style='padding-top:8px;'>".$g['address'].' '.$g['city'].'</span><br>'; ?>
497
498
<?php echo "<span style='padding-top:4px;'>".$g['state'].' - '.$g['zip'].'</span><br>'; ?>
499
500
<?php echo "<span style='padding-top:4px;'>Telepon : ".$g['Telepon'].' | Fax : '.$g['fax'].'</span><br>'; ?>
501
502
<?php echo "<span style='padding-top:4px;'>NPWP : ".$g['npwp'].'</span><br>'; ?>
503
504
<td>
505
506
<td style="text-align:right;" width="50%"  >
507
508
<?php
509
510
    echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
511
512
    echo'<tr>';
513
514
    echo"<td width='72%' style='text-align:right;'>No. Pemesanan</td>";
515
516
    echo"<td width='1%'>:</td>";
517
518
    echo"<td width='27%' style='text-align:left;'>".$r['kode'].''.$r['notrans'].'</td>';
519
520
    echo'</tr>';
521
522
    echo'</table>';
523
524
?>	
525
526
</td>
527
528
<tr>
529
530
<td style="text-align:right;" width="50%" colspan="2">
531
532
 <?php
533
534
    echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
535
536
    echo'<tr>';
537
538
    echo"<td width='72%' style='text-align:right;'>Tanggal</td>";
539
540
    echo"<td width='1%'>:</td>";
541
542
    echo"<td width='27%' style='text-align:left;'>".$tgl.'</td>';
543
544
    echo'</tr>';
545
546
    echo'</table>';
547
548
?>	
549
550
</td>
551
552
</tr>
553
554
555
556
<tr>
557
558
<td style="text-align:right;" width="50%" colspan="2">
559
560
<?php
561
562
    echo"<table width='100%' border=0 cellpadding=0 cellspacing=0>";
563
564
    echo'<tr>';
565
566
    echo"<td width='72%' style='text-align:right;'>Term</td>";
567
568
    echo"<td width='1%'>:</td>";
569
570
    echo"<td width='27%' style='text-align:left;'>".$r['term'].' Hari</td>';
571
572
    echo'</tr>';
573
574
    echo'</table>';
575
576
?>	
577
578
</td>
579
580
</tr>
581
582
</table>
583
584
585
586
<br>
587
588
589
590
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin: 0px;padding-top: 0px;">
591
592
<tr>
593
594
<td valign="top" width="50%" style="border-top:1px black solid;border-left:1px black solid;border-bottom:1px black solid;">
595
596
<?php
597
598
$sSQL = 'SELECT c.*
599
600
	 FROM pemesanan_barang a left join outlet b
601
602
     ON a.id_outlet = b.id_outlet
603
604
     AND b.aktif = "Y"  
605
606
     left join supplier c
607
608
     ON a.id_supplier = c.id_supplier
609
610
     AND c.aktif = "Y"
611
612
     left join mata_uang d
613
614
     ON a.id_mata_uang = d.id_mata_uang
615
616
     AND d.aktif = "Y"
617
618
     WHERE a.prd = "'.$prd.'"
619
620
     and a.notrans = "'.$notrans.'"
621
622
     and a.kode = "'.$kode.'"
623
624
     and a.id_outlet = "'.$outlet.'"
625
626
     ';
627
628
$stampil = mysql_query($sSQL);
629
630
$s = mysql_fetch_array($stampil);
631
632
?>
633
634
 <table width="100%" cellpadding='0' cellspacing='0' border="0">
635
636
        <tr><td width="30%">Supplier</td><td width="1%">:</td><td><?php echo $s['supplier']?></td></tr>
637
638
        <tr><td>Alamat</td><td>:</td><td><?php echo $s['address'].'<br>'.$s['city'].'<br>'.$s['state'].' - '.$s['zip']?> 
639
640
        </td>        
641
642
        </tr>
643
644
        <tr><td width="30%">Telepon</td><td width="1%">:</td><td><?php echo $s['phone']; ?></td></tr>
645
646
</table>        
647
648
</td>
649
650
<td style="text-align:right;border:1px black solid;" width="50%" >
651
652
<?php
653
654
$cSQL = 'SELECT b.*
655
656
	 FROM pemesanan_barang a left join outlet b
657
658
     ON a.id_outlet = b.id_outlet
659
660
     AND b.aktif = "Y"  
661
662
     left join supplier c
663
664
     ON a.id_supplier = c.id_supplier
665
666
     AND c.aktif = "Y"
667
668
     left join mata_uang d
669
670
     ON a.id_mata_uang = d.id_mata_uang
671
672
     AND d.aktif = "Y"
673
674
     WHERE a.prd = "'.$prd.'"
675
676
     and a.notrans = "'.$notrans.'"
677
678
     and a.kode = "'.$kode.'"
679
680
     and a.id_outlet = "'.$outlet.'"
681
682
     ';
683
684
$ctampil = mysql_query($cSQL);
685
686
$c = mysql_fetch_array($ctampil);
687
688
?>
689
690
 <table width="100%" cellpadding='0' cellspacing='0'>
691
692
        <tr><td width="40%" style="text-align:left;">Tujuan Pengiriman </td>
693
694
        <td width="1%">:</td>
695
696
        <td style="text-align:left;"><?php echo $c['outlet']?></td></tr>
697
698
        <tr><td style="text-align:left;">Alamat</td>
699
700
        <td>:</td>
701
702
        <td style="text-align:left;"><?php echo $c['address'].'<br>'.$c['city'].'<br>'.$c['zip'].' - '.$c['zip']?>         	
703
704
        </td></tr>
705
706
        <tr><td width="40%" style="text-align:left;">Telepon </td>
707
708
        <td width="1%">:</td>
709
710
        <td style="text-align:left;"><?php echo $c['phone']?></td></tr>
711
712
</table> 
713
714
</td>
715
716
</tr>
717
718
</table>
719
720
721
722
<br>
723
724
725
726
<table cellpadding="0" width='100%' cellspacing="0" border="0" >
727
728
<tr><td colspan="7" style="text-align:right;"> Mata Uang : <?php echo $curr?></td></tr>
729
730
 <tr>
731
732
     <th  width='2%' class="fborder" style="text-align: center">No.</th> 
733
734
     <th class="iborder">Barang</th> 
735
736
     <th width='10%'  class="iborder" style="text-align: right">Qty</th> 
737
738
     <th width='10%'  class="iborder">Satuan</th>                  
739
740
     <th width='15%'  class="iborder" style="text-align: right">Harga</th> 
741
742
     <?php if ($mata_uang == '1') {
743
    ?> 
744
745
     <th width='15%'  class="lborder" style="text-align: right">Total</th>
746
747
     <?php
748
} else {
749
        ?>
750
751
     <th width='10%'  class="iborder" style="text-align: right">Total (<?php echo $curr; ?>)</th>
752
753
     <th width='10%'  class="lborder" style="text-align: right">Total (IDR)</th>
754
755
     <?} ?> 
756
757
758
759
 </tr>
760
761
762
763
<?php
764
765
766
$dSQL = "SELECT a.*,c.unit_barang,b.kode as kode_bar,b.barang
767
768
         FROM pemesanan_barang_detail a inner join barang b
769
770
         ON a.id_barang = b.id_barang
771
772
         INNER JOIN unit_barang c
773
774
         ON b.id_unit_barang = c.id_unit_barang 
775
776
         WHERE a.prd = '$prd' and a.notrans = '$notrans'
777
778
         and a.status != '4' and a.kode = '$kode'
779
780
         and a.id_outlet = '$outlet'
781
782
         ORDER BY a.seqno
783
784
         ";
785
786
        $dtampil = mysql_query($dSQL);
787
788
        $no = 1;
789
790
        while ($d = mysql_fetch_array($dtampil)) {
791
            $d_id = $d['id_pemesanan_barang_detail'];
792
793
            $ibarang = $d['kode_bar'].'&nbsp&nbsp&nbsp&nbsp'.$d['barang'];
794
795
            $iqty = number_format($d['qty'], 2, '.', ',');
796
797
            $qty = number_format($d['qty'], 2, '.', '');
798
799
            $harga = number_format($d['harga'], 0, '.', ',');
800
801
            $total = number_format($d['total'], 0, '.', ',');
802
803
            $ctotal = number_format($d['ctotal'], 2, '.', ',');
804
805
            echo'<tr>';
806
807
            echo" <td class='border' style='text-align: center;'>";
808
809
            echo $no.'.';
810
811
            echo'</td>';
812
813
            echo" <td class='border'>";
814
815
            echo $ibarang;
816
817
            echo'</td>';
818
819
            echo" <td  class='border' style='text-align:right;'>";
820
821
            echo $iqty;
822
823
            echo'</td>';
824
825
            echo" <td class='border'>";
826
827
            echo $d['unit_barang'];
828
829
            echo'</td>';
830
831
            echo" <td  class='border' style='text-align:right;'>";
832
833
            echo $harga;
834
835
            echo'</td>';
836
837
            if ($mata_uang == '1') {
838
                echo" <td  class='border' style='text-align:right;'>";
839
840
                echo $total;
841
842
                echo'</td>';
843
            } else {
844
                echo" <td  class='border' style='text-align:right;'>";
845
846
                echo $ctotal;
847
848
                echo'</td>';
849
850
                echo" <td  class='border' style='text-align:right;'>";
851
852
                echo $total;
853
854
                echo'</td>';
855
            }
856
857
            $no++;
858
        }
859
860
        if ($no < 10) {
861
            while ($no < 10) {
862
                echo '<tr>';
863
864
                echo'<td colspan=4>&nbsp</td>';
865
866
                echo'</tr>';
867
868
                $no++;
869
            }
870
        }
871
872
        $sql = mysql_query("SELECT * FROM pemesanan_barang 
873
874
                        WHERE prd = '$prd' and notrans = '$notrans' and kode = '$kode'
875
876
                        and id_outlet = '$outlet'
877
878
                        ");
879
880
        $r = mysql_fetch_array($sql);
881
882
        $total = number_format($r['total'], 0, '.', ',');
883
884
        $ppn = number_format($r['totaltax'], 0, '.', ',');
885
886
        $gtotal = number_format($r['gtotal'], 0, '.', ',');
887
888
        $igtotal = $r['gtotal'];
889
890
        $ctotal = number_format($r['ctotal'], 2, '.', ',');
891
892
        $cppn = number_format($r['ctotaltax'], 2, '.', ',');
893
894
        $cgtotal = number_format($r['cgtotal'], 2, '.', ',');
895
896
        $icgtotal = $r['cgtotal'];
897
898
        if ($mata_uang == '1') {
899
            $rterbilang = ucwords(Terbilang($igtotal)).' Rupiah';
900
        } else {
901
            $rterbilang = ucwords(Terbilang($icgtotal)).' '.$cnote;
902
        }
903
904
        echo'<tr>';
905
906
        echo"<td colspan='3' rowspan='3' style='border:1px black solid;padding-left:10px;'><br>#".$rterbilang.' #</td>'; ?>
907
908
909
910
911
912
<td></td>
913
914
<td style="text-align:left;border-bottom:1px black solid;">
915
916
TOTAL
917
918
</td>
919
920
<td style="text-align:right;border-bottom:1px black solid;">
921
922
<?php echo $ctotal; ?>
923
924
925
926
</td>
927
928
<?php if ($mata_uang != '1') {
929
            ?> 
930
931
<td style="text-align:right;border-bottom:1px black solid;">
932
933
<?php echo $total; ?>
934
935
</td>
936
937
<?php
938
        } ?> 	
939
940
</tr>
941
942
943
944
<tr>
945
946
<td></td>
947
948
<td style="text-align:left;border-bottom:1px black solid;">
949
950
<?php
951
952
$pg_sql = mysql_query('SELECT * FROM pg_lainnya');
953
954
        $pg = mysql_fetch_array($pg_sql);
955
956
        $ippn = $pg['ppn']; ?>
957
958
PPN <?php echo $ippn; ?> %
959
960
</td>
961
962
<td style="text-align:right;border-bottom:1px black solid;">
963
964
<?php echo $cppn; ?>
965
966
</td>
967
968
<?php if ($mata_uang != '1') {
969
            ?> 
970
971
<td style="text-align:right;border-bottom:1px black solid;">
972
973
<?php echo $ppn; ?>
974
975
</td>
976
977
<?php
978
        } ?> 
979
980
</tr>
981
982
983
984
<tr>
985
986
<td></td>
987
988
<td style="text-align:left;border-bottom:1px black solid;">
989
990
GRAND TOTAL
991
992
<td style="text-align:right;border-bottom:1px black solid;">
993
994
<?php echo $cgtotal; ?>
995
996
</td>
997
998
<?php if ($mata_uang != '1') {
999
            ?> 
1000
1001
<td style="text-align:right;border-bottom:1px black solid;">
1002
1003
<?php echo $gtotal; ?>
1004
1005
</td>
1006
1007
<?php
1008
        } ?> 
1009
1010
</tr>
1011
1012
1013
1014
<tr><td colspan="6"><br>Catatan : <?php echo $r['note']; ?></td></tr>
1015
1016
</table>
1017
1018
<br>
1019
1020
 <table width="100%">
1021
1022
	<?php
1023
1024
1025
    $tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1026
1027
							ON a.id_kode_transaksi = b.id_kode_transaksi
1028
1029
							WHERE b.kode = '$kode' AND a.aktif = 'Y'");
1030
1031
        $jml = mysql_num_rows($tanda_tangan);
1032
1033
        $cp = $jml + 1;
1034
1035
        $ps = 100 / $cp;
1036
1037
        $user = $_SESSION['userid']; ?> 
1038
1039
    
1040
1041
    <tr>
1042
1043
    <td colspan="<?php echo $cp?>">&nbsp</td>
1044
1045
    </tr>
1046
1047
    
1048
1049
    <tr>
1050
1051
    <td align="center" width="<?php echo $ps?>%">Dibuat Oleh,</td>
1052
1053
    
1054
1055
    <?php while ($s = mysql_fetch_array($tanda_tangan)) {
1056
            ?>
1057
1058
    <td align="center" width="<?php echo $ps?>%" valign="bottom"><?php echo $s['judul']?></td>
1059
1060
     <?php
1061
        } ?>
1062
1063
    
1064
1065
    </tr>
1066
1067
   
1068
1069
    
1070
1071
    <tr>
1072
1073
    <td align="center" width="<?php echo $ps?>%" style="padding-top:60px;">(<span style="padding-left:10px; padding-right:10px;";><?php echo $user?></span>)</td>
1074
1075
    <?php
1076
1077
    $tanda_tangan = mysql_query("SELECT a.judul,a.penanda_tangan FROM tanda_tangan a LEFT JOIN kode_transaksi b 
1078
1079
							ON a.id_kode_transaksi = b.id_kode_transaksi
1080
1081
							WHERE b.kode = '$kode' AND a.aktif = 'Y'"); ?>    
1082
1083
    <?php while ($s = mysql_fetch_array($tanda_tangan)) {
1084
        ?>
1085
1086
    <td align="center" width="<?php echo $ps?>%" valign="bottom" style="padding-top:60px;">(<span style="padding-left:10px; padding-right:10px;";><?php echo $s['penanda_tangan']?></span>)</td>
1087
1088
    <?php
1089
    } ?>
1090
1091
    </tr>
1092
1093
    
1094
1095
    </table>
1096
1097
    
1098
1099
    <br><br><br>
1100
1101
    <div>Status Dokumen : <?php echo $istatus; ?></div>
1102
1103
1104
1105
</body></html>
1106
1107
<?php
1108
    }
1109