
<!--#include file="../SQLconn.asp"-->

<%
   tname=request.cookies("tname")
   Set rs=Server.CreateObject("Adodb.Recordset")
   sql="Select * from email  where upname ='"&tname&"' and isdel=0 and iscaogao=1  order by id desc"
   rs.open sql,conn,1,1
%>

<%
   rs.pagesize=15 '每页记录条数
   curpage=Request.QueryString("curpage") '将URL参数curpage传给curpage变量
   rs.absolutepage=curpage '将本页设为curpage设置的页数
   if curpage=0 then
      curpage=1
   end if 

%>
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<FORM ACTION="deleteDuocaogao.asp?author=<%=author%>&curpage=<%=curpage%>&guanjianci=<%=guanjianci%>&title=<%=title%>&date1=<%=strdate1%>&date2=<%=strdate2%>" METHOD="post"  NAME="form2">
<script language=javascript>


function unselectall(){
if(document.myform.chkAll.checked){
document.myform.chkAll.checked = document.myform.chkAll.checked&0;
}
}
function CheckAll(form){
for (var i=0;i<form.elements.length;i++){
var e = form.elements[i];
if (e.Name != 'chkAll'&&e.disabled==false)
e.checked = form.chkAll.checked;
}
}
</script>
<table width="95%" 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" class="STYLE1">草稿邮件</div></td>
      <td class="STYLE1"><div align="center" class="STYLE1">操作</div></td>
      <td class="STYLE1"><div align="center" class="STYLE1">发送日期</div></td>
  </tr>
	<%
   for i= 1 to rs.pagesize
      if rs.eof then
         exit for
      end if
%>
    
    <tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#EFF8FF'">
	 <td width="700" height="28" class="STYLE1">
	 &nbsp;
	  <input type="checkbox" name="checkbox" value=<%=rs("id")%>>&nbsp;
	 
	 <span class="STYLE3">
	 <a href="send.asp?id=<%=rs("id")%>"  target="main" class="STYLE1">
      <span class="STYLE1"><%=rs("title")%></span></td>
     <td width="99" class="STYLE1">
	   <div align="center"> <a href="delCaogao.asp?curpage=<%=curpage%>&id=<%=rs("id")%>"  target="main" class="STYLE1"> 删除</a> </div></td>
     <td width="150" class="STYLE1"><div align="center" class="STYLEDATE"><span class="STYLE2"><%=formatdatetime(rs("upDatetime"),2)%></span></div></td> 
	</tr>
<%  rs.movenext
    next%>
	<tr>
    <td height="28" colspan="4">
	
	<span class="STYLE1">&nbsp;&nbsp;<input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'>全选</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<input name="Submit2" type="submit" class="topanniu" value="删除"></td>
  </tr>
	
</table>
  <br>
</div>
<div align="center" class="STYLE1">
  <span class="STYLETITLE">
  <%if curpage=1 then%>
</span>首页
<%else%>
<a href="?curpage=1">首页</a>
<%end if%>

<%if curpage=1 then%>
上一页
<%else%>
<a href="?curpage=<%=curpage-1%>">上一页</a>
<%end if%>

<%if rs.pagecount<curpage+1 then%>
下一页
<%else%>
<a href="?curpage=<%=curpage+1%>">下一页</a>
<%end if%>

<%if rs.pagecount<curpage+1 then%>
尾页
<%else%>
<a href="?curpage=<%=rs.pagecount%>">尾页</a>
<%end if%>
(当前第<%=curpage%>页，共有<%=rs.pagecount%>页，共有：<%=rs.recordcount%>条记录)</div>
</form>