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

📄 logbook_show.asp

📁 OFFICE办公自动化
💻 ASP
字号:
<%
'功能:查看指定日志详细信息
'参数:request("id")=int #日志ID; request("page")=int #当前页码; request("selectdate")="date" #显示当日日志
%>

<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->

<%
'response.buffer=false

'------------------------------------------------设置参数
LoginID=trim(session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
currentpage=request("page") : if currentpage="" then currentpage=1 '当前页码
selectdate=request("selectdate") '筛选日志日期
pid=request("id") '日志ID
DepartmentID=request("DepartmentID") '部门ID; 
'------------------------------------------------
'------------------------------------------------取记录
'取要查看的日志记录 (返回rs对象)
'
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from vioaLogbook where ID="&pid
rs.open sql,oConn,1,1
'------------------------------------------------
%>


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
<base target="FrmMain">
</head>

<body topmargin="10" leftmargin="10">

<!--#include file="logbook_menu.html"-->

<hr width="100%" size=1 color="#000000">
<br>

<table width="100%" cellspacing="1" cellpadding="2" class="tab">
  <tr>
    <td width="100%" class="tdTop">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td class="tdTop">
            <p align="left"><img border="0" src="../images/icon_title.gif" align="left">查看日志</p>
          </td>
          <td width="90" class="tdTop">
            <p align="left"><img border="0" src="../images/icon_return.gif" align="left">  
            <a href="logbook_list.asp?page=<%=currentpage%>&selectdate=<%=selectdate%>&DepartmentID=<%=DepartmentID%>" class="linkTop">返回列表</a></p>    
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="25%" class="td1">
      <table border="0" width="100%" cellspacing="10" cellpadding="0">
        <tr>
          <td width="100%">
            填写人:<%=HtmlOut(rs("UserName"))%>  所属部门:<%=HtmlOut(rs("DepartmentName"))%>  填写日期:<%=HtmlOut(rs("AddDate"))%>
          </td>
        </tr>
        <tr>
          <td width="100%">
            <fieldset style="width:100%" align="center"> <legend>日志内容</legend> 
            <%=HtmlOut(rs("Body"))%>
            </fieldset>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="25%" class="tdBottom">
    </td>
  </tr>
</table>
<a name="bottom"></a>
</body>

</html>

<%'释放对象变量
rs.close
oConn.close
%> 

⌨️ 快捷键说明

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