-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmore.php
254 lines (189 loc) · 6.55 KB
/
more.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!doctype html>
<?php
require 'connect.php';
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/bootstrap.css">
<link rel="stylesheet" type="text/css" href="styles/mystyles.css">
<link rel="stylesheet" type="text/css" href="styles/customstyle.css">
<title>Smart Library</title>
<script type="text/javascript" src="./js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="./js/bootstrap.js"></script>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/jquery.sticky.js"></script>
<script type="text/javascript" src="./js/tabs.js"></script>
<script type="text/javascript" src="./js/duplicate.js"></script>
<script>
$(window).load(function(){
$("#header").sticky({ topSpacing: 0 });
});
</script>
</head>
<body>
<!-- BODY starts -->
<div class="container">
<!-- main heading starts -->
<div class="col-md-12">
<img id="logo" src="./images/logo.png" class="img-responsive col-md-4">
<div class =" text-center" id="mainheading">
<h1> COLLEGE OF ENGINEERING CHENGANNUR </h1>
<h2> SMART LIBRARY </h5>
</div>
</div>
<!-- main heading ends -->
<!-- MENU start-->
<div class="header_bar">
<div id="header">
<div class = "container">
<button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
<span class="glyphicon glyphicon-list"></span>
</button>
<!--<li class="nav navbar-nav header_bar_text">Hi <?php echo $_SESSION['fname']." ".$_SESSION['lname']; ?>, </li>-->
<div class = "collapse navbar-collapse navHeaderCollapse ">
<ul>
<a href="admin_home.php" class="active"><li> Home </li></a>
<a href="logout.php"><li id="logout"> Logout </li></a>
</ul>
</div>
</div>
</div>
</div>
<?php
$a= $_POST['ID1'];
$a= substr($a, 0,-1);
$b= $_POST['ID2'];
$b= substr($b, 0,-1);
$query1="SELECT * FROM `login student` WHERE admin_no='$a'";
$query2="SELECT * FROM `seller book info` WHERE book_uid='$b'";
$query1=mysql_query($query1);
$query2=mysql_query($query2);
$result1=mysql_num_rows($query1);
$result2=mysql_num_rows($query2);
if($result1)
{
if ($row=mysql_fetch_assoc($query1))
{
$sid=$row['admin_no'];
$fname=$row['firstname'];
$lname=$row['lastname'];
$uname=$row['username'];
$email=$row['email'];
$mobno=$row['mobno'];
}
}
else
{
echo "internel error student";
echo '<br>';
}
if($result2)
{
if ($row=mysql_fetch_assoc($query2))
{ echo "<br>";
$title=$row['title'];
$author=$row['author'];
$publisher=$row['publication'];
$edition=$row['edition'];
$status=$row['status'];
$comment=$row['comment'];
}
}
else
{
echo "internel error";
echo '<br>';
}
?>
<div id="Edit" >
<center><h2>Book Info</h2></center>
<form class="form-horizontal" role="form" method="post" action="signup.php">
<div class="form-group">
<label class="col-sm-3 control-label">Title:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $title ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Author:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $author ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Publication:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $publisher ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Edition:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $edition ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Status:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $status ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Price:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo "Rs.".$row['price'] ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Comment:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $comment ?> </p>
</div>
</div>
</form>
</div>
<div id="Edit" >
<center><h2>Uploader Info</h2></center>
<form class="form-horizontal" role="form" method="post" >
<div class="form-group">
<label class="col-sm-3 control-label">
<?php
echo "Name :";
?>
</label>
<div class="col-sm-3">
<p class="form-control-static"> <?php echo $fname.$lname ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Email:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $email ?> </p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">Mobile Number:</label>
<div class="col-lg-3 ">
<p class="form-control-static"> <?php echo $mobno ?> </p>
</div>
</div>
</form >
</div>
<center>
<br><br><br>
<form action="bookart_home.php" class="form-horizontal" method="POST">
<input type="hidden" id="var1" name="ID1" value=<?php echo $a ?>/>
<input type="hidden" id="var1" name="ID2" value=<?php echo $b ?>/>
<input type="submit" class="btn btn-large btn-primary" name="booknow" value="book now">
</form>
<br><br>
<form action="home.php" class="form-horizontal">
<input type="submit" class="btn btn-large btn-primary" name="cancel" value="cancel">
</form>
</center>
<!--pop up window-->
</div>
</div>
</div>
</body>
</html>