<!--#include file="inc/conn.asp"-->
<!--#include file="usercookies.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
BODY{
font-size:12px
}
.tx1 { height: 20px;font-size: 12px; border: 1px solid; border-color: #000000; color: #0000FF}
-->
</style>
<%
dim rs,sql,username,per
username=request.cookies("cnmai")("username")
per=request.cookies("cnmai")("per")
set rs=server.createobject("adodb.recordset")

if per=username then
sql = "select * from [jle_user] where username='"&username&"'"
else
sql = "select * from [jle_com] where username='"&username&"'"
end if

rs.open sql,conn,1,3
if rs("c")<1 then
Response.Write "您没有[上传图片道具]，请联系本站" 
response.end
rs.close
set rs=nothing
else
%>
<SCRIPT language=javascript>
function check() 
{
	var strFileName=document.form.FileName.value;
	if (strFileName=="")
	{
    	alert("请选择要上传的文件");
		document.form.FileName.focus();
    	return false;
  	}
}
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0">
<form action="upfilexinxi.asp" method="post" name="form" onSubmit="return check()" enctype="multipart/form-data">
  <input name="FileName" type="FILE" class="tx1" size="25">
  <input type="submit" name="Submit" value="上传" style="border:1px double rgb(88,88,88);font:12px">
</form>
</body>
</html>
<%end if%>