|
樓層 |
尺寸 |
價錢 |
可網上預訂? |
預留單位 |
單位總數 |
最近更新 |
|
";
print " | ";
//print "" ."[".$master_room["id"]."] ". $master_room{'length'}." X ". $master_room{'width'}." X ".$master_room{'height'}. " | ";
/*print "". $master_room{'length'}." X ". $master_room{'width'}." X ".$master_room{'height'}. " | ";*/
foreach ($locations as $location){
if($master_room["location_id"]==$location["location_id"]){
print "". $location["location_code"]." ".$location["location_name_tc"]. " | ";
break;
}
}
print "". $master_room["display_size"]. " | ";
if($master_room{'retail_price'} == $master_room{'discounted_price'}){
print "$" . numberformat($master_room{'retail_price'}) . " | ";
}else{
print "$" . $master_room{'discounted_price'} . " $".numberformat($master_room{'retail_price'})." | ";
}
if($master_room["is_onlinesales"] == 1){
print "可以 | ";
print "".$master_room{'remain_room'}." | ";
}else{
print "不可以 | ";
print "0 | ";
}
print "".$master_room{'total_room'}." | ";
print "" . $master_room{'master_room_lastupdate'} . " | ";
//Status
/*print "";
if ($master_room{'master_room_status'} == 1) // Enable
{
print "";
print " ";
} else // Disable
{
print "";
print " ";
}
print " | ";*/
// Modify
print " | ";
// Delete
//check if this master room has been applied or not
/*$sql = "select * from room where master_room_id = ? and deleted = 0 ";
$parameters = array($master_room{'master_room_id'});
$room_info = bind_pdo($sql, $parameters, "selectall");
if(!empty($room_info)){
print " | ";
}else{
print " | ";
}*/
print "";
}
$dbh = null;
?>