📄 email_index.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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">
<meta http-equiv="refresh" content="3;email_index.asp">
<title>内部邮箱</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
background-color: #ffffff;
}
.style2 {
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
.style3 {color: #000000}
-->
</style>
</head>
<body>
<br><br>
<!--#include file="auto.asp" -->
<%
set RS = server.CreateObject("ADODB.Recordset")
Sname = "SELECT Login.Part, Message.Name, Message.Position, email.id, email.faren, email.liulan, email.fbshj,email.biaoti FROM email RIGHT JOIN (Message INNER JOIN Login ON Message.ID=Login.ID) ON email.faren=Message.ID WHERE (((email.shouren)='"&Session("Rname")&"')) ORDER BY email.liulan DESC , email.fbshj DESC;"
%>
<table width="529" height="118" border="0" align="center" cellspacing="1" bgcolor="#336699">
<tr>
<td height="23" colspan="5" background="../picture/tile.gif"><div id="title" >
<div align="center">收件箱</div>
</div></td>
</tr>
<tr bordercolor="#330066" style="border:1:#330066:1">
<td width="35" height="25" bgcolor="#FFFFFF">浏览</td>
<td width="196" bgcolor="#FFFFFF">标题</td>
<td width="122" bgcolor="#FFFFFF">发件人</td>
<td width="100" bgcolor="#FFFFFF">发件时间</td>
<td width="89" bgcolor="#FFFFFF">操作</td>
</tr>
<%
RS.open Sname , CN,1
if not RS.eof then
RS.movefirst
RS.pagesize=5
page=CLng(Request("page"))
if page<1 then page=1
RS.absolutepage=page
for i=1 to RS.pagesize
if RS.eof then
exit for
end if
%>
<tr><td height="26" bgcolor="#FFFFFF">
<%
if strcomp(RS("liulan"),"True")=0 then
response.Write("已读")'"<input name='imageField' type='image' src='../picture/03-Over.gif' width='36' height='18' border='-1'>")
else
response.Write("未读")'"<input name='imageField' type='image' src='../picture/star.gif' border='-1'>")
end if
%>
</td><td bgcolor="#FFFFFF"><a href="#" onClick="JavaScript:window.open('email_detail.asp?ID=<%=RS("ID") %>','','width=550,height=250')">
<%response.Write(RS("biaoti"))%>
</a></td><td bgcolor="#FFFFFF">
<%response.Write(part&position)%> <%response.write(RS("Name"))%>
</td><td bgcolor="#FFFFFF">
<%response.Write(RS("fbshj"))%>
</td><td bgcolor="#FFFFFF">
<img src="../picture/del.gif" onClick="JavaScript:window.open('email_del.asp?ID=<%=RS("ID") %>','del','width=600,height=400')">
</td>
</tr>
<%
if not RS.eof then
RS.movenext
else
exit for
end if
next
'RS.close
%>
<tr>
<td height="21" colspan="5" background="../picture/tile.gif">
</td>
</tr>
<%
else
%>
<tr><td colspan='5' bgcolor="#FFFFFF"><div align="center">没有邮件</div></td>
</tr>
<%
RS.close
end if
%>
</table>
<br>
<br>
<table width="529" height="114" border="0" align="center" cellspacing="1" bgcolor="#336699">
<tr>
<td height="24" colspan="5" background="../picture/tile.gif"><div id="title" >
<div align="center">发件箱</div>
</div></td>
</tr>
<tr>
<td width="33" bgcolor="#FFFFFF">确认</td>
<td width="188" bgcolor="#FFFFFF">标题</td>
<td width="113" bgcolor="#FFFFFF">收件人</td>
<td width="95" bgcolor="#FFFFFF">发布时间</td>
<td width="84" bgcolor="#FFFFFF">操作</td>
</tr>
<%
set RS1 = server.CreateObject("ADODB.Recordset")
Sname1 = "SELECT Login.Part, Message.Name, Message.Position, email.biaoti,email.id, email.fbshj, email.liulan FROM (Message INNER JOIN Login ON Message.ID=Login.ID) LEFT JOIN email ON Message.ID=email.shouren WHERE (((email.faren)='"&Session("Rname")&"') And ((Login.ID)=email.shouren) And ((Message.ID)=email.shouren)) ORDER BY email.fbshj DESC;"
RS1.open Sname1 , CN, 1,3
if not RS1.eof then
'分页
RS1.movefirst
RS1.pagesize=5
page1=CLng(Request("page1"))
if page1<1 then page1=1
RS1.absolutepage=page1
for i=1 to RS1.pagesize
if RS1.eof then
exit for
end if
%>
<tr>
<td bgcolor="#FFFFFF">
<%
if strcomp(RS1("liulan"),"True")=0 then
response.write("已收")
else
response.write("未收")
end if
%>
</td>
<td bgcolor="#FFFFFF"><%response.Write(RS1("biaoti"))%>
</td>
<td bgcolor="#FFFFFF">
<%response.Write(RS1("Name"))%>
</td>
<td bgcolor="#FFFFFF">
<%response.Write(RS1("fbshj"))%>
</td>
<td bgcolor="#FFFFFF">
<img src="../picture/del.gif" onClick="JavaScript:window.open('email_del.asp?ID=<%=RS1("ID") %>','del','width=600,height=400')">
</td>
</tr>
<%
if not RS1.eof then
RS1.movenext
else
exit for
end if
next
%>
<tr>
<td height="21" colspan="5" bgcolor="#FFFFFF">
<div id="di" align="right">
<% if page1<>1 then %>当前<%=page1%>页<a href=<%=path%>?page1=1 >第一页</a>
<a href=<%=path%>?page=<%=(page1-1)%>>上一页</a>
<%end if
if page1<>RS1.pagecount then %>当前<%=page1%>页
<a href=<%=path%>?page1=<%=(page1+1)%> >下一页</a>
<a href=<%=path%>?page1=<%=RS1.pagecount%> >最后一页</a>
<%end if %>
<input name="newemail" type="button" id="newemail" value="新邮件" onClick="JavaScript:window.open('email_add.asp','','width=550,height=400')">
</div>
</tr>
<%
else
response.write("<tr><td colspan='5'>没有发过邮件</td></tr>")
RS1.close
CN.close
%>
<tr>
<td height="21" colspan="5" background="../picture/tile.gif">
<div id="di" align="center">
<input name="newemail" type="button" id="newemail" value="新邮件" onClick="JavaScript:window.open('email_add.asp','','width=550,height=400')">
</div>
</tr>
<%
end if
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -