<?
/*
* Exemplar Web hosting
* http://www.exemplar.biz
*
* Title: PHP Online Invoice System
* Version: 2.0
* Author: Exemplar
* Date: 01-01-2006
*
*/
include('header.php');
?>
<blockquote>
<h1>System Administrators</h1> <a href=editadmin.php>Add an Administrator</a>
<?
echo "<table border=1 cellspacing=3 cellpadding=2 bordercolor=cccccc>";
echo "<tr><td><b>login name</b></td><td><b>email</b></td></tr>";
$result = mysql_query("SELECT * FROM admins",$db);
while ($row = mysql_fetch_array($result))
{
$id = $row["adminid"];
$name = $row["name"];
$email = $row["email"];
if ($alternate == "1") {
$color = "#ffffff";
$alternate = "2";
}
else {
$color = "#dedede";
$alternate = "1";
}
echo "<tr valign=top bgcolor=$color><td><b>$name</b></td><td>$email</td></td>";
echo "<td>[ <a href=editadmin.php?id=$id>edit</a> ]</td><td>[ <a href=deleteadmin.php?id=$id onClick=\"return confirm('Are you sure you want to delete this admin?')\">delete</a> ]</td></tr>";
}
echo "</table>";
?>
</blockquote>
<?
include "footer.php";
?>