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

📄 index.asp

📁 一个不完整的硬件报价管理系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/const1.asp"-->
<!--#include file="inc/const2.asp"-->
<!--#include file="inc/char.asp"-->
<html>
<head> 
<title><%=lybtitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="css.asp"-->
<SCRIPT LANGUAGE="JavaScript">
function popUp() {
props=window.open('disadmin.asp', 'poppage', 'toolbars=1, scrollbars=0, location=0, statusbars=1, menubars=0, resizable=1, width=270, height=333');
}
// End -->
</script></head>
<body topmargin="1" bgcolor="<%=bodybgcolor%>">
<!--#include file="top.asp"--><br>

<table width="650" border="0" cellspacing="0" height="111" style="border-collapse: collapse; border: 1px solid <%=bordercolor%>; " cellpadding="0" align="center">
  <tr> 
    <td bgcolor="<%=tablebgcolor%>" height="81"> 
       <p align="center">
       <img border="0" src="images/lunjilyb.gif" width="333" height="67"><br>
 </td>                     
  </tr>                     
  <tr>
    <td bgcolor="<%=tablebgcolor%>" height="30">&nbsp;     
 <a href="add.asp"><img src="images/lunjiqxly.gif" border=0 width="101" height="26" alt="签写留言"></a>| <img border="0" src="pic/teammo.gif">版主:<a HREF="javascript:popUp()"><%=admin_name%></a>|
<img border="0" src="pic/announce.gif">公告:
            <%if len(notetitle)>0 then %> <a href="disnote.asp" target=_blank><%=notetitle%></a><font color="#C0C0C0">[<%=notedate%>]</font><%else%>当前没有公告<%end if%>
           
</td>                     
  </tr>
</table>                     
<%                     
sql="select * from guest 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                     
session("pagesize")=listnum
count=rs.recordcount
numlist=count
if count mod session("pagesize")=0 then
n=count\session("pagesize")
else
n=count\session("pagesize")+1
end if
key=request("page")
page=request("page")
if page<>"" then
page=cint(page)
else
page=1
key=1
end if
numlist=numlist-(key-1)*listnum
for j=1 to session("pagesize")*(key-1)
rs.movenext
next
i=0
do while not rs.eof and i<session("pagesize")
%>  
                  
<hr noshade width="650" color="#C0C0C0" size="1"> <table width="650"  bgcolor="<%=tablebgcolor%>"  cellspacing="0" cellpadding="0" border="1"  style="border-collapse: collapse" cellpadding="0" bordercolor="<%=bordercolor%>" align="center">                     
  <tr>                      
    <td bgcolor="<%=tablebgcolor%>" valign="top" rowspan="3" width="110" height="1" align="center">                      
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="164" bgcolor="<%=tablebgcolor%>" style="border-collapse: collapse" bordercolor="#111111">                     
        <tr>                      
          <td width="10" height="164"> </td>                     
          <td height="164" valign="top" bgcolor="<%=tablebgcolor%>"><br>
          <%if  rs("guestname")=admin_name then%>
          <img src="pic/teammo.gif">
          <%end if%>
          <span STYLE="position:relative; width:105; height:25; filter:glow(Color=<%=bordercolor%>,Strength=4); margin-left:2px">
          <p align="center"><font color="#FFFFFF"><%=rs("guestname")%></font></p>
            </span>
            <p align="center"><img src="images/<%=rs("face")%>"> </p>
            <% if rs("from")<>"" then %>                     
            <p align="center"> 來自:<%=rs("from")%></p><%end if%><p align="center"> 编号:<%=numlist%> </p>               
          </td>                     
        </tr>                     
      </table>                     
    </td>                     
    <td height="18" bgcolor="<%=infobg%>">&nbsp;<img src="pic/posttime.gif"> 发表于:<%=rs("guestdate")%>&nbsp;<img src="images/blank.gif" width="110" height="1">                     
            <%if rs("email")<>"" then %>                     
            <a href="mailto:<%=rs("email")%>">                      
            <%end if %>                     
            <img src="pic/email.gif"  border="0">E-MAIL</a>&nbsp;<%if rs("homepage")<>"" then%>                     
            <a href="<%=rs("homepage")%>" target="blank">                      
            <%end if%><img src="pic/home.gif" border="0">主页</a>&nbsp;
            <% if rs("oicq")<>"" then%>                     
            <a href="http://search.tencent.com/cgi-bin/friend/user_show_info?ln=<%=rs("oicq")%>" target="blank" title="<%=rs("oicq")%>">                      
            <%end if%>                     
            <img src="pic/qq.gif"  border="0"></a>Q&nbsp;Q&nbsp;                    
            <a href="edit.asp?time=<%=rs("guestdate")%>"><img src="pic/edit.gif" border="0">编辑</a>                      
            &nbsp;</td>                     
  </tr>                     
  <tr>                      
    <td valign="top">                      
      <table width="100" align="center" style="table-layout: fixed" height="100%" cellspacing="0" cellpadding="0">                                       
<tr>                                        
<td style="word-break: break-word; font-size: 10pt"  width="511" bgcolor="<%=tablebgcolor%>" valign="top"><pre style="padding-left:4px;MARGIN-TOP:2px;MARGIN-BOTTOM:2px;MARGIN-LEFT:2px;MARGIN-RIGHT:2px;word-wrap: break-word">
<%
secretly=trim(rs("secretly"))
if secretly<>"" then
%>
<br>
<br>
<img src="images/hidden.gif"><font color="#800000">此留言为悄悄话,版主请进入管理后查看</font>
<br>
<%else%>
<%
guestcontent=ubbcode(rs("guestcontent"))
guestcontent=replace(guestcontent,chr(13),"<br>")
%>    

<p class="font">
<%if len(guestcontent)>88 or rs("guestreply")<>"" then %>
<%=guestcontent%>
<%else%> 
<br>
<br><%=guestcontent%><br><br><br></pre>
 
<%end if%>  
<%end if%>  
       <%if rs("guestreply")<>"" then %><hr noshade size="1" color="<%=infobg%>">
<p class="font"> <img border="0" src="images/Replynow.gif"><font color="#FF0000">回复:</font><p class="font"><%=ubbcode(rs("guestreply"))%> </p>
<p><font color="#666666">&nbsp; 回复时间:<%=rs("redate")%></font></p>       
            <%end if%></td></tr>                                 
</table>               
    </td>               
  </tr>               
  <tr>                
    <td height="1" valign="bottom" bgcolor="<%=infobg%>">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="537" bordercolorlight="#183EAD" bordercolordark="#183EAD">
      <tr>
        <td width="516" height="18"><img src="images/ip.GIF" width="15" height="13">IP:<%=left(rs("ip"),9)%>*<img src="images/blank.gif" width="200" height="1">
        </td>
        <td width="15">
        <p align="right"><a title="返回网页顶部" href="#top"><img src="images/gotop.gif" border="0" ></a></td>
      </tr>
    </table>
    </td>               
  </tr>               
</table> 
<div align="center">                
  <% 
rs.movenext 
i=i+1 
numlist=numlist-1
loop 
%>
<div align="center"> 
  <center> 
  <table cellpadding="0" bgcolor="<%=tablebgcolor%>" cellspacing="0" width="650" height="17" border:black 1px solid> 
    <tr> 
      <td width="100%" valign="bottom"> 
<% If n<9  Then%> 
<% for i=1 to n%>  
[<a href="index.asp?page=<%=i%>"><%=i%></a>]  
<%next%>   
<%elseif page<7 and n>8 then%>  
<% for i=1 to 8%>  
 [<a href="index.asp?page=<%=i%>"><%=i%></a>]  
<%next%>  
 [<a href="index.asp?page=<%=n%>">尾页</a>]  
<%elseif page>=7 and n>8 and page+8<n then%>  
 [<a href="index.asp">首页</a>]  
<% for i=key-3 to key+4%>  
 [<a href="index.asp?page=<%=i%>"><%=i%></a>]  
<%next%>  
 [<a href="index.asp?page=<%=n%>">尾页</a>]  
<%else%>  
 [<a href="index.asp?">首页</a>]  
<% for i=n-7 to n%>  
 [<a href="index.asp?page=<%=i%>"><%=i%></a>]  
<%next%>  
<%end if%>   
 &nbsp;<%=key%>/<%=n%>页,每页<%=listnum%>条,共<%=count%>条记录  </td> 
    </tr> 
  </table> 
  </center> 
</div> 

<%end if%>

<%
conn.close
set conn=nothing     
%>


             
<hr noshade width="650" color="#C0C0C0" size="1">               
<!--#include file="bottom.asp"-->
</body>                   
</html>

⌨️ 快捷键说明

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