-
Notifications
You must be signed in to change notification settings - Fork 0
/
memberlist.php
69 lines (58 loc) · 2.23 KB
/
memberlist.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
<?php session_start();?>
<!DOCTYPE html >
<html >
<head>
<?php
include("session/DBConnection.php");
$user = $_SESSION['log']['id_no'];
$query = mysql_query("SELECT * FROM members WHERE id_no = '$user'") or die (mysql_error());
$display = mysql_fetch_array($query); ?>
<title>Canvas - Administrator </title>
<link rel="shortcut icon" HREF="images/favicon.ico" />
<!-- CSS -->
<link href="admin_css/styles.css" rel="stylesheet" type="text/css" media="all" />
<link href="admin_css/violine.css" rel="stylesheet" type="text/css" media="all" />
</head>
<?php include("session/DBConnection.php");
include("session/session.php");
$error ="";
?>
<body>
<? include("admindata.php");?>
<!-- /Cols > 1 -->
<div class="col_3 design">
<div align="left" >
<table width="700" cellspacing="1" cellpadding="2" style="border-left: 1px solid #333;border-bottom: 1px solid #333;border-right: 1px solid #333;">
<tr>
<td>
<table width="800" cellspacing="1" cellpadding="2" border="0" bgcolor="#CCCCCC" style="width: 700px;"><tr>
<td align="left" style="background: #333; border: 1px solid #331;color:#fff; font-weight: bold; width: 400px;"><strong> New Canvas users</strong></td>
</tr>
<tr>
<?php
$result = mysql_query("SELECT * FROM members WHERE confirmation = '1' AND type != 'Admin' ORDER BY member_id DESC LIMIT 5");
while($row = mysql_fetch_array($result))
{?>
<td align="center" bgcolor="#FFFFFF" width="350"><a href="memberinfo2.php?id=<?php echo $row["member_id"]; ?>" valign="top">
<img style="padding-top: 15px; border-width: 0px; margin-left: 20px;" align="left" width=50 height=50 alt="Unable to View" src="<?php echo $row["image"]; ?> ">
</a><br /> <span style="text-transform:capitalize; margin-right: 0px; text-decoration: none;">
<a href="memberinfo2.php?id=<?php echo $row["member_id"]; ?>" style="margin-left: -272px;"> <?php echo $row['firstname'] . " " . $row['lastname']; ?>
</a></span> <span style="text-transform: capitalize; margin-right: 0px; text-decoration: none; margin-left: 30px;"> Registered as <?php echo $row['type']?></span></td>
</tr>
<?php
}
?>
</table>
</td>
</tr><br />
</table>
</div>
</div>
<!-- /Cols > 3 -->
<br class="clear" />
</div>
<!-- /content of main -->
</div>
<!-- /MAIN -->
</body>
</html>