|
|
Hi, |
|
Avalaible |
if ($pkgcode!=''){ ?>
|
Package Code |
|
: |
|
} ?>
|
Arrival Date |
|
: |
formatDatePHP($checkin,1) ?> |
|
Departure Date |
|
: |
formatDatePHP($checkout,1) ?> |
|
Number of night(s) |
|
: |
|
|
Room Type |
|
: |
|
|
Room Quantity |
|
: |
|
|
Adult |
|
: |
|
|
Children |
|
: |
|
|
|
Walk-In Rate |
(RM) |
: |
echo $word ?> |
*/
?>
|
Online Rate |
(RM) |
: |
|
|
0){
if($numofnights>=7){
$amount=$weekamount+(($numofnights-7)*$averageamount);
}
if ($numofnights>=$numofmonth){
$amount=$monthamount+(($numofnights-$numofmonth)*$averageamount);
}
}
//earlybirds start
$watday = date("N", strtotime($checkin));
$today = date('Y'.'-'.'m'.'-'.'d');
$ch1 = date($checkin);
$earlyrate=0;
//$erate="0%";
$daysbetween = (strtotime("$ch1") - strtotime("$today")) / (60 * 60 * 24);
$query11="select * from earlybird where '$daysbetween'>=day and active ='Y' ORDER BY day desc";
$result11 = mysql_query($query11);
$row11 = mysql_fetch_array($result11);
$earlyrate = $row11['earlyrate'];
$erate1 = $row11['erate'];
$earlyrateprint=$earlyrate*100;
$erate=$erate1.'%';
?>
=$starteddate){
if ($checkin>=$stayingperiodstart && $checkin<=$stayingperiodend){
if ($quantity<$minimumroom9){
if ($earlyrate==0){$promotion = "NORMAL";
echo 'Booking quantity is less than minimun requirement.';
$membercode="normal rate";
}
else if($earlyrate>0){$promotion = "EARLYBIRDS";
echo "Booking quantity is less than minimun requirement. Early Birds Discount is $earlyrateprint % ";
$membercode="earlybirds";
}
$discount=$earlyrate;
$amount2=$amount*$earlyrate;
}
else if ($quantity>=$minimumroom9){
$queryee = "select count(*) from promotionalroomprice where memberid ='$membernum' and roomid ='$id'";
$listee=mysql_query($queryee);
list($public_countee)=mysql_fetch_row($listee);
//if ($public_count !=0){
if ($activefroomrates=="YES" && $public_countee !=0){
$promotion = "Promotional";
$queryktktkt="select roompricedis from promotionalroomprice where memberid ='$membernum' and roomid ='$id'";
$resultktktkt = mysql_query($queryktktkt);
$rowktktkt = mysql_fetch_array($resultktktkt);
$roompricedis = $rowktktkt['roompricedis'];
$roompricedis=$roompricedis*$quantity*$numofnights;
$discount=$amount-$roompricedis;
$amount2=$discount;
echo 'Promotional Discount is '; echo "RM $discount"; echo '';
$membercode=$membernum;
}
else if($activefroomrates=="NO"){
if($activediscount9=="YES"){
echo 'Promotional Discount is '; echo "RM $ddiscount_amount9"; echo '';
$promotion = "Promotional";
$membercode=$membernum;
$discount=$ddiscount_amount9;
$amount2=$ddiscount_amount9;
}
else if($activediscount9=="NO"){
$discount99=$discount9*100;
echo "Promotional Discount is $discount99 %";
$promotion = "Promotional";
$membercode=$membernum;
$discount=$discount9;
$amount2=$amount*$discount9;
}
}
}
}
else if ($checkin<$stayingperiodstart || $checkin>$stayingperiodend){
if ($earlyrate==0){$promotion = "NORMAL";
echo 'Your checkin date is out of staying period. ';
$membercode="normal rate";
}
else if($earlyrate>0){$promotion = "EARLYBIRDS";
echo "Your checkin date is out of staying period. Early Birds Discount is $earlyrateprint % ";
$membercode="earlybirds";
}
$discount=$earlyrate;
$amount2=$amount*$earlyrate;
}
}
else if ($today>$expirydate9){
if ($earlyrate==0){$promotion = "NORMAL";
echo 'Your Promotional code is Expired or Not started.';
$membercode="normal rate";
}
if($earlyrate>0){$promotion = "EARLYBIRDS";
echo "Your Promotional code is Expired or Not started. Early Birds Discount is $earlyrateprint % ";
$membercode="earlybirds";
}
$discount=$earlyrate;
$amount2=$amount*$earlyrate;
}
}
else {
if ($earlyrate==0){$promotion = "NORMAL";
echo 'Your Promotional code is Expired. ';
$membercode="normal rate";
}
else if($earlyrate>0){$promotion = "EARLYBIRDS";
echo "Your Promotional code is Expired. Early Birds Discount is $earlyrateprint % ";
$membercode="earlybirds";
}
$discount=$earlyrate;
$amount2=$amount*$earlyrate;
}
}
}
else if (($_POST["membernum"])==null){
if ($earlyrate==0){
$promotion = "";
//echo 'Your Promotional code is Expired. ';
$membercode="normal rate";
}
else if($earlyrate>0){
$promotion = "EARLYBIRDS";
echo "Early Birds Discount is $earlyrateprint % ";
$membercode="earlybirds";
}
$discount=$earlyrate;
$amount2=$amount*$earlyrate;
}
//special promotion
$specialpromotion="on";
$totalamountdiscount=0;
$amountdiscount=0;
if($specialpromotion=="on"){
for ($iz = 0; $iz < $numofnights; $iz++) {
$dt_checkinz = mktime(0,0,0,substr($checkin,5,2),substr($checkin,8,2)+$iz,substr($checkin,0,4));
$dt_checkinz = date("Y-m-d", $dt_checkinz);
$dateone="2013-10-01";
$datetwo="2013-10-31";
$querycc = "SELECT f_normal,f_peak,f_superpeak,f_balance,f_low,f_weekend FROM roomallot WHERE f_date = '$dt_checkinz' and f_roomid = '$id' ";
$resultcc = mysql_query($querycc);
$rowcc = mysql_fetch_array($resultcc);
$num_rowscc = mysql_num_rows($resultcc);
$normalcc = $rowcc['f_normal'];
$peakcc = $rowcc['f_peak'];
$superpeakcc = $rowcc['f_superpeak'];
$weekendcc = $rowcc['f_weekend'];
$lowseasoncc = $rowcc['f_low'];
$queryxx = "SELECT f_ratetouse FROM ratecalendar WHERE f_startdt = '$dt_checkinz' ";
$resultxx = mysql_query($queryxx);
$rowxx = mysql_fetch_array($resultxx);
$num_rowsxx = mysql_num_rows($resultxx);
$f_ratetousexx= $rowxx['f_ratetouse'];
if ($f_ratetousexx=="NM" || $f_ratetousexx=="") $amountxx=$normalcc;
if ($f_ratetousexx=="PE") $amountxx=$peakcc;
if ($f_ratetousexx=="SP") $amountxx=$superpeakcc;
if ($f_ratetousexx=="WK") $amountxx=$weekendcc;
if ($f_ratetousexx=="LW") $amountxx=$lowseasoncc;
if ($dt_checkinz>=$dateone && $dt_checkinz<=$datetwo){
$watday2 = date("N", strtotime($dt_checkinz));
if($watday2=="1" || $watday2=="2" || $watday2=="3" || $watday2=="4" || $watday2=="7"){
$amountdiscount=($amountxx*0.15)*$quantity;
//echo "$amountdiscount- $amountxx - $watday2 ";
}
if($watday2=="5" || $watday2=="6" ){
$amountdiscount=($amountxx*0.1)*$quantity;
//echo "$amountdiscount- $amountxx - $watday2 ";
}
$totalamountdiscount=$totalamountdiscount+$amountdiscount;
//echo "$totalamountdiscount ";
}
}
$amount2=$totalamountdiscount;
echo "Promotional Discount is $totalamountdiscount";
$promotion = "Special Promotion";
$discount=$totalamountdiscount;
}
?> |
(RM) |
: |
|
|
|
0){
?>
|
|
';
echo " | ";
echo "$fulldescr | ";
echo "".$misc->listnumber('columncombobox2',"cboQty_$cnt","cboQty_$cnt","getAddOns(this)",1,0,30,'disabled')." | ";
echo "".$misc->listnumber('columncombobox2',"cboNight_$cnt","cboNight_$cnt","getAddOns(this)",1,0,30,'disabled')." | ";
echo '';
echo ' | ';
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
$cnt ++;
}
?>
|
|
//close it for normal none addon discount?>
" />
if ($pkgcode!=''){
$bookingtype=$pkg_codeor;
}
else if ($pkgcode==''){
$bookingtype="NORMAL";
}
?>
|
: |
if($ratetouselist_trim=="SP"){
$countvisit=rand(6, 10);
}
else if($ratetouselist_trim=="PE"){
$countvisit=rand(3, 6);
}
else if ($ratetouselist_trim=="NM") {
$countvisit=rand(1, 4);
}
else if ($ratetouselist_trim=="LW") {
$countvisit=rand(1, 2);
}
else if ($ratetouselist_trim=="WK") {
$countvisit=rand(3, 6);
}
?>
Currently echo $countvisit ?> users viewing this room |
|
|
|
$query = "SELECT * FROM roomtype WHERE f_id = '$id' ";
$result = mysql_query($query);
$num_rows = mysql_num_rows($result);
if ($num_rows>0){
while($row = mysql_fetch_array($result))
{
$publish = $row['f_publish'];
$descr = $row['f_descr'];
}
}
$query = "SELECT * FROM roomphoto WHERE f_id = '$id' and f_photoid = 1 ";
$result = mysql_query($query);
$num_rows = mysql_num_rows($result);
if ($num_rows>0){
while($row = mysql_fetch_array($result))
{
$ftype = $row['f_ftype'];
$photoname = $id.'_1.'.$ftype;
//$photoname_s = $id.'_1_s.'.$ftype;
}
} ?>
if($pkgcode !=''){
echo "";
}
else {
?>
} ?>
|
|
Currency Referrence |
|
Currency |
: |
listcurrency('columncombobox','cboCurrencyType','cboCurrencyType',"displaycurrency()"); ?> |
|
|
: |
|
|
|
|
|
|