{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="suggest_page">
	<table width="100%" border="0" cellspacing="1" cellpadding="3">
      <tr>
        <td valign="top">
		<h1 class="h1_default">{$lang.suggest_new_video}</h1>
		<br />
		{if $success == 3}
			<div class="confirm_send">
			{$lang.suggest_msg1}
			</div>
		{/if}
		{if $success == 4}
			<div class="confirm_send">
			{$lang.suggest_msg2}
			</div>
		{/if}
		{if $success == 5}
			<div class="confirm_send">
			{$lang.suggest_msg3}
			</div>
		{/if}
		{if $success == 1}
			<div class="confirm_send">
			{$lang.suggest_msg4}
			<br />
			 
			<a href="suggest.{$smarty.const._FEXT}">{$lang.add_another_one}</a> | <a href="index.{$smarty.const._FEXT}">{$lang.return_home}</a>
			
			</div>
		{else}

		<form name="suggest-form" method="post" action="{$form_action}">
		<table width="100%" border="0" cellspacing="1" cellpadding="5">
          <tr>
            <td width="25%" valign="top" class="input-warning" {if $errors.name != ''} {/if}>Video URL</td>
            <td width="75%">
			<select name="" id="pm_sources" size="1" >
				<option selected="selected">{$lang.select}</option>
				{foreach from=$sources key=k item=v}
				  <option value="{$v.url_example}">{$v.source_name|capitalize}</option>
				{/foreach}
			</select>
			<input type="text" name="yt_id" value="{$smarty.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">{$errors.yt_id}</span>
			 </td>
          </tr>
          <tr>
            <td valign="top" class="input-warning" {if $errors.category != ''} {/if}>{$lang.category}:</td>
            <td>
			{$categories_dropdown}
			<br /><span class="small-warning">{$errors.category}</span>
			</td>
          </tr>
          
          <tr>
            <td valign="top" class="input-warning" {if $errors.artist != ''} {/if}>{$lang.artist}:</td>
            <td><input name="artist" type="text" value="{$smarty.post.artist}" size="40" class="inputtext" />
                <br />
              <span class="small-warning">{$errors.artist}</span></td>
          </tr>
          <tr>
            <td valign="top" class="input-warning" {if $errors.video_title != ''} {/if}>{$lang.video}:</td>
            <td><input name="video_title" type="text" value="{$smarty.post.video_title}" size="40" class="inputtext" />
                <br />
              <span class="small-warning">{$errors.video_title}</span></td>
          </tr>
		  	
          <tr>
            <td valign="top" class="input-warning">{$lang.description}:</td>
            <td><textarea name="description" cols="60" rows="6">{if $smarty.post.description}{$smarty.post.description}{/if}</textarea></td>
          </tr>
		   <tr>
            <td valign="top" class="input-warning" {if $errors.tags != ''} {/if}>{$lang.tags}:</td>
            <td><input name="tags" type="text" value="{$smarty.post.tags}" maxlength="50" size="40" class="inputtext" />
                <br />
				<span class="small-print">{$lang.suggest_ex}</span>
				<br />
              <span class="small-warning">{$errors.tags}</span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input name="Submit" type="submit" class="inputbutton" id="Submit" value="{$lang.submit_send}" /></td>
          </tr>
        </table>
		</form>
		{/if}
		</td>
        </tr>
	</table>
	</div>	
	</td>
  </tr>
</table>
{include file='footer.tpl'} 