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

📄 product_display.asp

📁 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会 商会
💻 ASP
字号:
<%@ Language=VBScript%>
<%
Response.Buffer=true
Response.Expires=0
%>
<!-- #include file="dsn_root.asp" -->
<%
prono=Request.QueryString("prono")
if not isnumeric(prono) or prono = "" then response.end

set cn = Server.CreateObject("ADODB.Connection")
set rs = Server.CreateObject("ADODB.Recordset")
cn.Open mycnstr

myurl="product_display.asp"

sql="select classcode,title,protype,intro,content,price,picflag,picflag2,querycount from product where state='1' and prono="&prono
rs.Open sql,cn,1,3
if not rs.EOF then
	classcode=trim(rs("classcode"))
	parentcode=left(classcode,3)
	title=trim(rs("title"))
	protype=trim(rs("protype"))
	intro=trim(rs("intro"))
	content=trim(rs("content"))
	price=rs("price")
	picflag=rs("picflag")
	picflag2=rs("picflag2")
	content=trim(rs("content"))
	if rs("price")>0 then price=rs("price") else price="---"
	rs("querycount")=rs("querycount")+1
	rs.Update
else
	Response.End
end if
rs.Close

%>
<!-- #include file="begin.asp" -->
<!-- #include file="func.inc.asp" -->

<table width="1002" height="137" border="0" cellpadding="0" cellspacing="0" background="images/top_15.jpg">
  <tr> 
    <td width="779"><img src="images/O2.jpg" width="779" height="137"></td>
    <td width="223">&nbsp;</td>
  </tr>
</table>
<table width="1002" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="162" valign="top" bgcolor="#F4F4F4">
		<!-- #include file="inc_productclass.asp" -->
    </td>
    <td width="617" valign="top" background="images/index4_15.jpg">
	  <table width="617" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="13" height="31" background="images/index4_11.jpg"><img src="images/list2.jpg" width="5" height="31"></td>
          <td width="604" valign="bottom" background="images/index4_11.jpg"> <table width="30%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="12%" height="17"><img src="images/list.gif" width="14" height="13"></td>
                <td width="88%">产品展示</td>
              </tr>
              <tr> 
                <td height="4" colspan="2"> </td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td colspan="2" align="center" valign="top"><table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="15"> </td>
              </tr>
            </table>
            <table width="95%" border="0" cellpadding="1" cellspacing="1" bgcolor="#f5f5f5">
              <tr bgcolor="#FFFFFF"> 
                <td colspan="2"><strong><font color="#006300">产品名称:</font></strong> <%=title%></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="36%" align="center">
					  <%
					  if picflag = "1" then
						if picflag2 = "1" then
					  %>
						<a href="admin/pic_displaybig.asp?code=product2&keyno=<%=prono%>" target="_blank" title="查看大图"><img src="admin/pic_display.asp?code=product&keyno=<%=prono%>" width="130" border="0"></a>
						<br><br><a href="admin/pic_displaybig.asp?code=product2&keyno=<%=prono%>" target="_blank"><img src="images/more.jpg" border="0"></a>&nbsp;&nbsp;&nbsp;
					  <%
						else
					  %>
						<img src="admin/pic_display.asp?code=product&keyno=<%=prono%>" width="130" border="0"></a>
					  <%
					    end if
					  else
					  %>
						[暂无图片]
					  <%
					  end if
					  %>
				</td>
                <td width="64%" align="center"><table width="95%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td height="10"> </td>
                    </tr>
                    <tr> 
                      <td height="15">
					    <img src="images/kk.gif" width="6" height="7"> <font color="#006300"><strong>产品型号:</strong></font> <%=protype%>
					  </td>
                    </tr>
                    <tr> 
                      <td height="8">
					    <img src="images/kk.gif" width="6" height="7"> <font color="#006300"><strong>产品价格:</strong></font> <%=price%>
					  </td>
                    </tr>
                    <tr> 
                      <td height="15">
					    <img src="images/kk.gif" width="6" height="7"> <font color="#006300"><strong>卖点功能:</strong></font> <%=intro%>
					  </td>
                    </tr>
                    <tr> 
                      <td height="15" align="center"><a href="shopcart.asp?prono=<%=prono%>"><img src="images/tt2.jpg" width="102" height="26" border="0"></a></td>
                    </tr>
                  </table></td>
              </tr>
              <tr valign="bottom" bgcolor="#FFFFFF"> 
                <td height="20" colspan="2"><img src="images/kk.gif" width="6" height="7"> <font color="#006300"><strong>产品介绍:</strong></font> </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td colspan="2"><%=checkstr(content,"1")%></td>
              </tr>
              <tr align="right" bgcolor="#FFFFFF"> 
                <td colspan="2"><table width="50%" border="0" cellspacing="0" cellpadding="0">
                    <tr align="center"> 
                      <td><img src="images/eee.gif" width="20" height="20"></td>
                      <td><a href="product.asp?classcode=<%=classcode%>" class="A4">返回列表</a></td>
                      <td><img src="images/eee.gif" width="20" height="20"> </td>
                      <td><a href="javascript:window.print()" class="A4">打印本页</a></td>
                      <td><img src="images/eee.gif" width="20" height="20"></td>
                      <td> <a href="javascript:self.close();" class="A4">关闭窗口</a></td>
                      <td width="20">&nbsp;</td>
                      <td width="20"><a href="#top"><img src="images/TIME.jpg" width="31" height="29" border="0"></a></td>
                    </tr>
                  </table></td>
              </tr>
            </table> </td>
        </tr>
      </table>
    </td>
    <td width="223" valign="top" background="images/list.jpg">
			<!-- #include file="inc_hot.asp" //-->
    </td>
  </tr>
</table>

<!-- #include file="end.asp" -->

⌨️ 快捷键说明

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