⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mt.asp

📁 本系统旨在帮助您快速建立自己的WEB短信平台
💻 ASP
字号:
<!--#include file="top.asp"-->
<%cha=request("cha")
if request("Submit")="删 除" then
	SQL = "update es_smsmt set es_mt=1 where id in("&request("id")&")"
	msg="删除成功"
End if
	if request("submit")="删 除" or request("submit")="开通" or request("submit")="关闭" then
	Set RS=Server.CreateObject("Adodb.Recordset")
	rs.open SQL,conn,1,3
	response.write "<Script language=javascript>alert('"&msg&"');location='mt.asp'</script>"
	rs.close
	set rs=nothing
	end if
%>
<%usertopview%>
<table cellSpacing="0" cellPadding="0" width="760" height="100%" border="0" bgcolor="#ffffff">
<script>
function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }
</script>

<tr>
<td width="160" valign=top bgcolor=#efefef>
<!--==============-->
<!--#include file="left.asp"-->
<!--==============-->
</td>
<td width="600" align="left" valign=top>
<!--==============-->
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td height=25>您现在的位置是:管理中心 > 管理首页</td></tr>
  <tr>
    <td>
<!--####################################-->
	</td>
  </tr>
</table>
<table width="88%" style="border:1px #cccccc solid;">
	<tr>
		<td>
<div align="center">
<table width="600" cellpadding="0" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<form name="from1" method="post" action="mt.asp?word=<%=request("word")%>">
<tr align=center bgcolor=#efefef height=25>
<%
sql="select *  from es_smsmt where es_id="&session("id")&" and es_mt=0 order by es_date desc"
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1                     
if rs.eof and rs.bof then                     
	response.write "暂无内容"
else  
'分页的实现 
listnum=50
Rs.pagesize=listnum
page=Request("page")
if (page-Rs.pagecount) > 0 then
page=Rs.pagecount
elseif page = "" or page < 1 then
page = 1
end if
Rs.absolutepage=page
'编号的实现
j=rs.recordcount
j=j-(page-1)*listnum
i=0
nn=request("page")
if nn="" then
n=0
else
nn=nn-1
n=listnum*nn
end if%>
 <td width="29" height=25>编号</td>
 <td width="107" height="25">时间</td>
 <td width="85" height="25">发送号码</td>
 <td width="35" height="25">状态</td>
 <td width="318" height="25">信息内容</td>
 <td width="24" height="25">选择</td>
</tr>
<%do while not rs.eof and i<listnum
n=n+1
page=request("page")
if page="" then page=1
%>
<tr align=center height=22>
 <td><%=n%></td>
 <td align="left"><%=rs("es_date")%></td>
 <td align="left"><font color="#008080"><%=rs("es_phone")%></font></td>
 <td align="left" width="35"><%if rs("es_zt")=0 then%>成功<%else%><font color="#FF0000">失败</font><%end if%></td>
 <td align="left" width="318" title="<%=rs("es_msg")%>">&nbsp;<%=Left(rs("es_msg"),25)%></td>
 <td align="left" width="24" title="<%=rs("es_msg")%>"><input type="checkbox" name="ID" value="<%=rs("id")%>" style="border:0"></td>
</tr>
<%rs.movenext 
i=i+1 
j=j-1
loop%>
<tr>
<%filename="mt.asp?word="&request("word")&""%>
<td colspan=6 height=20 align=right bgcolor=#cccccc><%=Rs.recordcount%> 个记录&nbsp;&nbsp;<%=listnum%> 个
记录/页&nbsp;&nbsp;共 <%=Rs.pagecount%> 页 
      <% if page=1 then %>
      <%else%>
      <a href=<%=filename%>><strong>|<<</strong></a>&nbsp; 
      <a href=<%=filename%>&page=<%=page-1%>><strong><<</strong></a>&nbsp; 
      <a href=<%=filename%>&page=<%=page-1%>><b>[<%=page-1%>]</b></a>&nbsp; 
      <%end if%><% if Rs.pagecount=1 then %><%else%><b>[<%=page%>]</b><%end if%>
	  <% if Rs.pagecount-page <> 0 then %>
      <a href=<%=filename%>&page=<%=page+1%>><b>[<%=page+1%>]</b></a>&nbsp; 
      <a href=<%=filename%>&page=<%=page+1%>><strong>>></strong></a>&nbsp; 
      <a href=<%=filename%>&page=<%=Rs.pagecount%>><strong>>>|</strong></a>&nbsp; 
	  <%end if%>&nbsp;<input name="chkall" type="checkbox" id="chkall" value="select" onclick="CheckAll(this.form)" style="border:0">全选<input type="submit" name="Submit" value="删 除">&nbsp;</td>
<%end if%></tr>
</form>
</table>		</div>
		</td>
	</tr>
</table>
<!--==============-->
</td>
</tr>
</table>
<!--====== bottom ========-->
<!--====== bottom ========-->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:0px #cccccc solid;">
      <tr>
        <td width="30%" align="right" valign="middle"><img src="../images/index_04.gif" alt=""></td>
        <td width="70%" align="left"><%=citybottom%></td>
  </tr>
</table>
				  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -