En_ProductShow.asp
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 5k
Development Platform:

VBScript

  1. <%@ LANGUAGE=VBScript CodePage=936%>
  2. <%option explicit%>
  3. <%Response.Buffer=True%>
  4. <!--#include file="Include/En_System.asp"-->
  5. <!--#include file="../Inc/ubbcode.asp"-->
  6. <!--#include file="Include/En_SysProduct.asp"-->
  7. <!--#include file="Include/En_StrLeft.asp"-->
  8. <%
  9. ShowSmallClassType=ShowSmallClassType_Article
  10. dim ArticleID
  11. ArticleID=trim(request("ArticleID"))
  12. if ArticleId="" then
  13. response.Redirect("En_Product.asp")
  14. end if
  15. sql="select * from Product where ArticleID=" & ArticleID & ""
  16. Set rs= Server.CreateObject("ADODB.Recordset")
  17. rs.open sql,conn,1,3
  18. if rs.bof and rs.eof then
  19. response.write"<SCRIPT language=JavaScript>alert('Can find this product!');" 'Can find this product 找不到此产品
  20.   response.write"javascript:history.go(-1)</SCRIPT>"
  21. else
  22. rs("Hits")=rs("Hits")+1
  23. rs.update
  24. if rs("hits")>=HitsOfHot then
  25. rs("Hot")=True
  26. rs.update
  27. end if
  28. EnBigClassName=rs("EnBigClassName")
  29. EnSmallClassName=rs("EnSmallClassName")
  30. %>
  31. <!--#include file="Include/En_Head.asp" -->
  32. <TABLE cellPadding=0 cellSpacing=0 class='Middle_Title'>
  33. <TR>
  34. <%if strSkins <= 200 and strSkins >= 1 then%>
  35. <%
  36. elseif strSkins <= 250 and strSkins >= 201 then '新风格==============================================================
  37. %>
  38. <TD vAlign=top class='M_Left_Td'> 
  39. <table cellpadding="0" cellspacing="0" align="center" class='M_Left_Title'>
  40. <tr>
  41. <td valign="top">
  42. <%
  43. Call Style_Product() '产品列表
  44. %>
  45. </td>
  46. </tr>
  47. </table> 
  48. </TD>
  49. <%end if%>  
  50. <TD vAlign=top> 
  51. <TABLE cellPadding=0 cellSpacing=0 align='center' class='M_Center_Title'>
  52. <% Call Style_Adcolumn() '广告栏 %>
  53. <!-- 产品查看 -->
  54. <TD>
  55. <TABLE cellSpacing=0 cellPadding=0  align='center' class='MC_Pt_Title'>
  56. <TR>
  57. <TD class='MC_Pt_TD1'><IMG src='../img/1x1_pix.gif' width=3 height=1></TD>
  58. <TD class='MC_Pt_TD2'><IMG src='../img/1x1_pix.gif' width=3 height=1></TD>
  59. <TD class='MC_Pt_TD3'><SPAN class=Glow>
  60. <%
  61. response.write "<a href='En_Product.asp'>Product show</a>"
  62. response.write "&nbsp;&gt;&gt;&nbsp;<a href='En_Product.asp?EnBigClassName=" & rs("EnBigClassName") & "'>" & rs("EnBigClassName") & "</a>"
  63. if rs("SEnmallClassName") & ""<>"" then
  64. response.write "&nbsp;&gt;&gt;&nbsp;<a href='En_Product.asp?EnBigClassName=" & rs("EnBigClassName")&"&EnSmallClassName=" & rs("EnSmallClassName") & "'>" & rs("EnSmallClassName") & "</a>"
  65. end if
  66. 'response.write "&nbsp;&gt;&gt;&nbsp;"& rs("Title")
  67. %>
  68. &nbsp;</SPAN></TD>
  69. <TD class='MC_Pt_TD4'><div align="right">
  70. &nbsp;</div></TD>
  71. <TD class='MC_Pt_TD5'><IMG src='../img/1x1_pix.gif' width=3 height=1></TD>
  72. </TR>
  73. </TABLE>
  74. </TD>
  75. </TR>
  76. <TR> 
  77. <TD>
  78. <TABLE cellSpacing=1 cellPadding=0  align='center' class='MC_PrShow_Title1'>
  79. <TR class='MC_PrShow_t1Tr1'>
  80. <td class='MC_PrShow_t1r1Td1'>Name</TD>
  81. <td>Spec</TD>
  82. <td class='MC_PrShow_t1r1Td3'>Size</TD>
  83. </TR>
  84. <TR class='MC_PrShow_t1Tr2'>
  85. <td>&nbsp;<%=rs("EnTitle")%></TD>
  86. <td>&nbsp;<%=rs("EnSpec")%></TD>
  87. <td>&nbsp;<%=rs("Size")%></TD>
  88. </TR>
  89. </TABLE>
  90. </TD>
  91. </TR>
  92. <TR> 
  93. <TD>
  94. <TABLE cellSpacing=0 cellPadding=0  align='center' class='MC_PrShow_Title2'>
  95. <TR class='MC_PrShow_t2Tr1'>
  96. <td>::Explanation::</TD>
  97. <TD width="98" align="right">
  98. <a href='javascript:eshop(<%=rs("Product_Id")%>)'><img border=0 src='../Img/En_addtocart.gif' width=95 height=17></a>&nbsp;</TD>
  99. </TR>
  100. </TABLE>
  101. </TD>
  102. </TR>
  103. <TR> 
  104. <TD>
  105. <TABLE cellSpacing=0 cellPadding=0 align='center' class='MC_PrShow_Title3'>
  106. <tr> 
  107. <td style="line-height: 150%">  <%call ShowArticleContent()%></td>
  108. </tr>
  109. </table>
  110. </TD>
  111. </TR>
  112. <!-- 产品查看 END -->
  113. <TR> 
  114. <TD>
  115. <table cellpadding=0 cellspacing=0  align='center' class='MC_bottom_title'>
  116. <tr> 
  117. <td><div align="right">
  118. Click count:<%=rs("Hits")%>&nbsp; Input time:<%= FormatDateTime(rs("UpdateTime"),2) %>&nbsp;【<a href='javascript:window.print()'>Print Page</a
  119. >】【<a href='javascript:history.back()'>Return</a
  120. >】【<A href="javascript:window.scroll(0,-360)">top</A>】
  121. &nbsp;</div></td>
  122. </tr>
  123. <tr><td class='MC_bottom_Td2'></td></tr>
  124. </table>
  125. </TD>
  126. </TR>
  127. <TR><TD height=10><IMG src='../img/1x1_pix.gif' width=3 height=1></TD></TR>
  128. </TABLE>
  129. </TD>
  130. <%
  131. end if
  132. rs.close
  133. set rs=nothing
  134. %>
  135. <TD class='M_Jgx_TD'><IMG src='../img/1x1_pix.gif' width=1 height=2></TD>
  136. <%if strSkins <= 200 and strSkins >= 1 then%>
  137. <TD vAlign=top class='M_Left_Td'> 
  138. <table cellpadding="0" cellspacing="0" align="center" class='M_Left_Title'>
  139. <tr>
  140. <td valign="top">
  141. <%
  142. Call Style_Product() '产品列表
  143. %>
  144. </td>
  145. </tr>
  146. </table> 
  147. </TD>
  148. </TR>
  149. </TABLE>
  150. <!--#include file="Include/En_Foot.asp" -->
  151. <%
  152. elseif strSkins <= 250 and strSkins >= 201 then '新风格==============================================================
  153. %>
  154. <TD vAlign=top background="../Skin/201/line-mid-glay.gif" width="6"><img border="0" src="../Skin/201/line-shadow-glay-
  155. mid.gif" width="6" height="146"></TD>
  156. <TD vAlign=top class='Mr_TitlePt'><% Call Right_Download() %></TD>
  157. </TR>
  158. </TABLE>
  159. <!--#include file="Include/en_Foot4.asp" -->
  160. <%end if%>