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: 4s.rar [view]
Upload User: apresys
Upload Date: 2021-03-30
Package Size: 813k
Code Size: 9k
Category:
WEB(ASP,PHP,...)
Development Platform:
DOS
- <!--#include file="conn.asp"-->
- <!--#include file="checkuser.asp"-->
- <html>
- <head>
- <title>∷汽车4S店配件仓储管理系统:.</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="css/main.css" rel="stylesheet" type="text/css">
- <SCRIPT language=javascript src="js/selectcity.js"></script>
- <script language="JavaScript" src="js/validate.js" type="text/JavaScript"></script>
- <script language="JavaScript" src="js/type.js"></script>
- <SCRIPT language=javascript src="css/init.js"></SCRIPT>
- <style type="text/css">
- <!--
- td { font-family: "宋体"; font-size: 9pt}
- body { font-family: "宋体"; font-size: 9pt}
- select { font-family: "宋体"; font-size: 9pt}
- A {text-decoration: none; color: #336699; font-family: "宋体"; font-size: 9pt}
- A:hover {text-decoration: underline; color: #FF0000; font-family: "宋体"; font-size: 9pt}
- -->
- </style>
- <SCRIPT LANGUAGE=javascript>
- <!--
- function Juge(myform)
- {
- if (myform.classnumber.value == "")
- {
- alert("编号不能为空!");
- myform.classnumber.focus();
- return (false);
- }
- }
- function SelectAll() {
- for (var i=0;i<document.selform.selBigClass.length;i++) {
- var e=document.selform.selBigClass[i];
- e.checked=!e.checked;
- }
- }
- //-->
- </script>
- </HEAD>
- <BODY topMargin=0 rightMargin=0 leftMargin=0>
- <!--#include file="top.asp"--><% dim sql,rs
- select case request("action")
- case "add"
- call SaveAdd()
- case "modify"
- call SaveModify()
- case "del"
- call delCate()
- case "edit"
- isEdit=True
- call myform(isEdit)
- case else
- isEdit=False
- call myform(isEdit)
- end select
- sub SaveAdd
- set rs=server.createobject("adodb.recordset")
- sql="select * from class"
- rs.open sql,conn,1,3
- rs.addnew
- rs("classnumber") = trim(request.Form("classnumber"))
- rs("classname") = trim(request.Form("classname"))
- rs("content") = trim(request.Form("content"))
- rs.update
- rs.close
- set rs=nothing
- response.Write "<script language=javascript>alert('添加成功!');</script>"
- response.write "<meta http-equiv=""refresh"" content=""0;url=class.asp"">"
- response.end
- rs.close
- set rs=nothing
- end sub
- sub SaveModify
- set rs=server.createobject("adodb.recordset")
- sql="select * from class where id="&request.Form("id")
- rs.open sql,conn,1,3
- rs("classname") = trim(request.Form("classname"))
- rs("classnumber") = trim(request.Form("classnumber"))
- rs("content") = trim(request.Form("content"))
- rs.update
- rs.close
- set rs=nothing
- response.Write "<script language=javascript>alert('修改成功!');</script>"
- response.write "<meta http-equiv=""refresh"" content=""0;url=class.asp"">"
- response.end
- rs.close
- set rs=nothing
- end sub
- sub delCate()
- conn.execute("delete from class where id in ("&Request.Form("selBigClass")&")")
- response.Write "<script language=javascript>alert('删除成功!');</script>"
- response.write "<meta http-equiv=""refresh"" content=""0;url=class.asp"">"
- response.end
- end sub
- %> <% sub myform(isEdit) %>
- <TABLE width=98% align=center border="1" cellspacing="0" bordercolor="#D6D3CE">
- <TBODY>
- <TR>
- <td align="center" valign="top"> <%if oskey="supper" or oskey="admin" then%>
- <fieldset style="width:98%"><legend>
- <%
- set rs=server.createobject("adodb.recordset")
- if isedit then
- rs.open "select * from class where id=" & request("id"),conn,1,1
- response.write "编辑类别"
- else
- response.write "添加类别"
- end if %></legend>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
- <tr class="but">
- <td width="20%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">类别编号</td>
- <td width="30%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">类别名称</td>
- <td width="50%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'" colspan="2">备注</td>
- </tr>
- <form name="reg" method="post" action="class.asp" onSubmit="return Juge(this)" >
- <tr> <input type="Hidden" name="action" value='<% If isedit then%>modify<% Else %>add<% End If %>'>
- <% If isedit then%><input type="Hidden" name="id" value="<%=rs("id")%>"> <% End If %>
- <td height="18" align="center"><input name="classnumber" type="text" size="10" value='<% if isedit then
- response.write rs("classnumber")
- end if %>'></td>
- <td><input name="classname" type="text" size="25" value='<% if isedit then
- response.write rs("classname")
- end if %>'></td>
- <td><input name="content" type="text" size="55" value='<% if isedit then
- response.write rs("content")
- end if %>'></td>
- <td width="148"><input type="submit" class="button" value="<% if isedit then
- response.write "编辑"
- else
- response.write "添加"
- end if %>"> </td>
- </tr>
- </form>
- </table>
- </fieldset><%end if%>
- <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0 >
- <TR>
- <TD height="25" align="center">类 别 列 表</TD>
- </TR>
- </TABLE>
- <form action="class.asp" method="post" name="selform" >
- <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8" align="center">
- <tr>
- <td width="100%" align="center" valign="top">
- <fieldset style="width:95%">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
- <tr class="but">
- <td width="20%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">类别编号</td>
- <td width="40%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">类别名称</td>
- <td width="35%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">备 注</td>
- <td width="5%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">操 作</td>
- </tr>
- <%
- set rs=server.CreateObject("ADODB.RecordSet")
- rs.Source="select* from class"
- rs.Open rs.Source,conn,1,1
- if not rs.EOF then
- do while not rs.eof
- %>
- <tr><td height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><a href="class.Asp?id=<%=rs("ID")%>&action=edit"><%=rs("classnumber")%></a></td>
- <td height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><%=rs("classname")%><%if rs("classname")="" then%> <%end if%></td>
- <td height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><%=rs("content")%><%if rs("content")="" then%> <%end if%></td>
- <td height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><input name="selBigClass" type="checkbox" id="selBigClass" value="<%=rs("ID")%>"></td>
- </tr>
- <%
- rs.movenext
- loop
- end if
- rs.close
- set rs=nothing
- %>
- <tr><td align="right" colspan="10" height="22"> <%if oskey="supper" or oskey="admin" then%>
- <input type="checkbox" name="checkbox" value="checkbox" onClick="javascript:SelectAll()"> 选择/反选
- <input onClick="{if(confirm('此操作将删除该信息!nn确定要执行此项操作吗?')){this.document.selform.submit();return true;}return false;}" type=submit value=删除 name=action2>
- <input type="Hidden" name="action" value='del'><%end if%></td></tr>
- </table>
- </fieldset>
- </td>
- </tr>
- <tr>
- <td height="50" colspan="3" align="center">
- </td>
- </tr>
- </table>
- </form>
- </TD>
- </TR>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="4">
- </table>
- </TBODY>
- </TABLE>
- <%end sub%>
- <P>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
- <TBODY>
- <TR vAlign=center>
- <TD align=middle width="100%"><!--#include file="footer.htm"--></TD>
- </TR></TBODY></TABLE></P></BODY></HTML>