Repository navigation
Expand file tree
/
Copy pathr.php
More file actions
117 lines (102 loc) · 3.09 KB
/
Copy pathr.php
File metadata and controls
117 lines (102 loc) · 3.09 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php session_start();
if(empty($_SESSION['member']))
{//echo "sfasdfs";
header("location:home.php");
}
?>
<!DOCTYPE html>
<!-- Template by freewebsitetemplates.com -->
<html>
<head>
<meta charset="UTF-8" />
<title>Home - NYC Library</title>
<link rel="styleshee" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]-->
<style type="text/css">
<!--
.style1 {font-size: 24px}
-->
</style>
</head>
<body style="background-color:lightblue">
<div id="page">
<div id="header">
<div id="section">
<div><a href="index.html"><img src="images/online lib.jpg" alt="Logo" width="389" height="55" /></a></div>
<p><span style="text-align:right">jlahoti@nyit.edu</br>+1551-998-7500</span>
</p>
<ul>
<li><a href="search.php">Search</a></li>
<li><a href="home.php">Logout</a></li>
</ul>
<div id="tagline">
<div>
<h4>Welcome to Library.</h4>
</div>
</div>
</div>
<body>
<p> </p>
<p> </p>
<div align="center"><br>
<?php
$adminid = $_REQUEST['adminid'];
$pass = $_REQUEST['pass'];
if($adminid == 123 && $pass == "lahoti")
{
echo "Welcome Admin";
$_SESSION['member'] = $adminid;
}
else
{
header("location:home.php");
}
?>
<a href="logout.php">Logout</a>
<b><br /><br />Insert Book</b>
<form name="bookinsert" action="admininsert.php">
<table>
<tr><td>Book title</td><td><input type="text" name="title" /></td></tr>
<tr><td>Publisher Name</td><td><input type="text" name="publisher_name" /></td></tr>
<tr><td>Publisher Date</td><td><input type="date" name="publisher_date" /></td></tr>
<tr><td>Publisher Address</td><td><input type="text" name="publisher_address" /></td></tr>
<tr><td>No Of Copy</td><td><input type="number" name="no_of_copy" /></td></tr>
<tr><td>ISBN</td><td><input type="text" name="isbn" /></td></tr>
<tr><td>Auther Id</td><td><input type="number" name="auther_id" /></td></tr>
<tr><td>branch Id</td><td><input type="number" name="branch_id" /></td></tr>
</table>
<input type="submit" />
</form>
<br /><br /><br /><b><br /><br />Insert Branch</b>
<form name="branch" action="branchinsert.php">
<table>
<tr><td>branch Id</td><td><input type="number" name="branch_id" /></td></tr>
<tr><td>Location</td><td><input type="text" name="location" /></td></tr>
<tr><td>Name</td><td><input type="text" name="name" /></td></tr>
</table>
<input type="submit" />
</form>
<br /><br /><br /><b><br /><br />
Add User</b>
<form name="user" action="review.php">
<table>
<tr><td>User Name</td><td><input type="number" name="readername" /></td></tr>
<tr><td>Address</td><td><input type="text" name="address" /></td></tr>
<tr><td>Phone number</td><td><input type="text" name="contactno" /></td></tr>
</table>
<input type="submit" />
</form>
<div id="footer">
<div>
<p> </p>
<div id="connect"></div>
<div class="section">
<p>© Copyright Online Library - All Rights Reserved.</p>
</div>
</div>
</div>
</div>
</body>
</html>