📄 index.php
字号:
$sql=mysql_query("select * from tb_shangpin order by addtime desc limit 1,1");
$info=mysql_fetch_array($sql);
if($info==true)
{
?>
<table width="270" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="130" rowspan="5"><div align="center">
<?php
if(trim($info[tupian]=="")){
echo "暂无图片";
}
else{
?>
<img src="<?php echo $info[tupian];?>" width="80" height="80" border="0">
<?php
}
?>
</div></td>
<td width="11" height="16"> </td>
<td width="124"><font color="FF6501"><img src="images/circle.gif" width="10" height="10"> <?php echo $info[mingcheng];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">市场价:</font><font color="FF6501"><?php echo $info[shichangjia];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">会员价:</font><font color="FF6501"><?php echo $info[huiyuanjia];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">剩余数量:</font><font color="13589B">
<?php
if($info[shuliang]>0)
{
echo $info[shuliang];
}
else
{
echo "已售完";
}
?>
</font></td>
</tr>
<tr>
<td height="30" colspan="2"><a href="lookinfo.php?id=<?php echo $info[id];?>"><img src="images/xiangxi_btn.gif" width="60" height="18" border="0"></a> <a href="addgouwuche.php?id=<?php echo $info[id];?>"><img src="images/goumai_btn.gif" width="60" height="18" border="0"></a> </td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="10" background="images/line1.gif"></td>
</tr>
</table>
<table width="548" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="46"><img src="images/hot.gif" width="557" height="46" border="0" usemap="#Map4"> </td>
</tr>
</table>
<table width="553" border="00" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="553" height="110"><table width="540" height="110" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="275">
<?php
$sql=mysql_query("select * from tb_shangpin order by cishu desc limit 0,1");
$info=mysql_fetch_array($sql);
if($info==false){
echo "本站暂无推荐产品!";
}
else {
?>
<table width="270" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="130" rowspan="5"><div align="center">
<?php
if(trim($info[tupian]=="")){
echo "暂无图片";
}
else{
?>
<img src="<?php echo $info[tupian];?>" width="80" height="80" border="0">
<?php
}
?>
</div></td>
<td width="11" height="16"> </td>
<td width="124"><font color="FF6501"><img src="images/circle.gif" width="10" height="10"> <?php echo $info[mingcheng];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">市场价:</font><font color="FF6501"><?php echo $info[shichangjia];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">会员价:</font><font color="FF6501"><?php echo $info[huiyuanjia];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">剩余数量:</font><font color="13589B">
<?php
if($info[shuliang]>0)
{
echo $info[shuliang];
}
else
{
echo "已售完";
}
?>
</font></td>
</tr>
<tr>
<td height="30" colspan="2"><a href="lookinfo.php?id=<?php echo $info[id];?>"><img src="images/xiangxi_btn.gif" width="60" height="18" border="0"></a> <a href="addgouwuche.php?id=<?php echo $info[id];?>"><img src="images/goumai_btn.gif" width="60" height="18" border="0"></a> </td>
</tr>
</table>
<?php
}
?>
</td>
<td width="255">
<?php
$sql=mysql_query("select * from tb_shangpin order by cishu desc limit 1,1 ");
$info=mysql_fetch_array($sql);
if($info==true){
?>
<table width="270" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="130" rowspan="5"><div align="center">
<?php
if(trim($info[tupian]=="")){
echo "暂无图片";
}
else{
?>
<img src="<?php echo $info[tupian];?>" width="80" height="80" border="0">
<?php
}
?>
</div></td>
<td width="11" height="16"> </td>
<td width="124"><font color="FF6501"><img src="images/circle.gif" width="10" height="10"> <?php echo $info[mingcheng];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">市场价:</font><font color="FF6501"><?php echo $info[shichangjia];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">会员价:</font><font color="FF6501"><?php echo $info[huiyuanjia];?></font></td>
</tr>
<tr>
<td height="16"> </td>
<td><font color="#000000">剩余数量:</font><font color="13589B">
<?php
if($info[shuliang]>0)
{
echo $info[shuliang];
}
else
{
echo "已售完";
}
?>
</font></td>
</tr>
<tr>
<td height="30" colspan="2"><a href="lookinfo.php?id=<?php echo $info[id];?>"><img src="images/xiangxi_btn.gif" width="60" height="18" border="0"></a> <a href="addgouwuche.php?id=<?php echo $info[id];?>"><img src="images/goumai_btn.gif" width="60" height="18" border="0"></a> </td>
</tr>
</table>
<?php
}
?></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
<tr>
<td>
<?php
include("bottom.php");
?></td>
</tr>
</table>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<map name="Map2">
<area shape="rect" coords="504,27,543,43" href="showtuijian.php">
</map>
<map name="Map3">
<area shape="rect" coords="503,24,545,42" href="shownew.php">
</map>
<map name="Map4">
<area shape="rect" coords="506,24,543,39" href="showhot.php">
</map>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -