-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.php
81 lines (66 loc) · 2.38 KB
/
dashboard.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
<?php
session_start();
error_reporting(0);
include('includes/connect.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{?>
<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8" />
<title>Online Library Management System | User Dash Board</title>
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
<?php include('includes/header.php');?>
<div class="content-wrapper">
<div class="container">
<div class="row pad-botm">
<div class="col-md-12">
<h4 class="header-line">USER DASHBOARD</h4>
</div>
</div>
<div class="row">
<div class="col-md-3"> </div>
<div class="col-md-3 col-sm-3 col-xs-6">
<div class="alert alert-info back-widget-set text-center">
<i class="fa fa-bars fa-5x"></i>
<?php
$sid=$_SESSION['stdid'];
$sql ="SELECT id FROM tblissuedbookdetails WHERE StudentID='$sid'";
$query1 = mysqli_query($connect,$sql);
$issuedbooks = mysqli_num_rows($query1);
?>
<h3><?php echo htmlentities($issuedbooks);?> </h3>
Book Issued
</div>
</div>
<div class="col-md-3 col-sm-3 col-xs-6">
<div class="alert alert-success back-widget-set text-center">
<i class="fa fa-recycle fa-5x"></i>
<?php
$return=0;
$sql2 ="SELECT id from tblissuedbookdetails where StudentID='$sid' and ReturnStatus='$return'";
$query2 = mysqli_query($connect,$sql2);
$returnedbooks= mysqli_num_rows($query2);
?>
<h3><?php echo htmlentities($returnedbooks);?></h3>
Books Not Returned Yet
</div>
</div>
</div>
</div>
</div>
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.10.2.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/custom.js"></script>
</body>
</html>
<?php } ?>