185 lines
5.1 KiB
PHP
185 lines
5.1 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- App title -->
|
|
<title>SIMUTU 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, #cssTable, b, div {
|
|
font-family: "Tahoma";
|
|
font-size: 13px;
|
|
width: 700px;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
|
|
/*.a {width: 35px; max-width: 35px;}*/
|
|
.a {width: 20px; max-width: 20px;}
|
|
.b {width: 300px;max-width: 300px;}
|
|
/*.h {width: 50px;max-width: 50px;}*/
|
|
.h {width: 23px;max-width: 23px;}
|
|
/*.i {width: 220px;max-width: 220px;}*/
|
|
.i {width: 190px;max-width: 190px;}
|
|
/*.j {width: 160px;max-width: 160px;}*/
|
|
.j {width: 95px;max-width: 95px;}
|
|
.k {width: 80px;max-width: 80px;}
|
|
.l {width: 50px;max-width: 50px;}
|
|
.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: none;
|
|
border-right: none;
|
|
border-left: none;
|
|
border-top:1px solid black;
|
|
}
|
|
|
|
|
|
.header-info {
|
|
font-family: "Tahoma";
|
|
font-size: 20px;
|
|
}
|
|
|
|
.tr_head {
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
<body>
|
|
|
|
<?php
|
|
|
|
|
|
include('../koneksi.php');
|
|
|
|
$tgl_mulai=$_POST['tgl_mulai'];
|
|
$tgl_selesai=$_POST['tgl_selesai'];
|
|
|
|
$tgl_mulai=$_POST['tgl_mulai'];
|
|
$tgl_mulai=str_replace('/','-',$tgl_mulai);
|
|
$tm=date('Y',strtotime($tgl_mulai));
|
|
$bm=date('m',strtotime($tgl_mulai));
|
|
$hm=date('d',strtotime($tgl_mulai));
|
|
|
|
$tgl_selesai=$_POST['tgl_selesai'];
|
|
$tgl_selesai=str_replace('/','-',$tgl_selesai);
|
|
$ts=date('Y',strtotime($tgl_selesai));
|
|
$bs=date('m',strtotime($tgl_selesai));
|
|
$hs=date('d',strtotime($tgl_selesai));
|
|
?>
|
|
|
|
|
|
<table class="table table-striped table-bordered" cellpadding="1" style="font-size:12px;" id="tabel_data_info">
|
|
<thead>
|
|
<tr>
|
|
<td align="center" width="110px;"><b>Waktu</b></td>
|
|
<td align="center" width="400px;"><b>Uraian Kegiatan</b></td>
|
|
<td align="center" width="100px;"><b>Tempat</b></td>
|
|
<td align="center" width="200px;"><b>Notulis</b></td>
|
|
<td align="center" width="300px;"><b>Perencana Rapat</b></td>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
|
|
|
|
$data=pg_query("SELECT waktu_mulai,waktu_selesai,tujuan,
|
|
(SELECT nama FROM data_ruangan WHERE id=tempat),
|
|
(SELECT nama FROM data_pegawai WHERE id=notulis),
|
|
(SELECT nama FROM satuan_kerja WHERE id=perencana_rapat),
|
|
st_batal,id,tanggal_pesan FROM riwayat_kegiatan
|
|
ORDER BY waktu_mulai ASC");
|
|
while($r=pg_fetch_array($data)) {
|
|
?>
|
|
<tr
|
|
<?php
|
|
if ($r['st_batal']=='Batal') {
|
|
echo "style='color:#dddddd'";
|
|
} else {
|
|
echo "";
|
|
}
|
|
?>
|
|
>
|
|
<td align="center"><?php echo date('H:i',strtotime($r['waktu_mulai'])).' - '.date('H:i',strtotime($r['waktu_selesai'])); ?></td>
|
|
<td><?php echo $r[2];?></td>
|
|
<td><?php echo $r[3];?></td>
|
|
<td><?php echo $r[4];?></td>
|
|
<td><?php echo $r[5];?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
//window.print();
|
|
//window.close();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|