-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtable.php
183 lines (172 loc) · 8.01 KB
/
table.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
<?php include('server.php');
//IF user is not logged in,then you cannot access this page
if(empty($_SESSION['PAN'])){
header('location: login.php');
}
else{
if(((time() - $_SESSION['loggedin_time']) > $login_session_duration)){
unset($_SESSION['success']);
unset($_SESSION['PAN']);
header('location: login.php');
session_destroy();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="img/tax.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Tax Calculator and Submission</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
<!-- Fonts and icons -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
<!-- CSS Files -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="assets/css/light-bootstrap-dashboard.css?v=2.0.1" rel="stylesheet" />
<!-- CSS Just for demo purpose, don't include it in your project -->
<link href="assets/css/demo.css" rel="stylesheet" />
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-image="assets/img/sidebar-5.jpg">
<!--
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
Tip 2: you can also add an image using data-image tag
-->
<div class="sidebar-wrapper">
<div class="logo">
<a href="index.php" class="simple-text">
Tax Calculator and Submission
</a>
</div>
<ul class="nav">
<li>
<a class="nav-link" href="dashboard.php">
<i class="nc-icon nc-chart-pie-35"></i>
<p>Dashboard</p>
</a>
<li>
<a class="nav-link" href="user.php">
<i class="nc-icon nc-circle-09"></i>
<p>User Profile</p>
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">
<i class="nc-icon nc-paper-2"></i>
<p>Previous Returns</p>
</a>
</li>
<li >
<a class="nav-link" href="calculator.php">
<i class="nc-icon nc-icon nc-notes"></i>
<p>File Return</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg " color-on-scroll="500">
<div class=" container-fluid ">
<a class="navbar-brand" href="#"> Previous Returns</a>
<button href="" class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-bar burger-lines"></span>
<span class="navbar-toggler-bar burger-lines"></span>
<span class="navbar-toggler-bar burger-lines"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navigation">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="user.php">
<span class="no-icon">Account</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="dashboard.php?logout='1'">
<span class="no-icon">Log out</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card strpied-tabled-with-hover">
<div class="card-header ">
<h4 class="card-title">Previous Income Tax Return Details</h4>
</div>
<div class="card-body table-full-width table-responsive">
<table class="table table-hover table-striped">
<thead>
<th>Return ID</th>
<th>Transaction Id</th>
<th>catagory</th>
<th>residence</th>
<th>date</th>
<th>amount</th>
<th>View Return</th>
</thead>
<tbody>
<?php
$pan=$_SESSION['PAN'];
$con=mysqli_connect('localhost','root','','tax');
$q1="select * from bank where PAN='$pan' order by returnID desc";
$result=mysqli_query($con,$q1);
while ($row = $result->fetch_assoc()) {
?>
<tr>
<td><?php echo "RET".$row['returnID']; ?></td>
<td><?php echo $row['transID']; ?></td>
<td><?php echo $row['catagory']; ?></td>
<td><?php echo $row['residence']; ?></td>
<td><?php echo $row['date']; ?></td>
<td><?php echo " ₹".$row['tax15']; ?></td>
<td>
<form action="view_return.php" method="post">
<input type="hidden" name="view" value="<?php echo $row['returnID']; ?>">
<input type="submit" name="viewreturn" value="View Return" class="btn btn-success ">
<div class="clearfix"></div>
</form>
</td>
<!--<td><a href="view_return.php"><button class="btn btn-success">View Details</button></a></td>-->
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<nav>
<p class="copyright text-center">
Copyright © Tax Calculator And Submission 2018
</p>
</nav>
</div>
</footer>
</div>
</div>
</body>
<!-- Core JS Files -->
<script src="assets/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="assets/js/core/popper.min.js" type="text/javascript"></script>
<script src="assets/js/core/bootstrap.min.js" type="text/javascript"></script>
<!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
<script src="assets/js/plugins/bootstrap-switch.js"></script>
<!-- Control Center for Light Bootstrap Dashboard: scripts for the example pages etc -->
<script src="assets/js/light-bootstrap-dashboard.js?v=2.0.1" type="text/javascript"></script>
</html>