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

📄 baoxian_jibenadd.asp

📁 目前人力资源管理系统的发展已经相对成熟
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<%
if request("post")<>"" then
if request("title")="" then
response.Write("<script language=javascript>alert('标题必须填写');location='javascript:history.go(-1)'</script>")
response.End()
end if
if request("content")="" then
response.Write("<script language=javascript>alert('内容不能为空');location='javascript:history.go(-1)'</script>")
response.End()
end if
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Insurance"
rs.open sql,conn,1,3
rs.addnew
rs("title")=request("title")
rs("content")=request("content")
rs("fenlei")=request("fenlei")
rs("time")=now()
rs.update
rs.close
response.Write("<script language=javascript>alert('添加成功');window.close()</script>")
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
.style1 {
	font-size: 16px;
	font-weight: bold;
	color: #FF0000;
}
body {
	background-color: #efefef;
}
-->
</style></head>

<body>
<form name="form1" method="post" action="">
  <table width="452" height="338" border="0" align="center" cellspacing="0">
    <tr align="center">
      <td colspan="2"><span class="style1">基本常识添加</span></td>
    </tr>
    <tr align="center" bgcolor="#000000">
      <td colspan="2" height="1" bgcolor="#000000"></td>
    </tr>
    <tr>
      <td width="59" height="49" align="center">类型:</td>
      <td width="408"><select name="fenlei" id="select">
        <option value="保险abc">保险abc</option>
        <option value="保险趣闻">保险趣闻</option>
        <option value="案例分析">案例分析</option>
      </select>      
      <input name="post" type="hidden" id="post" value="true"></td>
    </tr>
    <tr>
      <td align="center">标题:</td>
      <td><input name="title" type="text" id="title" size="40" maxlength="100"></td>
    </tr>
    <tr>
      <td height="185" align="center">内容:</td>
      <td><textarea name="content" cols="50" rows="10" id="content"></textarea></td>
    </tr>
    <tr align="center">
      <td colspan="2"><input type="submit" name="Submit" value=" 提 交 ">
       
        <input type="reset" name="Submit2" value=" 重 置 "></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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