消息: 'document.form1.xclassid' 为空或不是对象
manage
网页错误详细信息
用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
时间戳: Sat, 11 Jun 2011 17:11:24 UTC
消息: 'document.form1.xclassid' 为空或不是对象
行: 93
字符: 3
代码: 0
URI: http://127.0.0.1/manage/addnews.asp
........................................................................................................
<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<!--#include file="../fuction.asp"-->
<%if request.Cookies("admin_guanli")="" then
response.Write "<script LANGUAGE='javascript'>alert('网络超时或者您还没有登录请登录');window.location.href='login.asp';</script>"
response.End
end if
if qx8<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
if request.QueryString("action")="save" then
if session("flag_guanli")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_news",conn,1,3
rs.addnew
rs("classid")=request("anclassid")
rs("classid2")=request("nclassid")
rs("classid3")=request("xclassid")
rs("newsname")=trim(request("newsname"))
rs("addname")=trim(request("addname"))
if trim(request("tp"))="" then
rs("tp")=1
else
rs("tp")=trim(request("tp"))
end if
if trim(request("newstop"))="" then
rs("newstop")=1
else
rs("newstop")=trim(request("newstop"))
end if
if trim(request("newstj"))="" then
rs("newstj")=1
else
rs("newstj")=trim(request("newstj"))
end if
if trim(request("iuser"))="" then
rs("iuser")=1
else
rs("iuser")=trim(request("iuser"))
end if
Content=Request.Form("content")
rs("newscontent")=content
rs("adddate")=request("adddate")
rs("defaultpic")=request("defaultpic")
rs("viewcount")=0
rs.update
rs.close
set rs=nothing
session("content")=""
response.write "<script language=javascript>alert('添加成功!');window.location.href='editnews.asp';</script>"
response.End
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
<!--
function checkdata()
{
if (form1.newsname.value=="")
{
alert("对不起,请输入新闻主题!")
form1.newsname.focus()
return false
}
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<%dim count
set rs=server.createobject("adodb.recordset")
rs.open "selec