product.asp
来自「网上勾物系统欢迎大家下在 如有问题可以联系我」· ASP 代码 · 共 290 行
ASP
290 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>{$pname}--{$webname}--{$title}</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<script language='javascript'>
function LoadValueInfo(str1,str2,str3)
{
var result,url;
var j;
url = "{$setpath}getinfo.asp?pid="+str1
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.async=false;
xmlDoc.load(url);
document.getElementById("productinfo").innerHTML=xmlDoc.childNodes(1).childNodes(0).childNodes(0).text;
/*
document.getElementById("category_name").innerHTML=str2;
if (str2=='')
{
document.getElementById("productmore").innerHTML=" ";
}
else
{
document.getElementById("productmore").innerHTML="<A href={$setpath}/html/class/"+str3+">更多商品</A> ";
}
*/
}
</script>
<body leftmargin=0 marginwidth=0 topmargin="0" marginheight="0">
{$top}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" colspan="3" align="center" background="images/announce.gif">
<table width="80%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="15%" align="center"><strong>网站公告 |</strong></td>
<td width="85%"><font color="#FF6600">{$notemessage}
</font></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="center" valign="top">
{$cart}
{$login}
{$4left}
{$mail}
{$helpleft}</td>
<td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%" height="52" align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">{$morepicture}</td>
<td width="1" rowspan="5" bgcolor="#CCCCCC"><img src="images/null.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="30" align="center"> </td>
</tr>
<tr>
<td height="15" align="center" bgcolor="#f1f1f1"> </td>
</tr>
<tr>
<td align="center" height="30"> <a onClick="window.open('{$setpath}dialog.asp?action=recprod&pid='+{$pid},'','top=100,left=120,width=260,height=180')" style="cursor:hand"><img src="{$setpath}chinese/tuijian.gif" width="40" height="15" border="0"> </a>
<a href="{$setpath}opt.asp?action=addcollect&pid={$pid}&pname={$pname}"><img src="{$setpath}chinese/keep.gif" width="40" height="15" border="0"></a> <a href="{$setpath}{$pic}" target="_blank"><img src="{$setpath}chinese/bigpic.gif" width="40" height="15" border="0"></a></td>
</tr>
<tr>
<td height="15" align="center" bgcolor="#f1f1f1"> </td>
</tr>
</table></td>
<td width="60%" align="center" valign="top"> <table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" colspan="2" align="center"><strong><font color="#ff6600" size="3">{$pname}</font></strong></td>
</tr>
<tr>
<td width="29%" height="40">商品编号:</td>
<td width="71%" height="40" align="left">{$pid}</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="images/null.gif" width="1" height="1"></td>
</tr>
<tr>
<td width="29%" height="40">品牌:</td>
<td width="71%" height="40" align="left">{$brand}</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="images/null.gif" width="1" height="1"></td>
</tr>
<tr bgcolor="#f1f1f1">
<td width="29%" height="40">市场价:</td>
<td width="71%" height="40">{$price1}元</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="images/null.gif" width="1" height="1"></td>
</tr>
<tr bgcolor="#f1f1f1">
<td height="40">商城价:</td>
<td height="40"><font color="#ff6600">{$price2} 元</font></td>
</tr>
<tr bgcolor="#f1f1f1">
<td height="40" colspan="2"> <div id="productinfo" name="productinfo"></div>
<script>LoadValueInfo('{$pid}','');</script></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="images/null.gif" width="1" height="1"></td>
</tr>
<tr bgcolor="#f1f1f1">
<td height="40">降幅:</td>
<td height="40"><font color="#CC0000" size="3"><strong>{$grade}</strong></font></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="images/null.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="40">浏览次数:</td>
<td height="40">{$count}次</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="images/null.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="40">库存量:</td>
<td height="40" align="left">{$store}件</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="{$setpath}images/null.gif" width="1" height="1"></td>
</tr>
<form name="ord" metohd="post">{$selfattribute}</form>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"><img src="{$setpath}images/null.gif" width="1" height="1"></td>
</tr>
<tr align="left">
<td height="60" colspan="2"><div align="center"><a onClick="selectid({$pid})" style='cursor:hand')><img src="{$setpath}chinese/add.gif" width="152" height="56"></a></div></td>
</tr>
</table></td>
</tr>
<tr valign="top">
<td height="52" colspan="2"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td> <table width="150" height="31" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" background="images/vprolabel.gif"><font color="#FFFFFF">-
详细说明 -</font></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr>
<td>{$content}</td>
</tr>
<tr>
<td height="50"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> <table width="150" height="31" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" background="images/vprolabel.gif"><font color="#FFFFFF">-
网友评论 -</font></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#f9f9f9">
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<!-- BEGIN pinglun -->
<tr>
<td bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#eeeeee">
<td width="23%" height="20" bgcolor="#eeeeee"><strong> {$ti}楼 -
{$ping_name} -</strong></td>
<td width="59%" bgcolor="#FFFFFF"> </td>
<td width="18%" align="center"><strong>{$ping_time}</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" colspan="3"> <table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td>{$ping_content}</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="20" colspan="2" bgcolor="#f1f1f1">回复:{$ping_recontent}</td>
<td align="center"></td>
</tr>
</table></td>
</tr>
<!-- END pinglun -->
<tr>
<td bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="25" align="center" background="images/labelbg.gif">【
<a onClick="window.open('{$setpath}comment.asp?pid={$pid}','','top=50,left=100,width=566,height=350,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')" style="cursor:hand">我要评价</a> 】</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> <table width="150" height="31" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" background="images/vprolabel.gif"><font color="#FFFFFF">-
相关商品 -</font></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#f1f1f1"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<!-- BEGIN newproductlist -->
<tr>
<!-- BEGIN newproduct -->
<td><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="160" align="center" bgcolor="#FFFFFF"><a href="{$setpath}product.asp?pid={$ppid}"><img src="{$setpath}{$pphoto}" width="{$pw1}" height="{$ph1}" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#666666"><table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td align="center" class="link1"><a href="{$setpath}product.asp?pid={$pid}" >{$ppname}
</a></td>
</tr>
</table></td>
</tr>
</table></td>
<!-- END newproduct -->
</tr>
<!-- END newproductlist -->
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr> </table>
{$bottom}
</body>
</html>
<script >
function display(name)
{
document.getElementById("pic").style.display='none';
document.getElementById(name).style.display='';
}
function hidden(name)
{
document.getElementById("pic").style.display='';
document.getElementById(name).style.display='none';
}
function selectid(id)
{
var tmp="";
var tmpname="";
for (var ii=0;ii<ord.elements.length;ii++)
{
tmpname=tmpname+"@@"+document.getElementById("select"+ii).value
}
window.open("{$setpath}mycart.asp?action=add&mount=1&id="+id+"&other="+tmpname,"","top=50,left=120,width=650,height=460,scrollbars=yes,alwaysRaised=yes,z-look=yes")
}
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?