Merge branch 'master' of github.com:hainatravel/information-system

hotfix/paypal-note
尹诚诚 3 years ago
commit 444038da55

@ -0,0 +1,58 @@
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Overseas extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->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));
}
}

@ -21,6 +21,7 @@
<li><a href="<?php echo site_url('railway') ?>">火车站信息</a></li>
<li><a href="<?php echo site_url('groupon') ?>">团购信息</a></li>
<li><a href="<?php echo site_url('faq') ?>">FAQ</a></li>
<li><a href="<?php echo site_url('overseas') ?>">海外目的地</a></li>
<?php if ($this->config->item('site_code') != 'cht') { ?>
<li><a href="<?php echo site_url('cache/update'); ?>" target="_blank">静态化更新链接</a></li>
<?php } else { ?>
@ -131,10 +132,12 @@
<td><?php echo date("Y-m-d H:i:s", strtotime($rsc->addtime)) ?></td>
<td><?php echo date("Y-m-d H:i:s", strtotime($rsc->invalid_date)) ?></td>
</tr>
<?php }//end of foreach ?>
<?php } //end of foreach
?>
</tbody>
</table>
<?php } //end of $coupon?>
<?php } //end of $coupon
?>
@ -155,7 +158,9 @@
foreach ($search_list as $key => $item) {
$is_ids .= $item->is_id . ',';
?>
<tr class="<?php if(!empty($item->ic_content) && $item->ic_status==1 ){ echo 'info';} ?>">
<tr class="<?php if (!empty($item->ic_content) && $item->ic_status == 1) {
echo 'info';
} ?>">
<td><?php echo $key + 1; ?></td>
<td><a href="<?php echo site_url('information/edit/' . $item->is_id); ?>"><?php if (empty($item->ic_url_title)) $item->ic_url_title = '编辑信息';
echo $item->ic_url_title; ?></a></td>
@ -165,7 +170,8 @@
<?php } ?>
</tbody>
</table>
<?php if(!empty($is_ids)){ $is_ids.='0';?>
<?php if (!empty($is_ids)) {
$is_ids .= '0'; ?>
<p> <a href="<?php echo site_url('welcome/create_infomation_urls_by_ids/?key=' . $is_ids); ?>" target="_blank" class="btn pull-right">批量更新搜索页面</a> </p>
<?php } ?>
<?php } ?>

Loading…
Cancel
Save