{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>

{/block}
{block name=body}
<h1 align="center"><font size="5px">{if $userId > 0} Edit {else} Entry {/if} User</font></h1>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="userId" value="{$userId}" id="userId"/>
<table align="center" border="0">
<tr>	
	<th>User Name : </th>
	<td><input type="text" name="userName" value="{$userArray.userName}" autofocus="autofocus" required />
</tr>
<tr>
	<th>Password : </th>
	<td><input type="password" name="password" value="{$userArray.password}" required />
</tr>
<tr>
	<th>UserType : </th>
	<td>
		<select name="userType">
			<option value="0">Select User Type</option>
			{html_options values=$userTypeArray  output=$userTypeArray selected=$userArray.userType}
		</select>
	</td>
</tr> 
<tr>
	<th colspan="2" align="center">
		<input type="submit" name="submitButton" value="Submit" />
	</th>
</tr>
</table>
{/block}