<?php /* Smarty version 2.6.20, created on 2011-11-30 10:10:21
         compiled from edit_profile.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'list_categories', 'edit_profile.tpl', 10, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array('p' => 'general')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 

<br />
<table width="886" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="150" valign="top">
	<div id="reg_box">
	<h3 class="captions"><?php echo $this->_tpl_vars['lang']['genre']; ?>
</h3>
		<div id="list_cats">
		<?php echo list_categories(array(), $this);?>
		
		</div>
	</div>
	<br />
	<div id="reg_box">
	<h3 class="captions"><?php echo $this->_tpl_vars['lang']['members']; ?>
</h3>
	<?php if ($this->_tpl_vars['logged_in'] == '1'): ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'loggedin_body.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
	<?php else: ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'login_body.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
	<?php endif; ?>
	</div>	
	</td>
    <td valign="top">
	<div id="content_index">
	<h1 class="h1_default"><?php echo $this->_tpl_vars['lang']['update_profile']; ?>
</h1>
		<?php if ($this->_tpl_vars['success'] == 1): ?>
		<h2><?php echo $this->_tpl_vars['lang']['ep_msg1']; ?>
</h2>
		<div class="confirm_send"><a href="<?php echo @_URL; ?>
/edit_profile.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['proceed']; ?>
</a></div>
		 
			<?php if ($this->_tpl_vars['changed_pass'] == 1): ?>
				<meta http-equiv="refresh" content="5;URL=<?php echo @_URL; ?>
" />
				<div class="confirm_send">
					<?php echo $this->_tpl_vars['lang']['ep_msg2']; ?>

				</div>
			<?php endif; ?>
		<?php else: ?>
		 <?php if ($this->_tpl_vars['errors']['failure'] != ''): ?>
		 	<span class="small-warning"><?php echo $this->_tpl_vars['errors']['failure']; ?>
</span>
		 <?php endif; ?>
		<form name="register-form" method="POST" action="<?php echo $this->_tpl_vars['form_action']; ?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="5">
		  <tr>
		    <td colspan="2" valign="top"><h2><?php echo $this->_tpl_vars['lang']['about_me']; ?>
</h2></td>
		    </tr>
		  <tr>
			<td colspan="2" valign="top">
			<small><?php echo $this->_tpl_vars['lang']['ep_msg3']; ?>
<br /></small>
			  <textarea name="aboutme" cols="50" rows="10" class="inputtext"><?php if (isset ( $_POST['aboutme'] )): ?><?php echo $this->_tpl_vars['inputs']['aboutme']; ?>
<?php elseif (isset ( $this->_tpl_vars['userdata']['about'] )): ?><?php echo $this->_tpl_vars['userdata']['about']; ?>
<?php endif; ?></textarea>		    </td>
			</tr>
		  <tr>
			<td colspan="2"><h2><?php echo $this->_tpl_vars['lang']['change_pass']; ?>
</h2></td>
		  </tr>
		  <tr>
			<td width="36%"><?php echo $this->_tpl_vars['lang']['existing_pass']; ?>
:</td>
			<td width="64%"><input name="pass" type="password" maxlength="32" class="inputtext" /><br />
			<?php if ($this->_tpl_vars['errors']['pass'] != ''): ?><span class="small-warning"><?php echo $this->_tpl_vars['lang']['ep_msg4']; ?>
</span><?php endif; ?></td>
		  </tr>
		  <tr>
			<td><strong><?php echo $this->_tpl_vars['lang']['new_pass']; ?>
</strong>:</td>
			<td><input name="new_pass" type="password" maxlength="32" class="inputtext" /><br />
			<small><?php echo $this->_tpl_vars['lang']['ep_msg5']; ?>
</small>			</td>
		  </tr>
		  <tr>
			<td colspan="2"><h2><?php echo $this->_tpl_vars['lang']['other_info']; ?>
</h2></td>
		  </tr>
		  <tr>
			<td <?php if ($this->_tpl_vars['errors']['email'] != ''): ?> class="input-warning" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['your_email']; ?>
:</td>
			<td><input type="text" name="email" class="inputtext" <?php if (isset ( $_POST['email'] )): ?>value="<?php echo $this->_tpl_vars['inputs']['email']; ?>
"<?php else: ?>value="<?php echo $this->_tpl_vars['userdata']['email']; ?>
"<?php endif; ?> /><br /><span class="small-warning"><?php echo $this->_tpl_vars['errors']['email']; ?>
</span></td>
		  </tr>		  
		  <tr>
			<td width="36%"><?php echo $this->_tpl_vars['lang']['your_name']; ?>
:</td>
			<td width="64%"><input name="name" type="text" class="inputtext" <?php if (isset ( $_POST['name'] )): ?>value="<?php echo $this->_tpl_vars['inputs']['name']; ?>
"<?php else: ?>value="<?php echo $this->_tpl_vars['userdata']['name']; ?>
"<?php endif; ?> /><br />		  </tr>
		  <tr>
			<td><?php echo $this->_tpl_vars['lang']['gender']; ?>
:</td>
    		<td>
			<select name="gender">
			<option value="male" <?php if ($this->_tpl_vars['inputs']['gender'] == 'male'): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['lang']['male']; ?>
</option>
			<option value="female"<?php if ($this->_tpl_vars['inputs']['gender'] == 'female'): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['lang']['female']; ?>
</option>
			</select>
		</td>			
		  </tr>
		  <tr>
			<td <?php if ($this->_tpl_vars['errors']['country'] != ''): ?> class="input-warning" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['country']; ?>
:</td>
			<td>
				<?php if ($this->_tpl_vars['show_countries_list']): ?>
				<select name="country" size="1" >
				<option value="-1"><?php echo $this->_tpl_vars['lang']['select']; ?>
</option>
					<?php $_from = $this->_tpl_vars['countries_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
					<option value="<?php echo $this->_tpl_vars['k']; ?>
" <?php if ($_POST['country'] == $this->_tpl_vars['k']): ?>selected<?php elseif ($this->_tpl_vars['userdata']['country'] == $this->_tpl_vars['k']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['v']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
				<br /><span class="small-warning"><?php echo $this->_tpl_vars['errors']['country']; ?>
</span>
				<?php endif; ?>	</td>
		  </tr>
		  <tr>
		  	<td><?php echo $this->_tpl_vars['lang']['my_favorites']; ?>
:			</td>
			<td>
				<input name="favorite" type="radio" value="1" <?php if (isset ( $_POST['favorite'] ) && $_POST['favorite'] == 1): ?>checked<?php elseif ($this->_tpl_vars['userdata']['favorite'] == 1): ?>checked<?php endif; ?>/> <?php echo $this->_tpl_vars['lang']['public']; ?>
 
				<input name="favorite" type="radio" value="0" <?php if (isset ( $_POST['favorite'] ) && $_POST['favorite'] == 0): ?>checked<?php elseif ($this->_tpl_vars['userdata']['favorite'] == 0): ?>checked<?php endif; ?>/> <?php echo $this->_tpl_vars['lang']['private']; ?>
			</td>
		  </tr>
		  <tr>
		    <td colspan="2" class="input-warning" <?php if ($this->_tpl_vars['errors']['website'] != ''): ?> <?php endif; ?>><h2><?php echo $this->_tpl_vars['lang']['profile_socialfootprint']; ?>
</h2></td>
		    </tr>
		  <tr>
			<td <?php if ($this->_tpl_vars['errors']['website'] != ''): ?> class="input-warning" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['profile_social_website']; ?>
:</td>
			<td><input type="text" name="website" class="inputtext" <?php if (isset ( $_POST['website'] )): ?>value="<?php echo $this->_tpl_vars['inputs']['website']; ?>
"<?php else: ?>value="<?php echo $this->_tpl_vars['userdata']['website']; ?>
"<?php endif; ?> />
			<br /><span class="small-warning"><?php echo $this->_tpl_vars['errors']['website']; ?>
</span></td>
		  </tr>	
		  <tr>
			<td <?php if ($this->_tpl_vars['errors']['facebook'] != ''): ?> class="input-warning" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['profile_social_fb']; ?>
:</td>
			<td><input type="text" name="facebook" class="inputtext" <?php if (isset ( $_POST['facebook'] )): ?>value="<?php echo $this->_tpl_vars['inputs']['facebook']; ?>
"<?php else: ?>value="<?php echo $this->_tpl_vars['userdata']['facebook']; ?>
"<?php endif; ?> />
			<br /><span class="small-warning"><?php echo $this->_tpl_vars['errors']['facebook']; ?>
</span></td>
		  </tr>	
		  <tr>
			<td <?php if ($this->_tpl_vars['errors']['twitter'] != ''): ?> class="input-warning" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['profile_social_twitter']; ?>
:</td>
			<td><input type="text" name="twitter" class="inputtext" <?php if (isset ( $_POST['twitter'] )): ?>value="<?php echo $this->_tpl_vars['inputs']['twitter']; ?>
"<?php else: ?>value="<?php echo $this->_tpl_vars['userdata']['twitter']; ?>
"<?php endif; ?> />
			<br /><span class="small-warning"><?php echo $this->_tpl_vars['errors']['twitter']; ?>
</span></td>
		  </tr>	
		  <tr>
			<td <?php if ($this->_tpl_vars['errors']['lastfm'] != ''): ?> class="input-warning" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['profile_social_lastfm']; ?>
:</td>
			<td><input type="text" name="lastfm" class="inputtext" <?php if (isset ( $_POST['lastfm'] )): ?>value="<?php echo $this->_tpl_vars['inputs']['lastfm']; ?>
"<?php else: ?>value="<?php echo $this->_tpl_vars['userdata']['lastfm']; ?>
"<?php endif; ?> />
			<br /><span class="small-warning"><?php echo $this->_tpl_vars['errors']['lastfm']; ?>
</span></td>
		  </tr>	
		  <tr>
			<td>&nbsp;</td>
			<td><input type="submit" name="save" value="<?php echo $this->_tpl_vars['lang']['submit_save']; ?>
" class="inputbutton" /></td>
		  </tr>
		</table>
		</form>
		<?php endif; ?>
	</div>
	</td>
    <td width="250" valign="top">
	<div id="top_videos">
	<h3 class="captions"><?php echo $this->_tpl_vars['lang']['top_m_videos']; ?>
</h3>
	<?php echo $this->_tpl_vars['top_videos']; ?>

	</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);
 ?> 