<?php /* Smarty version 2.6.20, created on 2012-03-22 06:08:13
         compiled from suggest.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'list_categories', 'suggest.tpl', 9, false),array('modifier', 'capitalize', 'suggest.tpl', 62, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array('no_index' => '1','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="suggest_page">
	<table width="100%" border="0" cellspacing="1" cellpadding="3">
      <tr>
        <td valign="top">
		<h1 class="h1_default"><?php echo $this->_tpl_vars['lang']['suggest_new_video']; ?>
</h1>
		<br />
		<?php if ($this->_tpl_vars['success'] == 3): ?>
			<div class="confirm_send">
			<?php echo $this->_tpl_vars['lang']['suggest_msg1']; ?>

			</div>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['success'] == 4): ?>
			<div class="confirm_send">
			<?php echo $this->_tpl_vars['lang']['suggest_msg2']; ?>

			</div>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['success'] == 5): ?>
			<div class="confirm_send">
			<?php echo $this->_tpl_vars['lang']['suggest_msg3']; ?>

			</div>
		<?php endif; ?>
		<?php if ($this->_tpl_vars['success'] == 1): ?>
			<div class="confirm_send">
			<?php echo $this->_tpl_vars['lang']['suggest_msg4']; ?>

			<br />
			 
			<a href="suggest.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['add_another_one']; ?>
</a> | <a href="index.<?php echo @_FEXT; ?>
"><?php echo $this->_tpl_vars['lang']['return_home']; ?>
</a>
			
			</div>
		<?php else: ?>

		<form name="suggest-form" method="post" action="<?php echo $this->_tpl_vars['form_action']; ?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="5">
          <tr>
            <td width="25%" valign="top" class="input-warning" <?php if ($this->_tpl_vars['errors']['name'] != ''): ?> <?php endif; ?>>Video URL</td>
            <td width="75%">
			<select name="" id="pm_sources" size="1" >
				<option selected="selected"><?php echo $this->_tpl_vars['lang']['select']; ?>
</option>
				<?php $_from = $this->_tpl_vars['sources']; 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['v']['url_example']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['v']['source_name'])) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp)); ?>
</option>
				<?php endforeach; endif; unset($_from); ?>
			</select>
			<input type="text" name="yt_id" value="<?php echo $_POST['yt_id']; ?>
" size="60" class="inputtext" />
			 <br /><span class="small-print">Example: <span id="pm_sources_ex"></span></span>
			 <br />
			 <span class="small-warning"><?php echo $this->_tpl_vars['errors']['yt_id']; ?>
</span>
			 </td>
          </tr>
          <tr>
            <td valign="top" class="input-warning" <?php if ($this->_tpl_vars['errors']['category'] != ''): ?> <?php endif; ?>><?php echo $this->_tpl_vars['lang']['category']; ?>
:</td>
            <td>
			<?php echo $this->_tpl_vars['categories_dropdown']; ?>

			<br /><span class="small-warning"><?php echo $this->_tpl_vars['errors']['category']; ?>
</span>
			</td>
          </tr>
          
          <tr>
            <td valign="top" class="input-warning" <?php if ($this->_tpl_vars['errors']['artist'] != ''): ?> <?php endif; ?>><?php echo $this->_tpl_vars['lang']['artist']; ?>
:</td>
            <td><input name="artist" type="text" value="<?php echo $_POST['artist']; ?>
" size="40" class="inputtext" />
                <br />
              <span class="small-warning"><?php echo $this->_tpl_vars['errors']['artist']; ?>
</span></td>
          </tr>
          <tr>
            <td valign="top" class="input-warning" <?php if ($this->_tpl_vars['errors']['video_title'] != ''): ?> <?php endif; ?>><?php echo $this->_tpl_vars['lang']['video']; ?>
:</td>
            <td><input name="video_title" type="text" value="<?php echo $_POST['video_title']; ?>
" size="40" class="inputtext" />
                <br />
              <span class="small-warning"><?php echo $this->_tpl_vars['errors']['video_title']; ?>
</span></td>
          </tr>
		  	
          <tr>
            <td valign="top" class="input-warning"><?php echo $this->_tpl_vars['lang']['description']; ?>
:</td>
            <td><textarea name="description" cols="60" rows="6"><?php if ($_POST['description']): ?><?php echo $_POST['description']; ?>
<?php endif; ?></textarea></td>
          </tr>
		   <tr>
            <td valign="top" class="input-warning" <?php if ($this->_tpl_vars['errors']['tags'] != ''): ?> <?php endif; ?>><?php echo $this->_tpl_vars['lang']['tags']; ?>
:</td>
            <td><input name="tags" type="text" value="<?php echo $_POST['tags']; ?>
" maxlength="50" size="40" class="inputtext" />
                <br />
				<span class="small-print"><?php echo $this->_tpl_vars['lang']['suggest_ex']; ?>
</span>
				<br />
              <span class="small-warning"><?php echo $this->_tpl_vars['errors']['tags']; ?>
</span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input name="Submit" type="submit" class="inputbutton" id="Submit" value="<?php echo $this->_tpl_vars['lang']['submit_send']; ?>
" /></td>
          </tr>
        </table>
		</form>
		<?php endif; ?>
		</td>
        </tr>
	</table>
	</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);
 ?> 