<!--#include file="../SQLconn.asp"-->
<link rel="stylesheet" href="../css/style.css">


<script>
function open_sendfile(NOTIFY_ID,FORMAT)
{
 URL="viewFile.asp?id="+NOTIFY_ID;
 myleft=(screen.availWidth-700)/2;
 mytop=150
 mywidth=800;
 myheight=500;
 if(FORMAT=="1")
 {
    myleft=0;
    mytop=0
    mywidth=screen.availWidth-10;
    myheight=screen.availHeight-40;
 }
 window.open(URL,"read_news","height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}




</script>


<table width="100%" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
<tr style="background-color:#D6E4FF"  class="TableHeader">
    <td height="28" class="STYLE1"><div align="center">收件箱</div></td>
      <td><div align="center" class="STYLE1">操作</div></td>
      <td class="STYLE1"><div align="center">发送人</div></td>
      <td class="STYLE1"><div align="center">时间</div></td>
  </tr>
	<%
		 tname=request.cookies("tname")
		 
		   
   Set rs=Server.CreateObject("Adodb.Recordset")
   sql="SELECT  f.*, s.*   FROM email f INNER JOIN  emailsee s ON f.id = s.fid  where   shouname ='"&tname&"' and s.标星='是'  and s.isdel=0   order by 标星时间 desc"
   rs.open sql,conn,1,1

   for i= 1 to 100
      if rs.eof then
         exit for
      end if
%>
    
    <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#EFF8FF'">
      <td   height="28" class="STYLE1">&nbsp;&nbsp;
    
                
                  <%if rs("Havesee")="未查阅" then  %>
                  <img src="../images/<%=request.cookies("imgdir")%>/gonggaoNew.gif" width="22" height="9"> 
				  
                  <%end if %>	  
     
	  <span class="STYLE3"><a href="javascript:open_sendfile(<%=rs("id")%>,'0');"><%=rs("title")%></td>
      <td width="150" class="STYLE1"><div align="center">
	 
	 
	  <%if rs("标星")="是"   then %>      
            <a href="bianxing.asp?yemian=BiaoXinglist&id=<%=rs("id")%>&biaoxing=0&date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&ftype=<%=strftype%>&curpage=<%=curpage%>&author=<%=author%>">&nbsp;<img src="../images/img/main/biaoxing1.jpg" width="16" height="16"  border="0">&nbsp;</a>
       <%  else %>
           <a href="bianxing.asp?yemian=BiaoXinglist&id=<%=rs("id")%>&biaoxing=1&date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&ftype=<%=strftype%>&curpage=<%=curpage%>&author=<%=author%>">&nbsp;<img src="../images/img/main/biaoxing0.jpg" width="16" height="16"  border="0">&nbsp;</a>
		   <%end if %>
	  
	  
	  
	  
	  <a href="sendfile.asp?sendtoname=<%=rs("author")%>"  target="main" class="STYLE1"> 回复</a> &nbsp;  
	  <a href="ZhuanFa.asp?curpage=<%=curpage%>&id=<%=rs("id")%>&date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&author=<%=author%>" target="main" class="STYLE1"> 转发</a> &nbsp; 
	  <a href="delbiaoxing.asp?curpage=<%=curpage%>&id=<%=rs("sid")%>&date1=<%=strdate1%>&date2=<%=strdate2%>&title=<%=title%>&guanjianci=<%=guanjianci%>&author=<%=author%>" target="main" class="STYLE1">删除</a> </div></td>
      <td width="70" class="STYLE1"><div align="center"><%=left(rs("author"),9)%></div></td>
      <td width="86" class="STYLE1"><div align="center"><span class="STYLEDATE"><%=formatdatetime(rs("upDatetime"),2)%></span></div></td> 
	</tr>
<%  rs.movenext
    next%>
	
	
</table>
 <br>
</div>
<p align="center"> 
		<input name="button" type="button" class="topanniu" onClick="location='../main_Email.asp';"  value="返回桌面" />
	 
</p>