From c234fae449d173e4f3294fe7dffb220e6535e48b Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Thu, 12 May 2022 14:24:30 +0800 Subject: [PATCH 1/2] f --- application/views/bootstrap/welcome.php | 122 +++++++++++++----------- 1 file changed, 64 insertions(+), 58 deletions(-) diff --git a/application/views/bootstrap/welcome.php b/application/views/bootstrap/welcome.php index 61fe770d..bd69b2c6 100644 --- a/application/views/bootstrap/welcome.php +++ b/application/views/bootstrap/welcome.php @@ -1,9 +1,9 @@
-
+
@@ -65,35 +66,35 @@ $item) { - ?> + ?> - ic_url_title; ?> + ic_url_title; ?> ic_author); ?> ic_datetime)); ?> - + 国家: 直辖市和特区 - +
  • CII2_Name ?>
  • 省份 - -
  • PRI2_Name ?>
  • + +
  • PRI2_Name ?>
  • @@ -119,8 +120,8 @@ + $i += 1; + ?> username ?> @@ -131,10 +132,12 @@ addtime)) ?> invalid_date)) ?> - + - - + + @@ -151,31 +154,34 @@ $item) { - $is_ids.=$item->is_id.','; - ?> - + $is_ids .= $item->is_id . ','; + ?> + - ic_url_title)) $item->ic_url_title = '编辑信息'; - echo $item->ic_url_title; ?> + ic_url_title)) $item->ic_url_title = '编辑信息'; + echo $item->ic_url_title; ?> ic_author); ?> ic_datetime)); ?> - + - -

    批量更新搜索页面

    - - + +

    批量更新搜索页面

    + + - + 省份城市列表 - + @@ -184,7 +190,7 @@ - + - + -
    PRI2_Name ?>PRI2_Name ?>
    字母
    @@ -192,18 +198,18 @@ CII_Code, 0, 1) == chr($i)) { - ?> - CII2_Name; ?> , - + CII2_Name; ?> , +
    + -
    - -
    - - 最新编辑城市 -
    - -
    - -
    +
    + +
    + + 最新编辑城市 +
    + +
    + +
    \ No newline at end of file From ec93af2bf590da9f0d738165041e97b8f76f1bb7 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Thu, 12 May 2022 14:29:58 +0800 Subject: [PATCH 2/2] f --- application/controllers/overseas.php | 58 +++++++++++++++++++++++++ application/views/bootstrap/welcome.php | 2 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 application/controllers/overseas.php diff --git a/application/controllers/overseas.php b/application/controllers/overseas.php new file mode 100644 index 00000000..f02df736 --- /dev/null +++ b/application/controllers/overseas.php @@ -0,0 +1,58 @@ +permission->is_admin(); + //$this->output->enable_profiler(TRUE); + $this->load->model('Area_model'); + $this->load->model('Information_model'); + $this->load->model('InfoContents_model'); + $this->load->model('InfoStructures_model'); + } + + //团购信息 + public function index() + { + $overseas_id = 1; + //查询结构根节点,当为空则建立 + $rootStructure = $this->Information_model->GetRoot('g', $overseas_id); + if ($rootStructure == FALSE) { + $this->InfoContents_model->Add( + '', + 'Overseas', + 'root', + '', + '', + '', + '', + '', + '', + 0, + 0, + '', + '', + 0, + 0, + '', + '', + $overseas_id, + 'g', + 0, + '', + '' + ); + $this->InfoStructures_model->Add(0, $this->InfoContents_model->insert_id); + $is_id = $this->InfoStructures_model->insert_id; + } else { + $is_id = $rootStructure->is_id; + } + redirect(site_url('information/edit/' . $is_id)); + } +} diff --git a/application/views/bootstrap/welcome.php b/application/views/bootstrap/welcome.php index bd69b2c6..7c1634f6 100644 --- a/application/views/bootstrap/welcome.php +++ b/application/views/bootstrap/welcome.php @@ -21,7 +21,7 @@
  • 火车站信息
  • 团购信息
  • FAQ
  • -
  • 海外目的地
  • +
  • 海外目的地
  • config->item('site_code') != 'cht') { ?>
  • 静态化更新链接