{include file='header.tpl' no_index='1' p="upload"} 
<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.upload_video}</h1>
		<br />
		
		{if $success == 1}
			<div class="confirm_send">
			{$lang.suggest_msg4}
			<br />
			 
			<a href="upload.{$smarty.const._FEXT}">{$lang.add_another_one}</a> | <a href="index.{$smarty.const._FEXT}">{$lang.return_home}</a>
			
			</div>
		{elseif $success == 2}
			<div class="confirm_send">
			{$lang.upload_errmsg11}
			<br />
			<a href="index.{$smarty.const._FEXT}">{$lang.return_home}</a>
			</div>
		{else}
		<form id="upload-video-form" enctype="multipart/form-data" 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}>{$lang.upload_video1}</td>
            <td width="75%">
			<input type="file" name="mediafile" value="" size="60" class="inputtext" />
			<input type="hidden" name="MAX_FILE_SIZE" value="{$max_file_size}" />
			 <br />
			 <span class="small-print">
			 Maximum: {$upload_limit}<br />
			*.flv,*.mp4,*.wmv,*.mov,*.divx,*.avi,*.mkv, *.asf,<br /> *.wma, *.mp3, *.m4v, *.m4a, *.3gp, *.3g2<br />
			 </span>
			 <br />
			 <span class="small-warning">{$errors.mediafile}</span>
			 </td>
          </tr>
		  <tr>
            <td width="25%" valign="top" class="input-warning" {if $errors.name != ''}{/if}>{$lang.upload_video2}</td>
            <td width="75%">
			<input type="file" name="capture" value="" size="60" class="inputtext" />
			<input type="hidden" name="MAX_FILE_SIZE" value="{$max_file_size}" />
			 <br />
			 <span class="small-print">
				*.jpg, *.jpeg, *.gif, *.png<br />
			 </span>
			 <br />
			 <span class="small-warning">{$errors.capture}</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"></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}" />
			<span id="uploading_gif">
			</span>
			</td>
          </tr>
        </table>
		</form>
		{/if}
		</td>
        </tr>
	</table>
	</div>	
	</td>
  </tr>
</table>
{include file='footer.tpl'} 