|
|
@ -250,8 +250,18 @@ class Api extends CI_Controller {
|
|
|
|
if (isset($_GET["param"])){
|
|
|
|
if (isset($_GET["param"])){
|
|
|
|
$param = str_replace("'","''",$_GET["param"]);
|
|
|
|
$param = str_replace("'","''",$_GET["param"]);
|
|
|
|
$list = $this->api_model->getDaytripPriceList($param);
|
|
|
|
$list = $this->api_model->getDaytripPriceList($param);
|
|
|
|
|
|
|
|
if (!empty($list)){
|
|
|
|
if (count($list)==1){
|
|
|
|
if (count($list)==1){
|
|
|
|
echo "1";
|
|
|
|
//echo "1";
|
|
|
|
|
|
|
|
foreach ($list as $row) {
|
|
|
|
|
|
|
|
$PKP_AdultPrice = $row->PKP_AdultPrice;
|
|
|
|
|
|
|
|
$PKP_AdultSpecialPrice = $row->PKP_AdultSpecialPrice;
|
|
|
|
|
|
|
|
if ($PKP_AdultPrice!=$PKP_AdultSpecialPrice && $PKP_AdultSpecialPrice>0){
|
|
|
|
|
|
|
|
$PKP_AdultPrice=$PKP_AdultSpecialPrice;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$PKP_AdultPrice = $this->currency->convert_moneny_by_char($PKP_AdultPrice,"USD");
|
|
|
|
|
|
|
|
echo '<table border="0" align="center" cellpadding="10" cellspacing="1" class="pricetable"><tr><th>>1 Person</th></tr><tr><td><strong class="orange"> $'.$PKP_AdultPrice.'</strong></td></tr></table>';
|
|
|
|
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
//echo "2";
|
|
|
|
//echo "2";
|
|
|
|
$str_th="";
|
|
|
|
$str_th="";
|
|
|
@ -281,6 +291,8 @@ class Api extends CI_Controller {
|
|
|
|
|
|
|
|
|
|
|
|
echo '<table border="0" align="center" cellpadding="10" cellspacing="1" class="pricetable"><tr>'.$str_th.'</tr><tr>'.$str_td.'</tr></table>';
|
|
|
|
echo '<table border="0" align="center" cellpadding="10" cellspacing="1" class="pricetable"><tr>'.$str_th.'</tr><tr>'.$str_td.'</tr></table>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
echo "";
|
|
|
|
echo "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|