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

📄 disp.asp

📁 Lirong网络办公系统
💻 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   '		当前操作记录号
	dim opFlag   '		操作标志('cmdAddNew'/'cmdEdit'/'cmdSee')
	dim title,image
	'过滤错误
	'on error resume next
	'response.end
	'获取输入参数:记录号和操作标志
	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 * from [plan] where vowner='0' order by vtime desc"

	'打开记录源,并定位到输入参数决定的记录号
	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">工作日志标题</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>

<%  '关闭记录源
    rs.close
    set rs=nothing
%>
</body>
<html>




⌨️ 快捷键说明

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