<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Avatar - <?=$ecms->settings['sitetitle']?></title>
<? include("themes/$ecms->theme/headerinclude.php"); ?>
</head>
<body>
<? include("themes/$ecms->theme/header.php"); ?>
<? if(!empty($error)) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
<tr>
<td class="thead">Error</td>
</tr>
<tr>
<td class="tcontents"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td><?=$error?></td>
</tr>
</table></td>
</tr>
</table>
<br />
<? } ?>
<form action="<? compileurl("usercp",array("avatar","upload")); ?>" method="post" enctype="multipart/form-data" name="form1">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
<tr>
<td class="thead">Avatar</td>
</tr>
<tr>
<td class="tcontents"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="50%"><div align="right">Current Avatar </div></td>
<td>
<? if($user->userinfo['avatar'] == "") { ?>
No Avatar Uploaded.
<? } else { ?>
<img src="/images/customavatars/<?=$user->userinfo['avatar']?>"><br>
<a href="<? compileurl("usercp",array("avatar","delete")); ?>">Delete</a>
<? } ?>
</td>
</tr>
<tr>
<td><div align="right">Upload Avatar </div></td>
<td><input name="avatar" type="file" id="avatar"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<button type="submit">Submit</button>
</div></td>
</tr>
</table></td>
</tr>
</table>
</form>
<? include("themes/$ecms->theme/footer.php"); ?>
</body>
</html>