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

📄 default.asp

📁 一个有用的东西 希望大家喜欢 谢谢大家对本站的支持
💻 ASP
字号:
<%Option Explicit%><!--#include file="conn.asp"-->
<%if session("admin_pass")<>"ok" then
   response.redirect "adminlogin.asp"
   response.end
end if%>
<% dim id,page, keyword,rs,sql,TotalPages,StartPageNum,EndPageNum,i,scount,hrefdate
id=Request.QueryString("id")
If Request.QueryString("Page") = "" or Request.QueryString("Page") <= 0 then
Page = 1
Else
Page = CINT(Request.QueryString("Page"))
End If
%> 
<%
  keyword=trim(request("keyword")) 
  set rs=server.createobject("adodb.recordset")
	sql="select * FROM data where 1=1"
	sql=sql+" order by id desc"
rs.open sql,conn,1,2
if not (rs.EOF or rs.BOF) then
'在此调整每页显示数据量
rs.PageSize=10         
        TotalPages = RS.PageCount
        if page>rs.pagecount then page=rs.pagecount
        scount=INT(Rs.recordcount)
	rs.absolutepage=page
	
	StartPageNum=1 
do while StartPageNum+10<=Page 
StartPageNum=StartPageNum+10 
Loop 
     
EndPageNum=StartPageNum+9
 
