-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhamid_payment_data.php
225 lines (142 loc) · 3.57 KB
/
hamid_payment_data.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?php
session_start();
/*if( !$_SESSION['password']){
header('location:admin.php?log=please enter username and password !!');
}
*/
?>
<!doctype html>
<html>
<head>
<style>
body{
margin:0;
padding:0;
background:#E6E6FA;
}
#header{
background:#008080;
height:160px;
margin-top:-15px;
}
#header h2{
margin-left:150px;
color:white;
margin-top:15px;
padding:10px;
font-size:40px;float: left;
}
#header form{
margin-left:800px;
margin-top:20px;
}
#raju h1{
text-align:center;
color:red;col
}
#footer{
height:300px;
background:#008080;
margin-top:1000px;
}
#footer td{
margin-left:100px;
}
#contact{
float:left;
width:400px;
}
#contact h2{
border-bottom:1px solid black;
}
#social{
float:left;
width:400px;
}
#social h2{
border-bottom:1px solid black;
}
#About{
float:left;
width:400px;
}
#About h2{
border-bottom:1px solid black;
}
#About p{
background:white;
padding:15px;
}
#date h3{
float:left;
padding:15px;
margin-bottom:10px;
}
.alert alert-success{
background:red;
}
</style>
</head>
<body>
<?php if(isset($_GET['deleted'])){ ?>
<div class="alert alert-success">
<strong>Success!</strong> successfully deleted </div>
<?php } ?>
<font size='4' color='red' align="right" =""> <?php echo @$_GET['updated']; ?> </font>
<div id="header">
<h2> ADMIN PANEL</h2>
<h1> <a href="hamid_show.php"><font size='4' color='red' align="right"><b>Main admin page</b></a> </h1></font>
<!-- <h3> <a href="search.php"><font size='4' color='red' align="right" =""><b>Search data</b></a> </h3></font> -->
</div>
</header>
<div id="raju">
<h1><b>STUDENTS' PAYMENT LIST</b></h1>
</div>
<hr>
<table border="3" align="center" width="1000">
<tr align="center" bgcolor="yellow">
<th>Id</th>
<th>Name</th>
<th>Roll</th>
<th>Department</th>
<th>Account no</th>
<th>Heading of Account</th>
<th>Current year</th>
<th>Room number</th>
<th>Amount of taka</th>
<th>Date of submission</th>
</tr>
<tr >
<?php
$conn=mysqli_connect('localhost','root','','sessionpractical');
//$cal=mysql_select_db('semester',$conn);
$ans="select * from hamid_payment ;";
$run=mysqli_query($conn,$ans);
$i=1;
while($row=mysqli_fetch_array($run)){
$id=$row['Id'];
$account=$row['1'];
$heading=$row['2'];
$name=$row['3'];
$roll=$row['4'];
$dept=$row['5'];
$year=$row['6'];
$room=$row['7'];
$date=$row['9'];
$amount=$row['8'];
?>
<td bgcolor="chocolate"> <?php echo $i;$i++; ?></td>
<td bgcolor="chocolate"><?php echo $name; ?></td>
<td bgcolor="chocolate"><?php echo $roll; ?></td>
<td bgcolor="chocolate"><?php echo $dept; ?></td>
<td bgcolor="chocolate"><?php echo $account; ?></td>
<td bgcolor="chocolate"><?php echo $heading; ?></td>
<td bgcolor="chocolate"><?php echo $year; ?></td>
<td bgcolor="chocolate"><?php echo $room; ?></td>
<td bgcolor="chocolate"><?php echo $date; ?></td>
<td bgcolor="chocolate"><?php echo $amount; ?></td>
</tr>
<?php } ?>
</table><br><br><br>
</body>
</html>