GH和CH网站实现线路价格代码

master
Jimmy Liow 2 years ago
parent 2f29332245
commit 16adc76d7b

@ -940,6 +940,17 @@ class Information extends CI_Controller
$information->ic_content = str_replace('<!--@BREADCRUMB-BLOCK@-->', $breadcrumb_content, $information->ic_content);
}
// CH: 1; AH: 28; GH : 33
$price_tag_list = $this->parse_price_tag($information->ic_content, 1);
foreach ($price_tag_list as $price_tag) {
$information->ic_content = str_replace(
$price_tag['placeholder'],
$price_tag['price_number'],
$information->ic_content
);
}
//---day tours--- 20210922 zp
//本地 278035929
//网前 278008224
@ -1332,10 +1343,12 @@ class Information extends CI_Controller
}
}
// <div>#ah-mtc-3,st,2#</div>
// CH: 1; AH: 28; GH : 33
public function test_price()
{
$price_rule = base64_decode($this->input->get('price_rule')); //'<div">#ah-mtc-3,st,2#</div>';
$dept_sn = $this->input->get('dept_sn'); //'<div">#ah-mtc-3,st,2#</div>';
$price_rule = base64_decode($this->input->get('price_rule'));
$dept_sn = $this->input->get('dept_sn');
$price_item_array = $this->price_pregmatch($price_rule);
echo 'price_item_array: ';
var_dump($price_item_array);
@ -1713,6 +1726,17 @@ class Information extends CI_Controller
);
$information->ic_content = str_replace('<!--@TOUR-FORM-TAG@-->', $tour_form_content, $information->ic_content);
}
// CH: 1; AH: 28; GH : 33
$price_tag_list = $this->parse_price_tag($information->ic_content, 33);
foreach ($price_tag_list as $price_tag) {
$information->ic_content = str_replace(
$price_tag['placeholder'],
$price_tag['price_number'],
$information->ic_content
);
}
// 动态加载反馈标签,每个城市三十条反馈。
// HTLM: <div><!--@FEEDBACK-30_Bangkok@--></div>

@ -8,7 +8,7 @@ class PrimeLinePrice_model extends CI_Model {
var $cli_grade = 7001; //(标准7001、豪华7002、经济7003
var $price_date = false; //查询价格日期区间
var $orderby = false;
// AH: 28
// CH: 1; AH: 28; GH : 33
var $DEI_SN = 28;
function __construct() {

Loading…
Cancel
Save