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

📄 logview.asp

📁 一个互联网络公司网站源码
💻 ASP
字号:
<!--#include file="conn.asp" -->
<%
if request.Form("submit")="提交批注" then
	id =request("id")
	if id="" and not isnumeric(id) then
	id=0
	end if
	sql="select * from [summary] where id="&ID
	set rs=server.CreateObject("adodb.recordset")
	rs.open sql,conn,1,3
	if session("flag") then
	rs("postil")=TxtShift(request("postil"))
	end if
	rs.update
	rs.close
%>
<script>
alert("修改成功");
location.href="worklog.asp";
</script>
<%
	response.end
	end if
	id =request("id")
	if id="" and not isnumeric(id) then
	id=0
	end if
	sql="select * from [summary] where id="&ID
	set rs=server.CreateObject("adodb.recordset")
	rs.open sql,conn,1,1
%>

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<TITLE>办公自动化系统</TITLE>
<link href="skins/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
	if not rs.eof then
%>
<table border="0" cellpadding="3" cellspacing="1" width="100%" align=center>
  <form action="" method=post>
    <tr>
      <th colspan="2">工作日志查看</th>
    </tr>
    <tr>
      <td width=20% class="td2">日志标题:</td>
      <td width=80% class=td1><%=rs("title")%></td>
    </tr>
    <tr>
      <td width="20%" height="23" class="td2">今日工作总结:</td>
      <td width="80%" class=td1><%=rs("summary")%></td>
    </tr>
    <tr>
      <td height="23" class="td2">明日工作计划:</td>
      <td class=td1><%=rs("plan")%></td>
    </tr>
<%
	if session("flag") then
	conn.execute("update summary set ischeck=1 ,checktime='"&now()&"' where id="&ID)
%>
    <tr>
      <td height="23" class="td2">领导批注:</td>
      <td class=td1><textarea name="postil" cols="45" rows="6" id="postil"><%=ReTxtShift(rs("postil"))%></textarea></td>
    </tr>
    <tr>
      <th style="text-align:center;" colspan="2"><input name="id" type="hidden" id="id" value="<%=id%>">
      <input name="submit" type=submit class="button" value="提交批注"> 
      <input name="submit" type=button class="button" onClick="history.go(-1)" value="返回"></th>
    </tr>
<%
	else
%>
    <tr>
      <td height="23" class="td2">领导批注:</td>
      <td class=td1><%=rs("postil")%></td>
    </tr>
    <tr>
      <th style="text-align:center;" colspan="2"><input name="submit" type=button class="button" onClick="history.go(-1)" value="返回"></th>
    </tr>
<%
	end if
%>
  </form>
</table>
<%

end if
rs.close
%>
</body>
</html>

⌨️ 快捷键说明

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