repush dir in public
@@ -26,7 +26,7 @@ src/application/logs/*
|
|||||||
src/application/config/
|
src/application/config/
|
||||||
src/application/application/logs/
|
src/application/application/logs/
|
||||||
src/logs/
|
src/logs/
|
||||||
src/public/
|
# src/public/
|
||||||
|
|
||||||
### CodeIgniter Patch ###
|
### CodeIgniter Patch ###
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ $thn2 = $_POST['thn2'];
|
|||||||
LEFT JOIN scan kg ON s.id = kg.surat_id AND LOWER(kg.file) LIKE '%jpg'
|
LEFT JOIN scan kg ON s.id = kg.surat_id AND LOWER(kg.file) LIKE '%jpg'
|
||||||
LEFT JOIN scan kh ON s.id = kh.surat_id AND LOWER(kh.file) NOT LIKE '%jpg'
|
LEFT JOIN scan kh ON s.id = kh.surat_id AND LOWER(kh.file) NOT LIKE '%jpg'
|
||||||
WHERE r.satuan_kerja_tujuan = $1
|
WHERE r.satuan_kerja_tujuan = $1
|
||||||
--AND s.satuan_kerja_id <> r.satuan_kerja_tujuan
|
-- AND s.satuan_kerja_id <> r.satuan_kerja_tujuan
|
||||||
AND s.pengesahan = 1
|
AND s.pengesahan = 1
|
||||||
AND r.lama IS NOT NULL AND r.dis_baca IS NULL
|
AND r.lama IS NOT NULL AND r.dis_baca IS NULL
|
||||||
AND COALESCE(s.tahun, '') <> 'batal'
|
AND COALESCE(s.tahun, '') <> 'batal'
|
||||||
|
|||||||
@@ -1,186 +1,235 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
|
||||||
<!-- App title -->
|
|
||||||
<title>e-LETTER RSSA</title>
|
|
||||||
|
|
||||||
</head>
|
<head>
|
||||||
|
<!-- App title -->
|
||||||
|
<title>e-LETTER RSSA</title>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
<style type="text/css">
|
<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 {
|
||||||
.breakAfter{
|
/* this affects the margin on the content before sending to printer */
|
||||||
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: 0px;*/
|
||||||
/*margin-right: 40px;
|
/*margin-right: 40px;
|
||||||
margin-left: 40px;*/
|
margin-left: 40px;*/
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
td, th {
|
|
||||||
padding:0px 5px 0px 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tb_head, b, div, span, td {
|
td,
|
||||||
font-family: "Arial";
|
th {
|
||||||
font-size: 12px;
|
padding: 0px 5px 0px 5px;
|
||||||
table-layout: fixed;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.judul {
|
#tb_head,
|
||||||
font-family: "Arial";
|
b,
|
||||||
font-size: 15px;
|
div,
|
||||||
width: 640px;
|
span,
|
||||||
table-layout: fixed;
|
td {
|
||||||
}
|
font-family: "Arial";
|
||||||
|
font-size: 12px;
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
#cssTable, .nampeg{
|
.judul {
|
||||||
font-family: "Arial";
|
font-family: "Arial";
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
width: 640px;
|
width: 640px;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cssTable,
|
||||||
|
.nampeg {
|
||||||
|
font-family: "Arial";
|
||||||
|
font-size: 12px;
|
||||||
|
width: 640px;
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.a {width: 20px; max-width: 20px;}
|
.a {
|
||||||
.b {width: 100px;max-width: 100px;}
|
width: 20px;
|
||||||
.h {width: 30px;max-width: 30px;}
|
max-width: 20px;
|
||||||
.i {width: 100px;max-width: 100px;}
|
}
|
||||||
.j {width: 80px;max-width: 80px;}
|
|
||||||
.k {width: 80px;max-width: 80px;}
|
.b {
|
||||||
.l {width: 30px;max-width: 30px;}
|
width: 100px;
|
||||||
.m {width: 90px;max-width: 90px;}
|
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
|
#cssTable td {
|
||||||
{
|
|
||||||
vertical-align: middle;
|
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 {
|
#cssTable {
|
||||||
border-bottom: 1px solid black;
|
border-spacing: 0;
|
||||||
border-right: none;
|
}
|
||||||
border-left: none;
|
|
||||||
border-top:1px solid black;
|
#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 {
|
.header-info {
|
||||||
font-family: "Arial";
|
font-family: "Arial";
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tr_head {
|
.tr_head {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-family: "Arial";
|
font-family: "Arial";
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.pam tr,td {
|
.pam tr,
|
||||||
vertical-align: top;
|
td {
|
||||||
text-align: left;
|
vertical-align: top;
|
||||||
}
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
h1.title {
|
h1.title {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
h1.title:before {
|
|
||||||
content: "";
|
h1.title:before {
|
||||||
display: block;
|
content: "";
|
||||||
border-top: solid 1px black;
|
display: block;
|
||||||
width: 100%;
|
border-top: solid 1px black;
|
||||||
height: 2px;
|
width: 100%;
|
||||||
position: absolute;
|
height: 2px;
|
||||||
top: 50%;
|
position: absolute;
|
||||||
z-index: 1;
|
top: 50%;
|
||||||
border-bottom: 1px solid #000;
|
z-index: 1;
|
||||||
}
|
border-bottom: 1px solid #000;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include('../koneksi.php');
|
include('../koneksi.php');
|
||||||
$thn_skrg=date('Y');
|
$thn_skrg = date('Y');
|
||||||
$surat_id=$_POST['surat_id'];
|
$surat_id = $_POST['surat_id'];
|
||||||
$nampeg=$_POST['nampeg'];
|
$nampeg = $_POST['nampeg'];
|
||||||
$d=pg_query("SELECT (SELECT a.nama FROM satuan_kerja a WHERE a.id=s.satuan_kerja_dari),
|
$d = pg_query($koneksi, "SELECT (SELECT a.nama FROM satuan_kerja a WHERE a.id=s.satuan_kerja_dari),
|
||||||
s.no_kendali,
|
s.no_kendali,
|
||||||
s.tgl_diterima,s.jam_diterima,
|
s.tgl_diterima,s.jam_diterima,
|
||||||
(SELECT a.nama FROM satuan_kerja a WHERE a.id=s.satuan_kerja_dari),
|
(SELECT a.nama FROM satuan_kerja a WHERE a.id=s.satuan_kerja_dari),
|
||||||
s.perihal,
|
s.perihal,
|
||||||
(SELECT f.sifat FROM sifat_surat f WHERE f.id=s.sifat_surat_id),
|
(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),
|
(SELECT j.jenis FROM jenis_disposisi j WHERE j.id=s.jenis_disposisi_id),
|
||||||
s.sm_baca,s.id,
|
s.sm_baca,s.id,
|
||||||
(SELECT t.sifat FROM sifat_surat t WHERE t.id=s.sifat_surat_id),
|
(SELECT t.sifat FROM sifat_surat t WHERE t.id=s.sifat_surat_id),
|
||||||
s.lampiran
|
s.lampiran
|
||||||
FROM surat s
|
FROM surat s
|
||||||
WHERE s.jenis_disposisi_id='2' AND s.id='$surat_id'");
|
WHERE s.jenis_disposisi_id='2' AND s.id='$surat_id'");
|
||||||
while($r=pg_fetch_array($d)) {
|
while ($r = pg_fetch_array($d)) {
|
||||||
$no_kendali2=$r['no_kendali'];
|
$no_kendali2 = $r['no_kendali'];
|
||||||
$tgl_diterima=$r['tgl_diterima'];
|
$tgl_diterima = $r['tgl_diterima'];
|
||||||
$pengolah=$r[0];
|
$pengolah = $r[0];
|
||||||
$perihal=$r['perihal'];
|
$perihal = $r['perihal'];
|
||||||
$sifat=$r[10];
|
$sifat = $r[10];
|
||||||
$lampiran=$r['lampiran'];
|
$lampiran = $r['lampiran'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$no_pinjam=(int) substr($no_kendali2,0,5);
|
$no_pinjam = (int) substr($no_kendali2, 0, 5);
|
||||||
$no_kendali=sprintf("%05s",$no_pinjam);
|
$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;">
|
<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;">
|
<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;">
|
<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;">
|
<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">
|
<div class="header-info">
|
||||||
|
|
||||||
<span class="judul"><center>PEMERINTAH PROVINSI JAWA TIMUR</center></span>
|
<span class="judul">
|
||||||
<span class="judul"><center>RUMAH SAKIT UMUM DAERAH Dr SAIFUL ANWAR</center></span>
|
<center>PEMERINTAH PROVINSI JAWA TIMUR</center>
|
||||||
<span class="judul"><center>Jl. Jaksa Agung Suprapto No.2 Malang. Telp. (0341) 362101. Fax. (0341) 369384</center></span>
|
</span>
|
||||||
<br>
|
<span class="judul">
|
||||||
<h1 class="title"></h1>
|
<center>RUMAH SAKIT UMUM DAERAH Dr SAIFUL ANWAR</center>
|
||||||
<span class="judul"><center>LEMBAR KENDALI</center></span>
|
</span>
|
||||||
<br>
|
<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">
|
<table id="tb_head" border="1" style="line-height:20px;" class="pam">
|
||||||
<tr class="tr_head">
|
<tr class="tr_head">
|
||||||
<td rowspan="2" style="width:90px">
|
<td rowspan="2" style="width:90px">
|
||||||
@@ -196,7 +245,7 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
|||||||
<br />
|
<br />
|
||||||
:</td>
|
:</td>
|
||||||
<td rowspan="2" style="width:200px"><b><?php echo $no_kendali; ?><br />
|
<td rowspan="2" style="width:200px"><b><?php echo $no_kendali; ?><br />
|
||||||
<?php echo date('d-m-Y H:i',strtotime($tgl_diterima)); ?>
|
<?php echo date('d-m-Y H:i', strtotime($tgl_diterima)); ?>
|
||||||
<br />
|
<br />
|
||||||
<?php echo $pengolah; ?>
|
<?php echo $pengolah; ?>
|
||||||
<br />
|
<br />
|
||||||
@@ -212,7 +261,7 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
-->
|
-->
|
||||||
<!--
|
<!--
|
||||||
<table id="tb_head1" border="0" style="line-height:20px;" class="pam">
|
<table id="tb_head1" border="0" style="line-height:20px;" class="pam">
|
||||||
<tr class="tr_head1">
|
<tr class="tr_head1">
|
||||||
<td rowspan="2" style="width:90px">
|
<td rowspan="2" style="width:90px">
|
||||||
@@ -225,7 +274,7 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
|||||||
<br />
|
<br />
|
||||||
:</td>
|
:</td>
|
||||||
<td rowspan="2" style="width:200px"><b><?php echo $no_kendali; ?><br />
|
<td rowspan="2" style="width:200px"><b><?php echo $no_kendali; ?><br />
|
||||||
<?php echo date('d-m-Y H:i',strtotime($tgl_diterima)); ?>
|
<?php echo date('d-m-Y H:i', strtotime($tgl_diterima)); ?>
|
||||||
<br />
|
<br />
|
||||||
<?php echo $pengolah; ?>
|
<?php echo $pengolah; ?>
|
||||||
<br /></b></td>
|
<br /></b></td>
|
||||||
@@ -243,33 +292,60 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
|||||||
<td rowspan="2" style="width:200px"><b><?php echo $lampiran; ?><br />
|
<td rowspan="2" style="width:200px"><b><?php echo $lampiran; ?><br />
|
||||||
<?php echo $sifat; ?>
|
<?php echo $sifat; ?>
|
||||||
<br />
|
<br />
|
||||||
<?php echo '<p style="word-wrap: break-word;min-width: 160px;max-width: 160px;">'.$perihal.'</p>'; ?>
|
<?php echo '<p style="word-wrap: break-word;min-width: 160px;max-width: 160px;">' . $perihal . '</p>'; ?>
|
||||||
<br /></b></td>
|
<br /></b></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<table id="tb_head1" border="0" style="line-height:20px;width:100%;" class="pam">
|
<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">
|
||||||
<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>
|
<td style="width:90px">No. Kendali</td>
|
||||||
<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>
|
<td style="width:5px">:</td>
|
||||||
</table>
|
<td style="width:200px"><?php echo $no_kendali; ?></td>
|
||||||
<br>
|
<td>Lampiran</td>
|
||||||
</div>
|
<td style="width:5px">:</td>
|
||||||
</th>
|
<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>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr><td><p style="float:right;"><i><?php echo 'Petugas: '.$nampeg; ?></i></p></td></tbody>
|
<tbody>
|
||||||
</table>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p style="float:right;"><i><?php echo 'Petugas: ' . $nampeg; ?></i></p>
|
||||||
|
</td>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.print();
|
window.print();
|
||||||
window.close();
|
window.close();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
@@ -1,64 +1,64 @@
|
|||||||
<?php
|
<?php
|
||||||
include("../koneksi.php");
|
include("../koneksi.php");
|
||||||
$surat_id=$_POST['surat_id'];
|
$surat_id = $_POST['surat_id'];
|
||||||
?>
|
?>
|
||||||
<br>
|
<br>
|
||||||
<input type="hidden" id="surat_ida" value="<?php echo $surat_id; ?>">
|
<input type="hidden" id="surat_ida" value="<?php echo $surat_id; ?>">
|
||||||
<div class="row port">
|
<div class="row port">
|
||||||
<div class="portfolioContainer">
|
<div class="portfolioContainer">
|
||||||
<?php
|
<?php
|
||||||
$dok=pg_query("SELECT * FROM scan WHERE surat_id='$surat_id' AND LOWER(file) LIKE '%.jpg'ORDER BY id DESC");
|
$dok = pg_query($koneksi, "SELECT * FROM scan WHERE surat_id='$surat_id' AND LOWER(file) LIKE '%.jpg'ORDER BY id DESC");
|
||||||
while($rdok=pg_fetch_array($dok)) {$foto=$rdok['file'];
|
while ($rdok = pg_fetch_array($dok)) {
|
||||||
?>
|
$foto = $rdok['file'];
|
||||||
<div class="col-lg-6 webdesign illustrator">
|
?>
|
||||||
<a href="#" class="image-popup">
|
<div class="col-lg-6 webdesign illustrator">
|
||||||
<img src="<?php echo '../../../public/smasuk/dokument/'.$foto; ?>" class="thumb-img" alt="work-thumbnail">
|
<a href="#" class="image-popup">
|
||||||
</a>
|
<img src="<?php echo '../../../public/smasuk/dokument/' . $foto; ?>" class="thumb-img" alt="work-thumbnail">
|
||||||
<h4>
|
</a>
|
||||||
<button type="button" name="dok_delete" style="height:22px;border-radius: 50%;"class="btn btn-danger btn-xs pull-right" id="<?php echo $rdok[0];?>" data-content="Hapus" rel="popover" data-placement="bottom" data-trigger="hover">
|
<h4>
|
||||||
<i class="fa fa-remove"></i>
|
<button type="button" name="dok_delete" style="height:22px;border-radius: 50%;" class="btn btn-danger btn-xs pull-right" id="<?php echo $rdok[0]; ?>" data-content="Hapus" rel="popover" data-placement="bottom" data-trigger="hover">
|
||||||
</button>
|
<i class="fa fa-remove"></i>
|
||||||
</h4>
|
</button>
|
||||||
</div>
|
</h4>
|
||||||
<?php
|
</div>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- End row -->
|
</div> <!-- End row -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// $('html, body').animate({scrollTop:$(document).height()}, 'slow');
|
// $('html, body').animate({scrollTop:$(document).height()}, 'slow');
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$('button[name="dok_delete"]').click(function(){
|
$('button[name="dok_delete"]').click(function() {
|
||||||
var x = confirm("Anda yakin ingin menghapus ?");
|
var x = confirm("Anda yakin ingin menghapus ?");
|
||||||
if (x) {
|
if (x) {
|
||||||
var key = "delete_dok";
|
var key = "delete_dok";
|
||||||
var id = $(this).attr('id');
|
var id = $(this).attr('id');
|
||||||
var rowElement = $(this).parent().parent();
|
var rowElement = $(this).parent().parent();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "app/smasuk/delete.php",
|
url: "app/smasuk/delete.php",
|
||||||
data: 'id='+id
|
data: 'id=' + id +
|
||||||
+'&key='+key,
|
'&key=' + key,
|
||||||
success: function(data){
|
success: function(data) {
|
||||||
var surat_id = $('#surat_ida').val();
|
var surat_id = $('#surat_ida').val();
|
||||||
$('#dok_tbl').load("app/smasuk/tabel.php", {surat_id: surat_id});
|
$('#dok_tbl').load("app/smasuk/tabel.php", {
|
||||||
}
|
surat_id: surat_id
|
||||||
});
|
});
|
||||||
} else {}
|
}
|
||||||
});
|
});
|
||||||
|
} else {}
|
||||||
|
});
|
||||||
|
|
||||||
$('.image-popup').magnificPopup({
|
$('.image-popup').magnificPopup({
|
||||||
type: 'image',
|
type: 'image',
|
||||||
closeOnContentClick: true,
|
closeOnContentClick: true,
|
||||||
mainClass: 'mfp-fade',
|
mainClass: 'mfp-fade',
|
||||||
gallery: {
|
gallery: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
navigateByImgClick: true,
|
navigateByImgClick: true,
|
||||||
preload: [0,1] // Will preload 0 - before current, and 1 after the current image
|
preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
@@ -1,47 +1,51 @@
|
|||||||
<?php
|
<?php
|
||||||
include('../../koneksi.php');
|
include('../../koneksi.php');
|
||||||
if ($_POST['surat_idzz']) {
|
if ($_POST['surat_idzz']) {
|
||||||
$surat_id=$_POST['surat_idzz'];
|
$surat_id = $_POST['surat_idzz'];
|
||||||
} else {
|
} else {
|
||||||
$surat_id='0';
|
$surat_id = '0';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<input type="hidden" value="<?php echo $surat_id; ?>" id="surat_idxx">
|
<input type="hidden" value="<?php echo $surat_id; ?>" id="surat_idxx">
|
||||||
<?php
|
<?php
|
||||||
$data_pdf=pg_query("SELECT file,id FROM scan WHERE surat_id='$surat_id' AND LOWER(file) LIKE '%.pdf' ORDER BY id DESC");
|
$data_pdf = pg_query($koneksi, "SELECT file,id FROM scan WHERE surat_id='$surat_id' AND LOWER(file) LIKE '%.pdf' ORDER BY id DESC");
|
||||||
while($rdata_pdf=pg_fetch_array($data_pdf)) {$pdf=$rdata_pdf[0];
|
while ($rdata_pdf = pg_fetch_array($data_pdf)) {
|
||||||
if (($pdf==NULL) || ($pdf=='')) {/*echo "File PDF belum diupload..";*/} else {
|
$pdf = $rdata_pdf[0];
|
||||||
?>
|
if (($pdf == NULL) || ($pdf == '')) {/*echo "File PDF belum diupload..";*/
|
||||||
<div class="gal-detail thumb" style="height:345px;background-color:#ece9d8;">
|
} else {
|
||||||
<embed src="../../../public/smasuk/dokument/<?php echo $pdf; ?>#toolbar=0" width="100%" height="300"></embed>
|
?>
|
||||||
<button type="button" name="cv_delete"
|
<div class="gal-detail thumb" style="height:345px;background-color:#ece9d8;">
|
||||||
style="height:22px;border-radius: 50%"class="btn btn-danger btn-xs pull-right" id="<?php echo $rdata_pdf[1];?>" data-content="Hapus" rel="popover"
|
<embed src="../../../public/smasuk/dokument/<?php echo $pdf; ?>#toolbar=0" width="100%" height="300"></embed>
|
||||||
data-placement="bottom" data-trigger="hover">
|
<button type="button" name="cv_delete"
|
||||||
<i class="fa fa-remove"></i>
|
style="height:22px;border-radius: 50%" class="btn btn-danger btn-xs pull-right" id="<?php echo $rdata_pdf[1]; ?>" data-content="Hapus" rel="popover"
|
||||||
</button>
|
data-placement="bottom" data-trigger="hover">
|
||||||
</div>
|
<i class="fa fa-remove"></i>
|
||||||
<?php
|
</button>
|
||||||
}
|
</div>
|
||||||
}
|
<?php
|
||||||
?>
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('button[name="cv_delete"]').click(function(){
|
$('button[name="cv_delete"]').click(function() {
|
||||||
var x = confirm("Anda yakin ingin menghapus ?");
|
var x = confirm("Anda yakin ingin menghapus ?");
|
||||||
if (x) {
|
if (x) {
|
||||||
var key = "delete_cv";
|
var key = "delete_cv";
|
||||||
var id = $(this).attr('id');
|
var id = $(this).attr('id');
|
||||||
var rowElement = $(this).parent().parent();
|
var rowElement = $(this).parent().parent();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "app/smasuk/pdf/crud.php",
|
url: "app/smasuk/pdf/crud.php",
|
||||||
data: 'id='+id
|
data: 'id=' + id +
|
||||||
+'&key='+key,
|
'&key=' + key,
|
||||||
success: function(data){
|
success: function(data) {
|
||||||
var surat_id=$('#surat_idxx').val();
|
var surat_id = $('#surat_idxx').val();
|
||||||
$('#tabel_upl_cv').load("app/smasuk/pdf/tabel_upl_cv.php",{surat_id:surat_id});
|
$('#tabel_upl_cv').load("app/smasuk/pdf/tabel_upl_cv.php", {
|
||||||
}
|
surat_id: surat_id
|
||||||
});
|
});
|
||||||
} else {}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -1,16 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
print_r($_POST);
|
print_r($_POST);
|
||||||
include("../../koneksi.php");
|
include("../../koneksi.php");
|
||||||
$surat_id=$_POST['surat_id_upload'];
|
$surat_id = $_POST['surat_id_upload'];
|
||||||
$folder = "pdf";
|
$folder = "pdf";
|
||||||
$tmp_name = $_FILES["input_load_cv"]["tmp_name"];
|
$tmp_name = $_FILES["input_load_cv"]["tmp_name"];
|
||||||
$name = $folder."/".$surat_id."_".$_FILES["input_load_cv"]["name"];
|
$name = $folder . "/" . $surat_id . "_" . $_FILES["input_load_cv"]["name"];
|
||||||
$name_pdf = $surat_id."_".$_FILES["input_load_cv"]["name"];
|
$name_pdf = $surat_id . "_" . $_FILES["input_load_cv"]["name"];
|
||||||
|
|
||||||
move_uploaded_file($tmp_name, $name);
|
move_uploaded_file($tmp_name, $name);
|
||||||
$del=pg_query("DELETE FROM scan WHERE surat_id='$surat_id'");
|
$del = pg_query($koneksi, "DELETE FROM scan WHERE surat_id='$surat_id'");
|
||||||
$ins=pg_query("INSERT INTO scan (surat_id,file) VALUES (
|
$ins = pg_query($koneksi, "INSERT INTO scan (surat_id,file) VALUES (
|
||||||
'$surat_id','$name_pdf')");
|
'$surat_id','$name_pdf')");
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,6 @@ $tmp_name = $_FILES["file_dok"]["tmp_name"];
|
|||||||
$file_name = $_FILES["file_dok"]["name"];
|
$file_name = $_FILES["file_dok"]["name"];
|
||||||
$file_type = mime_content_type($tmp_name);
|
$file_type = mime_content_type($tmp_name);
|
||||||
$file_extension = pathinfo($file_name, PATHINFO_EXTENSION);
|
$file_extension = pathinfo($file_name, PATHINFO_EXTENSION);
|
||||||
// move_uploaded_file($tmp_name, $name);
|
|
||||||
// $del=pg_query($koneksi,"DELETE FROM scan WHERE surat_id='$surat_id'");
|
|
||||||
// $input = pg_query($koneksi,"INSERT INTO scan (file,surat_id) VALUES ('$name_ins','$surat_id')");
|
|
||||||
// echo $surat_id;
|
|
||||||
if (in_array($file_type, $allowed_types) && in_array($file_extension, $allowed_extensions)) {
|
if (in_array($file_type, $allowed_types) && in_array($file_extension, $allowed_extensions)) {
|
||||||
$name = $baseURL . $folder . $surat_id . "_" . $file_name;
|
$name = $baseURL . $folder . $surat_id . "_" . $file_name;
|
||||||
$name_ins = $surat_id . '_' . $file_name;
|
$name_ins = $surat_id . '_' . $file_name;
|
||||||
|
|||||||
@@ -100,15 +100,15 @@ switch ($key) {
|
|||||||
} else {
|
} else {
|
||||||
$verifikasiMap = [
|
$verifikasiMap = [
|
||||||
165 => 1, // verifikasi TU
|
165 => 1, // verifikasi TU
|
||||||
821 => 3, // verifikasi Plt. Kabag Umum
|
|
||||||
771 => 3, // verifikasi Kabag Umum
|
771 => 3, // verifikasi Kabag Umum
|
||||||
662 => 5, // verifikasi Wadir Pend. dan Pengemb. Mutu Pelayanan
|
662 => 5, // verifikasi Wadir Pend. dan Pengemb. Mutu Pelayanan
|
||||||
805 => 5, // verifikasi Plt. Wadir Pend. dan Pengemb. Mutu Pelayanan
|
|
||||||
663 => 7, // verifikasi Wadir Pelayanan Penunjang
|
663 => 7, // verifikasi Wadir Pelayanan Penunjang
|
||||||
827 => 7, // verifikasi Plt. Wadir Pelayanan Penunjang
|
|
||||||
661 => 9, // verifikasi Wadir Pelay. Medik dan Keperawatan
|
661 => 9, // verifikasi Wadir Pelay. Medik dan Keperawatan
|
||||||
828 => 9, // verifikasi Plt. Wadir Pelay. Medik dan Keperawatan
|
|
||||||
664 => 11, // verifikasi Wadir Umum dan Keuangan
|
664 => 11, // verifikasi Wadir Umum dan Keuangan
|
||||||
|
821 => 3, // verifikasi Plt. Kabag Umum
|
||||||
|
805 => 5, // verifikasi Plt. Wadir Pend. dan Pengemb. Mutu Pelayanan
|
||||||
|
827 => 7, // verifikasi Plt. Wadir Pelayanan Penunjang
|
||||||
|
828 => 9, // verifikasi Plt. Wadir Pelay. Medik dan Keperawatan
|
||||||
829 => 11, // verifikasi Plt. Wadir Umum dan Keuangan
|
829 => 11, // verifikasi Plt. Wadir Umum dan Keuangan
|
||||||
14 => 13, // verifikasi Selesai
|
14 => 13, // verifikasi Selesai
|
||||||
];
|
];
|
||||||
|
|||||||
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 308 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 487 KiB |
|
After Width: | Height: | Size: 6.2 MiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 78 KiB |