📄 sendbox.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">
<link href="css/MainBorder.css" rel="stylesheet" type="text/css">
<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}
.STYLE4 {color: #FFFFFF}
-->
</style>
</head>
<body>
<br><br>
<!--#include file="Connections/auto.asp" -->
<%
set RS = server.CreateObject("ADODB.Recordset")
Sname = "SELECT Login.Part, Message.Name, Message.Position, 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;"
%>
<br>
<br>
<table width="529" height="114" border="0" align="center" cellspacing="1" bgcolor="#666699">
<tr>
<td height="24" colspan="5" align="center" ><span class="style2">已发邮件</span></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" >
<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 + -