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

📄 index_type.asp

📁 个人网站模板
💻 ASP
字号:
<%@ ENABLESESSIONSTATE = FALSE %>
<!--//#include file="top.asp"-->
<!--#include file="char.asp"-->
<html>
<head>
<%
if Request.QueryString("type_name")="" then
Response.Redirect"info.asp?info=错误的参数"
else
type_name=Request.QueryString("type_name")
typeid=cint(Request.QueryString("typeid"))
pic_width=cint(Request.QueryString("width"))
classview=cint(Request.QueryString("classview"))
end if
set temprs=conn.execute("select name,classid from type where id="&typeid)
%>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="sys.css" rel="stylesheet" type="text/css">
</head>
<body text="#000000" leftmargin="0" topmargin="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="200" height="258" valign="top" bgcolor=#000000> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><table width='100%' border='0' align="center" cellpadding='0' cellspacing='0'>
              <tr align='left'> 
                <td> 
                  <% 
sql = "SELECT * FROM index_produce where typeid="&typeid&" ORDER BY listid asc,id DESC"
Set rs = Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 
do while NOT rs.EOF 
if not rs.eof then%>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="28"> <div align="center"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="3">
                            <tr> 
                              <td width="10"> 
                                <div align="left"> </div></td>
                              <td height="40"><a href='index_type_class.asp?id=<%=rs("id")%>&typeid=<%=rs("typeid")%>'><font color="#FF9900"><%=rs("cm_title")%></font></a></td>
                            </tr>
                            <tr bgcolor="#FF9900"> 
                              <td height="1" colspan="2"></td>
                            </tr>
                          </table>
                        </div></td>
                    </tr>
                  </table>
                  <% 
		irecordsshown = irecordsshown +1 
		rs.movenext  
		end if 
		loop
		rs.Close
		set rs=nothing
		%>
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
    </td>
    <td valign="top" bgcolor="#FF9900"> 
      <table width='98%' border='0' align="right" cellpadding='0' cellspacing='8'>
        <tr align='left'> 
          <td> <%
Dim ipagecount  
sql = "SELECT top 1 * FROM index_produce where typeid="&typeid&" ORDER BY listid asc, id DESC"
Set rs = Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 
ipagecount = rs.pagecount 
if ipagecount=0 then
Response.Write"<tr><td align='center'>本栏目暂无信息</td></tr>"
else 
Response.Write"<table><tr><td>您当前的位置:<a href='"&homeurl&"'>"&title&"<a> - <a>"&type_name&"</a></td></tr></table>"
do while NOT rs.EOF 
if not rs.eof then%> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td height="2" background="images/line.gif"><img src="images/line.gif" width="3" height="2"></td>
              <tr> 
              <tr> 
                <td><table width="100%" border="0" cellspacing="8" cellpadding="0">
                    <tr>
                      <td><%=rs("editorvalue")%></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <% 
		irecordsshown = irecordsshown +1 
		rs.movenext  
		end if 
		%> <%
		loop
		end if
		rs.Close
		set rs=nothing
		%> </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
 <!--#include file="foot.asp"-->
</html>

⌨️ 快捷键说明

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