Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($objs_Location->CancellationBeforeDays == $objs_Location->CancellationBeforeDays2)
- {
- // handle only one
- if (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage > 0))
- {
- echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays );
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {0} days before arrival, there will be a fee of {1} {2} plus {3}% of the total amount."), $objs_Location->CancellationBeforeDays, $objs_Location->CancellationFee, $objs_Location->Currency_Name, ($objs_Location->CancellationPercentage*100) );
- }
- elseif (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage <= 0))
- {
- echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays );
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {0} days before arrival, there will be a fee of {1} {2}."), $objs_Location->CancellationBeforeDays, $objs_Location->CancellationFee, $objs_Location->Currency_Name, ($objs_Location->CancellationPercentage*100) );
- }
- elseif (($objs_Location->CancellationFee <= 0) AND ($objs_Location->CancellationPercentage > 0))
- {
- echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays );
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {0} days before arrival, there will be a fee of {1}% of the total amount."), $objs_Location->CancellationBeforeDays, ($objs_Location->CancellationPercentage*100) );
- }
- else
- {
- echo $this->general->format(__("Cancellation is free of charge."));
- }
- }
- else
- {
- // period 2
- if (($objs_Location->CancellationFee2 > 0) AND ($objs_Location->CancellationPercentage2 > 0))
- {
- echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays2 );
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {4} to {0} days before arrival, there will be a fee of {1} {2} plus {3}% of the total amount."), $objs_Location->CancellationBeforeDays2, $objs_Location->CancellationFee2, $objs_Location->Currency_Name, ($objs_Location->CancellationPercentage2*100), $objs_Location->CancellationBeforeDays );
- }
- elseif (($objs_Location->CancellationFee2 > 0) AND ($objs_Location->CancellationPercentage2 <= 0))
- {
- echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays2 );
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {3} to {0} days before arrival, there will be a fee of {1} {2}."), $objs_Location->CancellationBeforeDays2, $objs_Location->CancellationFee2, $objs_Location->Currency_Name, $objs_Location->CancellationBeforeDays );
- }
- elseif (($objs_Location->CancellationFee2 <= 0) AND ($objs_Location->CancellationPercentage2 > 0))
- {
- echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays2 );
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {2} to {0} days before arrival, there will be a fee of {1}% of the total amount."), $objs_Location->CancellationBeforeDays2, ($objs_Location->CancellationPercentage2*100), $objs_Location->CancellationBeforeDays );
- }
- else
- {
- echo $this->general->format(__("Cancellation is free of charge."));
- }
- // period 1
- if (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage > 0))
- {
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {0} days before arrival, there will be a fee of {1} {2} plus {3}% of the total amount."), $objs_Location->CancellationBeforeDays, $objs_Location->CancellationFee, $objs_Location->Currency_Name, ($objs_Location->CancellationPercentage*100) );
- }
- elseif (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage <= 0))
- {
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {0} days before arrival, there will be a fee of {1} {2}."), $objs_Location->CancellationBeforeDays, $objs_Location->CancellationFee, $objs_Location->Currency_Name, ($objs_Location->CancellationPercentage*100) );
- }
- elseif (($objs_Location->CancellationFee <= 0) AND ($objs_Location->CancellationPercentage > 0))
- {
- echo "<br/>";
- echo $this->general->format(__("If cancelled within {0} days before arrival, there will be a fee of {1}% of the total amount."), $objs_Location->CancellationBeforeDays, ($objs_Location->CancellationPercentage*100) );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement