Files
eletter-backup/app/arsip/modal_view.php
2024-05-31 14:18:00 +07:00

33 lines
1.2 KiB
PHP

<?php
include("../koneksi.php");
$id=$_POST['surat_id'];
?>
<div class="body">
<form id="fr_ssn_dok" name="fr_ssn_dok" class="form-horizontal" method="post" onsubmit="return false;" enctype="multipart/form-data">
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<input type="hidden" id="surat_id" name="surat_id" value="<?php echo $_POST['surat_id'];?>">
<?php
$d=pg_query("SELECT file FROM scan WHERE surat_id='$id' AND LOWER(file) LIKE '%.jpg'");
while($rd=pg_fetch_array($d)) {$file=$rd['file'];
?>
<center><img id='blah1_dok' class='thumbnail img-responsive' src='<?php echo 'app/smasuk/dok/'.$file; ?>' /></center>
<?php
}
?>
<?php
$d=pg_query("SELECT file FROM scan WHERE surat_id='$id' AND LOWER(file) LIKE '%.pdf'");
while($rd=pg_fetch_array($d)) {$file=$rd['file'];
?>
<embed src="app/smasuk/pdf/pdf/<?php echo $file; ?>#toolbar=0" width="100%" height="450"></embed>
<?php
}
?>
</div>
</div>
</form>
</div>