<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%ColumnName="":Tablename="HX_MailChit":action=request("action"):page=request("page")
if action="del" then 
  MAID=request("MAID") 
  if MAID="" or isnull(MAID) then HX_GoBack "非法操作",""  
   conn.execute("update "&Tablename&" set WS_MailSendDel=1 where WS_MAID in("&MAID&")")
   WS_S.HX_Redirect "MySendedMessage.asp?page="&page
end if
Orderby=" where WS_MailSendUid="&loginuid&" and WS_MailSendDel=0 order by WS_MailSendDate desc"
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>发件箱</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='10' leftmargin='0' bottommargin='10'><table width='595'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8 background='../hximages/titlelinebg.gif'><table width='580'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>发件箱</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8><form method='post' action='MySendedMessage.asp?action=del&page="&page&"' name='form1'><tr bgcolor='#BF9B73' class='td4'><td width='39' align=center><input type='checkbox' name='checkall' value='checkbox' onClick='chkall(this)' class='radio' style='background-color:BF9B73;'></td><td width='41'>&nbsp;</td><td width='244'><div align='center'><font color='#FFFBE8'>标题</font></div></td><td width='101'><div align='center'><font color='#FFFBE8'>收件人</font></div></td><td width='132'><div align='center'><font color='#FFFBE8'>日期</font></div></td></tr>"
if rs.recordcount<=0 then
response.Write "<tr><td colspan=5 bgcolor=FFFBE8 height=25 align=center>暂时还没有发送邮件！</td></tr>"
else
 rs.PageSize =14 '每页记录条数
	iCount=rs.RecordCount '记录总数
	iPageSize=rs.PageSize
    	maxpage=rs.PageCount 
   
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    rs.AbsolutePage=Page
	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	ii=0
	do while not rs.EOF
	response.write "<tr bgcolor='#FFFBE8' onmouseover=javascript:this.bgColor='#F9F8F2' onmouseout=javascript:this.bgColor='#FFFBE8'><td width='39' align=center><input type='checkbox' name='MAID' value='"&rs("WS_MAID")&"' class='radio' style='background-color:FFFBE8;'></td><td width='41' align='left'>"
	if rs("WS_MailIsRead")=0 then  response.Write "<img src='../HXIMAGES/Message/newmail.GIF' title='对方未读'>" else  response.Write "<img src='../HXIMAGES/Message/oldmail.GIF' title='对方已读'>" end if
	if rs("WS_MailAnnex")<>"" then response.Write "<img src='../HXIMAGES/Message/sign.GIF'>"
	 Call WS_S.HX_OutUserInfo(rs("WS_MailToUid"))
	 response.write "</td><td width='244'><a href='javascript:'  title='"&rs("WS_MailObject")&"' onClick=""openwin(630,490,'Readmessage.asp?MAID="&rs("WS_MAID")&"')"">"&left(rs("WS_MailObject"),20)&"</a></td><td width='101' align=center><a href='javascript:' onClick=""openwin(630,490,'SendMessage.asp?tuserid="&rs("WS_MailToUid")&"&tusername="&OutName&"')"">"&OutName&"</a></td><td width='132'>"&rs("WS_MailSendDate")&"</td></tr>"
    ii=ii+1
   if ii>=rs.PageSize then Exit Do
   rs.movenext
   loop
   response.write "<tr bgcolor='#BF9B73' class='td4'><td colspan='5' height='25'>&nbsp;<input type='checkbox' name='checkall' value='checkbox' onClick='chkall(this)' id='checkall' class='radio' style='background-color:BF9B73;'><label for='checkall'>全选</label>&nbsp;将选中全部&nbsp;<input name='del' type='submit' value='删除' style='font-size: 12px;color:#FFFBE8;border: 1px solid #000000;background-color: #BF9B73; '>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;说明:<img src='../HXIMAGES/Message/newmail.GIF' title='对方未读' align='absmiddle'>对方未读<img src='../HXIMAGES/Message/oldmail.GIF' title='对方已读' align='absmiddle'>对方已读<img src='../HXIMAGES/Message/sign.GIF' title='有附件' align='absmiddle'>有附件</td></tr>"
call WS_S.PageControl(iCount,maxpage,page,"border=0 align=right","<p align=right>",5)
end if
WS_S.HX_RSClose prs:WS_S.HX_RSClose rs
response.write "</form></table></td></tr></table>"
%>