{include file='header.tpl' no_index='1' p="general"} 
<br />
<table width="886" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="150" valign="top">
	<div id="reg_box">
	<h3 class="captions">{$lang.genre}</h3>
		<div id="list_cats">
		{list_categories}		
		</div>
	</div>
	<br />
	<div id="reg_box">
	<h3 class="captions">{$lang.members}</h3>
	{if $logged_in == '1'}
	{include file='loggedin_body.tpl'} 
	{else}
	{include file='login_body.tpl'} 
	{/if}
	</div>	
	</td>
    <td valign="top">
	<div id="content_index">
	<table width="100%" border="0" cellspacing="1" cellpadding="3">
      <tr>
        <td valign="top"><h1 class="h1_default">{$lang.update_avatar}</h1>
		<p>{$lang.ua_msg1}</p>
		</td>
        <td width="100" align="center" valign="top"><span class="avatar_border"><img src="{$avatar}" border="0" alt="Avatar" /></span></td>
      </tr>
    </table>
	{if !empty($err_msg)}
	<div class="confirm_send">
	{$err_msg} <br />

	<a href="{$smarty.const._URL}/profile.{$smarty.const._FEXT}?u={$s_username}" rel="nofollow">{$lang.return_to_profile}</a>

	</div>
	{else}	
	  <form method="post" action="{$smarty.const._URL}/upload_avatar.php" enctype="multipart/form-data"> 
	  <strong>{$lang.ua_msg2}:</strong><br /><br /> 
	  <input name="imagefile" type="file" class="inputtext" size="50" /> 
	  <br />
	  <input name="submit" type="submit" value="{$lang.submit_upload}" class="inputbutton">
	  </form> 
	{/if}
	</div>
	</td>
    <td width="250" valign="top">
	<div id="top_videos">
	<h3 class="captions">{$lang.top_m_videos}</h3>
	{$top_videos}
	</div>
	</td>
  </tr>
</table>
{include file='footer.tpl'} 