delysk.asp

来自「国内第一数字点卡销售程序。功能强大。 完整无错!数据文件经MD5加密!经严格测」· ASP 代码 · 共 110 行

ASP
110
字号
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
%>
<%
if session("admin_rank")<>1 and session("admin_rank")<>4 then
response.write("<script>alert('您无权查看本页,SORRY!');window.location=('login.asp')</script>")
response.end
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<%
if request("action")="del" then
    sql="select * from tingcardnum where id="&int(request("id"))
    rs.open sql,conn,3,3
    if rs.eof then
        response.redirect "delysk.asp"
    else
    rs.delete
    rs.update
    end if
    rs.close
    response.write "<script language=javascript>alert('删除成功!');</script>"
end if
%>
<body style="background-color: #F0FBF1">
  <%
  sql="select * from tingcardnum where hw_ok=false order by id DESC"
  rs.open sql,conn,3,3
  if rs.eof then
      response.write "暂且没有已售出卡号"
      response.end
  end if
      rs.pagesize=15
      page = cint(request("page"))
      if page = "" then page = 1
      if not(isnumeric(page)) then page=1
      if page<1 then page=1
      if page >= rs.pagecount then page = rs.pagecount
      rs.absolutepage = page
  %>
<div align="center">
<table border="1" width="97%" cellspacing="0" height="105" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" cellpadding="0">

      
  <tr>
    <td width="17%" align="center" height="25">
      商品名称</td>
    <td width="15%" align="center" height="25">
      商品卡号</td>
    <td width="13%" align="center" height="25">
      商品密码</td>
    <td width="15%" align="center" height="25">
      取此卡的订单号</td>
    <td width="14%" align="center" height="25">
      取此卡IP</td>
    <td width="9%" align="center" height="25">
      取卡人电话</td>
    <td width="10%" align="center" height="25">
      是否删除</td>
  </tr>
<%
for i=1 to rs.pagesize
%>
  <tr>
    <td width="17%" align="center" height="25">
       <%=rs("hw_name")%></td>
    <td width="15%" align="center" height="25">
       <%=rs("hw_number")%></td>
    <td width="13%" align="center" height="25">
       <%=strAnsi2Unicode(Base64decode(strUnicode2Ansi(rs("hw_pass"))))%></td>
    <td width="15%" align="center" height="25">
       <%=rs("sub_number")%></td>
    <td width="14%" align="center" height="25">
     <%=rs("number_ip")%>  </td>
    <td width="9%" align="center" height="25">
       <%=rs("sub_tel")%></td>
    <td width="10%" align="center" height="25">
      <a href="delysk.asp?id=<%=rs("id")%>&action=del" onClick="return confirm('您确定进行删除操作吗?')"><font color="#FF0000">删除此商品</font></a></td>
  </tr>
<%
rs.movenext
if rs.eof then exit for
next
%>
                  <tr>      
                    <td width="97%" style="padding-left: 10px" colspan="7" height="25">        
                    <p align="center">共有记录<%=rs.recordcount%>条&nbsp;                   
                    <%=page%>/<%=rs.pagecount%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A href="<%request.servervariables("document_name")%>?page=<%=page-1%>">上一页</A> <A href="<%request.servervariables("document_name")%>?page=<%=page+1%>">下一页</A>&nbsp;&nbsp;&nbsp; 转到第 <SELECT onchange="window.location='?page='+this.value" name=gopage>              
                    <%for x=1 to rs.pagecount%>
                    <OPTION <%if x=page then%>selected<%end if%> value=<%=x%>><%=x%></OPTION>
                    <%next%>      
                    </SELECT> 页        
                    </div>
                    <%rs.close%>  

                     </td>     
                  </tr>  
  
</table>
</div>
<%

set rs=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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