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

📄 car.asp

📁 物流管理系统,可以用于中小企业,建立自己的内部物流管理.
💻 ASP
字号:
<%@ codepage ="936" %>
<%
if instr(session("flag_fyadmin"),"08")=0 then
response.write "<SCRIPT language=JavaScript>alert('对不起,你没有权限打开此页!');"
response.write"this.location.href='../login.asp';</SCRIPT>" 
response.end
end if
%><!--#include file="../../inc/config.asp"-->
<!--#include file="../../conn/dbconn2.asp" -->
<html>
<head>
<LINK href="../style.css" rel=stylesheet type=text/css>
<meta http-equiv="Content-Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="css/css.css">
<title>会员充值管理页</title>
</head>

<body bgcolor="#ffffff" leftmargin="0" topmargin="0">

<%
   MaxPerPage=20
   dim totalPut   
   dim CurrentPage
   dim TotalPages
   dim i,j

   dim typename
   
   typename=""
   if not isempty(request("page")) then
      currentPage=cint(request("page"))
   else
      currentPage=1
   end if
   dim sql
   dim rs
   dim rstype

   dim typesql
   dim typeid,typename1
   if not isEmpty(request("typeid")) then
	typeid=request("typeid")
   else
	typeid=0
   end if
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"></td>
  </tr>
</table>
<%
 sql="select * from car order by id desc"
 Set rs= Server.CreateObject("ADODB.Recordset")
 rs.open sql,conn,1,1
  if rs.eof and rs.bof then
       response.write "<p align='center'> 还 没 有 任 何 充 值 卡</p>"
   else
	  totalPut=rs.recordcount
      totalPut=rs.recordcount
      if currentpage<1 then
          currentpage=1
      end if
      if (currentpage-1)*MaxPerPage>totalput then
	   if (totalPut mod MaxPerPage)=0 then
	     currentpage= totalPut \ MaxPerPage
	   else
	      currentpage= totalPut \ MaxPerPage + 1
	   end if

      end if
       if currentPage=1 then
           showpage totalput,MaxPerPage,"car.asp"
            showContent
            showpage totalput,MaxPerPage,"car.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"car.asp"
            showContent
             showpage totalput,MaxPerPage,"car.asp"
        else
	        currentPage=1
           showpage totalput,MaxPerPage,"car.asp"
           showContent
           showpage totalput,MaxPerPage,"car.asp"
	      end if
	   end if
   end if
   sub showContent
       dim i
	   i=0

  %>
<div align="center">
  <center>
    <table border="0" cellspacing="1" width="441" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="2" height="33" style="border-collapse: collapse" bordercolor="#111111">
      <tr bgcolor="#CCCCCC"> 
        <td width="84" align="center" bgcolor="#EFEFEF" height="7"><b>充值卡号</b></td>
        <td width="78" align="center" bgcolor="#EFEFEF" height="20"><b>充值密码</b></td>
        <td width="56" align="center" bgcolor="#EFEFEF" height="20"><b>可充天数</b></td>
        <td width="42" align="center" bgcolor="#EFEFEF" height="20"><b>面 值</b></td>
        <td width="80" align="center" bgcolor="#EFEFEF" height="20"><b>使用状态</b></td>
        <td width="33" align="center" bgcolor="#EFEFEF" height="20"><b>删除</b></td>
      </tr>
      <%do while not rs.eof%>
      <tr> 
        <td height="4" width="84" bgcolor="#FFFFFF"> <p align="center"><%=rs("carid")%></td>
        <td width="78" height="4" bgcolor="#FFFFFF" align="center"><%=rs("carpws")%></td>
        <td width="56" height="4" bgcolor="#FFFFFF" align="center"><%=rs("day")%>  天</td>
        <td width="42" height="4" bgcolor="#FFFFFF" align="center"><%=rs("paymoney")%> 元</td>
      	<td width="80" height="4" bgcolor="#FFFFFF" align="center"><%=rs("zhuangtai")%></td>
        <td width="33" height="4" bgcolor="#FFFFFF" align="center"> <a href="delcar.asp?id=<%=rs("id")%>"><font color="#000000">删除</font></a></td>
      </tr>
      <% i=i+1
	      if i>=MaxPerPage then exit do
	      rs.movenext
	   loop
		  %>
    </table>
  </center>
</div>
<%
   end sub 

function showpage(totalnumber,maxperpage,filename)
  dim n
  if totalnumber mod maxperpage=0 then
     n= totalnumber \ maxperpage
  else
     n= totalnumber \ maxperpage+1
  end if
  response.write "<p align=""center""><form method=Post action="&filename&"?typeid="&typeid&">"
    if CurrentPage<2 then
    response.write "<font color='#000080'>首页 上一页</font>&nbsp;"
  else
    response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a>&nbsp;"
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a>&nbsp;"
  end if
  if n-currentpage<1 then
    response.write "<font color='#000080'>下一页 尾页</font>"
  else
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
    response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>"
  end if
   response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
    response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>张 <b>"&maxperpage&"</b>张/页</font> "
   response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="&currentpage&">"
   response.write " <input class=buttonface type='submit'  value='Goto'  name='cndok'></span></p></form></p>"
       
end function

   rs.close
   set rs=nothing  
   conn.close
   set conn=nothing
  %>
<div align="center">
  <center>
  <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="439" id="AutoNumber1" height="45">
    <tr>
      <td width="439" colspan="4" bgcolor="#EFEFEF" height="23"><b>自动增加充值卡:</b></td>
    </tr>
    <form method="POST" action="carsave.asp">
      <tr>
        <td width="112" height="7" bgcolor="#FFFFFF"><font size="2">
        <select size="1" name="day">
              <option value="30">一个月普通卡</option>
              <option value="90">三个月普通卡</option>
              <option value="180" selected>六个月白银卡</option>
              <option value="270">九个月白银卡</option>
              <option value="360">一年黄金卡</option>
              <option value="760">两年黄金卡</option>
              <option value="36500">永久钻石卡</option>             
            </select></font></td>
        <td width="106" height="7" bgcolor="#FFFFFF">
        <input type="text" name="not" size="10"> 张</td>
        <td width="67" height="7" bgcolor="#FFFFFF">
        <input type="text" name="paymoneyj" size="4"><span lang="en-us"> </span>
        元</td>
        <td width="154" height="7" bgcolor="#FFFFFF">
        <input type="submit" value="增加" name="B1"></td>
      </tr>
    </form>
  </table>
  </center>
</div>
<center>
  <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="439" id="AutoNumber1" height="45">
    <tr>
      <td width="439" colspan="4" bgcolor="#EFEFEF" height="23"><b>手动增加充值卡:</b></td>
    </tr>
    <form method="POST" action="carsave.asp">
      <tr>
        <td width="112" height="7" bgcolor="#FFFFFF">
        <input type="text" name="day" size="10"> 天
        </td>
        <td width="106" height="7" bgcolor="#FFFFFF">
        <input type="text" name="not" size="10"> 张</td>
        <td width="67" height="7" bgcolor="#FFFFFF">
        <input type="text" name="paymoneyj" size="4"><span lang="en-us"> </span>
        元</td>
        <td width="154" height="7" bgcolor="#FFFFFF">
        <input type="submit" value="增加" name="B1"></td>
      </tr>
    </form>
  </table>
</center>
<br>
<center>
<a href=add.asp><font size=3 color=red>现在在线充值帐户</font></a>
</center>
</body>

</html>

⌨️ 快捷键说明

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