<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加文件下载{#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript">	
var webroot_url = '{#$base_weburl#}';
	function submitFun()
	{
		var iddow_name 		= document.getElementById('dow_name');
		var iddow_size 			= document.getElementById('dow_size');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(iddow_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：文件名称不能为空！请输入！';
			iddow_name.focus();
			return false;
		}else if(iddow_size.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：文件地址不能为空！请输入！';
			iddow_size.focus();
			return false;
		}
		document.formSub.action='{#$base_weburl#}/adminsys/index.php?load=download&act=addinfo';
		document.formSub.target="_self"
		document.formSub.submit();
		
	}
	
	function upLoadFile( strkey )
	{
		 
		if(strkey >0 ){
			document.formSub.target="hidden_frame["+strkey+"]"; 
			//document.formSub.target="_blank";
			document.formSub.action='{#$employee_weburl#}/index.php?load=uploadfile&act=upload&upLoadName=upfile&getUrl=pro_img['+strkey+']&strkey='+strkey+'&lodingDiv=lodingdiv['+strkey+']';
			document.formSub.submit(); 
			document.getElementById("lodingdiv["+strkey+"]").style.display="";
			document.getElementById("lodingdiv["+strkey+"]").innerHTML="<img src=\"{#$base_weburl#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";
		}else{
			document.formSub.target="hidden_frame"
			document.formSub.action='{#$employee_weburl#}/index.php?load=uploadfile&act=upload&upLoadName=upfile&getUrl=pro_img';
			document.formSub.submit(); 
			document.getElementById("lodingdiv").style.display="";
			document.getElementById("lodingdiv").innerHTML="<img src=\"{#$base_weburl#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";
		}

	}
	
	
	function hiddenLoding(strkey)
	{
		if(strkey >0 ){
			document.getElementById("lodingdiv["+strkey+"]").style.display="none";
			document.getElementById("lodingdiv["+strkey+"]").innerHTML="";
			document.getElementById("pro_img["+strkey+"]").value="";
			document.getElementById("upfile["+strkey+"]").value="";
		}else{
			document.getElementById("lodingdiv").style.display="none";
			document.getElementById("lodingdiv").innerHTML="";
			document.getElementById("pro_img").value="";
			document.getElementById("upfile").value="";
		}
	}
	
</script>

</head>
<body onload="hiddenLoding()">

<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr><td>

<table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php?load=download&act=infolist"><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">文件下载</a> |添加文件下载</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_download-add.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr>
<td>
<div class="list">
<form action="{#$base_weburl#}/adminsys/index.php?load=download&act=addinfo" method="post"  enctype="multipart/form-data" name="formSub" target="_self">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">添加文件下载</th>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"  style="width:100px;"><strong>文件名称：</strong></td>
<td class="tdd"  style="width:330px;"  ><input name="dow_name" id="dow_name" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>文件大小：</strong></td>
<td class="tdd"  style="width:350px;"><input name="dow_size" id="dow_size" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>文件：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[1]" name="upfile[1]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(1)">
<iframe name='hidden_frame[1]' id="hidden_frame[1]" style="border:none; background-color:#00CCCC;" scrolling="no"  width="0" height="0" ></iframe>
<div id="lodingdiv[1]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>
</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>文件地址：</strong></td>
<td class="tdd"><input type="text"  name="pro_img[1]" id="pro_img[1]" value=""  style="width:300px;"/></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>示范图片：</strong></td>
<td class="tdd">      
<input type="file" id="upfile[2]" name="upfile[2]" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(2)">
<iframe name='hidden_frame[2]' id="hidden_frame[2]" style="border:none; background-color:#00CCCC;" scrolling="no"  width="0" height="0" ></iframe>
<div id="lodingdiv[2]" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>
</td>
</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>图片地址：</strong></td>
<td class="tdd"><input type="text"  name="pro_img[2]" id="pro_img[2]" value=""  style="width:300px;"/></td>
</tr>



<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>文件描述：</strong></td>
<td class="tdd"  style="width:350px;">{#$ckeditorLoad#}</td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否显示：</strong></td>
<td class="tdd">显示<input type="radio" value="1" name="dow_enabled" id="dow_enabled[0]" checked="checked"  /> 隐藏<input type="radio" value="0" name="dow_enabled" id="dow_enabled[1]" /></td>

</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>显示顺序：</strong></td>
<td class="tdd"><input name="dow_list" id="dow_list" value="0" type="text" style="width:250px;"  ></td>

</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>

</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><input type="button" name="butsubmit" id="butsubmit" value="添 加"  onclick="submitFun(this)" /></td>
</tr>
</table>

</form></div>

</td></tr>
<tr><td></td></tr>
</table>

</body>
</html>