📄 product_detail.asp
字号:
<%@ Language=VBScript %>
<!--#INCLUDE FILE="includes/adovbs.asp"-->
<!--#INCLUDE FILE="includes/connstr.asp"-->
<%
dim acnDB, arsDB
dim arrDetails,arrDetailItem
set acnDB = Server.CreateObject("ADODB.Connection")
set arsDB = Server.CreateObject("ADODB.Recordset")
acnDB.ConnectionString = connstr
acnDB.Open
arsDB.Open "Select prod_id,prd_name,prd_intro,prd_features,app_link,prd_details,act_price,our_price,prd_desc from product where active='Y'and prod_id = " & trim(Request.QueryString("id")),acnDB
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Welcome to Waytec EShop</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="includes/waytec_eshop.css" rel="stylesheet" type="text/css">
<script type='text/javascript' src='includes/general_functions.js'></script>
<script type="text/javascript">
function change_photo(path,id)
{
var img=this.document.getElementById("big_image");
img.src=path;
}
</script>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#999999"><table width="780" border="0" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF">
<!--#INCLUDE FILE="includes/TopMenu.inc"-->
<!--#INCLUDE FILE="includes/submenu_home.inc"-->
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr> <td width="169" valign="top">
<!--#INCLUDE FILE="includes/left_nav_menu.inc"--></td>
<td width="20"> </td>
<td valign="top"><table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="450" align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" align="left" colspan="2" valign="bottom" class="header">Products</td>
<td width="20" align="right" valign="middle"> </td>
</tr>
<tr>
<td height="5" align="right" valign="bottom"></td>
<td align="right" valign="middle"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" align="right"><img src="images/line_horizontal.gif" width="450" height="1" border="0"></td>
</tr>
</table>
<table>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="194">
<img name="big_image" src="images/<%=arsDB.Fields("prod_id")%>big.jpg" width="200" height="180">
</td>
<td valign="top" width="346">
<table>
<tr>
<td height="20" align="center" valign="top" class="9Point"><span class="9pointBold"><FONT size=2 class="9pointBLue"><B><%=arsDB.Fields("prd_name")%></B></FONT><BR>
</span></td>
</tr>
<tr>
<td height="20" align="center" valign="top" class="9Point"><span class="9pointBold">Model : </span> <%=arsDB.Fields("prd_desc")%><BR>
</span></td>
</tr>
<tr>
<td height="20" align="center" class="9pointBold">Listed Price : <span class="9pointBlue">$<%=arsDB.Fields("act_price")%></span></td>
</tr>
<tr>
<td height="20" align="center" class="9pointBold">Our price : <span class="9pointBlue">$<%=arsDB.Fields("our_price")%></span> (inc GST)</td>
</tr>
<tr>
<td height="35" align="center" valign="bottom">
<table width="105" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5" valign="top"><img src="images/left_curve_small.gif" width="5" height="28"></td>
<td width="65" align="right" valign="middle" class="8pointBlue">
<a href="shopping_cart.asp?id=<%=arsDB.Fields("prod_id")%>" class="9pointBold">
Add to Cart </a><br></td>
<td width="1" valign="middle"><img width="1" height="30"></td>
<td width="30" align="center" valign="top" class="8pointBold"><a href="shopping_cart.asp?id=<%=arsDB.Fields("prod_id")%>"><img src="images/button_blue.jpg" width="20" border="0"></a></td>
<td width="5" valign="top"><img src="images/right_curve_small.gif" width="5" height="28"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="30" class="8point" align="left" valign="bottom">More photos</td>
</tr>
<tr>
<td height="1" align="right"><img src="images/line_horizontal.gif" width="200" height="1" border="0"></td>
</tr>
<tr>
<td width="100%">
<table>
<tr>
<td id="td"><img src="images/<%=arsDB.Fields("prod_id")%>small.jpg" width="55" height="55" onClick="change_photo('images/<%=arsDB.Fields("prod_id")%>big.jpg','td')" style="cursor:hand"></td>
<td id="td1"><img src="images/<%=arsDB.Fields("prod_id")%>small1.jpg" width="55" height="55" onClick="change_photo('images/<%=arsDB.Fields("prod_id")%>big1.jpg','td1')" style="cursor:hand"></td>
<td id="td2"><img src="images/<%=arsDB.Fields("prod_id")%>small2.jpg" width="55" height="55" onClick="change_photo('images/<%=arsDB.Fields("prod_id")%>big2.jpg','td2')" style="cursor:hand"></td>
<td id="td3"><img src="images/<%=arsDB.Fields("prod_id")%>small3.jpg" width="55" height="55" onClick="change_photo('images/<%=arsDB.Fields("prod_id")%>big3.jpg','td3')" style="cursor:hand"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" align="right"><img src="images/line_horizontal.gif" width="450" height="1" border="0"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="bottom">
<td height="15" align="center" class="9pointBold" colspan="4"> </td>
</tr>
<!-- INTRODUCTION SECTION STARTS HERE-->
<tr>
<td height="20" class="9pointBLue" colspan="5">Introduction</td>
</tr>
<tr>
<td height="20" class="9point" colspan="5"><%=arsDB.Fields("prd_intro")%><br></td>
</tr>
<tr>
<td height="20" class="9point" colspan="5"></td>
</tr>
<!-- INTRODUCTION SECTION ENDS HERE-->
<!-- Features SECTION STARTS HERE-->
<tr>
<td height="20" class="9pointBLue" colspan="5">Features</td>
</tr>
<%if trim(arsDB.Fields("prd_features")) <> "" then
for i = 1 to len(arsDB.Fields("prd_features"))
if asc(mid(arsDB.Fields("prd_features"),i,1)) <> 13 then
oneline = oneline & mid(arsDB.Fields("prd_features"),i,1)
else
if trim(oneline) <> "" then
%>
<tr>
<td height="20" colspan="6" align="right" class="9pointBold">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" width="10" class="9pointBold" align="right"></td>
<td width="10"></td>
<td class="9Point"><%=oneline%><br></td>
</tr>
</table>
</td>
</tr>
<%
oneline = ""
i = i + 1
end if
end if
next
end if
if trim(oneline) <> "" then
%>
<tr>
<td height="20" colspan="6" align="right" class="9point">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" width="10" class="9pointBold" align="right">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -