first commit
This commit is contained in:
275
app/smasuk/print_kendali.php
Normal file
275
app/smasuk/print_kendali.php
Normal file
@@ -0,0 +1,275 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- App title -->
|
||||
<title>e-LETTER RSSA</title>
|
||||
|
||||
</head>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
|
||||
|
||||
.breakAfter{
|
||||
page-break-after: always;
|
||||
}
|
||||
@page
|
||||
{
|
||||
size: 210mm 430mm;
|
||||
height: 430;
|
||||
width: 210mm;
|
||||
/* this affects the margin in the printer settings */
|
||||
margin: 7mm 0mm 0mm 6mm;
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
/* this affects the margin on the content before sending to printer */
|
||||
/*margin: 0px;*/
|
||||
/*margin-right: 40px;
|
||||
margin-left: 40px;*/
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
td, th {
|
||||
padding:0px 5px 0px 5px;
|
||||
}
|
||||
|
||||
#tb_head, b, div, span, td {
|
||||
font-family: "Arial";
|
||||
font-size: 12px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.judul {
|
||||
font-family: "Arial";
|
||||
font-size: 15px;
|
||||
width: 640px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
#cssTable, .nampeg{
|
||||
font-family: "Arial";
|
||||
font-size: 12px;
|
||||
width: 640px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
|
||||
.a {width: 20px; max-width: 20px;}
|
||||
.b {width: 100px;max-width: 100px;}
|
||||
.h {width: 30px;max-width: 30px;}
|
||||
.i {width: 100px;max-width: 100px;}
|
||||
.j {width: 80px;max-width: 80px;}
|
||||
.k {width: 80px;max-width: 80px;}
|
||||
.l {width: 30px;max-width: 30px;}
|
||||
.m {width: 90px;max-width: 90px;}
|
||||
|
||||
|
||||
#cssTable td
|
||||
{
|
||||
vertical-align: middle;
|
||||
}
|
||||
#cssTable {
|
||||
border-spacing:0;
|
||||
}
|
||||
#cssTable tbody td, th {
|
||||
border-right:1px solid black;
|
||||
border-bottom:1px solid black;
|
||||
border-left:1px solid black;
|
||||
border-top:1px solid black;
|
||||
}
|
||||
#cssTable thead td,th {
|
||||
border-right:1px solid black;
|
||||
border-bottom:1px solid black;
|
||||
border-left:1px solid black;
|
||||
border-top:1px solid black;
|
||||
}
|
||||
|
||||
#cssTable tfoot td {
|
||||
border-bottom: 1px solid black;
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
border-top:1px solid black;
|
||||
}
|
||||
|
||||
|
||||
.header-info {
|
||||
font-family: "Arial";
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.tr_head {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: "Arial";
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
|
||||
.pam tr,td {
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1.title {
|
||||
margin-top: 0;
|
||||
position: relative;
|
||||
}
|
||||
h1.title:before {
|
||||
content: "";
|
||||
display: block;
|
||||
border-top: solid 1px black;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
z-index: 1;
|
||||
border-bottom: 1px solid #000;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
include('../koneksi.php');
|
||||
$thn_skrg=date('Y');
|
||||
$surat_id=$_POST['surat_id'];
|
||||
$nampeg=$_POST['nampeg'];
|
||||
$d=pg_query("SELECT (SELECT a.nama FROM satuan_kerja a WHERE a.id=s.satuan_kerja_dari),
|
||||
s.no_kendali,
|
||||
s.tgl_diterima,s.jam_diterima,
|
||||
(SELECT a.nama FROM satuan_kerja a WHERE a.id=s.satuan_kerja_dari),
|
||||
s.perihal,
|
||||
(SELECT f.sifat FROM sifat_surat f WHERE f.id=s.sifat_surat_id),
|
||||
(SELECT j.jenis FROM jenis_disposisi j WHERE j.id=s.jenis_disposisi_id),
|
||||
s.sm_baca,s.id,
|
||||
(SELECT t.sifat FROM sifat_surat t WHERE t.id=s.sifat_surat_id),
|
||||
s.lampiran
|
||||
FROM surat s
|
||||
WHERE s.jenis_disposisi_id='2' AND s.id='$surat_id'");
|
||||
while($r=pg_fetch_array($d)) {
|
||||
$no_kendali2=$r['no_kendali'];
|
||||
$tgl_diterima=$r['tgl_diterima'];
|
||||
$pengolah=$r[0];
|
||||
$perihal=$r['perihal'];
|
||||
$sifat=$r[10];
|
||||
$lampiran=$r['lampiran'];
|
||||
}
|
||||
|
||||
$no_pinjam=(int) substr($no_kendali2,0,5);
|
||||
$no_kendali=sprintf("%05s",$no_pinjam);
|
||||
?>
|
||||
|
||||
|
||||
<table class="report-container" id="rpt" style="border-top: none;border-bottom: none;border-left: none;border-right: none;">
|
||||
<thead class="report-header" style="border-top: none;border-bottom: none;border-left: none;border-right: none;">
|
||||
<tr style="border-top: none;border-bottom: none;border-left: none;border-right: none;">
|
||||
<th class="report-header-cell" style="font-weight: normal;border-top: none;border-bottom: none;border-left: none;border-right: none;">
|
||||
<div class="header-info">
|
||||
|
||||
<span class="judul"><center>PEMERINTAH PROVINSI JAWA TIMUR</center></span>
|
||||
<span class="judul"><center>RUMAH SAKIT UMUM DAERAH Dr SAIFUL ANWAR</center></span>
|
||||
<span class="judul"><center>Jl. Jaksa Agung Suprapto No.2 Malang. Telp. (0341) 362101. Fax. (0341) 369384</center></span>
|
||||
<br>
|
||||
<h1 class="title"></h1>
|
||||
<span class="judul"><center>LEMBAR KENDALI</center></span>
|
||||
<br>
|
||||
|
||||
<!--
|
||||
<table id="tb_head" border="1" style="line-height:20px;" class="pam">
|
||||
<tr class="tr_head">
|
||||
<td rowspan="2" style="width:90px">
|
||||
<span>No Kendali</span><br>
|
||||
<span>Tanggal</span><br>
|
||||
<span>Asal / Pengolah</span><br>
|
||||
<span>Lampiran</span>
|
||||
</td>
|
||||
<td rowspan="2" style="width:5px">:<br />
|
||||
:
|
||||
<br />
|
||||
:
|
||||
<br />
|
||||
:</td>
|
||||
<td rowspan="2" style="width:200px"><b><?php echo $no_kendali; ?><br />
|
||||
<?php echo date('d-m-Y H:i',strtotime($tgl_diterima)); ?>
|
||||
<br />
|
||||
<?php echo $pengolah; ?>
|
||||
<br />
|
||||
<span><?php echo $lampiran; ?></span></b></td>
|
||||
<td style="width:40px">Sifat</td>
|
||||
<td style="width:5px">:</td>
|
||||
<td style="width:200px;padding:0px 5px 5px 5px;"><b><?php echo $sifat; ?></b></td>
|
||||
</tr>
|
||||
<tr class="tr_head">
|
||||
<td>Perihal</td>
|
||||
<td>:</td>
|
||||
<td style="padding:0px 10px 0px 5px;"><b><?php echo strtoupper($perihal); ?></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
-->
|
||||
<!--
|
||||
<table id="tb_head1" border="0" style="line-height:20px;" class="pam">
|
||||
<tr class="tr_head1">
|
||||
<td rowspan="2" style="width:90px">
|
||||
<span>No Kendali</span><br>
|
||||
<span>Tanggal</span><br>
|
||||
<span>Asal / Pengolah</span><br>
|
||||
</td>
|
||||
<td rowspan="2" style="width:5px">:<br />
|
||||
:
|
||||
<br />
|
||||
:</td>
|
||||
<td rowspan="2" style="width:200px"><b><?php echo $no_kendali; ?><br />
|
||||
<?php echo date('d-m-Y H:i',strtotime($tgl_diterima)); ?>
|
||||
<br />
|
||||
<?php echo $pengolah; ?>
|
||||
<br /></b></td>
|
||||
|
||||
<td rowspan="2" style="width:60px">
|
||||
<span>Lampiran</span><br>
|
||||
<span>Sifat</span><br>
|
||||
<span>Perihal</span><br>
|
||||
</td>
|
||||
<td rowspan="2" style="width:5px">:<br />
|
||||
:
|
||||
<br />
|
||||
:
|
||||
<br /></td>
|
||||
<td rowspan="2" style="width:200px"><b><?php echo $lampiran; ?><br />
|
||||
<?php echo $sifat; ?>
|
||||
<br />
|
||||
<?php echo '<p style="word-wrap: break-word;min-width: 160px;max-width: 160px;">'.$perihal.'</p>'; ?>
|
||||
<br /></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
-->
|
||||
|
||||
<table id="tb_head1" border="0" style="line-height:20px;width:100%;" class="pam">
|
||||
<tr class="tr_head1"><td style="width:90px">No. Kendali</td><td style="width:5px">:</td><td style="width:200px"><?php echo $no_kendali; ?></td><td>Lampiran</td><td style="width:5px">:</td><td style="width:220px"><?php echo $lampiran; ?></td></tr>
|
||||
<tr class="tr_head1"><td style="width:90px">Tanggal</td><td style="width:5px">:</td><td style="width:200px"><?php echo date('d-m-Y H:i',strtotime($tgl_diterima)); ?></td><td>Sifat</td><td>:</td><td style="width:200px"><?php echo $sifat; ?></td></tr>
|
||||
<tr class="tr_head1"><td style="width:90px">Asal / Pengolah</td><td style="width:5px">:</td><td style="width:200px"><?php echo $pengolah; ?></td><td>Perihal</td><td style="width:5px">:</td><td style="word-wrap: break-word;min-width: 200px;max-width: 200px;"><?php echo $perihal; ?></td></tr>
|
||||
</table>
|
||||
<br>
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody><tr><td><p style="float:right;"><i><?php echo 'Petugas: '.$nampeg; ?></i></p></td></tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
window.print();
|
||||
window.close();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user