If EndPageNum>RS.Pagecount then EndPageNum=RS.Pagecount %>
<html>
<head>
<title>管理员登录-线路预订单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<style>
<!--
A:link {COLOR: 3f6b02; FONT-SIZE: 9pt; TEXT-DECORATION:underline} 
A:visited {COLOR: #3f6b02; FONT-SIZE: 9pt; TEXT-DECORATION: underline} 
A:active {COLOR: #3f6b02; FONT-SIZE: 9pt; TEXT-DECORATION: underline} 
A:hover {COLOR: #ff0000; TEXT-DECORATION: underline} 
TD {FONT-SIZE: 9pt} 
body {FONT-SIZE: 9pt}
.b	         { font-size: 10pt}
.c	         { font-size: 11pt}
.button1 { height: 21px; background-color: #cfcfcf; font-size: 9pt; color: #000000; border: 1px solid; border-color: #ffffff #555555 #555555 #ffffff}
b:link       { color: 000000; text-decoration: underline }
b:visited    { color: 000000; text-decoration: underline }
b:active     { color: red; text-decoration: underline }
b:hover      { color: red; text-decoration: underline }
b:link       { color: 000000; text-decoration: underline }
a:visited    { color: 000000; text-decoration: underline }
a:active     { color: red; text-decoration: underline }
a:hover      { color: red; text-decoration: underline }
.x:link      { color: ffffff; text-decoration: none }
.x:visited   { color: ffffff; text-decoration: none }
.x:active    { color: ffffff; text-decoration: none }
.x:hover     { color: red;text-decoration:underline}
-->
</style>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center">
  <center>
  <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750" cellpadding="0" id="AutoNumber1" bgcolor="#000000">
    <tr>
      <td width="79"><img border="0" src="../logo2.gif"></td>
      <td width="640" align="center" bgcolor="#FFFFFF" background="../e3.gif">
      <a href="http://www.Jxtour.Net">
      <img border="0" src="../logo.gif"></a></td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
<table width="750" border="0" cellspacing="0" cellpadding="0" bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111">
  <tr> 
    <td valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="150" valign="top"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="20" bgcolor="#CC0000" align="center">
                <font color="#FFFFFF"><b><a href="http://www.Jxtour.Net">
                <font color="#FFFFFF">Jxtour.Net</font></a></b></font></td>
              </tr>
              <tr> 
                <td height="25" align="center"> </td>
              </tr>
              <tr> 
                <td height="25" align="center"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> 
                        <form name="cpn" method="post" action="change.asp">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td align="center" height="20">更改管理员口令</td>
                            </tr>
                            <tr> 
                              <td align="center"> 管理员
                                <input type="text" name="uname" size="8">
                              </td>
                            </tr>
                            <tr> 
                              <td align="center">旧口令
                                <input type="password" name="oldpass" size="8">
                              </td>
                            </tr>
                            <tr> 
                              <td align="center">新口令
                                <input type="password" name="password" size="8">
                              </td>
                            </tr>
                            <tr> 
                              <td align="center"> 
                                <input type="submit" name="Submit" value="修改"></td>
                            </tr>
                            <tr> 
                              <td align="center"> 
                                 </td>
                            </tr>
                            <tr> 
                              <td align="center"> 
                                <a href="../add9488.asp"><font color="#FF0000">添加酒店信息</font></a></td>
                            </tr>
                            <tr> 
                              <td align="center"> 
                                 </td>
                            </tr>
                            <tr> 
                              <td align="center"> 
                                <a href="../cfnadmin/delreddata.asp">
                                <font color="#FF0000">删除酒店信息</font></a></td>
                            </tr>
                            <tr> 
                              <td align="center"> 
                                 </td>
                            </tr>
                            <tr> 
                              <td align="center"> 
                                <span lang="zh-cn"><a href="loginout.asp">退出</a></span></td>
                            </tr>
                          </table>
                        </form>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
          <td> 
            <table border="0" width="100%" align="center" cellpadding="4" cellspacing="0">
            <%
i=0
  do while (not rs.EOF) and (i<RS.PageSize)

 %>
              <tr bgcolor="#FFFFFF"> 
                <td  height="20"> 
                  <table width="100%" border="0" cellspacing="1" cellpadding="4" bgcolor="#999999">
                    <tr> 
                      <td width="60%" bgcolor="99cc33"><b>预订主题:<%=rs("goods")%></b></td>
                      <td rowspan="2" valign="top" bgcolor="ececec" style="LINE-HEIGHT: 150%" width="40%"><b>详细内容</b>:<br>
                        ------------------------------------<br>
                        <%=rs("content")%> </td>
                    </tr>
                    <tr> 
                      <td bgcolor="#FFFFFF" width="60%">  
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr> 
                            <td width="50%" height="25"><b>到达日期</b>:<%=rs("buydate")%></td>
                            <td width="50%"><b>出发城市</b>:<%=rs("trademode")%> 
                            </td>
                          </tr>
                          <tr> 
                            <td height="25"><font color="#FF0000"><b>联系人</b></font>:<%=rs("name")%></td>
                            <td><b>支付方式</b>:<%=rs("email")%></td>
                          </tr>
                          <tr> 
                            <td height="25"><font color="#FF0000"><b>房型</b></font>:<font color=red><%=rs("amount")%></font></td>
                            <td><b><font color="#FF0000">人数</font>:</b><%=rs("icq")%></td>
                          </tr>
                          <tr> 
                            <td height="25" colspan="2"><b>联系地址</b>:<%=rs("city")%></td>
                          </tr>
                          <tr> 
                            <td height="25" colspan="2"><b>电子邮件</b>:<%=rs("telephone")%></td>
                          </tr>
                          <tr> 
                            <td height="25" colspan="2"><b>联系电话</b>:<%=rs("bbcall")%></td>
                          </tr>
                        </table>
                         <b>   </b></td>
                    </tr>
                    <tr align="right"> 
                      <td colspan="2" bgcolor="#FFFFFF"> 
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td>
							<%
							if rs("num")="1" then
								response.write"已处理此订单"+"<a href=none.asp?id="+cstr(rs("id"))+"><font color=red>订单取消</font></a>"	
							else
								response.write "<font color=red>未处理此订单</font>"+"<a href=edit.asp?id="+cstr(rs("id"))+">订单确认</a>"
							end if
							%>
							</td>
                            <td width="50"><a href="del.asp?user_id=<%=rs("id")%>"><img src="pic/del.gif" width="45" height="18" border="0"></a></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            <%i=i+1
rs.movenext 
loop 

%>
            </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" height=25 cellspacing="1" cellpadding="8">
                    <tr> 
                      <td align=right height="7" bgcolor="#FFFFFF"> 共<%=scount%>条信息 
                        [ 
                        <% if StartPageNum>1 then %>
                        <a href="default.asp?Page=<%=StartPageNum-1%><%=hrefdate%>">前十页</a> 
                        <%end if%>
                        <% For I=StartPageNum to EndPageNum   
      if I<>Page then %>
                        <a href="default.asp?Page=<%=I%><%=hrefdate%>"><%=I%></a> 
                        <% else %>
                        <b><%=I%></b> 
                        <% end if %>
                        <% Next %>
                        <% if EndPageNum<RS.Pagecount then %>
                        <a href="default.asp?Page=<%=EndPageNum+1%><%=hrefdate%>">后十页</a> 
                        <%end if%>
                        ]</td>
                    </tr>
                  </table>            <%rs.close
end if%>
                  </td>
  </tr>
</table>
</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td height="30" valign="top" align="center" bgcolor="#FFFFFF"><br>
    中国.安庆-<a href="http://www.Jxtour.Net">红旋风网络技术联盟</a> 版权所有<span lang="en-us">
    </span><a href="mailto:yewong@yeah.net">写信</a>给我们</td>
  </tr>
</table>
  </center>
</div>
</body>
</html>

⌨️ 快捷键说明

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