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

📄 view_plane.asp

📁 网络办公系统源码
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../config.asp"-->
<!--#include file="../checklogin.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../img/css1.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	line-height:150%
}
.style2 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
</head>
<%
act=request.QueryString("act")
id=replace(request.QueryString("id"),"'","")
'更新查看次数
conn.execute("update oa_workplan set hits=hits+1 where id="&id)
'更新查看人


'--------------------------------------------------------------------------
sql="select * from oa_workplan where id="&id
set rs=conn.execute(sql)
if not rs.eof then
	title=rs("oa_workplantitle")
	content=rs("oa_workplancontent")
	addtime=rs("addtime")
	uname=rs("uname")
	viewuser=trim(rs("viewuser"))
end if
rs.close
set rs=nothing
'--------------更新查看人信息----------------------------------
usql="select * from oa_workplan where id="&id
set rs=server.CreateObject("adodb.recordset")
rs.open usql,conn,1,3
if viewuser<>"" then
	if instr(viewuser,trim(session("truename")))>0 then'如果已经有该姓名
	else
		rs("viewuser")=viewuser&","&trim(session("truename"))
	end if
else
	rs("viewuser")=trim(session("truename"))
end if
rs.update
rs.close
set rs=nothing

%>
<body>

<table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#F2F2F2" class="tabel1">
  <tr align="left" bgcolor="#CC0000">
    <td height="25" colspan="2"><span class="style2"><font style="font-size:15px ">【<%=addtime%>】<%=title%>
    <input name="Submit2" type="button" class="bon" id="Submit3" value="发布新计划" onClick="window.location.href='add_plane.asp'">
    <input name="Submit" type="button" class="bon" value="返回上页" onClick="window.history.go(-1)">
</font></span></td>
  </tr>
    <tr bgcolor="#cccccc">
    <td height="5"  colspan="2"></td>
    </tr>
  <tr bgcolor="#F9F9F9">
    <td width="20%" height="25" align="center"><%=uname%></td>
    <td width="80%" height="25" align="left"><%=content%></td>
  </tr>
    <tr bgcolor="#FF3300">
    <td height="5"  colspan="2"></td>
    </tr>
</table>

</body>
</html>

⌨️ 快捷键说明

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