{* 
//////
//    @version [ Wainuiomata ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
//////
//    hwdVideoShare Template System:::This template system uses the Smarty Template Engine. 
//    For full documentation, including syntax usage please refer to http://www.smarty.net 
//    or our website at http://www.hwdmediashare.co.uk   
//////
//    This file generates the display for the upload page (BASIC PHP METHOD). Use caution when editing, because you might
//    accidentally prevent the upload tool from working correctly.
//////
//    VARIABLES AVAILBLE IN THIS TEMPLATE FILE:                                        
//    -- TO BE ADDED
//////
*}

{include file='header.tpl'}

	<div id="recent-activities">
	<div class="app-box-header">
	<div class="app-box-header">
			<h2 class="expand app-box-title">{$smarty.const._HWDVIDS_TITLE_UPLOAD2}</h2>
	</div>
	</div>
<div class="standard">
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td>
        <div><b>{$smarty.const._HWDVIDS_INFO_LIMUPLD} {$maximum_upload}MB</b></div>
        <div>{$smarty.const._HWDVIDS_INFO_ALLUPLD} {$allowed_formats}</div>
        <br />
        {literal}
        <script type="text/javascript">
        extArray = new Array({/literal}{$allowedft}{literal});
        function LimitAttach(form, file) {
            allowSubmit = false;
            if (!file) return;
            while (file.indexOf("\\") != -1)
            file = file.slice(file.indexOf("\\") + 1);
            ext = file.slice(file.lastIndexOf(".")).toLowerCase();
            for (var ii = 0; ii < extArray.length; ii++) {
              if (extArray[ii] == ext) { allowSubmit = true; break; }
            }
            if (allowSubmit) return true;
            else
            alert("Please only upload files that end in types:  "
            + (extArray.join("  ")) + "\n\nPlease select a new "
            + "file to upload and submit again.");
            return false;
        }
        function checkform()
        {
            document.getElementById('basicindicator').style.visibility="visible";
            document.getElementById('basicindicator').style.padding="5px";
            document.getElementById('basicindicator').style.margin="5px 0 5px 0";
            document.getElementById('basicindicator').innerHTML = "{/literal}{$smarty.const._HWDVIDS_INFO_PROCESSINGWAIT}{literal}";
            document.getElementById('uploadButton').disabled=true;
        }
    </script>
        {/literal}
	<!-- Start Upload Form -->
	<form name="form_upload" method="post" enctype="multipart/form-data" action="{$PHPFORMURL}" style="margin: 0px; padding: 0px;" onsubmit="return checkform()">
	  {$PHPHIDDENINPUTS}		
	  <input type="file" name="upfile_0" size="40" value="" />
	  <div id="basicindicator"></div>
	  <noscript><br /><input type="submit" name="no_script_submit" id="uploadButton" value="Upload" /></noscript>
	  <br />
	  <script language="javascript" type="text/javascript">
	    <!--
	      document.writeln('<input type="submit" name="no_script_submit" id="uploadButton" onclick="return LimitAttach(this.form, this.form.upfile_0.value)" class="inputbox" value="{$smarty.const._HWDVIDS_BUTTON_UPLOAD}">');
	    //-->
	  </script>
	</form>		
	<!-- End Upload Form -->
      </td>
    </tr>
  </table>
</div>
	</div>

{include file='footer.tpl'}



