if session("shiwei_username")="" then
%>
top.location.href="../index.asp"
response.end
end if
%>
- 添加小类
body {
background-color:#FFFFFF;
}
if fla66="0" and session("shiwei_id")"1" then
%>
你不具备此权限,请与管理员联系!
response.end
end if
%>
function check()
{
if (document.form1.smallclass.value=="")
{
alert("有*号的必须填写!");
return false;
}
}
添加小类(带*号的为必填项)
所属大类:
sql="select * from money_bigclass order by id"
set rs_bigclass=conn.execute(sql)
if rs_bigclass.eof then
%>
alert("请先添加大类!")
window.location.href="bigclass_add.asp"
response.end
else
%>
do while rs_bigclass.eof=false
%>
rs_bigclass.movenext
loop
%>
end if
%>
小类名称:
*
else
nowbigclass=request("bigclass")
nowsmallclass=request("smallclass")
sql="select * from money_smallclass where smallclass='"&nowsmallclass&"'"
set rs=conn.execute(sql)
if rs.eof=false then
%>
alert("您输入的小类名已经存在!")
window.history.go(-1)
response.end
end if
sql="insert into money_smallclass(id_bigclass,smallclass) values("&nowbigclass&",'"&nowsmallclass&"')"
conn.execute(sql)
%>
alert("小类添加成功!")
window.location.href="smallclass.asp"
end if
%>