<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>后台管理</title>
<meta name="keywords" content="" />
<meta name="description" content=" 由克网站程序  - XXGO.NET" />
<meta name="generator" content="klkkdj! 2.0.0" />
<meta name="author" content="klkkdj!由克" />
<meta name="copyright" content="2009-2012 XXGO NET" />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<?php echo website_init_js();?>
<link rel="stylesheet" type="text/css" href="images/css.css" />
<script src="<?php echo WEB_URL?>/images/js/common.js"></script>
<script src="<?php echo WEB_URL?>/images/js/form.js"></script>
<script src="<?php echo WEB_URL?>/images/js/form.js"></script>
<style>
li{list-style-type:none}
.me_box{float:left;text-align:left;padding:8px;}
.me_file_list{float:left;width:100%}
.me_file_list li{float:left;width:95%;text-align:left}
</style>
<script>
function me_Add()
{
	maxfilecount=<?php echo $arr_config["upload_count"];?>;
	int_count=parseInt(frmupload.filecount.value);
	if(int_count>maxfilecount)
	{
		alert("一次上传数量不能超过"+maxfilecount+"个！");
		int_count=maxfilecount;
		frmupload.filecount.value=maxfilecount;
	}
	for(i=1;i<=int_count;i++)
	{
		strx="file_"+i;
		obj=document.getElementById(strx);
		if(!obj)
		{
			obj_list=document.getElementById("file_list");
			obj_list.innerHTML+="<li>您要上传的文件：<input type='file' name='"+strx+"' id='"+strx+"'></li>";
		}
	}
}

</script>
</head>
<body>
<div class="me_box">
	<form name="frmupload" method="post" action="?" enctype="multipart/form-data">
	<div style="float:left;width:100%;text-align:left">上传数量：<input type="input" name="filecount" value="1" size=5> <input type="button" name="btnadd" value="更新" onclick="me_Add();"></div>
	<div class="file_list" id="file_list">
	<li>您要上传的文件：<input type="file" name="file_1" id="file_1"></li>
	</div>
	<div style="float:left;width:100%;margin-top:10px"><input type="submit" name="subok" value="上传">　<input type="checkbox" name="smallpic" value=1>图片生成缩略图</div>
	</form>
</div>
</body>
</html>

