|
|
|
|
@ -1135,64 +1135,67 @@ class Information extends CI_Controller
|
|
|
|
|
// 132003 西安目的地
|
|
|
|
|
// 132004 桂林目的地
|
|
|
|
|
// 132005 成都目的地
|
|
|
|
|
$PAG_SourceType = $dataTrippest['PagDetail']->PAG_SourceType;
|
|
|
|
|
switch ($PAG_SourceType) {
|
|
|
|
|
case '132001':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "beijing";
|
|
|
|
|
break;
|
|
|
|
|
case '132002':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "shanghai";
|
|
|
|
|
break;
|
|
|
|
|
case '132003':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "xian";
|
|
|
|
|
break;
|
|
|
|
|
case '132004':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "guilin";
|
|
|
|
|
break;
|
|
|
|
|
case '132005':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "chengdu";
|
|
|
|
|
break;
|
|
|
|
|
case '132006':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "zhangjiajie";
|
|
|
|
|
break;
|
|
|
|
|
case '132007':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "huangshan";
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//每周发团
|
|
|
|
|
$PAG_Scheme = $dataTrippest['PagDetail']->PAG_Scheme;
|
|
|
|
|
$dataTrippest['PAG_Scheme'] = $PAG_Scheme;
|
|
|
|
|
//接送
|
|
|
|
|
if ($dataTrippest["t_Type"] == "transfer" || 1 == 1) {
|
|
|
|
|
$PagList = $this->trippest_model->GetTransfer($dataTrippest['PagDetail']->PAG_SN);
|
|
|
|
|
$dataTrippest["PagList"] = $PagList;
|
|
|
|
|
}
|
|
|
|
|
if (isset($dataTrippest['PagDetail']) && $dataTrippest['PagDetail']!=null ) {
|
|
|
|
|
$PAG_SourceType = $dataTrippest['PagDetail']->PAG_SourceType;
|
|
|
|
|
switch ($PAG_SourceType) {
|
|
|
|
|
case '132001':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "beijing";
|
|
|
|
|
break;
|
|
|
|
|
case '132002':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "shanghai";
|
|
|
|
|
break;
|
|
|
|
|
case '132003':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "xian";
|
|
|
|
|
break;
|
|
|
|
|
case '132004':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "guilin";
|
|
|
|
|
break;
|
|
|
|
|
case '132005':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "chengdu";
|
|
|
|
|
break;
|
|
|
|
|
case '132006':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "zhangjiajie";
|
|
|
|
|
break;
|
|
|
|
|
case '132007':
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "huangshan";
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
$dataTrippest['PAG_SourceType'] = "";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//每周发团
|
|
|
|
|
$PAG_Scheme = $dataTrippest['PagDetail']->PAG_Scheme;
|
|
|
|
|
$dataTrippest['PAG_Scheme'] = $PAG_Scheme;
|
|
|
|
|
//接送
|
|
|
|
|
if ($dataTrippest["t_Type"] == "transfer" || 1 == 1) {
|
|
|
|
|
$PagList = $this->trippest_model->GetTransfer($dataTrippest['PagDetail']->PAG_SN);
|
|
|
|
|
$dataTrippest["PagList"] = $PagList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//价格
|
|
|
|
|
// $price = $this->trippest_model->get_price("BJALC-1",2);
|
|
|
|
|
$price = $this->trippest_model->get_price($dataTrippest['PagDetail']->PAG_Code, 2);
|
|
|
|
|
$showPrice = "";
|
|
|
|
|
if (!empty ($price)) {
|
|
|
|
|
$PKP_AdultNetPrice = $price->PKP_AdultNetPrice;
|
|
|
|
|
$PKP_AdultSpecialPrice = $price->PKP_AdultSpecialPrice;
|
|
|
|
|
if ($PKP_AdultSpecialPrice > 0) {
|
|
|
|
|
$showPrice = $PKP_AdultSpecialPrice;
|
|
|
|
|
} else {
|
|
|
|
|
$showPrice = $PKP_AdultNetPrice;
|
|
|
|
|
//价格
|
|
|
|
|
// $price = $this->trippest_model->get_price("BJALC-1",2);
|
|
|
|
|
$price = $this->trippest_model->get_price($dataTrippest['PagDetail']->PAG_Code, 2);
|
|
|
|
|
$showPrice = "";
|
|
|
|
|
if (!empty ($price)) {
|
|
|
|
|
$PKP_AdultNetPrice = $price->PKP_AdultNetPrice;
|
|
|
|
|
$PKP_AdultSpecialPrice = $price->PKP_AdultSpecialPrice;
|
|
|
|
|
if ($PKP_AdultSpecialPrice > 0) {
|
|
|
|
|
$showPrice = $PKP_AdultSpecialPrice;
|
|
|
|
|
} else {
|
|
|
|
|
$showPrice = $PKP_AdultNetPrice;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$dataTrippest["showPrice"] = $showPrice;
|
|
|
|
|
$dataTrippest["showPrice"] = $showPrice;
|
|
|
|
|
|
|
|
|
|
//替换内容
|
|
|
|
|
$trippest_detail_template = $this->load->view($template_path . '-daytours-detail', $dataTrippest, true);
|
|
|
|
|
//替换内容
|
|
|
|
|
$trippest_detail_template = $this->load->view($template_path . '-daytours-detail', $dataTrippest, true);
|
|
|
|
|
|
|
|
|
|
// print_r($trippest_detail_template);
|
|
|
|
|
// die();
|
|
|
|
|
$information->ic_content = str_replace('<!--@TRIPPEST-FORM@-->', $trippest_detail_template, $information->ic_content);
|
|
|
|
|
// print_r($trippest_detail_template);
|
|
|
|
|
// die();
|
|
|
|
|
$information->ic_content = str_replace('<!--@TRIPPEST-FORM@-->', $trippest_detail_template, $information->ic_content);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|