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

📄 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" valign="top" bgcolor=#000000> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="127">
        <tr> 
          <td width="100%" height="125"> <div align="center"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="3">
                <tr> 
                  <td width="15%"> <div align="left"></div></td>
                  <td width="84%" height="40"><a href="product.asp"><font color="#FF9900">成功案例</font></a></td>
                </tr>
              </table>
              <%
sql = "SELECT * FROM type ORDER BY typeid ASC" 
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,0,1
if rs.eof and rs.bof then
Response.Write"还没有分类"
else
do while not rs.eof %>
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr bgcolor="#FF9900"> 
                  <td height="1" colspan="2"></td>
                </tr>
                <tr> 
                  <td width="15%"> <div align="left"><br>
                    </div></td>
                  <td width="87%" height="40"><a href='type.asp?typeid=<%=rs("id")%>&classview=<%=rs("classview")%>&width=<%=rs("classbig")%>&type_name=<%=rs("name")%>'><font color="#FF9900"><%=rs("name")%></font></a></td>
                </tr>
              </table>
              <%
rs.movenext
loop
end if
rs.close
Set rs=Nothing
%>
            </div></td>
        </tr>
        <tr> 
          <td height="1" bgcolor="#FF9900"></td>
        </tr>
      </table>
    </td>
    <td valign="top" bgcolor="#FF9900"> 
      <table width="98%" border='0' align="center" cellpadding='0' cellspacing='0'>
        <tr align='left'> 
          <td> <%
Dim ipagecount  
sql = "SELECT * FROM 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 href='product.asp'>"&desktoptitle&"</a> - <a>"&type_name&"</a></td></tr></table>"
do while NOT rs.EOF 
if classview=1 then
if not rs.eof then%> 
<table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="2" colspan="2" bgcolor="#FFFFFF" background="images/line.gif"><img src="images/line.gif" height="2"></td>
              </tr>           
			  <tr> 
                <td> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" cellspacing="4" cellpadding="0">
                          <tr> 
                            <td height="8"><table border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                <tr>
                                  <td bgcolor="#FF9900"><table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="#666666">
                                      <tr>
                                        <td bgcolor="#FF9900"><img src='admin/<%=rs("smallimg")%>' border='0' width=<%=pic_width%>></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="36">
<div align="center"><b><%=rs("name")%></b></div></td>
                    </tr>
                  </table>
                </td>
                <td width="100%" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                        </table></td>
                    </tr>
                    <tr> 
                      <td><table width="100%" border="0" cellspacing="24" cellpadding="0">
                          <tr> 
                            <td width="100%"><%=rs("txtcontent")%></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <% 
		irecordsshown = irecordsshown +1 
		rs.movenext  
		end if 
		%>
		<%else if classview=2 then%> <div align="right"></div>
            <table width="100%" border="0" cellpadding="0" cellspacing="8">
              <tr> 
                <% for i=1 to 2 %>
                <%if not rs.eof then%>
                <td width="50%"> <table border=0 cellpadding=0 cellspacing=0>
                    <tbody>
                      <tr> 
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="10"><img src="images/pic_l2.gif" width="10" height="16"></td>
                              <td height="16" background="images/pic_c2.gif"><img src="images/pic_c2.gif" width="10" height="16"></td>
                              <td width="10"><img src="images/pic_r2.gif" width="10" height="16"></td>
                            </tr>
                          </table></td>
                      <tr> 
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="1" bgcolor="#CCCCCC"></td>
                              <td><table width="100%" border="0" cellpadding="0" cellspacing="4">
                                  <tr> 
                                    <td> <div align="center"><a href='display.asp?id=<%=rs("id")%>' target="_blank"><img src='admin/<%=rs("smallimg")%>' border='0' width=<%=pic_width%>></a></div></td>
                                  </tr>
                                  <tr> 
                                    <td><div align="center"><b><%=rs("name")%></b></div></td>
                                  </tr>
                                </table></td>
                              <td width="1" bgcolor="#CCCCCC"></td>
                            </tr>
                          </table></td>
                      <tr> 
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="10"><img src="images/pic_l1.gif" width="10" height="16"></td>
                              <td background="images/pic_c1.gif">&nbsp;</td>
                              <td width="10"><img src="images/pic_r1.gif" width="10" height="16"></td>
                            </tr>
                          </table></td>
                  </table></td>
                <% 
		irecordsshown = irecordsshown +1 
		rs.movenext  
		end if 
		next
		%>
              </tr>
            </table>
            <%else if classview=3 then%> <table width="100%" border="0" cellpadding="0" cellspacing="8">
              <tr> 
                <% for i=1 to 3 %>
                <%if not rs.eof then%>
                <td width="23%"> <table border=0 align=left cellpadding=0 cellspacing=0>
                    <tr> 
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="10"><img src="images/pic_l2.gif" width="10" height="16"></td>
                            <td background="images/pic_c2.gif"><img src="images/pic_c2.gif" width="10" height="16"></td>
                            <td width="10"><img src="images/pic_r2.gif" width="10" height="16"></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td> <div align="center"> 
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td width="1" bgcolor="#CCCCCC"></td>
                              <td><table width="100%" border="0" cellpadding="0" cellspacing="4">
                                  <tr> 
                                    <td> <div align="center"><a href='display.asp?id=<%=rs("id")%>' target="_blank"><img src='admin/<%=rs("smallimg")%>' border='0' width=<%=pic_width%>></a></div></td>
                                  </tr>
                                  <tr> 
                                    <td><div align="center"><b><%=rs("name")%></b></div></td>
                                  </tr>
                                </table></td>
                              <td width="1" bgcolor="#CCCCCC"></td>
                            </tr>
                          </table>
                        </div></td>
                    </tr>
                    <tr> 
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td width="10"><img src="images/pic_l1.gif" width="10" height="16"></td>
                            <td background="images/pic_c1.gif">&nbsp;</td>
                            <td width="10"><img src="images/pic_r1.gif" width="10" height="16"></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
                <% 
		irecordsshown = irecordsshown +1 
		rs.movenext  
		end if 
		next
		%>
              </tr>
            </table>
            <%else if classview=0 then%> <%if not rs.eof then%> <table width="100%" border="0" cellpadding="0" cellspacing="8">
              <tr> 
                <td> <table width="100%" border=0 align=left cellpadding=0 cellspacing=0 bordercolordark="#ffffff" bordercolorlight="#999999">
                    <tr> 
                      <td height="28"> 
                        <div align="left"><b><img src="images/jian_tou.gif" width="13" height="14"> 
                          <font color="#CC0000"><%=rs("name")%></font></b></div></td>
                    </tr>
                    <tr> 
                      <td>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
                          <tr> 
                            <td><%=rs("txtcontent")%></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <% 
		irecordsshown = irecordsshown +1 
		rs.movenext  
		end if 
		%> <%
		end if
		end if
		end if
		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 + -