repush dir in public
@@ -26,7 +26,7 @@ src/application/logs/*
|
||||
src/application/config/
|
||||
src/application/application/logs/
|
||||
src/logs/
|
||||
src/public/
|
||||
# src/public/
|
||||
|
||||
### 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 kh ON s.id = kh.surat_id AND LOWER(kh.file) NOT LIKE '%jpg'
|
||||
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 r.lama IS NOT NULL AND r.dis_baca IS NULL
|
||||
AND COALESCE(s.tahun, '') <> 'batal'
|
||||
|
||||
@@ -1,186 +1,235 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- App title -->
|
||||
<title>e-LETTER RSSA</title>
|
||||
|
||||
</head>
|
||||
<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;
|
||||
}
|
||||
|
||||
|
||||
.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 */
|
||||
body {
|
||||
/* this affects the margin on the content before sending to printer */
|
||||
/*margin: 0px;*/
|
||||
/*margin-right: 40px;
|
||||
margin-left: 40px;*/
|
||||
margin-left: 30px;
|
||||
}
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
td, th {
|
||||
padding:0px 5px 0px 5px;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#tb_head, b, div, span, td {
|
||||
font-family: "Arial";
|
||||
font-size: 12px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
td,
|
||||
th {
|
||||
padding: 0px 5px 0px 5px;
|
||||
}
|
||||
|
||||
.judul {
|
||||
font-family: "Arial";
|
||||
font-size: 15px;
|
||||
width: 640px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
#tb_head,
|
||||
b,
|
||||
div,
|
||||
span,
|
||||
td {
|
||||
font-family: "Arial";
|
||||
font-size: 12px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
#cssTable, .nampeg{
|
||||
font-family: "Arial";
|
||||
font-size: 12px;
|
||||
width: 640px;
|
||||
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;}
|
||||
.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
|
||||
{
|
||||
#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;
|
||||
}
|
||||
#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;
|
||||
}
|
||||
.header-info {
|
||||
font-family: "Arial";
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.tr_head {
|
||||
text-align: left;
|
||||
}
|
||||
.tr_head {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: "Arial";
|
||||
font-size: 11px;
|
||||
}
|
||||
p {
|
||||
font-family: "Arial";
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
|
||||
.pam tr,td {
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
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'];
|
||||
}
|
||||
<?php
|
||||
include('../koneksi.php');
|
||||
$thn_skrg = date('Y');
|
||||
$surat_id = $_POST['surat_id'];
|
||||
$nampeg = $_POST['nampeg'];
|
||||
$d = pg_query($koneksi, "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);
|
||||
?>
|
||||
$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;">
|
||||
<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">
|
||||
<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>
|
||||
<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">
|
||||
@@ -196,7 +245,7 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
||||
<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)); ?>
|
||||
<?php echo date('d-m-Y H:i', strtotime($tgl_diterima)); ?>
|
||||
<br />
|
||||
<?php echo $pengolah; ?>
|
||||
<br />
|
||||
@@ -212,7 +261,7 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
||||
</tr>
|
||||
</table>
|
||||
-->
|
||||
<!--
|
||||
<!--
|
||||
<table id="tb_head1" border="0" style="line-height:20px;" class="pam">
|
||||
<tr class="tr_head1">
|
||||
<td rowspan="2" style="width:90px">
|
||||
@@ -225,7 +274,7 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
||||
<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)); ?>
|
||||
<?php echo date('d-m-Y H:i', strtotime($tgl_diterima)); ?>
|
||||
<br />
|
||||
<?php echo $pengolah; ?>
|
||||
<br /></b></td>
|
||||
@@ -243,33 +292,60 @@ $no_kendali=sprintf("%05s",$no_pinjam);
|
||||
<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>'; ?>
|
||||
<?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>
|
||||
<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>
|
||||
<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>
|
||||
<script type="text/javascript">
|
||||
window.print();
|
||||
window.close();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,64 +1,64 @@
|
||||
<?php
|
||||
include("../koneksi.php");
|
||||
$surat_id=$_POST['surat_id'];
|
||||
<?php
|
||||
include("../koneksi.php");
|
||||
$surat_id = $_POST['surat_id'];
|
||||
?>
|
||||
<br>
|
||||
<input type="hidden" id="surat_ida" value="<?php echo $surat_id; ?>">
|
||||
<div class="row port">
|
||||
<div class="portfolioContainer">
|
||||
<?php
|
||||
$dok=pg_query("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'];
|
||||
?>
|
||||
<div class="col-lg-6 webdesign illustrator">
|
||||
<a href="#" class="image-popup">
|
||||
<img src="<?php echo '../../../public/smasuk/dokument/'.$foto; ?>" class="thumb-img" alt="work-thumbnail">
|
||||
</a>
|
||||
<h4>
|
||||
<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">
|
||||
<i class="fa fa-remove"></i>
|
||||
</button>
|
||||
</h4>
|
||||
</div>
|
||||
<?php
|
||||
<div class="portfolioContainer">
|
||||
<?php
|
||||
$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'];
|
||||
?>
|
||||
<div class="col-lg-6 webdesign illustrator">
|
||||
<a href="#" class="image-popup">
|
||||
<img src="<?php echo '../../../public/smasuk/dokument/' . $foto; ?>" class="thumb-img" alt="work-thumbnail">
|
||||
</a>
|
||||
<h4>
|
||||
<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">
|
||||
<i class="fa fa-remove"></i>
|
||||
</button>
|
||||
</h4>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
?>
|
||||
</div>
|
||||
</div> <!-- End row -->
|
||||
<script type="text/javascript">
|
||||
// $('html, body').animate({scrollTop:$(document).height()}, 'slow');
|
||||
// $('html, body').animate({scrollTop:$(document).height()}, 'slow');
|
||||
</script>
|
||||
<script>
|
||||
$('button[name="dok_delete"]').click(function(){
|
||||
var x = confirm("Anda yakin ingin menghapus ?");
|
||||
if (x) {
|
||||
var key = "delete_dok";
|
||||
var id = $(this).attr('id');
|
||||
var rowElement = $(this).parent().parent();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/smasuk/delete.php",
|
||||
data: 'id='+id
|
||||
+'&key='+key,
|
||||
success: function(data){
|
||||
var surat_id = $('#surat_ida').val();
|
||||
$('#dok_tbl').load("app/smasuk/tabel.php", {surat_id: surat_id});
|
||||
}
|
||||
});
|
||||
} else {}
|
||||
});
|
||||
$('button[name="dok_delete"]').click(function() {
|
||||
var x = confirm("Anda yakin ingin menghapus ?");
|
||||
if (x) {
|
||||
var key = "delete_dok";
|
||||
var id = $(this).attr('id');
|
||||
var rowElement = $(this).parent().parent();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/smasuk/delete.php",
|
||||
data: 'id=' + id +
|
||||
'&key=' + key,
|
||||
success: function(data) {
|
||||
var surat_id = $('#surat_ida').val();
|
||||
$('#dok_tbl').load("app/smasuk/tabel.php", {
|
||||
surat_id: surat_id
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {}
|
||||
});
|
||||
|
||||
$('.image-popup').magnificPopup({
|
||||
type: 'image',
|
||||
closeOnContentClick: true,
|
||||
mainClass: 'mfp-fade',
|
||||
gallery: {
|
||||
enabled: true,
|
||||
navigateByImgClick: true,
|
||||
preload: [0,1] // Will preload 0 - before current, and 1 after the current image
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
$('.image-popup').magnificPopup({
|
||||
type: 'image',
|
||||
closeOnContentClick: true,
|
||||
mainClass: 'mfp-fade',
|
||||
gallery: {
|
||||
enabled: true,
|
||||
navigateByImgClick: true,
|
||||
preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -1,47 +1,51 @@
|
||||
<?php
|
||||
include('../../koneksi.php');
|
||||
if ($_POST['surat_idzz']) {
|
||||
$surat_id=$_POST['surat_idzz'];
|
||||
} else {
|
||||
$surat_id='0';
|
||||
}
|
||||
?>
|
||||
<input type="hidden" value="<?php echo $surat_id; ?>" id="surat_idxx">
|
||||
<?php
|
||||
$data_pdf=pg_query("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];
|
||||
if (($pdf==NULL) || ($pdf=='')) {/*echo "File PDF belum diupload..";*/} else {
|
||||
?>
|
||||
<div class="gal-detail thumb" style="height:345px;background-color:#ece9d8;">
|
||||
<embed src="../../../public/smasuk/dokument/<?php echo $pdf; ?>#toolbar=0" width="100%" height="300"></embed>
|
||||
<button type="button" name="cv_delete"
|
||||
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"
|
||||
data-placement="bottom" data-trigger="hover">
|
||||
<i class="fa fa-remove"></i>
|
||||
</button>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
include('../../koneksi.php');
|
||||
if ($_POST['surat_idzz']) {
|
||||
$surat_id = $_POST['surat_idzz'];
|
||||
} else {
|
||||
$surat_id = '0';
|
||||
}
|
||||
?>
|
||||
<input type="hidden" value="<?php echo $surat_id; ?>" id="surat_idxx">
|
||||
<?php
|
||||
$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];
|
||||
if (($pdf == NULL) || ($pdf == '')) {/*echo "File PDF belum diupload..";*/
|
||||
} else {
|
||||
?>
|
||||
<div class="gal-detail thumb" style="height:345px;background-color:#ece9d8;">
|
||||
<embed src="../../../public/smasuk/dokument/<?php echo $pdf; ?>#toolbar=0" width="100%" height="300"></embed>
|
||||
<button type="button" name="cv_delete"
|
||||
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"
|
||||
data-placement="bottom" data-trigger="hover">
|
||||
<i class="fa fa-remove"></i>
|
||||
</button>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
$('button[name="cv_delete"]').click(function(){
|
||||
var x = confirm("Anda yakin ingin menghapus ?");
|
||||
if (x) {
|
||||
var key = "delete_cv";
|
||||
var id = $(this).attr('id');
|
||||
var rowElement = $(this).parent().parent();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/smasuk/pdf/crud.php",
|
||||
data: 'id='+id
|
||||
+'&key='+key,
|
||||
success: function(data){
|
||||
var surat_id=$('#surat_idxx').val();
|
||||
$('#tabel_upl_cv').load("app/smasuk/pdf/tabel_upl_cv.php",{surat_id:surat_id});
|
||||
}
|
||||
});
|
||||
} else {}
|
||||
});
|
||||
$('button[name="cv_delete"]').click(function() {
|
||||
var x = confirm("Anda yakin ingin menghapus ?");
|
||||
if (x) {
|
||||
var key = "delete_cv";
|
||||
var id = $(this).attr('id');
|
||||
var rowElement = $(this).parent().parent();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/smasuk/pdf/crud.php",
|
||||
data: 'id=' + id +
|
||||
'&key=' + key,
|
||||
success: function(data) {
|
||||
var surat_id = $('#surat_idxx').val();
|
||||
$('#tabel_upl_cv').load("app/smasuk/pdf/tabel_upl_cv.php", {
|
||||
surat_id: surat_id
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -1,16 +1,13 @@
|
||||
<?php
|
||||
print_r($_POST);
|
||||
include("../../koneksi.php");
|
||||
$surat_id=$_POST['surat_id_upload'];
|
||||
$surat_id = $_POST['surat_id_upload'];
|
||||
$folder = "pdf";
|
||||
$tmp_name = $_FILES["input_load_cv"]["tmp_name"];
|
||||
$name = $folder."/".$surat_id."_".$_FILES["input_load_cv"]["name"];
|
||||
$name_pdf = $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"];
|
||||
|
||||
move_uploaded_file($tmp_name, $name);
|
||||
$del=pg_query("DELETE FROM scan WHERE surat_id='$surat_id'");
|
||||
$ins=pg_query("INSERT INTO scan (surat_id,file) VALUES (
|
||||
$del = pg_query($koneksi, "DELETE FROM scan WHERE surat_id='$surat_id'");
|
||||
$ins = pg_query($koneksi, "INSERT INTO scan (surat_id,file) VALUES (
|
||||
'$surat_id','$name_pdf')");
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -13,10 +13,6 @@ $tmp_name = $_FILES["file_dok"]["tmp_name"];
|
||||
$file_name = $_FILES["file_dok"]["name"];
|
||||
$file_type = mime_content_type($tmp_name);
|
||||
$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)) {
|
||||
$name = $baseURL . $folder . $surat_id . "_" . $file_name;
|
||||
$name_ins = $surat_id . '_' . $file_name;
|
||||
|
||||
@@ -100,15 +100,15 @@ switch ($key) {
|
||||
} else {
|
||||
$verifikasiMap = [
|
||||
165 => 1, // verifikasi TU
|
||||
821 => 3, // verifikasi Plt. Kabag Umum
|
||||
771 => 3, // verifikasi Kabag Umum
|
||||
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
|
||||
827 => 7, // verifikasi Plt. Wadir Pelayanan Penunjang
|
||||
661 => 9, // verifikasi Wadir Pelay. Medik dan Keperawatan
|
||||
828 => 9, // verifikasi Plt. Wadir Pelay. Medik dan Keperawatan
|
||||
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
|
||||
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 |