-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitemPrint2.php
More file actions
executable file
·62 lines (56 loc) · 2.01 KB
/
itemPrint2.php
File metadata and controls
executable file
·62 lines (56 loc) · 2.01 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
session_start();
include_once("php/configure.php");
if(!isset($_SESSION['login'])){
header("Location: index.php");
}
if($_SESSION['login'] == "Borrower"){
$out = '<a href="php/logout.php"> Sign out </a>';
}
else if($_SESSION['login'] == "Admin"){
$out = '<a href="php/logout.php"> Sign out </a>';
}
else if($_SESSION['login'] == "GSD Officer"){
$out = '<a href="php/logout.php"> Sign out </a>';
}
else if($_SESSION['login'] == "Employee"){
$out = '<a href="php/logout.php"> Sign out </a>';
}
else if($_SESSION['login'] == "President"){
$out = '<a href="php/logout.php"> Sign out </a>';
}
else{
$out = '<a href="index.php"> Sign out </a>';
}
?>
<!DOCTYPE html>
<head>
<title>Item Report</title>
<link href="css/report.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function docprint()
{
var disp_setting="toolbar=no,location=no,directories=no,menubar=no, scrollbars=yes,width=1000, height=600, left=100, top=25";
var content_vlue = document.getElementById("container").innerHTML;
var docprint=window.open("","",disp_setting);
docprint.document.open();
docprint.document.write('<html><head><title></title><style>table, td, th{border-collapse: collapse;border: 2px solid gray;padding:5px;margin:10px;text-align:center;}</style><body onLoad="self.print()" style="width: 100%; font-size:12px; font-family:arial;">');
docprint.document.write(content_vlue);
docprint.document.write('</body></html>');
docprint.document.close();
docprint.focus();
}
</script>
<body >
<center><input type="button" onClick=location.href="javascript:docprint()" value="Print"></center>
<div id="container">
<div id="print_content">
<?php
include ('header.php');
include ('itemPrint.php');
include ('footer.php');
?>
</div>
</div>
</body>