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

📄 addequipment.asp

📁 红金羚v1.5办公自动化软件是基于大型数据库系统开发的应用系统
💻 ASP
字号:
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<!--#include file="asp/check_resource.asp"-->
<%
'-----------------------------------------
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if
if check_resource_setting(oabusyusername,0)<>0 then
	response.write("<script language=""javascript"">")
	response.write("alert(""对不起,您不能增加资源!"");")
	response.write("history.go(-1);")
	response.write("</script>")
	response.end
end if
'--------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css">
<title>红孩儿Office办公系统</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<% call bghead() %>
<center><b>增加新的资源</b></center>
<%
call bgmid()
%>
<center>
<%
if request("submit")="增加" then
	equipment=request("equipment")
	controller=request("controller")
	remark=request("remark")
	'打开数据库判断设备名称是否重复
	set conn=opendb("oabusy","conn","accessdsn")
	set rs=server.createobject("adodb.recordset")
	sql="select * from equipment where equipment=" & sqlstr(equipment)
	rs.open sql,conn,1
	if not rs.eof and not rs.bof then
%>
<br><br>输入的资源名称与原来记录重复,请重新输入!<br><br>
<input type="button" value="返回" onclick="window.location.href='addequipment.asp'">
<%
	else
		set conn=opendb("oabusy","conn","accessdsn")
		sql = "Insert Into equipment (equipment,remark,controller) Values( "
		sql = sql & SqlStr(equipment) & ", "
		sql = sql & SqlStr(remark) & ", "
		sql = sql & SqlStr(controller) & ")"
		conn.Execute sql
%>
<br><br>成功输入资源!<br><br>
<form method="post" action="booksource_info.asp">
<input type="submit" value="返回">
</form>
<%
	end if
else
%>
<br>
<form method="post" name="form1" action="addequipment.asp">
  <table border="1" cellpadding="0" cellspacing="0" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
    <tr height="25">
      <td>欲增加的资源名称:<input type=text size="20" name="equipment"><font color=red>*</font></td>
    </tr>
    <tr height="25">
      <td>资源维护或管理员:<input type=text size="20" name="controller"></td>
    </tr>
    <tr height="25">
      <td align="center">说明</td>
    </tr>
    <tr height="25">
      <td align="center"><textarea rows="5" cols="35" name="remark"></textarea><br><input type="button" value="返回" onclick="window.location.href='booksource_info.asp'">
&nbsp;&nbsp;<font color=red>*</font>项必填&nbsp;&nbsp;<input type="submit" name="submit" value="增加" onclick="return check_form();"></td>
    </tr>
  </table>
</form>
<script Language="JavaScript">

 function check_form(){
   var equipment=document.form1.equipment.value;
   if(equipment.length==0){window.alert("资源名称必须填");document.form1.equipment.focus();return (false);}
                    }

</script>

<%
end if
%>
</center>
<%
%>
         </td>
            
          <td background="<%=imgpath%>images/j5.gif" width=19 height=280></td>
          </tr>
        </table>
    </tr>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
          <tr>
            
          <td width=18 height=20><img border="0" src="<%=imgpath%>images/j6.gif" width="18" height="19"></td>
            
          <td background="<%=imgpath%>images/j7.gif" width=100% height=20></td>
            
          <td width="19" height="20"><img border="0" src="<%=imgpath%>images/j8.gif"></td>
          </tr>
		  <tr>
          <td width="100%" height=20 colspan="3"><center>-----<a href="http://office.11k.net/" target=_blank><font color="red">Red office v1.5</font></a>-----</center></td>
		  </tr>
        </table>
      </td>
    </tr>
  </table>
<%
%>
</body>
</html>








⌨️ 快捷键说明

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