每日博客4.20

<?php
session_start();
include_once 'conn.php';
//xuxyxaodenxglxxu
$id=$_GET["id"];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>

<TITLE>商品信息</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="qtimages/style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.6058" name=GENERATOR></HEAD>


<script language="javascript">
function OpenScript(url,width,height)
{
var win = window.open(url,"SelectToSort",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
function OpenDialog(sURL, iWidth, iHeight)
{
var oDialog = window.open(sURL, "_EditorDialog", "width=" + iWidth.toString() + ",height=" + iHeight.toString() + ",resizable=no,left=0,top=0,scrollbars=no,status=no,titlebar=no,toolbar=no,menubar=no,location=no");
oDialog.focus();
}
</script>
<BODY>
<?php include_once 'qttop.php';?>
<TABLE cellSpacing=0 cellPadding=0 width=1120 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD width=5>&nbsp;</TD>
<TD vAlign=top width=230>
<?php include_once 'qtleft.php';?>
</TD>
<TD vAlign=top width=10>&nbsp;</TD>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=bottom height=40>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=44 height=40><IMG height=35
src="qtimages/B0039.gif"
width=30></TD>
<TD width=11>&nbsp;</TD>
<TD width=209><span class="red"><strong>商品信息</strong></span></TD>
<TD vAlign=bottom align=right width=50></TD>
<TD vAlign=bottom align=right width=45>&nbsp;</TD>
<TD align=left width=291>&nbsp;&nbsp;</TD>
</TR></TBODY></TABLE></TD></TR>
<TR>
<TD bgColor=#dadada height=1></TD></TR>
<TR>
<TD bgColor=#f6f6f6 height=4></TD></TR>
<TR>
<TD bgColor=#ffffff height=6>



<?php
$sql="select * from shangpinxinxi where id=".$id;
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
if($rowscount>0)
{
?>

<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse" class="newsline">
<tr>
<td width='11%' height=44>商品编号:</td><td width='39%'><?php echo mysql_result($query,0,shangpinbianhao);?></td><td rowspan=7 align=center><a href=<?php echo mysql_result($query,0,tupian);?> target=_blank><img src=<?php echo mysql_result($query,0,tupian);?> width=228 height=215 border=0></a></td></tr><tr>
<td width='11%' height=44>商品名称:</td><td width='39%'><?php echo mysql_result($query,0,shangpinmingcheng);?></td></tr><tr>
<td width='11%' height=44>商品类别:</td><td width='39%'><?php echo mysql_result($query,0,shangpinleibie);?></td></tr><tr>
<td width='11%' height=44>品牌:</td><td width='39%'><?php echo mysql_result($query,0,pinpai);?></td></tr><tr>

<td width='11%' height=44>价格:</td><td width='39%'><?php echo mysql_result($query,0,jiage);?></td></tr><tr>
<td width='11%' height=44>库存数量:</td><td width='39%'><?php echo mysql_result($query,0,kucunshuliang);?></td></tr><tr>
<td width='11%' height=44>用户评价:</td><td width='39%'><?php echo mysql_result($query,0,yonghupingjia);?></td></tr><tr>

<td width='11%' height=100 >商品介绍:</td><td width='39%' colspan=2 height=100 ><?php echo mysql_result($query,0,shangpinjieshao);?></td></tr><tr> <td colspan=3 align=center><table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">
<tr>
<td width="50" bgcolor="#D8E8F8">序号</td>
<td width="323" align="left" bgcolor='#D8E8F8'>评论内容</td>
<td width="98" align="left" bgcolor='#D8E8F8'>评论人</td>
<td width="106" align="center" bgcolor="#D8E8F8">评分</td>
<td width="106" align="center" bgcolor="#D8E8F8">评论时间</td>
</tr>
<?php
$sql="select * from pinglun where wenzhangID='$id' and biao='shangpinxinxi' order by id desc";
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
if($rowscount==0)
{}
else
{
for($i=0;$i<$rowscount;$i++)
{
?>
<tr>
<td width="50"><?php echo $i+1;?></td>
<td align="left"><?php echo mysql_result($query,$i,pinglunneirong);?></td>
<td align="left"><?php echo mysql_result($query,$i,pinglunren);?></td>
<td width="106" align="center"><?php echo mysql_result($query,$i,"pingfen");?></td>
<td width="106" align="center"><?php echo mysql_result($query,$i,"addtime");?></td>
</tr>
<?php
}
}
?>
</table></td>
</tr>
<tr><td colspan=3 align=center><input type=button name=Submit5 value=返回 onClick="javascript:history.back()" style='border:solid 1px #000000; color:#666666; width:50px;' /><input type=button name=Submit53 value=评论 onClick="javascript:OpenScript('hsgpinglun.php?biao=shangpinxinxi&id=<?php echo $id;?>',500,200)" style='border:solid 1px #000000; color:#666666; width:50px;' /><input type=button name=Submit52 value=收藏 onClick="javascript:location.href='jrsc.php?id=<?php echo $id;?>&biao=shangpinxinxi&ziduan=shangpinmingcheng';" style='border:solid 1px #000000; color:#666666; width:50px;' />
<input type=button name=Submit54 value=加入购物车 onClick="javascript:location.href='goumaicheadd.php?id=<?php echo $id?>';" style='border:solid 1px #000000; color:#666666; width:80px;' /></td></tr>


</table>

<?php
}
?>




</TD>
</TR></TBODY></TABLE>
</TD>
<TD width=5>&nbsp;</TD></TR></TBODY></TABLE>
<?php include_once 'qtdown.php';?>
<!-- dfexnxxiaxng -->
</BODY></HTML>

posted @ 2021-04-20 20:06  王昊宁  阅读(26)  评论(0编辑  收藏  举报