📄 weekrep.asp
字号:
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/monthlycal.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/checked.asp"-->
<!--#include file="conn.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then response.redirect "default.asp"
username=oabusyusername
'取得当前日期
mydate=date
'取得当前月
mymonth=month(now())
if request("mymonth")<>"" then mymonth=cint(request("mymonth"))
'取得当前年
myyear=year(now())
if request("myyear")<>"" then myyear=cint(request("myyear"))
dim weekorder
weekorder=cint(request("myweek"))
%>
<html>
<head>
<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">
<script language="javascript1.2" src="js/openwin.js"></script>
<title>企业办公系统</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#eeeeee" topmargin="5" leftmargin="5">
<% 'call bghead() %>
<center>
<table>
<tr>
<form action="weekrep.asp" method=get name="form1">
<td>
<select name="myyear" size=1>
<option value=2001<%=selected(2001,myyear)%>>2001年</option>
<option value=2002<%=selected(2002,myyear)%>>2002年</option>
<option value=2003<%=selected(2003,myyear)%>>2003年</option>
<option value=2004<%=selected(2004,myyear)%>>2004年</option>
<option value=2005<%=selected(2005,myyear)%>>2005年</option>
<option value=2006<%=selected(2006,myyear)%>>2006年</option>
<option value=2007<%=selected(2007,myyear)%>>2007年</option>
<option value=2008<%=selected(2008,myyear)%>>2008年</option>
<option value=2009<%=selected(2009,myyear)%>>2009年</option>
</select>
<select name="mymonth" size=1>
<option value=1<%=selected(1,mymonth)%>>1月</option>
<option value=2<%=selected(2,mymonth)%>>2月</option>
<option value=3<%=selected(3,mymonth)%>>3月</option>
<option value=4<%=selected(4,mymonth)%>>4月</option>
<option value=5<%=selected(5,mymonth)%>>5月</option>
<option value=6<%=selected(6,mymonth)%>>6月</option>
<option value=7<%=selected(7,mymonth)%>>7月</option>
<option value=8<%=selected(8,mymonth)%>>8月</option>
<option value=9<%=selected(9,mymonth)%>>9月</option>
<option value=10<%=selected(10,mymonth)%>>10月</option>
<option value=11<%=selected(11,mymonth)%>>11月</option>
<option value=12<%=selected(12,mymonth)%>>12月 </option>
</select>
<input type="submit" name="submit" value="查询">
</td>
</form>
</tr>
</table>
本人<%=myyear%>年<%=mymonth%>月<% if weekorder>0 then %>第<%=weekorder %>周<% end if %>工作总结
</center>
<%
'call bgmid()
%>
<center>
<br>
</center>
<% 'call monthlycal(username,superior) %>
<%
dim mystr,weeksumRs,usrinfkey,repcount
if username<>"" then
mystr="select * from [userinf] where username='"& username & "'"
set weeksumRs=server.CreateObject("adodb.recordset")
weeksumRs.open mystr,cnSQL,1,1
if not (weeksumRs.bof and weeksumRs.eof) then
weeksumRs.movefirst
usrinfkey=weeksumRs("id")
'****提取查询的星期的总结
dim weeksqlstr,repRs
weeksqlstr="select * from [weekrep] where userinfkey="&cint(usrinfkey)&" and yearvalue="&cint(myyear)&" and monvalue="&cint(mymonth)&" order by sumorder asc"
set repRs=server.CreateObject("adodb.recordset")
repRs.open weeksqlstr,cnSQL,1,1
repcount=repRs.recordcount
'if repcount>0 and myyear>0 and mymonth>0 then
if not(repRs.bof and repRs.eof) then repRs.movefirst
%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height=68> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="68">
<tr>
<td width=64><img border="0" src="images/j1.gif" width="64" height="68"></td>
<td background="images/j2.gif" width="100%" height="68" align=center>
</td>
<td width="60" height="68"><img border="0" src="images/j3.gif" width="60" height="68"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign=top> <table width="100%" height="280" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/j4.gif" width=18 height=280></td>
<td valign=top height=280><p> </p>
<div align="center">
<p><font color="#FF0000"><strong>本人</strong></font>的<%=myyear%>年<%=mymonth%>月工作总结
</p>
</div>
<table width="100%" border="0" align="center" cellpadding="8" cellspacing="1" bgcolor="#7B9AE7">
<tr align="center">
<td colspan="4" class="font"><a name="newsmanager" class="font4"><font color="#FFFFFF">工作总结管理</font></a></td>
</tr>
<tr bgcolor="#C4D1F4" align="center">
<td width="8%"><div align="center"><font size="2">周次</font></div></td>
<td width="81%"><font size="2">详细内容</font></td>
<td width="11%"><font size="2">操作</font></td>
</tr>
<!--#include file="getValue.asp"-->
<%
for i =1 to 4
%>
<% if getValue(i) then %>
<tr>
<td bgcolor="#FFFFFF" align="center"><%= repRs("sumorder") %></td>
<td bgcolor="#FFFFFF">
<div align="center">
<%
if repRs("sumcontent")="" then
%>
<font color="#66CC33">无内容</font>
<% else %>
<% dim str
str=repRs("sumcontent")
if len(str)<=40 then
response.write(str)
else
response.write(mid(str,1,37)&"...")
end if
%>
<%
end if
%>
</div>
</td>
<td align="center" valign="middle" bgcolor="#FFFFFF"> <font size="2">
<a href="browseweekrep.Asp?weekrepKey=<%= repRs("weekrepKey") %>&yearvalue=<%=repRs("yearvalue")%>&monvalue=<%=repRs("monvalue") %>&sumorder=<%=repRs("sumorder")%>&action=person">浏览</a>
</font> </td>
</tr>
<%
else
%>
<tr>
<td bgcolor="#FFFFFF" align="center"><%=i %></td>
<td bgcolor="#FFFFFF">
<div align="center"><font color="#66CC33">无内容</font></div>
</td>
<td align="center" valign="middle" bgcolor="#FFFFFF">
<a href="addweekrep.Asp?usrinfkey=<%=usrinfkey %>&yearvalue=<%=myyear%>&monvalue=<%=mymonth %>&sumorder=<%=i%>&action=person" target="_self"><font color="#FF0000" size="1"> 增加</font></a>
</td>
</tr>
<% end if
' repRs.movenext
next
%>
</table></td>
<td background="images/j5.gif" width=18 height=280></td>
</tr>
</table></tr>
<tr>
<td height=19> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="19">
<tr>
<td width=18 height=19><img border="0" src="images/j6.gif" width="18" height="19"></td>
<td background="images/j7.gif" width=100% height=19></td>
<td width="18" height="19"><img border="0" src="images/j8.gif" width="18" height="19"></td>
</tr>
</table></td>
</tr>
</table>
<%
set repRs=nothing
set cnSQL=nothing
set weeksumRs=nothing
end if
end if
%>
<%
'call bgback()
%>
</div>
<div align="center"></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -