<?php /* Smarty version 2.6.2, created on 2012-02-14 16:56:52
         compiled from editprofile.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '
<script>
function checkeditform()
{
var d = document.editform;
if(d.email.value == \'\') {
alert(\'Please Enter your e-mail!\');
d.email.focus();
return false;
}
if((d.password.value || d.password2.value ) && d.password.value != d.password2.value) {
alert(\'Passwords do not match\');
d.password.focus();
return false;
}
return true;
}
</script>
'; ?>

<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td valign="middle"><div class="maintitle1" align="left"><img src="images/t_pl.png" width=11 height=24 align="left"><div class="maintitle_text" align="left">Member Area</div></div></td></tr>
<tr><td class="main_line"><img src="images/spacer.gif" height=3></td></tr>
<tr><td><div class="list_side">
<?php if ($this->_tpl_vars['frm']['say'] == 'changed'): ?><p align="center"><b style="color:green">Your info have been successfully updated!</b></p><?php endif; ?>
<form method="post" name="editform" onsubmit="return checkeditform()">
<input type="hidden" name="a" value="editprofile">
<input type="hidden" name="action" value="save">

<table cellspacing="2" cellpadding="2" border="0" width="85%">
<tr><td align="left">Username: </td>
<td align="left"><b><?php echo $this->_tpl_vars['userinfo']['username']; ?>
</b></td></tr>

<tr><td align="left">* E-mail: </td>
<td align="left"><input type="text" name="email" value="<?php echo $this->_tpl_vars['userinfo']['email']; ?>
" class="inpts" size="30"></td></tr>

<tr><td align="left">Password <small style="color:red"><i>(only specify if you want to change)</i></small>: </td>
<td align="left"><input type="password" name="password" class="inpts" size="30"></td></tr>

<tr><td align="left">Password again: </td>
<td align="left"><input type="password" name="password2" class="inpts" size="30"></td></tr>
<tr><td>&nbsp;</td>
<td align="left"><input type="submit" value=" Edit " class="sbmt"></td></tr>
</table>
</form>
</div></td></tr></table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>