Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Class.asp
Package: qiyeguanli.rar [view]
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 3k
Category:
WEB(ASP,PHP,...)
Development Platform:
VBScript
- <!--#include file="bsconfig.asp"-->
- <%
- %>
- <%
- dim sql,rsBigClass,rsSmallClass,ErrMsg
- set rsBigClass=server.CreateObject("adodb.recordset")
- rsBigClass.open "Select * from PrBigClasss",conn,1,3
- %>
- <script language="JavaScript" type="text/JavaScript">
- function checkBig()
- {
- if (document.form1.BigClassName.value=="")
- {
- alert("大类名称不能为空!");
- document.form1.BigClassName.focus();
- return false;
- }
- }
- function checkSmall()
- {
- if (document.form2.BigClassName.value=="")
- {
- alert("请先添加大类名称!");
- document.form1.BigClassName.focus();
- return false;
- }
- if (document.form2.SmallClassName.value=="")
- {
- alert("小类名称不能为空!");
- document.form2.SmallClassName.focus();
- return false;
- }
- }
- function ConfirmDelBig()
- {
- if(confirm("确定要删除此大类吗?删除此大类同时将删除所包含的小类,并且不能恢复!"))
- return true;
- else
- return false;
- }
- function ConfirmDelSmall()
- {
- if(confirm("确定要删除此小类吗?一旦删除将不能恢复!"))
- return true;
- else
- return false;
- }
- </script>
- <!-- #include file="Inc/Head.asp" -->
- <BR>
- <table cellpadding="2" cellspacing="1" border="0" width="510" align="center" class="a2">
- <tr>
- <td class="a1" height="25" align="center"><strong>产 品 类 别 设 置</strong></td>
- </tr>
- <tr class="a4">
- <td align="center">
- <br>管理选项:<a href="Class_Add_Big.asp">添加产品大类</a><br>
- <br>
- <table width="500" border="0" cellpadding="0" cellspacing="2" class="border">
- <tr bgcolor="#999999" class="title">
- <td width="290" height="25" align="center"><strong>栏目名称 [English]</strong></td>
- <td width="210" height="25" align="center"><strong>操作选项</strong></td>
- </tr>
- <%
- do while not rsBigClass.eof
- %>
- <tr bgcolor="#E3E3E3" class="tdbg">
- <td width="290" height="22" bgcolor="#C0C0C0"><img src="../Images/tree_folder4.gif" width="15" height="15"><%=rsBigClass("BigClassName")%> [<%=rsBigClass("EnBigClassName")%>]</td>
- <td align="center" bgcolor="#C0C0C0"><a href="Class_Add_Small.asp?BigClassName=<%=rsBigClass("BigClassName")%>">添加子栏目</a>
- | <a href="Class_Big_edit.asp?BigClassID=<%=rsBigClass("BigClassID")%>">修改</a>
- | <a href="Class_Del_Big.asp?BigClassName=<%=rsBigClass("BigClassName")%>" onClick="return ConfirmDelBig();">删除</a></td>
- </tr>
- <%
- set rsSmallClass=server.CreateObject("adodb.recordset")
- rsSmallClass.open "Select * from PrSmallClass Where BigClassName='" & rsBigClass("BigClassName") & "'",conn,1,3
- if not(rsSmallClass.bof and rsSmallClass.eof) then
- do while not rsSmallClass.eof
- %>
- <tr bgcolor="#E3E3E3" class="tdbg">
- <td width="290" height="22"> <img src="../Images/tree_folder3.gif" width="15" height="15"><%=rsSmallClass("SmallClassName")%> [<%=rsSmallClass("EnSmallClassName")%>]</td>
- <td align="center">
- <a href="Class_Small_edit.asp?SmallClassID=<%=rsSmallClass("SmallClassID")%>">修改</a>
- | <a href="Class_Del_Small.asp?SmallClassID=<%=rsSmallClass("SmallClassID")%>" onClick="return ConfirmDelSmall();">删除</a></td>
- </tr>
- <%
- rsSmallClass.movenext
- loop
- end if
- rsSmallClass.close
- set rsSmallClass=nothing
- rsBigClass.movenext
- loop
- %>
- </table><BR>
- </td>
- </tr>
- </table>
- <BR>
- <%htmlend%>
- <%
- rsBigClass.close
- set rsBigClass=nothing
- call CloseConn()
- %>