-
Notifications
You must be signed in to change notification settings - Fork 7
/
account_view.php
51 lines (48 loc) · 1.16 KB
/
account_view.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
<?php
$id =$_SESSION['id'];
$result = query("SELECT * FROM account LEFT JOIN acct_type ON account.acct_type=acct_type.id WHERE emp_id='$id'");
if(mysql_num_rows($result) < 1){
echo "<h2>Account information unavailable</h2>";
}
else{
while ($row = mysql_fetch_array($result)) {
$acct_type = $row['name'];
$acct_no = $row['acct_no'];
$balance = $row['balance'];
$d_opened = $row['d_opened'];
$duration = $row['duration'];
?>
<div class="box">
<div class="box-header">
</div><!-- /.box-header -->
<div class="box-body no-padding">
<table class="table table-condensed">
<tr>
<th>Account Type</th>
<td><?php echo $acct_type;?></td>
</tr>
<tr>
<th>Account No</th>
<td><a href="index.php?page=dep_witd&id=<?php echo $acct_no; ?>"><?php echo $acct_no; ?></a></td>
</tr>
<tr>
<th>Balance</th>
<td><?php echo $balance; ?></td>
</tr>
<tr>
<th>Created</th>
<td>
<?php echo $d_opened; ?>
</td>
<th>valid till</th>
<td>
<?php echo $duration; ?>
</td>
</tr>
</table>
</div><!-- /.box-body -->
</div>
<?php
}
}
?>