-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
192 lines (148 loc) · 4.54 KB
/
Copy pathadmin.php
File metadata and controls
192 lines (148 loc) · 4.54 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
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
<?php
include("conn.php");?>
<html>
<head>
<style>
body{
background: url("2.jpg");
}
table{
width: 100%;
border-collapse: collapse;
height: auto;
text-align: center;
color: white;
font-weight: bold;
}
th{
font-size: 17px;
text-decoration: underline;
font-style: italic;
}
.main{
width: 80%;
box-shadow: 0px 0px 20px red;
border-radius: 20px;
overflow: auto;
margin-left: 10%;
margin-top: 2%;
height:270px;
background: rgba(0, 0, 0, 0.57);
}
.box{
width:74%;
height:160px;
background-image: url("A.jpg");
background-size: cover;
margin-left: 13%;
opacity: .9;
border:solid 1px #CF0403;
border-radius: 12px;
}
.boxtwo{
background-image: url("2.jpg");
background-size: cover;
box-shadow:0px 0px 15px lightgreen;
border-radius:12px;
}
ul{
padding: 0 ;
list-style: none;
}
ul li{
float: left;
width: 200px;
height: 40px;
background-color: purple;
opacity: .8;
line-height: 40px;
text-align: center;
font-size: 20px;
margin-right: 2px;
}
ul li a{
text-decoration: none;
color: white;
display: block;
}
ul li a:hover{
background-color: green;
}
ul li ul li{
display: none;
}
ul li:hover ul li{
display: block;
}
.nav{
padding-left:12%;
}
.three{
margin-left: 60%;
margin-top: 5px;
box-shadow:0px 0px 15px green;
}
button{
margin-top: 10px;
}
</style>
<title>Admin Dasboard</title>
</head>
<body>
<div class="box">
<table style =" font-size:14pt" align="center" width="100%" height="100%">
<tr>
<td style="color:#000080"><h1 align="center"><marquee><i>Vidya Bharati Mahavidyalaya Amravati</i></marquee></h1></td></tr>
<tr>
<td style="color:#FF1493"><h1 align="center"><i>Welcome To Online Library System</i></h1></td></tr>
<td align="center"><b><i><mark style="color:white;background-color:maroon";>ADMIN PANEL</mark></i></b></td>
</tr>
</table>
</div>
<div class="nav">
<ul>
<li><a style="background-color: green" href="admin.php">Home</a></li>
<li><a href="add_book.php">Add Book</a></li>
<li><a href="edit_book.php">Edit Book</a></li>
<li><a href="delbook.php">Delete Book</a></li>
<li><a href="index.php">Logout</a></li>
</ul>
</div>
<br><br>
<div class="boxtwo" style="border:solid 1px #CF0403;border-radius: 10px; width:84%; height:360px; margin-left:9%;margin-top:10px;background-color:white">
<!-- <input type="text" placeholder="search by book id"><button type="button">search</button> -->
<p style="text-align:center;color:yellow;font-weight:bold">ALL BOOKS</p>
<div class="main">
<table>
<tr>
<th>Book ID</th>
<th>Book Name</th>
<th>Book Writter</th>
<th>Actual Copy</th>
<th>Available Copy</th>
<th>Depertment</th>
<th>Ebook Name</th>
</tr>
<?php
$data=mysqli_query($conn,"SELECT * FROM `book`");
while($row = mysqli_fetch_array($data))
{
echo "<tr>";
echo "<td>" ;echo $row["b_id"]; echo "</td>";
echo "<td>";echo $row["booksname"]; echo "</td>";
echo "<td>"; echo $row["authorname"]; echo "</td>";
echo "<td>"; echo $row["copies"]; echo "</td>";
echo "<td>"; echo $row["avl_cpy"]; echo "</td>";
echo "<td>"; echo $row["dept"]; echo "</td>";
echo "<td>"; echo $row["file_name"]; echo "</td>";
echo "</tr>";
}
?>
</table>
</div>
</div>
<div style="background-color:orange; border:solid 2px orange;border-radius: 10px; width:84%; height:40px; margin-left:9%; margin-top:15px" >
<marquee behavior="alternate" direction="right" loop="1" style="margin-right:38%" align="center"><h6 style="line-height:10px;"><p><font size="5"><I>Thank You For Using This System.</I></h6></marquee>
</div>
</body>
</html>