';
if ($_SESSION['lang']=="en") $temptext.= "Latest Products";
if ($_SESSION['lang']=="tc") $temptext.= "新產品";
if ($_SESSION['lang']=="sc") $temptext.= "新产品";
$temptext.= '
';
$sql = 'SELECT * FROM products where display="1" and displayhot1="1" ORDER BY sorting ASC, sc_name asc limit 0,6';
$rs = $db->query($sql);
while($row = $db->fetch_array($rs)) {
$tempcounter++;
// if ( $tempcounter==5 )
if ( $_SESSION['curr']=='USD' ) $tempcurr= $row['price1unit'].' '.$row["price1"];
if ( $_SESSION['curr']=='RMB' ) $tempcurr= $row['price2unit'].' '.$row["price2"];
if ( $_SESSION['curr']=='HKD' ) $tempcurr= $row['price3unit'].' '.$row["price3"];
$tempcurr= $_SESSION['curr'].' '.$row["price1"] * $_SESSION['currency'];
$sql_productphoto = "SELECT * FROM attachment WHERE table_name='products' and col_name='Photo Large' and table_id ='".$row["id"] ."'";
$rs_productphoto = $db->query($sql_productphoto);
while ( $row_productphoto = $db->fetch_array($rs_productphoto)){
$photo1 = $row_productphoto["file_name"];
$photopath1 = $row_productphoto["path"];
}
$temptext .= '-
'.$row["{$_SESSION["lang"]}_name"].'
'.$row["productcode"].'
';
}
$temptext .= '
';
echo ''.$temptext.'
';
?>