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

📄 displayworkrec.asp

📁 中国计生委网络办公系统,政府电子商务程序
💻 ASP
字号:
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/keepformat.asp"-->
<!--#include file="asp/checked.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
cook_allow_see_all_workrep=request.cookies("cook_allow_see_all_workrep")
cook_allow_see_dept_workrep=request.cookies("cook_allow_see_dept_workrep")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if

'--------------------------
function havefinished(value)
if value="yes" then
havefinished="已完成"
else
havefinished="<font color=red>未完成</font>"
end if
end function
'---------------------------
function impdegree(value)
if value="yes" then
impdegree="<font color=red>重要</font>"
else
impdegree="一般"
end if
end function
'---------------------------
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="css/css.css">
<title>Crackgo办公系统</title>
</head>
<body bgcolor="#eeeeee" topmargin="5" leftmargin="5">
<%
call bghead()
%>
<%
username=request("username")
superior=request("superior")
recdate=request("recdate")
'打开数据库读出用户姓名
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select name from userinf where username=" & sqlstr(username)
rs.open sql,conn,1
if not rs.eof and not rs.bof then stafname=rs("name")
%>
<center>
<table border="0"  cellspacing="0" cellpadding="0">
<tr>
<td><b><%=stafname%>的工作任务(<%=recdate%>)</b></td>
<form action="addworkrep.asp" method=post name="form1">
<%
if (username=oabusyusername) or ( username<>oabusyusername and (cook_allow_see_all_workrep="yes" or cook_allow_see_dept_workrep="yes")) then
%>
	<td><input type="submit" name="addworkrep" value="增加"></td>
<%
end if
%>
<input type="hidden" name="username" value="<%=username%>">
<input type="hidden" name="superior" value="<%=superior%>">
<input type="hidden" name="recdate" value="<%=recdate%>">
</form>
</tr>
</table>
</center>
<%
call bgmid()
%>
&nbsp;<br>
<center>
<%
'打开数据库,读出日期为recdate,用户名为username的记录
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from workrep where username=" & sqlstr(username) & " and recdate=" & "#" & recdate & "#"
rs.open sql,conn,1
while not rs.eof and not rs.bof
'读出任务委派者姓名
	if rs("superior")<>"" then
		set conn=opendb("oabusy","conn","accessdsn")
		set rs1=server.createobject("adodb.recordset")
		sql="select name from userinf where username=" & sqlstr(rs("superior"))
		rs1.open sql,conn,1
		superiorname=rs1("name")
	else
			superiorname="本人安排"
	end if
%>
<table border="1"  cellspacing="0" cellpadding="0" width="90%">
<tr>
<form method="post" name="a1" action="editworkrep.asp">
<td width=60 align=center>
<%
if (username=oabusyusername) or (superior=oabusyusername) then
%>
<input type="submit" value="编辑" name="submit">
<input type="hidden" name="username" value="<%=username%>">
<input type="hidden" name="superior" value="<%=superior%>">
<input type="hidden" name="recdate" value="<%=recdate%>">
<input type="hidden" name="id" value=<%=rs("id")%>>
<%
else
%>
不可编辑
<%
end if
%>
</td>
</form>
<td width=60><b>完成情况</b></td><td><%=havefinished(rs("finished"))%></td>
<td width=60><b>重要程度</b></td><td><%=impdegree(rs("imp"))%></td>
<td width=70><b>委派任务者</b></td><td width=60><%=checked3(superiorname)%></td>
</tr>
<tr>
<td align=center><b>简要标题</b></td><td colspan="6"><%=rs("title")%></td>
</tr>
<tr>
<td align=center><b>详细说明</b></td><td colspan="6"><%=checked3(keepformat(rs("remark")))%></td>
</tr>
</table>
<hr color=red size=1 width=90%>
<%


rs.movenext
wend
%>
</center>

<%
call bgback()
%>
</body>
</html>

⌨️ 快捷键说明

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