<?
// ######################################################################
// list for users table
// Built with ListBuilder by Mauricio Giraldo Mutis
// http://www.bymurdock.com
// This class was built on: 03/22/2009 09:03:39
// ClassBuilder classes requires ConDB v.1.1 or later
// Class builder is Open Source, but for copyright issues, please keep
// this copy on any class that uses it.
// (R) 2005
// ######################################################################
require "framework.php";
$db_users = new users;
$db_users->get_all();
?>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><? include("top.php")?></td>
</tr>
<tr>
<td bgcolor="#000000"><? include("menu.php");?></td>
</tr>
<tr>
<td>
<!--Start Content-->
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr id="listInsert">
<td colspan="6"><a href="index.php?load=users.do&do=insert">Add a new user</a></td>
</tr>
<tr id="listPager">
<td colspan="6"><?$db_users->pages()?></td>
</tr>
<tr id="listHeader">
<td width="18%">User full name</td>
<td width="22%">User email (Login)</td>
<td width="19%">User password</td>
<td width="15%">User status</td>
<td colspan="2" align="center">Edit/Delete user</td>
</tr>
<? while($db_users->load()){?>
<tr id="listRow">
<td><?=$db_users->get_user_name()?></td>
<td><?=$db_users->get_user_email()?></td>
<td><?=$db_users->get_user_password()?></td>
<td>
<?
if($db_users->get_user_status()==1) print "Active";
else print "Inactive";
?>
</td>
<td width="12%" align="center"><a href="index.php?load=users.do&do=edit&id=<?=$db_users->get_user_id()?>">Edit</a></td>
<td width="14%" align="center">
<?
if($db_users->get_user_type() !=1)
{
?>
<a href="index.php?load=users.do&do=delete&id=<?=$db_users->get_user_id()?>">Delete</a>
<?
}
?>
</td>
</tr>
<? }?>
</table>
<!--End Content-->
</td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainText">
<tr>
<td width="100%" align="center"><? include("bottom.php")?></td>
</tr>
</table></td>
</tr>
</table>
<?
$db_users->close();
?>