<!--#include file="usertop.asp"-->
<!--#include file="usercookies.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发布资讯--<%=title%>--<%=web%></title>
</head>

<body>
<div align="center">
<script language="JavaScript">
function checkinput(){

        	if(form_fox.company.value == "" ){
            alert("标题不能为空！");
            form_fox.company.focus();
            return false;
        }
			if(form_fox.class1.value == "0" || form_fox.class1.value == ""){
            alert("请选择资讯大类！");
            form_fox.class1.focus();
            return false;
        } 
			if(form_fox.class2.value == "0" || form_fox.class2.value == ""){
            alert("请选择资讯小类！");
            form_fox.class2.focus();
            return false;
        } 
            if(form_fox.comname.value == ""){
            alert("请输入资讯来源！");
            form_fox.comname.focus();
            return false;
        } 
            if(form_fox.memo.value == ""){
            alert("请输入资讯内容！");
            form_fox.comname.focus();
            return false;
        }  
            if(form_fox.addname.value == ""){
            alert("请输入添加人！");
            form_fox.addname.focus();
            return false;
        }
}
</script>
<table cellSpacing="0" cellPadding="0" width="760" border="0" id="table1">
		<tr bgColor="#d9ebe5">
			<td  height="25" colspan="2" bgcolor="#C0C0C0"><b>&nbsp;<img border="0" src="images/z1.gif" width="50" height="18"> 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 发布资讯：</b></td>
		</tr>

		<tr bgColor="#d9ebe5">
			<td valign="top" width="760" height="315" bgcolor="#FFFFFF">
<%dim username
username=request.cookies("fox")("username")
dim rsuser,sqluser
set rsuser=server.createobject("adodb.recordset")
sqluser="select * from [FOX_user] where username='"&username&"'"
rsuser.open sqluser,conn,1,1
if rsuser("huitype")<"0" then
    Response.Write "<script>alert('您的级别不能操作此功能！');this.location.href='userhome.asp';</SCRIPT>"
Response.end
end if%>
			<table border="1" width="100%" id="table2" bordercolorlight="#D9EBE5" bordercolordark="#D9EBE5" style="border-collapse: collapse" cellpadding="0" cellspacing="0">
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5">&nbsp;<img border="0" src="images/a01.gif" width="25" height="25">
用户：<font color="#FF0000"><%=username%></font>，您好，欢迎来到会员中心！您登陆本站共<font color="#FF0000"><%=rsuser("dlcs")%></font>次。 
您目前级别：<%if rsuser("huitype")="0" then%><font color="#FF0000"><%=aname%>会员</font><%elseif rsuser("huitype")="1" then%><font color="#FF0000"><%=bname%>会员</font><%elseif rsuser("huitype")="2" then%><font color="#FF0000"><%=cname%>会员</font><%end if%>
，验证状态：<%if rsuser("yz")="0" then%><font color="#FF0000">没有通过验证</font>，验证后才可以享受更多权利！<%elseif rsuser("yz")="1" then%><font color="#FF0000">已通过验证</font>，祝您愉快！<%end if%></td>
				</tr>
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5" height="20">
					<table border="0" width="100%" id="table3" cellspacing="1" height="521">
						<tr>
							<td bgcolor="#FFFFFF" colspan="4" height="40" class="tdtxt07">
							<p align="center">
							<img border="0" src="images/a01.gif" width="25" height="25"><b>资讯发布</b>（
							成功发布将获赠 <font color="#FF0000"><%=jjf%></font> 分/条；被删除扣<font color="#FF0000"> <%=jjf*jjf%> </font>分/条）
</td>
						</tr>
	<form name="form_fox" onsubmit="return checkinput()" method="post" action="addzixunchk.asp">

						<tr>
							<td bgcolor="#FFFFFF" width="12%" height="30" align="right">
							资讯ID：</td>
							<td bgcolor="#FFFFFF" height="30" width="33%"><%dim aa,sid
					aa=rsuser("id")
					sid=now()&aa
		sid=replace(sid,"-","")
        sid=replace(sid," ","")
        sid=replace(sid,":","")%><b><font color="#FF0000"><%=sid%>
</font></b><input name="xxid" type="hidden" value="<%=sid%>">
<input name="username" type="hidden" value="<%=rsuser("username")%>">
<input name="huitype" type="hidden" value="<%=rsuser("huitype")%>">
<input name="yz" type="hidden" value="<%=rsuser("yz")%>">
</td>
							<td bgcolor="#FFFFFF" height="30" width="11%">
							<p align="right">资讯所属：</td>
							<td bgcolor="#FFFFFF" height="30" width="49%">
							<%
