first commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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>
|
||||
|
||||
Reference in New Issue
Block a user