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

📄 editbooking.asp

📁 功能齐全的oa网络办公源码asp+acce
💻 ASP
字号:
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<!--#include file="asp/keepformat.asp"-->
<%
'-----------------------------------------
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then response.redirect "default.asp"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="css/css.css">
<script language="javascript1.2" src="js/openwin.js"></script>
<title>企业办公系统</title>
</head>
<body bgcolor="#eeeeee" topmargin="5" leftmargin="5">
<% call bghead() %>
<center><b>资源预约详细信息</b></center>
<%
call bgmid()
%>
<center>
<br><br>

<%
id=request("id")
if request("submit")="删除" then
set conn=opendb("oabusy","conn","accessdsn")
sql="delete * from booking where id=" & id
conn.Execute sql
%>
<br>成功删除预约!<br><br>
<form method="post" action="booking.asp">
<input type="submit" value="返回">
</form>
<%
else
set conn=opendb("oabusy","conn","accessdsn")
set rs1=server.createobject("adodb.recordset")
sql="select * from booking where id=" & id
rs1.open sql,conn,1
if not rs1.bof and not rs1.eof then
%>
<table border="1"  cellspacing="0" cellpadding="0" width=80%>
<tr>
<td width=120><b>预约使用资源名称:</b></td><td><%=rs1("equipment")%></td>
</tr>
<tr>
<td><b>预计开始使用时间:</b></td><td><%=rs1("starttime")%></td>
</tr>
<tr>
<td><b>预计结束使用时间:</b></td><td><%=rs1("endtime")%></td>
</tr>
<tr>
<td colspan="2">
<%
'读出人员资料
set conn=opendb("oabusy","conn","accessdsn")
set rs3=server.createobject("adodb.recordset")
sql="select * from userinf where username=" & sqlstr(rs1("username"))
rs3.open sql,conn,1
if not rs3.eof and not rs3.bof then
if oabusyusername=rs1("username") then response.write "<font color=red>"
%>
预约人:<%=rs3("name")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;所在部门:<%=rs3("userdept")%>
<%
if oabusyusername=rs1("username") then response.write "</font>"
end if
%>
</td>
</tr>
<tr>
<td colspan="2" height=100 valign=top>
<b>使用说明:</b><br>
<%=keepformat(rs1("purpose"))%>
</td>
</tr>
</table>
<form method="post" action="editbooking.asp">
<input type="button" value="返回" onclick="window.location.href='booking.asp'">
<%
if oabusyusername=rs1("username") then
%>
<input type="submit" name="submit" value="删除" onclick="return window.confirm('你真的要删除这条预约吗?')">
<input type="hidden" name="id" value=<%=id%>>

<%
end if
%>
</form>
<%
end if
end if
%>



</center>
<%
bgback()
%>
</body>
</html>










⌨️ 快捷键说明

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