|
|
|
@ -359,4 +359,54 @@ class Information_model extends CI_Model {
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//ct
|
|
|
|
|
function ct_get_by_url($ic_url,$webcode)
|
|
|
|
|
{
|
|
|
|
|
$this->ic_url_is_id=" AND ic.ic_url = N".$this->HT->escape($ic_url);
|
|
|
|
|
$sql = "SELECT is1.is_id, \n"
|
|
|
|
|
. " is1.is_parent_id, \n"
|
|
|
|
|
. " is1.is_path, \n"
|
|
|
|
|
. " is1.is_level, \n"
|
|
|
|
|
. " is1.is_sort, \n"
|
|
|
|
|
. " is1.is_sitecode, \n"
|
|
|
|
|
. " is1.is_datetime, \n"
|
|
|
|
|
. " is1.is_ic_id, \n"
|
|
|
|
|
. " ic.ic_id, \n"
|
|
|
|
|
. " ic.ic_url, \n"
|
|
|
|
|
. " ic.ic_url_title, \n"
|
|
|
|
|
. " ic.ic_type, \n"
|
|
|
|
|
. " ic.ic_title, \n"
|
|
|
|
|
. " ic.ic_content, \n"
|
|
|
|
|
. " ic.ic_summary, \n"
|
|
|
|
|
. " ic.ic_seo_title, \n"
|
|
|
|
|
. " ic.ic_seo_description, \n"
|
|
|
|
|
. " ic.ic_seo_keywords, \n"
|
|
|
|
|
. " ic.ic_show_bread_crumbs, \n"
|
|
|
|
|
. " ic.ic_status, \n"
|
|
|
|
|
. " ic.ic_template, \n"
|
|
|
|
|
. " ic.ic_photo, \n"
|
|
|
|
|
. " ic.ic_photo_width, \n"
|
|
|
|
|
. " ic.ic_photo_height, \n"
|
|
|
|
|
. " ic.ic_sitecode, \n"
|
|
|
|
|
. " ic.ic_recommend_tours, \n"
|
|
|
|
|
. " ic.ic_recommend_packages, \n"
|
|
|
|
|
. " ic.ic_datetime, \n"
|
|
|
|
|
. " ic.ic_ht_area_id, \n"
|
|
|
|
|
. " ic.ic_ht_area_type, \n"
|
|
|
|
|
. " ic.ic_ht_product_id, \n"
|
|
|
|
|
. " ic.ic_ht_product_type, \n"
|
|
|
|
|
. " ic.ic_author \n"
|
|
|
|
|
. " FROM infoStructures is1 \n"
|
|
|
|
|
. " INNER JOIN infoContents ic ON ic.ic_id = is1.is_ic_id \n"
|
|
|
|
|
. " AND ic.ic_sitecode = is1.is_sitecode \n"
|
|
|
|
|
. " WHERE ic.ic_type <> 'none' and is1.is_sitecode = ? ";
|
|
|
|
|
$sql .= $this->ic_url_is_id;
|
|
|
|
|
$query = $this->HT->query($sql, $webcode);
|
|
|
|
|
// print_r($this->HT->queries);
|
|
|
|
|
|
|
|
|
|
return $query->row();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|