-
Notifications
You must be signed in to change notification settings - Fork 0
/
acc_search_get.php
147 lines (100 loc) · 3.8 KB
/
acc_search_get.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
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="w3.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AUTO PANAL</title>
</head>
<body >
<?php include 'header.php';?>
<div class="w3-sidebar w3-bar-block w3-card w3-animate-left" style="display:none" id="mySidebar">
<button onclick="w3_close()" class="w3-bar-item w3-button w3-large">Close ×</button>
<a class="w3-bar-item w3-button" href="index.php">HOME</a>
<a class="w3-bar-item w3-button" href="dashboard.php">DASHBOARD</a>
<a class="w3-bar-item w3-button" href="logout.php">LOGOUT</a>
</div>
<div class="w3-container w3-animate-right" id="main">
<br/>
<div class="w3-container" >
<form action="" class="w3-card w3-padding-16 " method="GET" align="center">
<input type="hidden" name="new" value="1" />
<input class="w3-input w3-border" type="number" name="accnon" required placeholder="ENTER ACC NO:" ><br \><br \>
<div class="submitbtn">
<input type="submit" class="w3-btn w3-blue" name="" >
</div>
</form>
<br/>
<table class="w3-table-all w3-responsive">
<thead>
<tr class="w3-hover-grey w3-red">
<center><th>SI.NO</th></center>
<center><th>STUDENT PIN</th><center>
<center><th>ACC NO</th></center>
<center><th>BOOK NAME</th></center>
<center><th>AUTHOR</th></center>
<center><th>BOOK CATEGORY</th></center>
<center><th>PUBLISHER</th></center>
<center><th>PUBLISHED YEAR</th></center>
<center><th>EDITION</th></center>
<center><th>NO.OF PAGES</th></center>
<center><th>PRICE</th></center>
<center><th>RACK</th></center>
<center><th>STATUS</th></center>
<center><th>TAKEN DATE&TIME</th></center>
</tr>
</thead>
<tbody>
<?php
include 'db.php';
include("auth.php");
$accno="";
if(isset($_GET['accno']))
{
$count=1;
$pno=$_GET['accno'];
echo $pno;
$sel_query="Select * from bookdb WHERE no='$pno';";
$result = mysqli_query($con,$sel_query);
while($row = mysqli_fetch_assoc($result)) { ?>
<tr class="w3-hover-grey " align="center">
<td align="center"><b><?php echo $count;?></b></td>
<td align="center"><b><?php echo $row["pin"];?></b></td>
<td align="center"><b><?php echo $row["no"];?></b></td>
<td align="center"><b><?php echo $row["name"];?></b></td>
<td align="center"><b><?php echo $row["author"];?></b></td>
<td align="center"><b><?php echo $row["bookcategory"]; ?></b></td>
<td align="center"><b><?php echo $row["publisher"]; ?></b></td>
<td align="center"><b><?php echo $row["pyear"]; ?></b></td>
<td align="center"><b><?php echo $row["edition"]; ?></b></td>
<td align="center"><b><?php echo $row["pages"]; ?></b></td>
<td align="center"><b><?php echo $row["price"]; ?></b></td>
<td align="center"><b><?php echo $row["rack"]; ?></b></td>
<td align="center"><b><?php echo $row["status"]; ?></b></td>
<td align="center"><b><?php echo $row["date"];?></b></td>
<?php $count++; }?>
<?php if($count!=1){
echo '<h3 style="color:#ff0066;"><span class="blink_text">DATA FOUND<span></h3>';
}
else{echo '<h3 style="color:#ff0066;"><span class="blink_text">NO DATA FOUND<span></h3>';}
?>
<?php }?>
</tr>
</tbody></table>
<br/>
<?php include 'footer.php';?></div>
<script>
function w3_open() {
document.getElementById("main").style.marginLeft = "25%";
document.getElementById("mySidebar").style.width = "25%";
document.getElementById("mySidebar").style.display = "block";
document.getElementById("openNav").style.display = 'none';
}
function w3_close() {
document.getElementById("main").style.marginLeft = "0%";
document.getElementById("mySidebar").style.display = "none";
document.getElementById("openNav").style.display = "inline-block";
}
</script>
</div>
</body>
</html>