⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addclass_submit.asp

📁 中原商贸城 中原商贸城 项目库 企业库 供求信息 会员 招聘 企业展示
💻 ASP
字号:
<!--#include file=../common/conn.asp -->
<%
NewClassName=trim(Request.Form("NewClassName"))
if NewClassName="" then 
%>
<script language=javascript>
alert("产品类别名称不能为空!");
history.back(-1);
</script>
<%
Response.End 
end if

'set rs=server.CreateObject ("Adodb.RecordSet")
rs.Source="select * from shopClass where Classname='" & NewClassName & "'"
rs.Open rs.Source,conn,1,1

if not rs.EOF then 
%>
<script language=javascript>
     history.back()
     alert("已经存在该类别!")
</script>
<%
else
    sql="INSERT INTO shopClass (Classname,classid) VALUES ('" & NewClassName & "','"&request("classid")&"')"
    conn.Execute(sql)
end if
%>
<html>

<head>
<meta http-equiv="refresh" content="1;url=AddClass.asp">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=../../gq.css rel=stylesheet>
<link href="../images/font.css" rel="stylesheet" type="text/css">
<link href="../images/font.css" rel="stylesheet" type="text/css">
<link href="../users/.css" rel="stylesheet" type="text/css">
</head>

<body background="../images/bgpic.gif">

<p> </p>
<table border="0" width="450" align=center>
  <tr>
    <td width="100%" class="unnamed1"><b>增加产品类别</b></td>
  </tr>
  <tr>
    <td width="100%" class="unnamed1"> 
      <hr size="1">
    </td>
  </tr>
  <tr>
    <td width="100%" class="unnamed1">已经添加新的类别!<BR>
      系统将在1秒种后自动返回!</td>
  </tr>
   <tr>
    <td width="100%"></td>
  </tr>
  <tr>
    <td width="100%"> </td>
  </tr>
</table>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -