?? bs_class_add_small.asp
字號(hào):
<!--#include file="bsconfig.asp"-->
<!--#include file="Inc/Function.asp"-->
<!--#include file="zcm.asp"-->
<%
'=========================================================
'
'產(chǎn)品名稱(chēng):科技 公司(企業(yè))網(wǎng)站管理系統(tǒng)(簡(jiǎn)稱(chēng):www.web300.cn)
'版權(quán)所有:www.web300.cn
'程序制作:QQ812256@hotmail.com
'聯(lián)系 方式:QQ :812256
'Copyright 2006-2008 www.web300.cn - All Rights Reserved.
'
'========================================================
%>
<%
zj=replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(left(replace(Request.ServerVariables("SERVER_NAME"),"www.",""),6),"0","a"),"1","b"),"2","c"),"3","d"),"4","e"),"5","f"),"6","g"),"7","h"),"8","i"),"9","j"),"a","51"),"b","50"),"c","40"),"d","41"),"e","53"),"f","52"),"g","65"),"h","76"),"i","27"),"j","88"),"k","89"),"l","20"),"m","21"),"n","22"),"o","23"),"p","24"),"q","25"),"r","26"),"s","77"),"t","28"),"u","29") ,"v","30") ,"w","31") ,"x","32") ,"y","33") ,"z","35") ,"-","36") ,".","37")
yzcv=zj*(len(zj)+len(zcn&"BlackOutCHK"))
Do While yzcv>10000000000
yzcv=yzcv-10000000000
loop
if yzcv<>zcv then
response.write chr(60)&chr(98)&chr(62)&chr(60)&chr(102)&chr(111)&chr(110)&chr(116)&chr(32)&chr(99)&chr(111)&chr(108)&chr(111)&chr(114)&chr(61)&chr(35)&chr(70)&chr(70)&chr(48)&chr(48)&chr(48)&chr(48)&chr(62)&chr(-19219)&chr(-12557)&chr(-23622)&chr(-19508)&chr(-12046)&chr(-13872)&chr(-12620)&chr(-10334)&chr(-19743)&chr(44)&chr(-19253)&chr(-18010)&chr(-15140)&chr(-19781)&chr(-15140)&chr(-13639)&chr(-11325)&chr(33)&chr(60)&chr(47)&chr(102)&chr(111)&chr(110)&chr(116)&chr(62)&chr(60)&chr(47)&chr(98)&chr(62):call sysconfig()
response.end
end if
%>
<%
dim Action,BigClassName,EnBigClassName,SmallClassName,EnSmallClassName,rs,FoundErr,ErrMsg
Action=trim(Request("Action"))
BigClassName=trim(request("BigClassName"))
SmallClassName=trim(request("SmallClassName"))
EnSmallClassName=trim(request("EnSmallClassName"))
sqlBig="select * from Bs_PrBigClasss where BigClassName='" & BigClassName & "'"
Set rsBig= Server.CreateObject("ADODB.Recordset")
rsBig.open sqlBig,conn,1,1
EnBigClassName=rsBig("EnBigClassName")
rsBig.close
if Action="Add" then
if BigClassName="" then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>文章大類(lèi)名不能為空!</li>"
end if
if SmallClassName="" then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>文章小類(lèi)名不能為空!</li>"
end if
if FoundErr<>True then
Set rs=Server.CreateObject("Adodb.RecordSet")
if yzcv<>zcv then response.end
rs.open "Select * from Bs_PrSmallClass Where BigClassName='" & BigClassName & "'AND SmallClassName='" & SmallClassName & "'",conn,1,3
if not rs.EOF then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>“" & BigClassName & "”中已經(jīng)存在文章小類(lèi)“" & SmallClassName & "”!</li>"
else
rs.addnew
rs("BigClassName")=BigClassName
rs("EnBigClassName")=EnBigClassName
rs("SmallClassName")=SmallClassName
rs("EnSmallClassName")=EnSmallClassName
rs.update
rs.Close
set rs=Nothing
call CloseConn()
Response.Redirect "Bs_Class.asp"
end if
end if
end if
if FoundErr=True then
call WriteErrMsg()
else
%>
<script language="JavaScript" type="text/JavaScript">
function checkSmall()
{
if (document.form2.BigClassName.value=="")
{
alert("請(qǐng)先添加大類(lèi)名稱(chēng)!");
document.form1.BigClassName.focus();
return false;
}
if (document.form2.SmallClassName.value=="")
{
alert("小類(lèi)名稱(chēng)不能為空!");
document.form2.SmallClassName.focus();
return false;
}
}
</script>
<!-- #include file="Inc/Head.asp" -->
<BR>
<table cellpadding="2" cellspacing="1" border="0" width="360" align="center" class="a2">
<tr>
<td class="a1" height="25" align="center"><strong>產(chǎn) 品 類(lèi) 別 設(shè) 置</strong></td>
</tr>
<tr class="a4">
<td align="center">
<BR>
<form name="form2" method="post" action="Bs_Class_Add_Small.asp" onsubmit="return checkSmall()">
<table width="350" border="0" align="center" cellpadding="0" cellspacing="2" class="border">
<tr bgcolor="#999999" class="title">
<td height="25" colspan="2" align="center"><strong>添加小類(lèi)</strong></td>
</tr>
<tr class="tdbg">
<td width="126" height="22" bgcolor="#C0C0C0" align=right><strong>所屬大類(lèi):</strong></td>
<td width="218" bgcolor="#E3E3E3">
<select name="BigClassName">
<%
dim rsBigClass
set rsBigClass=server.CreateObject("adodb.recordset")
rsBigClass.open "Select * from Bs_PrBigClasss",conn,1,1
if rsBigClass.bof and rsBigClass.bof then
response.write "<option>請(qǐng)先添加文章大類(lèi)</option>"
else
do while not rsBigClass.eof
if rsBigClass("BigClassName")=BigClassName then
response.write "<option value='"& rsBigClass("BigClassName") & "'selected>" & rsBigClass("BigClassName") & "</option>"
else
response.write "<option value='"& rsBigClass("BigClassName") & "'>" & rsBigClass("BigClassName") & "</option>"
end if
rsBigClass.movenext
loop
end if
rsBigClass.close
set rsBigClass=nothing
%>
</select>
</td>
</tr>
<tr class="tdbg">
<td width="126" height="22" bgcolor="#C0C0C0" align=right><strong>小類(lèi)名稱(chēng):</strong></td>
<td bgcolor="#E3E3E3"><input name="SmallClassName" type="text" size="20" maxlength="30"></td>
</tr>
<tr class="tdbg">
<td width="126" height="22" bgcolor="#C0C0C0" align=right><strong>English名稱(chēng):</strong></td>
<td bgcolor="#E3E3E3"><input name="EnSmallClassName" type="text" size="20" maxlength="30"></td>
</tr>
<tr class="tdbg">
<td height="22" align="center" bgcolor="#C0C0C0"> </td>
<td height="22" align="center" bgcolor="#E3E3E3"><div align="left"
><input name="Action" type="hidden" id="Action3" value="Add"><input name="Add" type="submit" value=" 添 加 "></div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<BR>
<%htmlend%>
<%
end if
call CloseConn()
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -