📄 per.asp
字号:
<!--#include file="conn.asp" -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFffff;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY bgcolor="#FF0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<div align="center">
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td> <div align="right">
<% If session("admin")<>"yes" Then
response.write("系统超时,您需要<font color=red><b>重新登陆</font></b>。 ")
response.end
Else %>
您现在处于管理状态。
<%end if%>
<strong><a href="javascript:self.location.reload();"><font color="#FF0000">刷新</font></a></strong>
</div></td>
</tr>
<tr>
<td valign="top"> <strong>个人报表:</strong> </td>
</tr>
<tr>
<td valign="top"><div align="right"><a href="hesuan.asp"><font color="#FF0000">
</font></a>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="17%"><font color="#000000">当前日:<strong> <font color="#FF0000"> <%=request("day")%>
</font></strong></font></td>
<td width="65%"><font color="#000000"> </font></td>
<td width="18%"><div align="right"><a href="hesuan.asp"><font color="#FF0000">返回工资核算系统</font></a></div></td>
</tr>
<tr>
<td><font color="#000000">选择:</font></td>
<td colspan="2"><font color="#000000">
<% for a=1 to 31
%>
<a href=?day=<%=a%>&month=<%=request("month")%>&mid=<%=request("mid")%>><%=a%></a>
<%next
a=a+1%>
</font></td>
</tr>
<tr>
<td colspan="3"><hr size="1" noshade>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="17%"><font color="#000000">当前月:<strong> <font color="#FF0000">
<%=request("month")%>
</font></strong></font></td>
<td width="74%"><font color="#000000">选择月份:
<% for i=1 to 12
%>
<a href=?month=<%=i%>&day=<%=request("day")%>&mid=<%=request("mid")%>><%=i%></a>
<%next
i=i+1%>
</font></td>
<td width="9%"><div align="right"><a href="hesuan.asp"></a></div></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td valign="top">
<%
if request("mid")="" then
response.write("error")
response.End()
end if
set rs=server.createobject("adodb.recordset")
if request("month")="" then
sql="select * from daylu where 工号 like "&request("mid")&" order by 日期 desc"
end if
if request("month")<>"" then
sql="select * from daylu where 工号 like "&request("mid")&" and month(日期)="&request("month")&" order by 日期 desc"
end if
if request("day")<>"" then
sql="select * from daylu where 工号 like "&request("mid")&" and day(日期)="&request("day")&" order by 日期 desc"
end if
if request("day")<>"" and request("month")<>"" then
sql="select * from daylu where 工号 like "&request("mid")&" and day(日期)="&request("day")&" and month(日期)="&request("month")&" order by 日期 desc"
end if
if request("day")="" and request("month")="" then
sql="select * from daylu where 工号 like "&request("mid")&" order by 日期 desc"
end if
rs.open sql,conn,3,1
if rs.eof or rs.bof then
response.Write("没有发现员工记录。")
response.End()
end if
%>
<%
pgsize=8
page=request.querystring("page")
rs.pagesize=pgsize
pgnm=rs.pagecount
if page=""or clng(page)<1 then page=1
if clng(page)>pgnm then page=pgnm
if pgnm>0 then rs.absolutepage=page
count=0%>
<table width="100%" border="0" cellpadding="1" cellspacing="1" class="front">
<tr>
<td bgcolor="#F2EADF" ><div align="left" class="gb4">现有记录:<font color="#FF0000"><%=rs.recordcount %></font>共<font color="#FF0000">
<%= pgnm %></font> 页,当前页:<font color="#0033FF"><%= page %> </font><a href=?page=1&day=<%=request("day")%>&mid=<%=request("mid")%>&month=<%=request("month")%>>第一页</a>
<a href=?page=<%=pgnm%>&day=<%=request("day")%>&mid=<%=request("mid")%>&month=<%=request("month")%>>最后一页</a>
<a href=?page=<%=page+1%>&day=<%=request("day")%>&mid=<%=request("mid")%>&month=<%=request("month")%>>下一页</a>
<a href=?page=<%=page-1%>&day=<%=request("day")%>&mid=<%=request("mid")%>&month=<%=request("month")%>>上一页</a>
<a href="db.asp?day=<%=request("day")%>&page=<%=page%>&mid=<%=request("mid")%>&month=<%=request("month")%>" target="_blank"><font color="#FF0000">打印预览</font></a>
<a href="?mid=<%=request("mid")%>"><font color="#0000FF">所有记录</font></a></div></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td><b>工号:</b></td>
<td><strong>工序</strong></td>
<td><strong>单位工资</strong></td>
<td><strong>完成数量</strong></td>
<td><strong>工序卡号</strong></td>
<td><strong>日期</strong></td>
<td><b>合计工资</b></td>
</tr>
<%
do while not rs.eof %>
<tr bgcolor="#FFFFFF">
<td><b><%=rs("工号")%></b></td>
<td><%=rs("工序")%> </td>
<td><%=rs("工资")%></td>
<td><%=rs("数量")%> </td>
<td><a href=kamore.asp?kid=<%=rs("卡号")%>><font color="#FF0000"><%=rs("卡号")%></font></a> </td>
<td><%=rs("日期")%> </td>
<td><%=rs("合计工资")%></td>
</tr>
<%
if not rs.eof or not rs.bof then rs.movenext
count=count+1
loop
rs.close
%>
</table></td>
</tr>
</table>
</div>
</BODY>
</HTML> <%
conn.close%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -