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

📄 gg_show.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="fuction.asp" -->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--商城动态</title>
<link rel="SHORTCUT ICON" href="/shortcut.ico">
<meta name="generator" content="snsn-shop">
<meta name=keywords content="<%=webgjz%>">
<meta name="description" content="<%=webmx%>">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link href="/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">-->
<!--#include file="webtop.asp"-->
<table width="940" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
  <tr>
    <td width="17"><img src="/img/index_1.gif" width="15" height="16"></td>
    <td valign="bottom">您现在的位置是:<a href="<%=weburl%>"><%=webname%></a> ->
        <span class="table-shangxia"><span class="b14">会员公告</span></span></td>
    <td valign="bottom"> 
       
    </td>
  </tr>
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
</table>
<table width="945"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0" background="img/lf_bg.gif">
        <tr>
          <td><img src="/img/lf_img_top.gif" width="180" height="9"></td>
        </tr>
        <tr>
          <td><img src="/img/lf_tl_directgo.gif" width="180" height="40" border="0" usemap="#derectgo"></td>
        </tr>
        <tr>
          <td><img src="/img/lf_directgo_boxtop.gif" width="180" height="8"></td>
        </tr>
        <tr>
          <td background="/img/lf_directgo_boxbg.gif" width="180" height="23">
            <table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
              <%set rs3=server.CreateObject("adodb.recordset")
		rs3.open "select * from shop_text order by linkidorder",conn,1,1
		i=rs3.recordcount%>
              <%if rs3.eof and rs3.bof then
		  response.write "<tr><td>还没有数据,请添加!</td></tr>"
		  else
		  do while not rs3.eof%>
              <tr>
                <td height="23" width="15" align="right"><img src="/img/ic_bluearrow.gif" width="2" height="4"></td>
                <td class="lf_diectgo1"><a href="<%=trim(rs3("link"))%>" <%if rs3("tc")=1 then%>target="_blank"<%else%><%end if%>> <font color="<%=trim(rs3("textys"))%>"> <%=trim(rs3("text"))%></font></a></td>
              </tr>
              <tr>
                <td height="1" colspan="2" class="td_margin1"><img src="/img/skin<%=cssid%>/x.gif" width="149" height="1"></td>
              </tr>
              <%rs3.movenext
		  loop
		  end if
		  rs3.close
		  set rs3=nothing%>
          </table></td>
        </tr>
        <tr>
          <td><img src="/img/lf_directgo_boxbottom.gif" width="180" height="6"></td>
        </tr>
      </table>
        <map name="derectgo" id="derectgo2">
          <area shape="rect" coords="136,19,170,32" href="#" alt="MORE">
        </map>
        <table width="180" border="0" align="center" cellpadding="0" cellspacing="0" background="img/lf_bg.gif" class="sm_gray">
          <tr>
            <td height="12"></td>
          </tr>
          <tr>
            <td><img src="/img/lf_tl_best10.gif" width="180" height="40" border="0" usemap="#Map5Map"></td>
          </tr>
          <tr>
            <td>
            </td>
          </tr>
        </table>
        <table width="180"  border="0" align="center" cellpadding="0" cellspacing="0" background="img/lf_bg.gif">
          <tr>
            <td><%if session("username")="" then
				 set rsg=server.createobject("adodb.recordset")
				 		rsg.open "select top 12 * from shop_usergg where lx=0 order by id desc",conn,1,1
				 else
				set rsg=server.createobject("adodb.recordset")
				rsg.open "select top 10 * from shop_usergg where  lx="nosql(&session("reglx"))&" or lx=0 order by id desc",conn,1,1
				end if
		if rsg.recordcount=0 then 
		%>
                <table width="160" border="0" cellspacing="0" cellpadding="5" align="center">
                  <tr>
                    <td height="26" align=center>暂无会员公告</td>
                  </tr>
                </table>
                <%else%>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                </table>
                <table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
                  <%
			while not rsg.eof
			%>
                  <tr>
                    <td height="22"><a href="gg_list.asp?id=<%=rsg("id")%>" title=<%=year(rsg("adddate"))%>年<%=month(rsg("adddate"))%>月<%=day(rsg("adddate"))%>日发布><img src="/img/left_7.gif" width="11" height="11" border="0">
                          <%if len(trim(rsg("zt")))>12 then
	response.write left(trim(rsg("zt")),12)&""
	else
	response.write trim(rsg("zt"))
	end if%>
                    </a></td>
                  </tr>
                  <tr>
                    <td height="1" colspan="2" class="td_margin1"><img src="/img/skin<%=cssid%>/x.gif" width="149" height="1"></td>
                  </tr>
                  <%
			rsg.movenext
		    wend
			%>
                </table>
                <%
		end if
		rsg.close
		set rsg=nothing
		%></td>
          </tr>
        </table>
        <div align="center"><img src="/img/lf_img_bt.gif" width="180" height="9">
            <map name="Map5Map">
              <area shape="rect" coords="137,19,172,31" href="gg_show.asp">
            </map>
      </div></td>
    <td valign="top"><table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="8"></td>
          </tr>
        </table>
        <%if session("username")="" then
				 set rs=server.createobject("adodb.recordset")
				 		rs.open "select * from shop_usergg where lx=0 order by id desc",conn,1,1
				 else
				set rs=server.createobject("adodb.recordset")
				rs.open "select * from shop_usergg where  lx="&nosql(session("reglx"))&" or lx=0 order by id desc",conn,1,1
				end if
		if rs.recordcount=0 then 
		%>
        <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
          <tr>
            <td align=center>暂无会员公告</td>
          </tr>
        </table>
        <%
		else
	  		rs.PageSize =30 '每页记录条数
			iCount=rs.RecordCount '记录总数
			iPageSize=rs.PageSize
    		maxpage=rs.PageCount 
    		page=request("page")
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	%>
        <table width="98%" border="0" cellspacing="0" cellpadding="5" align="center">
          <%
			For i=1 To x
			%>
          <tr>
            <td align=center height=10 width="20"><img src="img/top1.gif" width="12" height="13" border="0"> </td>
            <td width="321" height=10 align=left><a href=gg_list.asp?id=<%=rs("id")%>><%=replace(trim(rs("zt")),"<br>","")%></a>[浏览:<%=rs("hot")%>次]</td>
            <td width="122" align=left>发布人:<%=trim(rs("fbr"))%></td>
            <td width="197" height=10 align=left>发布日期:<%=year(rs("adddate"))&"."&month(rs("adddate"))&"."&day(rs("adddate"))%></td>
          </tr>
 <tr>
                <td height="1" background="/img/skin<%=cssid%>/x.gif" ></td>
                <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
                <td height="1" background="/img/skin<%=cssid%>/x.gif" ></td>
                <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
              </tr>
          
          <%
			rs.movenext
		    next
			%>
        </table>
        <br>
        <%
		call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
		end if
		rs.close
		set rs=nothing
