 |
for($y=0;$y<5;$y++){
?>
"> |
}
?>
| |
for($y=0;$y<5;$y++){
?>
|
}
?>
| |
for($y=0;$y<5;$y++){
?>
if($rs_prod_list[$x+$y]["sn"]==""){
?>
}else{
?>
出版社: "> echo $rs_prod_list[$x+$y]["publisher"]?>
}
?>
|
}
?>
| |
for($y=0;$y<5;$y++){
?>
if($rs_prod_list[$x+$y]["sn"]==""){
?>
}else{
?>
定價: echo $rs_prod_list[$x+$y]["price1"]?>
}
?>
|
}
?>
| |
for($y=0;$y<5;$y++){
$pricename = "售價:";
$sellprice = $rs_prod_list[$x+$y]["price2"];
if(date("Y-m-d")<=$rs_prod_list[$x+$y]["price3_datee"] && $rs_prod_list[$x+$y]["price3_dates"]<=date("Y-m-d")){
$sellprice = $rs_prod_list[$x+$y]["price3"];
$pricename = "活動價:";
}
$discount_ratio = 0;
if($rs_prod_list[$x+$y]["price1"]!=0) {
$discount_ratio = round($sellprice/$rs_prod_list[$x+$y]["price1"],2)*100;
}
if($discount_ratio%10==0) {
$discount_ratio = $discount_ratio/10;
}
?>
if($rs_prod_list[$x+$y]["sn"]==""){
?>
}else{
?>
echo $pricename;?> echo $discount_ratio;?>折, echo $sellprice?>元 |
}
?>
}
?>
| |
for($y=0;$y<5;$y++){
?>
if($rs_prod_list[$x+$y]["sn"]==""){
?>
}else{
?>
">
}
?>
|
}
?>
| |
|
}
?>