📄 disp.asp
字号:
<%@LANGUAGE="VBScript"%>
<%response.expires=0%>
<%Response.Buffer=true%>
<!-- #include file="../conn_lr.asp"-->
<!-- #include file="../css.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
session("id")=request.cookies("oabusyname")
if oabusyusername="" then
response.write("<script language=""javascript"">")
response.write("window.top.location.href='../../default.asp';")
response.write("</script>")
response.end
end if
%>
<html>
<head>
<title>显示信息</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<!-- #Include File=../main/css.asp -->
<%
'定义变量
dim Number ' 当前操作记录号
dim opFlag ' 操作标志('cmdAddNew'/'cmdEdit'/'cmdSee')
'过滤错误
on error resume next
dim title,image
dim year1,month1,day1,hour1,minute1,year2,month2,day2,hour2,minute2,vtext,i,j
'获取输入参数:记录号和操作标志
Number=request("Number")
if Number="" then Number="0"
Number=Cint(Number)
opFlag=request("opFlag")
'创建记录访问对象
Set rs = Server.CreateObject("ADODB.Recordset")
if opFlag="start" then Session("SQL")="select top 5 * from remind where vowner='" & Session("id") & "' order by vtime desc"
'初始化参数
'打开记录源,并定位到输入参数决定的记录号
rs.Open Session("SQL"),Session("conn"),1,3
rs.move number
'日期显示变量
vtext=rs("vtext")
image="../images/cala.gif"
title="日程安排"
%>
<style>
.css0 {<%=Session("vinputtext")%> }
</style>
</head>
<body leftmargin="0" topmargin="0">
<form name="submitinput" action="save.asp?opFlag=<%=opFlag%>&Number=<%=Number%>" method="post" >
<!-- #include file="../public/title.asp" -->
<input type=hidden name="vplan">
<table border="0" class=vtext cellspacing="1" align="center" width="95%" cellpadding="0" bgcolor="<%=Session("vtablebordercolor")%>" >
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">活动时间:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("vtime")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">提醒时间:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=rs("vremindtime")%></td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="98" align="right" nowrap height="25">日程标题:</td>
<td bgcolor=<%=Session("vcolcolor")%> height="25" align="left" valign="middle"><%=replace(rs("vtitle"),"<br>",chr(13))%></td>
</tr>
<tr align="left" bgcolor="<%=Session("vcolcolor")%>">
<td align="right" valign="top" bgcolor="<%=Session("vtabletitlebackcolor")%>">日程内容:</td>
<td valign="top">
<textarea name="vtext" cols="40" class="css0" id="日程内容" style=" width=100%; height:200px;border:none" rows="1" readonly><%=replace(vtext,"<br>",chr(13))%></textarea>
</td>
</tr>
</table>
<p align=center>
<button class=vinputbutton name="Submit6" style="height=24" onClick=javascript:history.go(-1);><img src="../images/back.gif" align="absmiddle"> 返回</button>
</p>
</form>
<%
rs.close
set rs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -