-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathremoval_form.php
More file actions
45 lines (38 loc) · 1.1 KB
/
removal_form.php
File metadata and controls
45 lines (38 loc) · 1.1 KB
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
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
require "includes/checkout.class.php";
require "includes/notice.class.php";
require "includes/helpers.php";
$checkout = new Checkout();
if ( !isset($_REQUEST["id"]) ) die("Checkout ID cannot be blank!");
$id = $_REQUEST["id"];
$notices = new Notice($checkout->record_show($id));
$content = $notices->fill_blanks("removal.template");
?>
<html>
<head>
<title>University of Michigan Request for Removal and Use of University Property</title>
<link rel="stylesheet" type="text/css" href="http://www.eecs.umich.edu/dco/tools/checkout/layout/css/removal.css" media="print" />
<link rel="stylesheet" type="text/css" href="http://www.eecs.umich.edu/dco/tools/checkout/layout/css/removal.css" media="screen" />
<script>
function chkstate(){
if (document.readyState=="complete"){
window.close()
}
else{
setTimeout("chkstate()",2000)
}
}
function print_win(){
window.print();
chkstate();
}
</script>
</head>
<body onload="print_win()">
<div id="print" class='prebox'>
<p><?php echo $content; ?></p>
</div>
</body>
</html>