<?php /* Smarty version 2.6.2, created on 2012-07-06 15:10:58
         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);
 ?>
<div id="left-col"><div id="nav">
<ul><li><a name="member">Edit Porfile Form</li></ul>
</div>
<div id="content">

<?php 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><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 action="/index.html"  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>
</div>
<div id="footer"></div> 
</div>
<?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);
 ?>