include("./include/key.inc");
include("./include/usrconf.inc");
$sql="select count(*) from typeinfo where HuiYuanID=".$HuiYuanID;
$res = mysql_query($sql, $dbh);
if($res=="")
{
echo "sql error!";
exit;
}
$row = mysql_fetch_array($res);
$total=$row[0];
$sql="select * from typeinfo where HuiYuanID=".$HuiYuanID." order by ID";
$res = mysql_query($sql, $dbh);
if($res=="")
{
echo "sql error!";
exit;
}
if($page=="")
{
$page=1;
}
?>
广东互易科技有限公司
|
|
 |
$leixingID="";
$i=0;
$k=0;
while($row = mysql_fetch_array($res))
{
if($leixingID=="")
{
$leixingID=$row["ID"];
}
else
{
$leixingID=$leixingID.",".$row["ID"];
}
$k=$k+1;
if($i==0)
{
echo " ";
}
echo " ".$row["LeiXingMing"]." | ";
$i=$i+1;
if($i==3)
{
echo " ";
if($k<$total)
{
$i=0;
}
}
}//end of while
if($i<3)
{
for($n=0;$n<(3-i);$n++)
{
echo " | ";
}
echo "";
}
?>
| |
|
|
|
|
if($ID!="")
{
$sqla="select * from product where LeiXingID=".$ID." order by ID desc limit ".($page-1)*$pagenum.",".$pagenum;
$sqlb="select count(*) from product where LeiXingID=".$ID;
}
else
{
if($leixingID!="")
{
$sqla="select * from product where LeiXingID in (".$leixingID.") order by ID desc limit ".($page-1)*$pagenum.",".$pagenum;
$sqlb="select count(*) from product where LeiXingID in (".$leixingID.")";
//echo $sqla;
}
else
{
echo "该产品分类下没有产品!";
exit;
}
}
if($sqla!="")
{
$res = mysql_query($sqla, $dbh);
if($res=="")
{
echo "sql error!";
exit;
}
}
$arrXiangMu=array();
$i=0;
while($row = mysql_fetch_array($res))
{
if($row["TuPian"]=="")
{
$chanpintupian="http://www.web.8hy.com/image/default.jpg";
}
else
{
$chanpintupian=$TuPianLuJing.$row["TuPian"];
}
$arrXiangMu[$i][0]=$chanpintupian;
$arrXiangMu[$i][1]=$row["ChanPinMing"];
$arrXiangMu[$i][2]=$row["ChanPinJieShao"];
$i=$i+1;
}
//根据数组列表
$td=0;
$i=0;
for($k=0;$k
|
|
echo checktupian($arrXiangMu[$i+1][0],0,$arrXiangMu[$i+1][2]); ?>
|
|
|
|
|
|
| |
|
|
$i=$i+3;
}
?>
|
| |
|
|
|
| |
|