Sub PageControl(iCount,pagecount,page,table_style,font_style)
'生成上一页下一页链接
    Dim query, a, x, temp
    action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")

    query = Split(Request.ServerVariables("QUERY_STRING"), "&")
    For Each x In query
        a = Split(x, "=")
        If StrComp(a(0), "page", vbTextCompare) <> 0 Then
            temp = temp & a(0) & "=" & a(1) & "&"
        End If
    Next

    Response.Write("<table " & Table_style & ">" & vbCrLf )        
    Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
    Response.Write("<TD align=right>" & vbCrLf )
    Response.Write(font_style & vbCrLf )    
        
    if page<=1 then
        Response.Write ("首页 " & vbCrLf)        
        Response.Write ("上页 " & vbCrLf)
    else        
        Response.Write("<A HREF=" & action & "?" & temp & "Page=1>首页</A> " & vbCrLf)
        Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & ">上页</A> " & vbCrLf)
    end if

    if page>=pagecount then
        Response.Write ("下页 " & vbCrLf)
        Response.Write ("尾页 " & vbCrLf)            
    else
        Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">下页</A> " & vbCrLf)
        Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">尾页</A> " & vbCrLf)            
    end if

    Response.Write(" 页次:" & page & "/" & pageCount & "页" &  vbCrLf)
    Response.Write(" 共有" & iCount & "条公告" &  vbCrLf)
    Response.Write(" 转到 " & "<INPUT TYEP=TEXT NAME=page class=wenbenkuang SIZE=1 Maxlength=5 VALUE=" & page & ">" & " 页"  & vbCrLf & "<input name=go type=image  src=/img/butn_go.gif alt=GO align=absMiddle  border=0>")
    Response.Write("</TD>" & vbCrLf )                
    Response.Write("</TR></form>" & vbCrLf )        
    Response.Write("</table>" & vbCrLf )        
End Sub
%>
</td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

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