first commit
This commit is contained in:
53
app/disposisi/arahan/print_pic.php
Normal file
53
app/disposisi/arahan/print_pic.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- App title -->
|
||||
<title>E-LETTER RSSA</title>
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.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
|
||||
{
|
||||
margin-left: 30px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
include('../../koneksi.php');
|
||||
$id=$_POST['id'];
|
||||
$d=pg_query("SELECT file FROM scan WHERE id='$id'");
|
||||
while($r=pg_fetch_array($d)) {$file=$r[0];}
|
||||
?>
|
||||
|
||||
<img src="app/smasuk/dok/<?php echo $file; ?>">
|
||||
|
||||
<script type="text/javascript">
|
||||
window.print();
|
||||
window.close();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user