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

📄 newadd.asp

📁 这是一个关于企业物流平台的东东
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../conn/adminconn.asp"-->
<!--#include file="login.asp"-->

<% 


if request("post")<>"" then
call ed 
end if

function ed
if request("title")<>"" and request("content")<>"" then
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from new "
rs1.open sql1,conn,1,3
rs1.addnew
rs1("title")=request("title")
rs1("lei")=request("lei")
rs1("content")=request("content")
rs1("time")=date()
rs1.update
rs1.close 
response.Write("<script language=javascript>alert('添加成功')</script>")
else
response.Write("<script language=javascript>alert('请把信息必须填写完整')</script>")
end if 
end function

%>
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
@import url("../admin.css");
body,td,th {
	font-size: 12px;
}
-->
</style></head>

<body>
<form name="form1" method="post" action="">
  <p>&nbsp;</p>
  <table width="77%"  border="0" align="center" cellspacing="1" bgcolor="#000000">
    <tr >
      <td height="30" colspan="2" background="../images/tiao.gif">&nbsp;</td>
    </tr>
    <tr>
      <td width="12%" height="38" bgcolor="#FFFFFF"><div align="right">标题:</div></td>
      <td width="88%" bgcolor="#FFFFFF"> 
        <input name="title" type="text" class="kuang" id="title" size="30">
      <input name="post" type="hidden" id="post" value="true"></td>
    </tr>
    <tr>
      <td height="35" bgcolor="#FFFFFF"><div align="right">类型:</div></td>
      <td width="88%" bgcolor="#FFFFFF"> 
        <select name="lei" id="lei">
        <option value="公司新闻" selected>公司新闻</option>
        <option value="行业新闻">行业新闻</option>
        </select></td>
    </tr>
    <tr>
      <td valign="top" bgcolor="#FFFFFF"><div align="right">内容:</div></td>
      <td bgcolor="#FFFFFF"> 
      <textarea name="content" cols="88" rows="20" class="kuang" id="textarea"></textarea></td>
    </tr>
    <tr bgcolor="#FFA218">
      <td height="37" colspan="2"><div align="center">
          <input type="submit" name="Submit" value="提交">
         
        <input type="reset" name="Submit2" value="重置">
       
      <input type="reset" name="Submit3" value="返回" onClick="location='news.asp'">
      </div></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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