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

📄 product_db_add.asp

📁 功能强大的内容管理系统
💻 ASP
字号:
<!--#include file="conn.asp" -->
<!--#include file="admin_dn.asp" -->
<% 
if Trim(Request.QueryString("w"))="save" then
rs.open "db",conn,2,3
rs.addnew
rs("title")=Trim(Request.Form("title"))
rs("bh")=Trim(Request.Form("bh"))
rs("cate")=Trim(Request.Form("cate"))
rs("rl")=Trim(Request.Form("rl"))
rs("zh")=Trim(Request.Form("zh"))
rs("bak")=Trim(Request.Form("bak"))
rs("je1")=Request.Form("je1")
rs("je2")=Request.Form("je2")
rs("je3")=Request.Form("je3")

rs.update
%>
<script language="VBScript" type="text/VBScript">
msgbox "数据库新增成功..."
</script>
<meta http-equiv="refresh" content="0; url=product_db_add.asp"> 
<%


rs.close
else

 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="image/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="5" topmargin="5">
<p><strong>增加数据库</strong></p>
<p>&nbsp;</p>
<form name="form1" method="post" action="product_db_add.asp?w=save">
  <table width="95%" height="213" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="20%">产 品 名 称:</td>
      <td width="80%"><input name="title" type="text" id="title">
        <font color="#FF0000">数据库的名称</font></td>
    </tr>
    <tr>
      <td>产 品 编 号:</td>
      <td><input name="bh" type="text" id="bh">
          <font color="#FF0000">数据库的名称</font></td>
    </tr>
    <tr>
      <td>数据库 类型:</td>
      <td><select name="cate" id="cate">
          <option value="mysql" selected>-MySQL-</option>
          <option value="mssql">-MsSQL-</option>
          </select>
        <font color="#FF0000"> 数据库类型</font></td>
    </tr>
    <tr>
      <td> 空 间 大 小:</td>
      <td><input name="rl" type="text" id="rl" size="10">
        <font color="#FF0000"> 数据库总空间 ...只能为数字</font></td>
    </tr>
    <tr>
      <td>帐 号 数 量:</td>
      <td><input name="zh" type="text" id="zh" size="10">        <font color="#FF0000">只能为数字</font></td>
    </tr>
    <tr>
      <td>其 它 说 明:</td>
      <td><textarea name="bak" rows="3">无</textarea>
      其它说明</td>
    </tr>
    <tr>
      <td>直接客户价格:</td>
      <td><input name="je1" type="text" id="je1" size="10">
        元/年 <font color="#FF0000">只能为数字</font></td>
    </tr>
    <tr>
      <td>一般代理价格:</td>
      <td><input name="je2" type="text" id="je2" size="10">
        元/年<font color="#FF0000"> 只能为数字</font></td>
    </tr>
    <tr>
      <td>高级代理价格:</td>
      <td><input name="je3" type="text" id="je3" size="10">
        元/年<font color="#FF0000"> 只能为数字</font></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="确定增加"></td>
    </tr>
  </table>
</form>
<p>&nbsp; </p>
</body>
</html>
<%
end if
%>

⌨️ 快捷键说明

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