{extends file="./main.tpl"} 
{block name=head}
<script type="text/javascript"> 
function myFunction() 
{ 
  if(confirm("Are You Sure To Delete")== true)
  { 
    return true; 
  } 
  else 
  { 
  	return false; 
  }
} 
</script>
<style>
td{
   font-size: 130%;
}
</style>
{/block}
{block name=body}
<h1 align="center"><font size="5px">User List</font></h1>
<h1 align="center"><font size="5px"><a href="userEntry.php" style="text-decoration: none;">Add User </a></font></h1>
<table align="center" border="1">
<tr style="font-size:18px;">
  <th align="center">Delete</th>
  <th align="center">Edit</th>
  <th align="center">User Name</th>
  <th align="center">Password</th>
  <th align="center">User Type</th>
</tr>
{section name=rec loop=$userArray}
<tr style="font-size:13px;">
	<td class="table2" align="center">
	<a href="userDelete.php?userId={$userArray[rec].userId}" style="text-decoration: none;" onclick="return myFunction();">Delete</a>
	</td>
	<td class="table2" align="center">
    <a href="userEntry.php?userId={$userArray[rec].userId}" style="text-decoration: none;">Edit</a>
	</td>
  <td class="table2" align="center">{$userArray[rec].userName}</td>
  <td class="table2" align="center">{$userArray[rec].password}</td>
  <td class="table2" align="center">{$userArray[rec].userType}</td>
</tr> 
{/section} 
</table>
{/block}
{block name="head"}
<script type="text/javascript"> 
alert("You Can Not Open This Page");
</script>
{/block}
