<!--#include file="Conn_Mail.asp"-->
<!--#include file="inc/Check.asp"-->
<!--#include file="inc/public.asp"-->
<%
Dim Makking,ID
	Makking = Trim(Request.QueryString("Makking"))
	ID      = Request.QueryString("ID")
Select Case Makking

Case "Del"

Conn_m.Execute("Delete From SendInfo Where ID="& ID &"")

	Save_Title = "·删除成功"
	Call Save_ok
	
Case ""
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ELIGHT.CC</title>
</head>
<link href="Images/Admin.css" rel="stylesheet" type="text/css">
<body>
<table width="98%" height="40"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D8D8D8">
        <tr>
          <td height="30" align="left" bgcolor="ffffff"><table width="100%" height="100%"  border="0" cellpadding="3" cellspacing="0">
              <tr bgcolor="eeeeee">
                <td width="5%" align="center"><img src="Images/1.gif" width="13" height="12"></td>
                <td width="45%"><span class="style2">管理中心 &gt;&gt;&gt; 邮件发送管理</span></td>
                <td width="50%" align="right"></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="98%" height="90%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D8D8D8">
  <tr>
    <td valign="top" bgcolor="ffffff"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" bgcolor="ffffff">          <table width=100% border=0 align='center' cellpadding=3 cellspacing=1 bordercolordark=#ffffff bgcolor="eaeaea">
              <tr align="left" bgcolor="ffffff" background="Images/box_bg.gif"> 
                <td width="5%" height="20" background="Images/box_bg.gif" class='color01'>ID</td>
                <td width="33%" height="20" background="Images/box_bg.gif" class='color01'>名称</td>
                <td width="28%" height="20" background="Images/box_bg.gif" class='color01'>未发/成功/失败</td>
                <td width="18%" background="Images/box_bg.gif" class='color01'>创建时间</td>
                <td width="16%" height="20" background="Images/box_bg.gif" bgcolor="ffffff" class='color01'>操作</td>
              </tr>
              <%
	SQL="Select * From SendInfo order by DateTime Desc"
    set rs=server.createobject("adodb.recordset")
	rs.open SQL,Conn_m,1,1
	if not(rs.bof and rs.eof) then
	'==============================page
	rs.PageSize =15
	%>
              <!--#include file="./page.asp"-->
              <tr align="left" bgcolor="ffffff" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F5F5F5'"> 
                <td height="24"><%=Rs("ID")%></td>
                <td height="24"><A href="SendMail_Lest.asp?ID=<%=Rs("MailGroup")%>"><%=Rs("MailName")%></a></td>
                <td height="24"> 
                  <%
Set Rsc = Conn_m.Execute("Select Count(*) as MailCount0 From Mail Where Ending=0 and GroupID="& Rs("MailGroup") &"")
MailCount0 = Rsc("MailCount0")
Rsc.Close
Set Rsc = Conn_m.Execute("Select Count(*) as MailCount1 From Mail Where Ending=1 and GroupID="& Rs("MailGroup") &"")
MailCount1 = Rsc("MailCount1")
Rsc.Close
Set Rsc = Conn_m.Execute("Select Count(*) as MailCount2 From Mail Where Ending=2 and GroupID="& Rs("MailGroup") &"")
MailCount2 = Rsc("MailCount2")
Rsc.Close
Set Rsc = Nothing
Response.write MailCount0 & "/" & MailCount1 & "/" & MailCount2
%>
                </td>
                <td height="24"><%=Rs("DateTime")%></td>
                <td height="24"><a href="MoveSend.asp?ID=<%=Rs("ID")%>">发送</a>|<a href="SendMail.asp?ID=<%=Rs("ID")%>">修改</A>|<a href="SendMail_Manage.asp?Makking=Del&ID=<%=Rs("ID")%>" onClick="return confirm('您确定要这样操作吗？')">删除</a></td>
              </tr>
              <%   
			rs.movenext
			next
			end if
           %>
            </table></td>
        </tr>
    </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%" height="24" align="left" background="Images/box_bg_1.gif">&nbsp;</td>
          <td width="50%" height="24" align="right" valign="top" background="Images/box_bg_1.gif">
		    <%Page_links=""
			call PageControl(iCount,maxpage,page)
			rs.close
			set rs=nothing%></td>
        </tr>
      </table>
	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="1" bgcolor="#E2E1E1"></td>
        </tr>
      </table></td>
  </tr>
</table>
<%End Select
Conn_m.Close
Set Conn_m = Nothing
%>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="6"></td>
  </tr>
</table>
</body>
</html>