<html>
<head>
<title>{$site_name}</title>
<mets http-equiv=Content-Type content="text/html; charset=utf-8">
<link href="{$cssurl}/administrator.css" type=text/css rel=stylesheet>
{literal}
<script type="text/javascript">
  function checkForm() {
  name = document.getElementById("username").value;
  firstname = document.getElementById("firstname").value;
  
  if (username == "") {
  hideAllErrors();
document.getElementById("usernameError").style.display = "inline";
document.getElementById("username").select();
document.getElementById("username").focus();
  return false;
  } else if (firstname == "") {
hideAllErrors();
document.getElementById("firstnameError").style.display = "inline";
document.getElementById("firstname").select();
document.getElementById("firstname").focus();
  return false;
  }
  return true;
  }
 
  function hideAllErrors() {
document.getElementById("usernameError").style.display = "none"
document.getElementById("firstnameError").style.display = "none"
  }

</script>

<style>
  .error {
  font-family: Tahoma;
font-size: 8pt;
  color: red;
background-color: "#FFFF99";
font-weight: bold;
  margin-left: 5px;
  display:none;
  } 
</style>
{/literal}
</head>
<body>
<br>

<table width="90%" align="center" cellpadding="5" cellspacing="5">
<tr>
	<td>
    	<h3>Edit Member</h3>
    </td>
</tr>
<tr>
    <td colspan="2" height="1" bgcolor="#dfdfdf"></td>
</tr>
<table>

<form onSubmit="return checkForm();" action="listmembersedit.php" method="POST" enctype="multipart/form-data" name="form">
<table width="90%" align="center" cellpadding="5" cellspacing="5">
<tr>
	<td width="40%"><b>Username</b></td>
    <td>
    	<input type="text" id="username" name="username" value='{$member.username}' size="40"><br>
        <div align="center" class="error" id="usernameError">ERROR: Please enter a username.</div>
    </td>
</tr>
<tr>
    <td width="40%" valign="top"><b>First Name</b></td>
    <td>
    	<input type="text" id="firstname" name="firstname" value='{$member.firstname}' size="40"><br>
        <div class=error id=firstnameError>ERROR: Please enter the member firstname.<br></div>
    </td>
</tr>
<tr>
    <td width="40%" valign="top"><b>Last Name</b></td>
    <td>
    	<input type="text" id="lastname" name="lastname" value='{$member.lastname}' size="40">
    </td>
</tr>

<tr>
    <td width="40%" valign="top"><b>URL</b></td>
    <td>
    	<input type="text" id="url" name="url" value='{$member.url}' size="40">
    </td>
</tr>


<tr>
    <td width="40%" valign="top"><b>Featured</b></td>
    <td>
    	<input type="radio" id="featured" name="featured" value="0" {if $member.featured eq "0"}checked{/if}>No
        <input type="radio" id="featured" name="featured" value="1" {if $member.featured eq "1"}checked{/if}>Yes
    </td>
</tr>

<tr>
    <td width="40%" valign="top"><b>Gender</b></td>
    <td>
    	<input type="radio" id="gender" name="gender" value="0" {if $member.gender eq "0"}checked{/if}>Female
        <input type="radio" id="gender" name="gender" value="1" {if $member.gender eq "1"}checked{/if}>Male
    </td>
</tr>


<tr>
    <td width="40%" valign="top"><b>Status</b></td>
    <td>
    	<input type="radio" id="status" name="status" value="0" {if $member.status eq "0"}checked{/if}>InActive
        <input type="radio" id="status" name="status" value="1" {if $member.status eq "1"}checked{/if}>Active
    </td>
</tr>


<tr>
    <td width="40%" valign="top"><b>Family Filter</b></td>
    <td>
    	<input type="radio" id="familyfilter" name="familyfilter" value="0" {if $member.familyfilter eq "0"}checked{/if}>Off
        <input type="radio" id="familyfilter" name="familyfilter" value="1" {if $member.familyfilter eq "1"}checked{/if}>On
    </td>
</tr>


<tr>
        <td colspan="2" align='center'>
        <input type="hidden" id="USERID" name="USERID" value='{$member.USERID}' size="40">
        <input type='submit' name='edit_member' value='Submit'></td>
</tr>
<tr>
        <td colspan="2">&nbsp;</td>
</tr>
</table>
</form>

</body>
</head>
</html>