-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathissuehistory.php
191 lines (161 loc) · 7.43 KB
/
issuehistory.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
<?php include("conecton.php"); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GNDPC | Library</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.2 -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body class="skin-blue">
<!-- Site wrapper -->
<div class="wrapper">
<?php include('header.php'); ?>
<?php include('sidebar.php'); ?>
<!-- =============================================== -->
<!-- Right side column. Contains the navbar and content of the page -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Book Bank
<small>All Details</small>
</h1>
<ol class="breadcrumb">
<li><a href="Dashboard.php"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">Bank</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Book Center</h3>
<div class="box-tools pull-right">
<button class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button>
</div>
</div>
<div class="box-body">
<div class="box">
<div class="box-header">
</div><!-- /.box-header -->
<div class="box-body">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>Name</th>
<th>Date</th>
<th>ISBN</th>
<th>User</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
$get_books="SELECT * FROM book_issue ";
$get_books_query=mysqli_query($conn,$get_books);
$get_purchase_num=mysqli_num_rows($get_books_query);
if ($get_purchase_num != 0) {
$get_books_fetch=mysqli_fetch_array($get_books_query);
do
{
$date=$get_books_fetch['date'];
$username=$get_books_fetch['username'];
$ISBN=$get_books_fetch['ISBN'];
$get_name="SELECT * from bookbank where ISBN='$ISBN'";
$get_name_q=mysqli_query($conn,$get_name);
$get_name_f=mysqli_fetch_array($get_name_q);
$Name=$get_name_f['Name'];
$Purpose=$get_books_fetch['Purpose'];
// $dateObj = DateTime::createFromFormat('!m', $Month);
// $Month = $dateObj->format('F'); // Month Name
echo '<tr>
<td>'.$Name.'</td>';
echo '<td>'.$date.'</td>
<td>'.$ISBN.'</td>
<td>'.$username.'</td>
<td>'.$Purpose.'</td>';
echo '</tr>';
}
while ($get_books_fetch=mysqli_fetch_array($get_books_query));
}
else
{
echo "There is NO record";
}
?>
</tbody>
<tfoot>
<tr>
<th>Name</th>
<th>Author's Name</th>
<th>ISBN</th>
<th>User</th>
<th>Status</th>
</tr>
</tfoot>
</table>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div><!-- /.box-body -->
<div class="box-footer text-center">
<b>Enjoy</b>
</div><!-- /.box-footer-->
</div><!-- /.box -->
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 1.0
</div>
<strong>Copyright © 2017-2018 <a href="http://webinfoera.com">Web InfoERA</a>.</strong> All rights reserved.
</footer>
</div><!-- ./wrapper -->
<!-- jQuery 2.1.3 -->
<script src="plugins/jQuery/jQuery-2.1.3.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<!-- DATA TABES SCRIPT -->
<script src="plugins/datatables/jquery.dataTables.js" type="text/javascript"></script>
<script src="plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script>
<!-- SlimScroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<!-- FastClick -->
<script src='plugins/fastclick/fastclick.min.js'></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js" type="text/javascript"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js" type="text/javascript"></script>
<!-- page script -->
<script type="text/javascript">
$(function () {
$("#example1").dataTable();
$('#example2').dataTable({
"bPaginate": true,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": true,
"bAutoWidth": false
});
});
</script>
</body>
</html>