<%
'Determine if a sort order was chosen.
Session("sortby") = Request.QueryString("SortBy")
order_by = Trim(Request.QueryString("SortBy"))
If order_by = "" Then
order_by = "DESC-MsgDate"
Session("SortDir") = "FILO"
End If
Select Case order_by
Case "Subject"
order_by = "Subject, MsgDate, EmailFrom"
Case "EmailFrom"
order_by = "EmailFrom, MsgDate, Subject"
Case "MsgDate"
order_By = "MsgDate, EmailFrom, Subject"
Case "DESC-MsgDate"
order_By = "MsgDate DESC, EmailFrom, Subject"
End Select
'Generate query.
SQL = "SELECT QuarID, EmailFrom, Subject, MsgDate, MsgID, RejectDesc, RejectDetails "
SQL = SQL & "FROM tblQuarantine, tblRejectCodes "
SQL = SQL & "WHERE (EmailTo = '" & EmailTo & "') "
SQL = SQL & "AND (Deliver <> 1) "
SQL = SQL & "AND (Expire <> 1) "
SQL = SQL & "AND (tblQuarantine.RejectID = tblRejectCodes.RejectID) "
SQL = SQL & "ORDER BY " & order_by
Set rs = con.Execute(SQL)
RecordCount = rs.RecordCount
%>
</font>
<div align="center">
<font face="Arial">
</tr>
</font>
<table width="396">
<tr>
<td height="15" style="padding-left: 4px; padding-right: 4px" align="right">
<p align="right"><font face="Century Gothic"><big>
<font size="3" color="#000080">Total Quarantined Messages For:</font></big></font></td>
<td height="15" style="padding-left: 4px; padding-right: 4px">
</td>
</tr>
<tr>
<td style="padding-left: 4px; padding-right: 4px" width="263" align="right">
<p><font face="Century Gothic" color="#000080"><strong><%=Server.HTMLEncode(Ema ilTo)%></strong></font></td>
<td style="padding-left: 4px; padding-right: 4px" width="111" align="left">
<b><font color="#0099CC" face="Century Gothic"><%=Server.HTMLEncode(RecordCount)%></fon t></b></td>
</tr>
<tr>
<td style="padding-left: 4px; padding-right: 4px" width="263" align="right">
<font face="Century Gothic" color="#000080"><strong>Times Logged In:</strong></font></td>
<td style="padding-left: 4px; padding-right: 4px" width="111" align="left">
<b><font color="#0099CC" face="Century Gothic"><%=Session("Logins")%></font></b&g t;</td>
</tr>
<tr>
<td style="padding-left: 4px; padding-right: 4px" width="263" align="right">
<p><strong><font face="Century Gothic" color="#000080">
Maximum Entries Displayed:</font></strong></td>
<td style="padding-left: 4px; padding-right: 4px" width="111" align="left">
<b><font color="#0099CC" face="Century Gothic"><%=MaxLoop%></font></b></td& gt;
<tr>
</a></a></td>
<td style="padding-left: 4px; padding-right: 4px" width="263" align="right">
<p><strong><font face="Century Gothic" color="#000080"><%
IF Session("Notification") = 0 THEN
response.write "<a target=""content"" style=""color: #000080"" href=""listspam.asp?Notification=hourly""><span style=""text-decoration: none"">Notification:</span></a>" & vbCRLF
ELSEIF Session("Notification") = 1 THEN
response.write "<a target=""content"" style=""color: #000080"" href=""listspam.asp?Notification=daily""><span style=""text-decoration: none"">Notification:</span></a>" & vbCRLF
ELSEIF Session("Notification") = 2 THEN
response.write "<a target=""content"" style=""color: #000080"" href=""listspam.asp?Notification=off""><span style=""text-decoration: none"">Notification:</span></a>" & vbCRLF
END IF
%></font></strong></td>
<td style="padding-left: 4px; padding-right: 4px" width="111" align="left">
<b><font color="#0099CC" face="Century Gothic"><%
IF Session("Notification") = 0 THEN
response.write "<a target=""content"" style=""color: #0099CC"" href=""listspam.asp?Notification=hourly""><span style=""text-decoration: none"">Off</span></a>" & vbCRLF
ELSEIF Session("Notification") = 1 THEN
response.write "<a target=""content"" style=""color: #0099CC"" href=""listspam.asp?Notification=daily""><span style=""text-decoration: none"">Hourly</span></a>" & vbCRLF
ELSEIF Session("Notification") = 2 THEN
response.write "<a target=""content"" style=""color: #0099CC"" href=""listspam.asp?Notification=off""><span style=""text-decoration: none"">Daily</span></a>" & vbCRLF
END IF
%></font></b></td>
</tr>
<tr>
<td style="padding-left: 4px; padding-right: 4px" colspan="2">
<p align="center">
</tr>
</table>
<form action="ResolveSpam.asp" method="post" target="content">
<font face="Century Gothic" size="2">
<tbody>
<%
If rs.EOF Then
%>
<table border="0" width="475" id="table3">
<tr>
<td align="center">
<a target="content" href="javascript:refresh()">
<img border="0" id="img5" src="button6.gif" height="20" width="100" alt="Refresh" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'button7.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'button6.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'button8.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'button7.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Refresh"></a></td>
<td align="center">
<a target="content" href="PasswordChange.asp"><img border="0" id="img6" src="button9.gif" height="20" width="127" alt="Change Password" onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonA.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'button9.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonB.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'buttonA.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Change Password"></a></a></td>
<td align="center">
<a target="_parent" href="Logout.asp"><img border="0" id="img7" src="buttonC.gif" height="20" width="100" alt="Log Out" onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonD.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonC.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonE.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonD.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Log Out"></a></a></td>
</tr>
</table>
<tr><td align="center" colspan="5"></font><h2>
<font face="Century Gothic" size="5">No potential spam found!</font></h2>
<font face="Century Gothic" size="2"></td></tr>
</tbody>
<%
Else
%>
</font>
<table border="0" height="1%" id="table2">
<tr>
<td> </td>
</tr>
</table>
<div align="center">
<table border="0" width="475" id="table3">
<tr>
<td align="center">
<a target="content" href="javascript:refresh()">
<img border="0" id="img5" src="button6.gif" height="20" width="100" alt="Refresh" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'button7.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'button6.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'button8.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'button7.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Refresh"></a></td>
<td align="center"><INPUT type=image border="0" onClick="return confirmDeleteSubmit()" name="cmdDelete" value="Delete" id="img4" src="button4C.gif" height="20" width="100" alt="Delete" onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4D.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4C.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4E.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4D.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #FF0000; fp-font-color-hover: #FF0000; fp-font-color-press: #FF0000; fp-transparent: 1" fp-title="Delete"></td>
<td align="center">
<INPUT type=image border="0" onClick="return confirmSendSubmit()" name="cmdSend" value="Send To My Inbox" id="img3" src="button49.gif" height="20" width="134" alt="Send To My Inbox" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4A.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'button49.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4B.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'button4A.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Send To My Inbox"></td>
<td align="center">
<img border="0" onclick="SelectAll()" value="Select All" id="img1" src="button46.gif" height="20" width="100" alt="Select All" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Select All" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'button47.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'button46.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'button48.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'button47.gif' )"></td>
<td align="center">
<img border="0" onclick="DeSelectAll()" value="De-Select All" id="img2" src="button43.gif" height="20" width="100" alt="De-Select All" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'button44.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'button43.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'button45.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'button44.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="De-Select All"></td>
<td align="center">
<a target="content" href="PasswordChange.asp"><img border="0" id="img6" src="button9.gif" height="20" width="127" alt="Change Password" onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonA.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'button9.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonB.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'buttonA.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Change Password"></a></a></td>
<td align="center">
<a target="_parent" href="Logout.asp"><img border="0" id="img7" src="buttonC.gif" height="20" width="100" alt="Log Out" onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonD.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonC.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonE.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonD.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Log Out"></a></a></td>
</tr>
</table>
</div>
</div>
<table border="1" cellpadding="2" cellspacing="0" width="100%">
<thead align="center" valign="bottom">
<tr>
<th scope="col" bgcolor="silver">
<font color="#000080" face="Century Gothic" size="2">Sel</font></th>
<th scope="col" bgcolor="silver">
<font color="#000080" face="Century Gothic" size="2">No.</font></th>
<th scope="col" bgcolor="silver">
<a target="content" href="ListSpam.asp?SortBy=EmailFrom">
<font color="#000080" face="Century Gothic" size="2">From</font></a></th>
<th scope="col" bgcolor="silver">
<a target="content" href="ListSpam.asp?SortBy=Subject">
<font color="#000080" face="Century Gothic" size="2">Subject</font></a></th>
<% If Session("SortDir") = "FIFO" Then %>
<th scope="col" bgcolor="silver"><font face="Century Gothic"><a href="ListSpam.asp?SortBy=MsgDate">
</font>
<a target="content" href="ListSpam.asp?SortBy=MsgDate">
<font color="#000080" face="Century Gothic" size="2">Date</font></a><font face="Century Gothic"></a></font></th>
<% Session("SortDir") = "FILO"
Else %>
<th scope="col" bgcolor="silver">
<a target="content" href="ListSpam.asp?SortBy=MsgDate DESC">
<font color="#000080" face="Century Gothic" size="2">Date</font></a></th>
<% Session("SortDir") = "FIFO"
End If %>
</tr>
</thead>
<style>
.classover {background-color: #ff952b;}
</style>
<% Count = 1 %>
<%
While (Not rs.EOF) AND (LoopCount < MaxLoop)
LoopCount = LoopCount + 1
QuarID = rs("QuarID")
MsgID = rs("MsgID")
%>
<% If Count = 0 Then %>
<tr bgcolor="#c9c9c9" onmouseover="this.className='classover'" onmouseout="this.className=''" title="Reason:<%=Chr(13)%><%=rs("Rejectdesc")%>& lt;%=Chr(13)%>Details:<%=Chr(13)%><%=rs("Rejectd etails")%>">
<% ELSE %>
<tr bgcolor="white" onmouseover="this.className='classover'" onmouseout="this.className=''" title="Reason:<%=Chr(13)%><%=rs("Rejectdesc")%>& lt;%=Chr(13)%>Details:<%=Chr(13)%><%=rs("RejectD etails")%>">
<% end if %>
<td align="center"><font face="Century Gothic"><input type="checkbox" name="<%="chk_" & QuarID%>"></font></td>
<acronym onclick="javascript:if (<%="chk_" & QuarID%>.checked==true){<%="chk_" & QuarID%>.checked=false;} else{<%="chk_" & QuarID%>.checked=true;}">
<%Scount = Scount + 1%>
<td valign="middle" nowrap align="center">
<font face="Century Gothic" size="2"><%=Scount%></font></td></ac ronym>
<td><font face="Century Gothic" size="2"> <a href="ResolveSpamv.asp?QuarID=<%=QuarID%>&MsgID=&l t;%=MsgID%>"><font color="#000080">view</font></a><acronym onclick="javascript:if (<%="chk_" & QuarID%>.checked==true){<%="chk_" & QuarID%>.checked=false;} else{<%="chk_" & QuarID%>.checked=true;}">
<%=Server.HTMLEncode(rs("EmailFro m"))%>
</font>
</td>
<td><font face="Century Gothic" size="2"><%=Server.HTMLEncode(rs("Subject"))%></ font></td>
<td><font face="Century Gothic" size="2"><%=rs("MsgDate")%></font></td>
</tr>
</acronym>
<%
Count = Count + 1
If Count = 2 Then Count = 0 %>
<%
rs.MoveNext
Wend
%>
</table>
<font face="Century Gothic">
</table>
</tbody>
</table>
</div></td>
</tr>
</table>
</left>
</div>
<div align="center">
<table border="0" width="475" id="table3">
<tr>
<td align="center">
<a target="content" href="javascript:refresh()">
<img border="0" id="img5" src="button6.gif" height="20" width="100" alt="Refresh" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'button7.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'button6.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'button8.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'button7.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Refresh"></a></td>
<td align="center"><INPUT type=image border="0" onClick="return confirmDeleteSubmit()" name="cmdDelete" value="Delete" id="img4" src="button4C.gif" height="20" width="100" alt="Delete" onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4D.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4C.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4E.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4D.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #FF0000; fp-font-color-hover: #FF0000; fp-font-color-press: #FF0000; fp-transparent: 1" fp-title="Delete"></td>
<td align="center">
<INPUT type=image border="0" onClick="return confirmSendSubmit()" name="cmdSend" value="Send To My Inbox" id="img3" src="button49.gif" height="20" width="134" alt="Send To My Inbox" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4A.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'button49.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4B.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'button4A.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Send To My Inbox"></td>
<td align="center">
<img border="0" onclick="SelectAll()" value="Select All" id="img1" src="button46.gif" height="20" width="100" alt="Select All" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Select All" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'button47.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'button46.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'button48.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'button47.gif' )"></td>
<td align="center">
<img border="0" onclick="DeSelectAll()" value="De-Select All" id="img2" src="button43.gif" height="20" width="100" alt="De-Select All" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'button44.gi f')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'button43.gif ')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'button45.gi f')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'button44.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="De-Select All"></td>
<td align="center">
<a target="content" href="PasswordChange.asp"><img border="0" id="img6" src="button9.gif" height="20" width="127" alt="Change Password" onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonA.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'button9.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonB.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'buttonA.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Change Password"></a></a></td>
<td align="center">
<a target="_parent" href="Logout.asp"><img border="0" id="img7" src="buttonC.gif" height="20" width="100" alt="Log Out" onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonD.gif ')" onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonC.gif' )" onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonE.gif ')" onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonD.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Log Out"></a></a></td>
</tr>
</table>
</div>
</div>
</form>
<%
End If
rs.Close
Set rs = Nothing
con.Close
Set con = Nothing
%>
</div>
</font>
</body>
</html>