Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. if ($objs_Location->CancellationBeforeDays == $objs_Location->CancellationBeforeDays2)
  2. {
  3. // handle only one
  4. if (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage > 0))
  5. {
  6. echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays );
  7. echo "<br/>";
  8. 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) );
  9.  
  10. }
  11. elseif (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage <= 0))
  12. {
  13. echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays );
  14. echo "<br/>";
  15. 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) );
  16. }
  17. elseif (($objs_Location->CancellationFee <= 0) AND ($objs_Location->CancellationPercentage > 0))
  18. {
  19. echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays );
  20. echo "<br/>";
  21. 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) );
  22. }
  23. else
  24. {
  25. echo $this->general->format(__("Cancellation is free of charge."));
  26. }
  27. }
  28. else
  29. {
  30. // period 2
  31. if (($objs_Location->CancellationFee2 > 0) AND ($objs_Location->CancellationPercentage2 > 0))
  32. {
  33. echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays2 );
  34. echo "<br/>";
  35. 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 );
  36.  
  37. }
  38. elseif (($objs_Location->CancellationFee2 > 0) AND ($objs_Location->CancellationPercentage2 <= 0))
  39. {
  40. echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays2 );
  41. echo "<br/>";
  42. 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 );
  43. }
  44. elseif (($objs_Location->CancellationFee2 <= 0) AND ($objs_Location->CancellationPercentage2 > 0))
  45. {
  46. echo $this->general->format(__("If cancelled up to {0} day before the date of arrival, no fee will be charged."), $objs_Location->CancellationBeforeDays2 );
  47. echo "<br/>";
  48. 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 );
  49. }
  50. else
  51. {
  52. echo $this->general->format(__("Cancellation is free of charge."));
  53. }
  54.  
  55. // period 1
  56. if (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage > 0))
  57. {
  58. echo "<br/>";
  59. 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) );
  60.  
  61. }
  62. elseif (($objs_Location->CancellationFee > 0) AND ($objs_Location->CancellationPercentage <= 0))
  63. {
  64. echo "<br/>";
  65. 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) );
  66. }
  67. elseif (($objs_Location->CancellationFee <= 0) AND ($objs_Location->CancellationPercentage > 0))
  68. {
  69. echo "<br/>";
  70. 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) );
  71. }
  72.  
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement