|
|
|
@ -71,14 +71,33 @@ class InfoContents_model extends CI_Model
|
|
|
|
|
$query = $this->HT->query(
|
|
|
|
|
$sql,
|
|
|
|
|
array(
|
|
|
|
|
$ic_url, $ic_url_title, $ic_type, $ic_title, str_replace(
|
|
|
|
|
$ic_url,
|
|
|
|
|
$ic_url_title,
|
|
|
|
|
$ic_type,
|
|
|
|
|
$ic_title,
|
|
|
|
|
str_replace(
|
|
|
|
|
$this->config->item('media_image_url'),
|
|
|
|
|
$this->config->item('site_image_url'),
|
|
|
|
|
$ic_content
|
|
|
|
|
),
|
|
|
|
|
$ic_summary, $ic_seo_title, $ic_seo_description, $ic_seo_keywords, $ic_show_bread_crumbs, $ic_status,
|
|
|
|
|
$ic_template, $ic_photo, $ic_photo_width, $ic_photo_height, $this->config->item('site_code'), $ic_recommend_tours, $ic_recommend_packages,
|
|
|
|
|
$ic_ht_area_id, $ic_ht_area_type, $ic_ht_product_id, $ic_ht_product_type, $ic_author
|
|
|
|
|
$ic_summary,
|
|
|
|
|
$ic_seo_title,
|
|
|
|
|
$ic_seo_description,
|
|
|
|
|
$ic_seo_keywords,
|
|
|
|
|
$ic_show_bread_crumbs,
|
|
|
|
|
$ic_status,
|
|
|
|
|
$ic_template,
|
|
|
|
|
$ic_photo,
|
|
|
|
|
$ic_photo_width,
|
|
|
|
|
$ic_photo_height,
|
|
|
|
|
$this->config->item('site_code'),
|
|
|
|
|
$ic_recommend_tours,
|
|
|
|
|
$ic_recommend_packages,
|
|
|
|
|
$ic_ht_area_id,
|
|
|
|
|
$ic_ht_area_type,
|
|
|
|
|
$ic_ht_product_id,
|
|
|
|
|
$ic_ht_product_type,
|
|
|
|
|
$ic_author
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
$this->insert_id = $this->HT->last_id('infoContents');
|
|
|
|
@ -135,14 +154,33 @@ class InfoContents_model extends CI_Model
|
|
|
|
|
$query = $this->HT->query(
|
|
|
|
|
$sql,
|
|
|
|
|
array(
|
|
|
|
|
$ic_url, $ic_url_title, $ic_type, $ic_title, str_replace(
|
|
|
|
|
$ic_url,
|
|
|
|
|
$ic_url_title,
|
|
|
|
|
$ic_type,
|
|
|
|
|
$ic_title,
|
|
|
|
|
str_replace(
|
|
|
|
|
$this->config->item('media_image_url'),
|
|
|
|
|
$this->config->item('site_image_url'),
|
|
|
|
|
$ic_content
|
|
|
|
|
),
|
|
|
|
|
$ic_summary, $ic_seo_title, $ic_seo_description, $ic_seo_keywords, $ic_show_bread_crumbs, $ic_status,
|
|
|
|
|
$ic_template, $ic_photo, $ic_photo_width, $ic_photo_height, $site_code, $ic_recommend_tours, $ic_recommend_packages,
|
|
|
|
|
$ic_ht_area_id, $ic_ht_area_type, $ic_ht_product_id, $ic_ht_product_type, $ic_author
|
|
|
|
|
$ic_summary,
|
|
|
|
|
$ic_seo_title,
|
|
|
|
|
$ic_seo_description,
|
|
|
|
|
$ic_seo_keywords,
|
|
|
|
|
$ic_show_bread_crumbs,
|
|
|
|
|
$ic_status,
|
|
|
|
|
$ic_template,
|
|
|
|
|
$ic_photo,
|
|
|
|
|
$ic_photo_width,
|
|
|
|
|
$ic_photo_height,
|
|
|
|
|
$site_code,
|
|
|
|
|
$ic_recommend_tours,
|
|
|
|
|
$ic_recommend_packages,
|
|
|
|
|
$ic_ht_area_id,
|
|
|
|
|
$ic_ht_area_type,
|
|
|
|
|
$ic_ht_product_id,
|
|
|
|
|
$ic_ht_product_type,
|
|
|
|
|
$ic_author
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
$this->insert_id = $this->HT->last_id('infoContents');
|
|
|
|
@ -214,10 +252,30 @@ class InfoContents_model extends CI_Model
|
|
|
|
|
$query = $this->HT->query(
|
|
|
|
|
$sql,
|
|
|
|
|
array(
|
|
|
|
|
$ic_url, $ic_url_title, $ic_type, $ic_title, $ic_content, $ic_summary,
|
|
|
|
|
$ic_seo_title, $ic_seo_description, $ic_seo_keywords, $ic_show_bread_crumbs, $ic_status, $ic_template, $ic_photo, $ic_photo_width, $ic_photo_height,
|
|
|
|
|
$ic_recommend_tours, $ic_recommend_packages, $ic_ht_area_id,
|
|
|
|
|
$ic_ht_area_type, $ic_ht_product_id, $ic_ht_product_type, $ic_author, $ic_id, $this->config->item('site_code')
|
|
|
|
|
$ic_url,
|
|
|
|
|
$ic_url_title,
|
|
|
|
|
$ic_type,
|
|
|
|
|
$ic_title,
|
|
|
|
|
$ic_content,
|
|
|
|
|
$ic_summary,
|
|
|
|
|
$ic_seo_title,
|
|
|
|
|
$ic_seo_description,
|
|
|
|
|
$ic_seo_keywords,
|
|
|
|
|
$ic_show_bread_crumbs,
|
|
|
|
|
$ic_status,
|
|
|
|
|
$ic_template,
|
|
|
|
|
$ic_photo,
|
|
|
|
|
$ic_photo_width,
|
|
|
|
|
$ic_photo_height,
|
|
|
|
|
$ic_recommend_tours,
|
|
|
|
|
$ic_recommend_packages,
|
|
|
|
|
$ic_ht_area_id,
|
|
|
|
|
$ic_ht_area_type,
|
|
|
|
|
$ic_ht_product_id,
|
|
|
|
|
$ic_ht_product_type,
|
|
|
|
|
$ic_author,
|
|
|
|
|
$ic_id,
|
|
|
|
|
$this->config->item('site_code')
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
return $query;
|
|
|
|
@ -278,6 +336,18 @@ class InfoContents_model extends CI_Model
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function get_ic_contents2_gm($ic_id)
|
|
|
|
|
{
|
|
|
|
|
$sql = "SELECT top 1 * from information_gm.dbo.infoContents where ic_id=?";
|
|
|
|
|
$query = $this->HT->query($sql, array($ic_id));
|
|
|
|
|
if ($query->result()) {
|
|
|
|
|
$row = $query->row();
|
|
|
|
|
return $row;
|
|
|
|
|
} else {
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function get_ic_contents_by_list($ic_id_list)
|
|
|
|
|
{
|
|
|
|
|
$ic_id_list = trim($ic_id_list);
|
|
|
|
|