if($result_ppopu[rnum] > 2) {
if($r_ppopu[persale]>0){
$r_ppopu_psellprice = number_format(round($r_ppopu[pprice]*(1-($r_ppopu[persale]/100)),-2));
}else{
$r_ppopu_psellprice = number_format(round($r_ppopu[psellprice], -2));
}
if($r2_ppopu[persale]>0){
$r2_ppopu_psellprice = number_format(round($r2_ppopu[pprice]*(1-($r2_ppopu[persale]/100)),-2));
}else{
$r2_ppopu_psellprice = number_format(round($r2_ppopu[psellprice], -2));
}
if($r3_ppopu[persale]>0){
$r3_ppopu_psellprice = number_format(round($r3_ppopu[pprice]*(1-($r3_ppopu[persale]/100)),-2));
}else{
$r3_ppopu_psellprice = number_format(round($r3_ppopu[psellprice], -2));
}
?>
|
}?>
|
|
$loop='';
while($r = mysql_fetch_array($result2[result])) {
$loop++;
if($r[smcate]=="$smcate") $SMTITLE = " $r[smcatename] ";
else $SMTITLE = "$r[smcatename]";
?>
}?>
|
}elseif($mode != "recom" && $smcate!="") {?>
|
}?>
|
$loop='';
while($r = mysql_fetch_array($result2[result])) {
$loop++;
if($r[smcate]=="$smcate") $SMTITLE = " $r[smcatename] ";
else $SMTITLE = "$r[smcatename]";
?>
}?>
|
|
|
$loop='';
while($r = mysql_fetch_array($result3[result])) {
$loop++;
if($r[pcompany]=="$pcompany") $THIRDTITLE = " $r[pcompany] ";
else $THIRDTITLE = "$r[pcompany]";
?>
}?>
|
|
|
|
}?>
for($nLoop=$startRecord;$nLoop<=$endRecord-1;$nLoop++) {
@mysql_data_seek($result[result],$nLoop);
$r = @mysql_fetch_array($result[result]);
@mysql_data_seek($result[result],$nLoop+1);
$r2 = @mysql_fetch_array($result[result]);
@mysql_data_seek($result[result],$nLoop+2);
$r3 = @mysql_fetch_array($result[result]);
@mysql_data_seek($result[result],$nLoop+3);
$r4 = @mysql_fetch_array($result[result]);
$pname = $r[pname];
$pname2 = $r2[pname];
$pname3 = $r3[pname];
$pname4 = $r4[pname];
$eng_pname = $r[eng_pname];
$eng_pname2 = $r2[eng_pname];
$eng_pname3 = $r3[eng_pname];
$eng_pname4 = $r4[eng_pname];
$pcompany = $r[pcompany];
$pcompany2 = $r2[pcompany];
$pcompany3 = $r3[pcompany];
$pcompany4 = $r4[pcompany];
if($pcompany=="DAIWA") $affiSale = $affiPerSale;
else $affiSale = 1;
if($r[persale]>0) $psellprice = round($r[pprice]*$affiSale*(1-($r[persale]/100)),-3);
else $psellprice = round($r[pprice]*$affiSale,-3);
if($pcompany2=="DAIWA") $affiSale = $affiPerSale;
else $affiSale = 1;
if($r2[persale]>0) $psellprice2 = round($r2[pprice]*$affiSale*(1-($r2[persale]/100)),-3);
else $psellprice2 = round($r2[pprice]*$affiSale,-3);
if($pcompany3=="DAIWA") $affiSale = $affiPerSale;
else $affiSale = 1;
if($r3[persale]>0) $psellprice3 = round($r3[pprice]*$affiSale*(1-($r3[persale]/100)),-3);
else $psellprice3 = round($r3[pprice]*$affiSale,-3);
if($pcompany4=="DAIWA") $affiSale = $affiPerSale;
else $affiSale = 1;
if($r4[persale]>0) $psellprice4 = round($r4[pprice]*$affiSale*(1-($r4[persale]/100)),-3);
else $psellprice4 = round($r4[pprice]*$affiSale,-3);
if($r[stock_amount]<1) $STOCK_IMG = "";
else $STOCK_IMG = "";
if($r2[stock_amount]<1) $STOCK_IMG2 = "";
else $STOCK_IMG2 = "";
if($r3[stock_amount]<1) $STOCK_IMG3 = "";
else $STOCK_IMG3 = "";
if($r4[stock_amount]<1) $STOCK_IMG4 = "";
else $STOCK_IMG4 = "";
/*
if($r[stock_amount]<1) $STOCK_IMG = "";
else $STOCK_IMG = "";
if($r2[stock_amount]<1) $STOCK_IMG2 = "";
else $STOCK_IMG2 = "";
if($r3[stock_amount]<1) $STOCK_IMG3 = "";
else $STOCK_IMG3 = "";
if($r4[stock_amount]<1) $STOCK_IMG4 = "";
else $STOCK_IMG4 = "";
*/
?>
|
|
$nLoop = $nLoop + 3;
}
?>
|
|
|
|
|