?? disp.asp
字號:
<%@LANGUAGE="VBScript"%>
<%response.expires=0%>
<%Response.Buffer=true%>
<!-- #include file="../conn_lr.asp"-->
<!-- #include file="../css.asp"-->
<%
oabusyname=session("oabusyname")
oabusyusername=session("oabusyusername")
oabusyuserdept=session("oabusyuserdept")
oabusyuserlevel=session("oabusyuserlevel")
session("id")=session("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 ' 當(dāng)前操作記錄號
dim opFlag ' 操作標(biāo)志('cmdAddNew'/'cmdEdit'/'cmdSee')
dim title,image
'過濾錯誤
'on error resume next
'response.end
'獲取輸入?yún)?shù):記錄號和操作標(biāo)志
Number=request("Number")
if Number="" then Number="0"
Number=Cint(Number)
opFlag=request("opFlag")
'創(chuàng)建記錄訪問對象
Set rs = Server.CreateObject("ADODB.Recordset")
if opFlag="start" then Session("SQL")="select * from [plan] where vowner='0' order by vtime desc"
'打開記錄源,并定位到輸入?yún)?shù)決定的記錄號
rs.Open Session("SQL"),Session("conn"),1,1
rs.move Number
title="工作日志"
image="../images/plan.gif"
%>
<style>
.css0 {<%=Session("vinputtext")%> }
SELECT { font-size:12px}
</style>
</head>
<body leftmargin="0" topmargin="0" >
<!-- #include file="../public/title.asp" -->
<table border="0" cellspacing="1" align="center" bgcolor="<%=Session("vtablebordercolor")%>" width="95%">
<tr bgcolor="" class=vtext>
<td align="center" bgcolor="<%=Session("vtabletitlebackcolor")%>" height="35" width="80">時間</td>
<td align="left" bgcolor="<%=Session("vtabletitlebackcolor")%>">
<%=rs("vtime")%>
</td>
</tr>
<tr class=vtext>
<td align="center" bgcolor="<%=Session("vtabletitlebackcolor")%>" height="35" width="80">工作日志標(biāo)題</td>
<td align="left" bgcolor="<%=Session("vcolcolor")%>" >
<%=rs("vtitle")%> </td>
</tr>
<tr bgcolor="<%=Session("vcolcolor")%>" valign="top" class="">
<td align="center" height="143" colspan="2">
<div align="left"><%=rs("vplan")%></div>
</td>
</tr>
</table>
<p align=center>
<button class=vinputbutton style="height=24" onClick="window.location.href='print.asp?Number=<%=Number%>'"><img src="../images/print.gif" align="absmiddle"> 打印</button>
<button class=vinputbutton name="Submit6" style="height=24" onClick=javascript:history.go(-1);><img src="../images/back.gif" align="absmiddle"> 返回</button>
</p>
<% '關(guān)閉記錄源
rs.close
set rs=nothing
%>
</body>
<html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -