-
Notifications
You must be signed in to change notification settings - Fork 0
/
reports.php
executable file
·66 lines (56 loc) · 1.1 KB
/
reports.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
@media print {
#printbtn {
display : none;
}
* {
display: none;
}
#printableTable {
display: block;
}
.no-print{
display: none;
}
}
</style>
</head>
<body>
<section runat="server">
<title>Print Page</title>
<script type="text/javascript">
function print_page() {
var ButtonControl = document.getElementById("btnprint");
ButtonControl.style.visibility = "hidden";
window.print();
}
</script>
<br>
<br>
<br>
<?php
$name = $location = "";
if (isset($_POST['name'])) {
$name = $_POST['name'];
}
if (isset($_POST['location'])) {
$location = $_POST['location'];
}
?>
<h1>Hello <?php echo $_POST["name"]; ?>!<br>
Your mail is <?php echo $_POST["location"]; ?>.</h1>
<br>
<br>
<br>
<div>
<strong>Hello world</strong><br/>
<input type="button" id="btnprint" value="Print this Page" onclick="print_page()" />
</div>
</section>
</body>
</html>