| Current Path : /var/www/cesa.co.za/members/saaceadmin/ |
| Current File : /var/www/cesa.co.za/members/saaceadmin/index.php4 |
<html>
<head>
<title>SAACE: Administration page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<h3><font face="Comic Sans MS" size="2">SAACE Administration Page</font></h3>
</td>
</tr>
<tr>
<td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
<tr>
<td width="53%" bgcolor="#0000FF"><font face="Comic Sans MS" size="2"><b>New
Links</b></font></td>
<td width="47%" bgcolor="#0000FF"><font face="Comic Sans MS" size="2"><b>Old
Links</b></font></td>
</tr>
<tr>
<td width="53%" align="left" valign="top">
<ul>
<li><a href="manageAdvisory.php4">Manage Advisory Notes</a></li>
<li><a href="manageLinks.php4">Manage Links</a></li>
<li><a href="http://application:8080/annualdec">Manage Annual Declarations</a></li>
</ul>
</td>
<td width="47%"> <font face="Comic Sans MS" size="2">
<?php
switch ($action) {
case 1 :
if (strlen($email) <= 2) { } else {
include('../inc/conf.inc');
include('../inc/db.inc');
$sql = "SELECT ContactSurname AS sn,
ContactInitials AS init,
ContactFirstName AS fn,
ContactDesignation AS de,
ContactsID AS id,
PreferredEmail AS email
FROM Contacts WHERE PreferredEmail LIKE '%$email%'";
//echo $sql;
$result = mysql_query($sql);
$result_rows = mysql_num_rows($result);
?>
</font>
<p><font face="Comic Sans MS" size="2"> Showing
<?php echo $result_rows; ?>
record(s). Please be as specific as you can when searching to reduce
the number of results. </font></p>
<table width="100%" border="1" cellpadding="1" cellspacing="0">
<?php
while($row=mysql_fetch_array($result)) {
echo "<tr>";
echo "<td valign=\"top\">".$row["de"]." ".$row["fn"]." ".$row["init"]." ".$row["sn"]." (".$row["email"].")</td>";
echo "<form method=\"post\" action=\"register.php\"><td valign=\"top\"><input type=\"hidden\" name=\"id\" value=\"".$row["id"]."\"><input type=\"submit\" value=\"Register\"></td></form>";
echo "<form method=\"post\" action=\"unregister.php\"><td valign=\"top\"><input type=\"hidden\" name=\"id\" value=\"".$row["id"]."\"><input type=\"submit\" value=\"UnRegister\"></td></form>";
echo "<form method=\"post\" action=\"resetpw.php\"><td valign=\"top\"><input type=\"hidden\" name=\"id\" value=\"".$row["id"]."\"><input type=\"submit\" value=\"Reset Pwd\"></td></form>";
echo "</tr>\n\t\t\t";
}
?>
</table>
<font face="Comic Sans MS" size="2">
<?php
break;
}
default:
?>
</font>
<form method="post" action="<?php echo $PHP_SELF; ?>">
<font face="Comic Sans MS" size="2"> Find a client by email address
(minimum of 3 characters):
<input type="text" name="email">
<input type="hidden" name="action" value="1">
<br>
<input type="submit" value="search">
<input type="reset" value="clear">
</font>
</form>
<p><font face="Comic Sans MS" size="2"> Please note that there are
thousands of contacts in the system and if you are not specific
with your search criteria, the system will return a large number
of results and could take a long time. Please try and provide a
full email address when searching for the first time. If this does
not return a result, then try part of the email address. </font></p>
<p>
<ul>
<li><font face="Comic Sans MS" size="2"><a href="siteinfo.php">Memberzone
registration information</a> </font>
<li><font face="Comic Sans MS" size="2"><a href="documents.php">Downloadable
Document Information</a> </font>
<li><font face="Comic Sans MS" size="2"><a href="username.php">Get
a registered member's username (cannot get passwords)</a> </font>
<li><font face="Comic Sans MS" size="2"><a href="top20users.php">Top
20 most logged in users</a> </font>
</ul>
<font face="Comic Sans MS" size="2">
<?php
break;
} //end case
?>
</font></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>