dim rsclass
dim sqlclass
dim count
set rsclass=server.createobject("adodb.recordset")
sqlclass = "select * from FOX_wzclass2 order by paixu desc"
rsclass.open sqlclass,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rsclass.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rsclass("class2"))%>","<%= trim(rsclass("class1"))%>","<%= trim(rsclass("id"))%>");
        <%
        count = count + 1
        rsclass.movenext
        loop
        rsclass.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.form_fox.class2.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.form_fox.class2.options[document.form_fox.class2.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
                      </SCRIPT><%
sqlclass = "select * from FOX_wzclass1 order by paixu desc"
rsclass.open sqlclass,conn,1,1
if rsclass.eof and rsclass.bof then
response.write "请先添加栏目。"
response.end
else
%><SELECT name="class1" onChange="changelocation(document.form_fox.class1.options[document.form_fox.class1.selectedIndex].value)" size="1" class="right_bg01">
<OPTION selected value="0">==分类==</OPTION>
                                <%do while not rsclass.eof
%>
                                <OPTION value="<%=trim(rsclass("id"))%>"><%=trim(rsclass("class1"))%></OPTION>
                                <%
        rsclass.movenext
        loop
	    end if
        rsclass.close
        set rsclass=nothing
%>
                              </SELECT>
                              <SELECT name="class2" size="1" class="right_bg01">
                                <OPTION selected value="0">==二级分类==</OPTION>
                              </SELECT> <font color="#FF0000">*</font></td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="12%" height="30" align="right">
							<font color="#FF0000">资讯标题：</font></td>
							<td bgcolor="#FFFFFF" height="30" width="33%">
			<input id="topic6" size="31" name="company" class="button01"> <font color="#FF0000">
			*</font></td>
							<td bgcolor="#FFFFFF" height="30" width="11%">
			<p align="right">文章来源：</td>
							<td bgcolor="#FFFFFF" height="30" width="49%">
			<input id="topic8" size="15" name="comname" class="button01" value="<%=title%>"> 
			如摘录请注明出处 <font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="12%" height="30" align="right">
							详细内容：</td>
							<td bgcolor="#FFFFFF" height="30" width="87%" colspan="3">
			<INPUT type="hidden" name="memo" value=""><iframe ID="editor" src="scgjb/ewebeditor.asp?id=memo&style=s_mini" frameborder=1 scrolling=no width="95%" height="300"></iframe>&nbsp;<font color="#FF0000">*</font></td>
						</tr>
						
						<tr>
							<td bgcolor="#FFFFFF" width="12%" height="30" align="right">
							<font color="#FF0000">添加人：</font></td>
							<td bgcolor="#FFFFFF" width="33%" height="30" align="left">
			<input id="topic7" maxLength="12" size="18" name="addname" class="button01" value="<%=rsuser("username")%>"></td>
							<td bgcolor="#FFFFFF" width="11%" height="30" align="right">
相关图片：</td>
							<td bgcolor="#FFFFFF" width="49%" height="30" align="left"><%if rsuser("huitype")=0 then%>您是<%=aname%>会员，无此功能！
							<%elseif rsuser("huitype")>0 and rsuser("yz")="0" then%>您还未通过本站认证，暂不能上传资料！
							<%elseif rsuser("huitype")=1 and rsuser("yz")="1" and rsuser("dxb")-tdxb-hxb>"0"then%><iframe name="I1" src="ziup.asp?xxid=<%=sid%>&username=<%=rsuser("username")%>" marginwidth="1" marginheight="1" height="30" width="100%" scrolling="no" border="0" frameborder="0"></iframe>您是<font color="#FF0000"><%=bname%></font>会员，上传图片将扣您 <font color="#FF0000"><%=tdxb%></font> <%=bname%>。
							<%elseif rsuser("huitype")=1 and rsuser("yz")="1" and rsuser("dxb")-tdxb-hxb<"0" then%>您的<%=bname%>不够操作此功能！
							<%elseif rsuser("huitype")=2 and rsuser("yz")="1" then%><iframe name="I1" src="ziup.asp?xxid=<%=sid%>&username=<%=rsuser("username")%>" marginwidth="1" marginheight="1" height="30" width="100%" scrolling="no" border="0" frameborder="0"></iframe>
							<%end if%></td>
						</tr>

						<tr>
							<td bgcolor="#D9EBE5" width="99%" height="53" align="right" colspan="4">
							<p align="center">
			<input class="inputb" border="0" name="I5" type="submit" value="我要发布资讯"></td>
						</tr></form>
					</table>
					</td>
				</tr>
			</table>
			</td>
			</tr>

</table>
<%rsuser.close
set rsuser=nothing%>
</div>

</body>
<!--#include file="userbottom.asp"--></body></html>