|
|
|
<?php // 代码各服务器已经同步 2016.06.01 ycc
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>信息平台</title>
|
|
|
|
<link rel="stylesheet" href="/css/information-system3.css?v=202303071348" type="text/css" />
|
|
|
|
<script type="text/javascript" src="/min/?f=/js/information-system3.min.js,/js/common.js&v=20190128"></script>
|
|
|
|
<script type="text/javascript" src="/wysiwyg/ckfinder/ckfinder.js"></script>
|
|
|
|
<link rel="shortcut icon" href="/bootstrap/img/glyphicons_290_skull.png">
|
|
|
|
|
|
|
|
<script language="javascript">
|
|
|
|
//资源文件上传管理
|
|
|
|
function openKCFinder_singleFile_res() {
|
|
|
|
|
|
|
|
CKFinder.modal({
|
|
|
|
chooseFiles: true,
|
|
|
|
pass: 'sitecode',
|
|
|
|
sitecode: '<?php echo $this->config->item('site_code'); ?>',
|
|
|
|
width: 1024,
|
|
|
|
height: 800,
|
|
|
|
onInit: function (finder) {
|
|
|
|
finder.on('files:choose', function (evt) {
|
|
|
|
var file = evt.data.files.first();
|
|
|
|
alert(file.getUrl());
|
|
|
|
});
|
|
|
|
|
|
|
|
finder.on('file:choose:resizedImage', function (evt) {
|
|
|
|
alert(evt.data.resizedUrl);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// window.KCFinder = {};
|
|
|
|
// window.KCFinder.callBack = function (url) {
|
|
|
|
// <?php
|
|
|
|
// switch ($this->config->item('site_code')) {
|
|
|
|
// case 'ah':
|
|
|
|
// echo "alert(url.replace('/kcfinder/upload/ah/','https://data.asiahighlights.com/'));";
|
|
|
|
// break;
|
|
|
|
// case 'gm':
|
|
|
|
// echo "alert(url.replace('/kcfinder/upload/gm/','https://data.chinarundreisen.com/'));";
|
|
|
|
// break;
|
|
|
|
// default:
|
|
|
|
// echo 'alert(url);';
|
|
|
|
// }
|
|
|
|
// ?>
|
|
|
|
// window.KCFinder = null;
|
|
|
|
// };
|
|
|
|
// window.open('/kcfinder/browse.php?type=<?php echo $this->config->item('site_code'); ?>', 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//快速图片上传
|
|
|
|
function openKCFinder_fast() {
|
|
|
|
window.CallBack = oopenKCFinder_fast_callback;
|
|
|
|
window.open(
|
|
|
|
'/media/popselectpicture.php?site_code=<?php echo $this->config->item('site_code'); ?>&site_lgc=<?php echo $this->config->item('site_lgc'); ?>',
|
|
|
|
'kcfinder_textbox',
|
|
|
|
'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600');
|
|
|
|
}
|
|
|
|
|
|
|
|
function oopenKCFinder_fast_callback(result) {
|
|
|
|
var site_image_url = '<?php echo $this->config->item('site_image_url') ?>';
|
|
|
|
if (result != null && result.Pinfo[0]) {
|
|
|
|
$.modaldialog.success("图片地址:<br/>" + site_image_url + result.Pinfo[0].PUrl);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//标识所有信息未已读
|
|
|
|
function set_allmsg_to_read(ic_ids) {
|
|
|
|
var url = '<?php echo site_url("author/set_msg_to_read"); ?>';
|
|
|
|
$.post(url, {
|
|
|
|
'msg_ids': ic_ids
|
|
|
|
}, function (result) {
|
|
|
|
window.location.href = window.location.href;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//选择内容图片
|
|
|
|
function openKCFinder_Content() {
|
|
|
|
var site_url = '<?php echo $this->config->item('site_url') ?>';
|
|
|
|
var weburl = encodeURI(site_url + $("#ic_url").val());
|
|
|
|
window.CallBack = openKCFinder_Content_callback;
|
|
|
|
window.open(
|
|
|
|
'/media/popselectpicture.php?site_code=<?php echo $this->config->item('site_code'); ?>&site_lgc=<?php echo $this->config->item('site_lgc'); ?>&WebUrl=' +
|
|
|
|
weburl, 'kcfinder_textbox',
|
|
|
|
'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600');
|
|
|
|
}
|
|
|
|
|
|
|
|
function openKCFinder_Content_callback(result) {
|
|
|
|
var site_image_url = '<?php echo $this->config->item('media_image_url') ?>';
|
|
|
|
var use_pictures = $("#use_pictures").val();
|
|
|
|
if (result != null) {
|
|
|
|
for (var key in result.Pinfo) {
|
|
|
|
if ('<?php echo $this->config->item('site_code') ?>' == 'ah') {
|
|
|
|
editor.insertHtml('<div class="infoimage"> <img alt="' + result.Pinfo[key].Sinfo +
|
|
|
|
'" class="img-responsive" src="' + site_image_url + result.Pinfo[key].PUrl +
|
|
|
|
'" /> <span class="photoTxt">' + result.Pinfo[key].Sinfo + '</span></div>');
|
|
|
|
} else if ('<?php echo $this->config->item('site_code') ?>' == 'ch') {
|
|
|
|
editor.insertHtml('<div class="infoimage"><img src="' + site_image_url + result.Pinfo[key].PUrl + '" alt="' +
|
|
|
|
result.Pinfo[key].Sinfo + '" class="img-responsive" width="' + result.Pinfo[key].Width + '" height="' +
|
|
|
|
result.Pinfo[key].Height + '"><span class="infoimagetitle">' + result.Pinfo[key].Sinfo + '</span></div>');
|
|
|
|
} else if ('<?php echo $this->config->item('site_code') ?>' == 'gh') {
|
|
|
|
editor.insertHtml('<div class="infoimage"><img src="' + site_image_url + result.Pinfo[key].PUrl + '" alt="' +
|
|
|
|
result.Pinfo[key].Sinfo + '" class="img-responsive" width="' + result.Pinfo[key].Width + '" height="' +
|
|
|
|
result.Pinfo[key].Height + '"><span class="infoimagetitle">' + result.Pinfo[key].Sinfo + '</span></div>');
|
|
|
|
} else {
|
|
|
|
editor.insertHtml('<img src="' + site_image_url + result.Pinfo[key].PUrl + '" alt="' + result.Pinfo[key]
|
|
|
|
.PName + '" width="' + result.Pinfo[key].Width + '" height="' + result.Pinfo[key].Height + '" />');
|
|
|
|
}
|
|
|
|
use_pictures = use_pictures + result.Pinfo[key].ID + ':' + result.Pinfo[key].PUrl + ':' + result.Pinfo[key].wh +
|
|
|
|
',';
|
|
|
|
}
|
|
|
|
$("#use_pictures").val(use_pictures);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
var _hmt = _hmt || [];
|
|
|
|
(function () {
|
|
|
|
var hm = document.createElement("script");
|
|
|
|
hm.src = "https://hm.baidu.com/hm.js?57ab7a81de0914994d5f2cf7986124f8";
|
|
|
|
var s = document.getElementsByTagName("script")[0];
|
|
|
|
s.parentNode.insertBefore(hm, s);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<nav class="navbar navbar-inverse">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
|
|
|
|
data-target="#bs-example-navbar-collapse-9" aria-expanded="false">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-home text-white"></span></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-9">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li><a href="<?php echo site_url(''); ?>">信息管理</a></li>
|
|
|
|
<li><a href="<?php echo site_url('product') ?>">产品管理</a></li>
|
|
|
|
<li><a href="<?php echo site_url('author'); ?>">作者平台</a></li>
|
|
|
|
<li><a href="<?php echo site_url('keyworlds') ?>">关键词</a></li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
更多<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="<?php echo site_url('apps/pagespeed') ?>">页面性能分析</a></li>
|
|
|
|
<li><a href="<?php echo site_url('seo') ?>">SEO管理</a></li>
|
|
|
|
<li> <a href="<?php echo site_url('thirdparty/public/infopayauthor') ?>">打赏统计</a></li>
|
|
|
|
<li> <a href="<?php echo site_url('thirdparty/form') ?>">表单管理</a></li>
|
|
|
|
<li><a href="<?php echo site_url('thirdparty/advertise') ?>">旧版广告管理</a></li>
|
|
|
|
<li><a href="<?php echo site_url('apps/tripadvisor_spider') ?>">TA评论采集</a></li>
|
|
|
|
<li><a href="<?php echo site_url('tools/old') ?>">老旧信息查询</a></li>
|
|
|
|
<li><a href="<?php echo site_url('apps/searchinfo/index/homepage') ?>">信息搜索</a></li>
|
|
|
|
<li><a href="<?php echo site_url('tools/amp_check') ?>">AMP转化检查</a></li>
|
|
|
|
<li><a target="_blank" href="http://www.arachina.com/html-tag-quick-query.htm">Html基础知识</a></li>
|
|
|
|
<li><a target="_blank"
|
|
|
|
href="https://docs.google.com/presentation/d/1YN9P8j837SCHenpK_UApHU04K6evV1-GLULhsdmdtWM/edit?usp=sharing">AMP知识</a>
|
|
|
|
</li>
|
|
|
|
<!--<li><a href="<?php echo site_url('city/addnode/-99') ?>">添加信息分组</a></li>-->
|
|
|
|
<li><a target="_blank"
|
|
|
|
href="https://docs.google.com/presentation/d/1E9dbrANxtvgsOTkJWWab-UNaBgRJyQwNYu9Tw5k5jUI/edit?usp=sharing">AMP操作SOP</a>
|
|
|
|
</li>
|
|
|
|
<li><a target="_blank"
|
|
|
|
href="https://docs.google.com/presentation/d/1_SN8Eo3EFmigfyYrtX7WTkiGKqgvc0EBBS3YoXeZSBc/edit#slide=id.g45b539c835_4_61">HTML构建工具V3</a>
|
|
|
|
</li>
|
|
|
|
<li><a target="_blank"
|
|
|
|
href="https://docs.google.com/presentation/d/1zPc7832vManRsCgkgO5XoMVKe6deIHC9zsmLPWihxrA/edit?usp=sharing">PS基础课件</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="<?php echo site_url('setting') ?>">系统设置</a></li>
|
|
|
|
<li><a href="<?php echo site_url('accessmanage') ?>">权限设置</a></li>
|
|
|
|
<li><a href="<?php echo site_url('sitemap') ?>">生成sitemap</a></li>
|
|
|
|
<li><a href="<?php echo site_url('thirdparty/recommend') ?>">广告管理和信息推荐</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<form id="form_information_search" name="form_information_search" method="post"
|
|
|
|
action="<?php echo $this->router->class == 'infoshare' ? site_url('infoshare/search/') : site_url('welcome/search/'); ?>"
|
|
|
|
class="navbar-form navbar-left">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<input type="checkbox" title="全文搜索" name="all_text_search" id="all_text_search" value="true">
|
|
|
|
</span>
|
|
|
|
<input type="text" class="form-control input-sm" name="keywords" id="keywords"
|
|
|
|
value="<?php echo isset($keywords) ? $keywords : false; ?>" style="min-width:450px;">
|
|
|
|
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button class="btn btn-default btn-sm" type="submit">搜索</button>
|
|
|
|
<?php if (in_array($this->config->item('site_code'), array('jp', 'gm', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gh_gm', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it'))) { ?>
|
|
|
|
<a href="<?php
|
|
|
|
$admin_info = $this->session->userdata('session_admin');
|
|
|
|
echo 'https://multimedia.mycht.cn/authorise/' . $admin_info['OPI_SN'] . '/' . $this->config->item('site_code') ?>"
|
|
|
|
target="_blank" class="btn btn-default btn-sm" title="多媒体图片"><span
|
|
|
|
class="glyphicon glyphicon-picture"></span></a>
|
|
|
|
<?php } else { ?>
|
|
|
|
<a href="#" onclick="openKCFinder_singleFile_res();" class="btn btn-default btn-sm" title="快速上传图片"><span
|
|
|
|
class="glyphicon glyphicon-picture"></span></a>
|
|
|
|
<a target="_blank"
|
|
|
|
href="<?php
|
|
|
|
$admin_info = $this->session->userdata('session_admin');
|
|
|
|
echo 'https://multimedia.mycht.cn/authorise/' . $admin_info['OPI_SN'] . '/' . $this->config->item('site_code') ?>"
|
|
|
|
class="btn btn-default btn-sm" title="多媒体图片"><span class="glyphicon glyphicon-new-window"></span></a>
|
|
|
|
<?php } ?>
|
|
|
|
<a href="#" title="静态化更新" class="btn btn-default btn-sm" data-toggle="modal"
|
|
|
|
data-target="#cache_refresh_modal"><span class="glyphicon glyphicon-repeat"></span></a>
|
|
|
|
<a href="#" title="cdn缓存清理" class="btn btn-default btn-sm" data-toggle="modal"
|
|
|
|
data-target="#cdncache_refresh_modal"><span class="glyphicon glyphicon-refresh"></span></a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<?php
|
|
|
|
$all_unread_sms = get_all_unread_sms();
|
|
|
|
$info_unread_sms = get_all_unread_sms('info');
|
|
|
|
if (isset($information->ic_id))
|
|
|
|
$current_msg = $information->ic_id;
|
|
|
|
if (isset($task->t_id))
|
|
|
|
$current_msg = $task->t_id;
|
|
|
|
$total_count = $all_unread_sms['sms_count'] + $info_unread_sms['sms_count']; //计算未读消息总数
|
|
|
|
$unread_sms_ic_id = 0; //用于设置所有收录消息为已读
|
|
|
|
if ($total_count != 0) {
|
|
|
|
?>
|
|
|
|
<!-- 如果当前页面存在未读消息,则消息数减一 -->
|
|
|
|
<?php
|
|
|
|
if (isset($current_msg) && isset($all_unread_sms['sms'][$current_msg])) {
|
|
|
|
$total_count = $total_count - count($all_unread_sms['sms'][$current_msg]);
|
|
|
|
unset($all_unread_sms['sms'][$current_msg]);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if (isset($current_msg) && isset($info_unread_sms['sms'][$current_msg])) {
|
|
|
|
$total_count = $total_count - count($info_unread_sms['sms'][$current_msg]);
|
|
|
|
unset($info_unread_sms['sms'][$current_msg]);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="icon-envelope icon-white pull-left" style="margin-top:3px;"></i> <span
|
|
|
|
class="badge badge-important pull-right">
|
|
|
|
<?php echo $total_count; ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<!-- 信息平台的消息 -->
|
|
|
|
<?php if (isset($info_unread_sms['sms']) && !empty($info_unread_sms['sms'])) { ?>
|
|
|
|
<a style="padding-left:20px;" href="javascript:void(0);"
|
|
|
|
onclick="set_allmsg_to_read($('#unreadinfomsg').val());">标记全部收录信息为已读</a>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<?php foreach ($info_unread_sms['sms'] as $m) { ?>
|
|
|
|
<li><a href="<?php echo site_url('information/edit/' . $m[0]->is_id); ?>">
|
|
|
|
<?php
|
|
|
|
$t_title = get_text_short($m[0]->t_title, 15);
|
|
|
|
echo '[' . $m[0]->ic_sitecode . '] ' . $t_title['content'] . ' (' . $m[0]->m_content . ')';
|
|
|
|
?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php $unread_sms_ic_id .= ',' . $m[0]->m_object_id; ?>
|
|
|
|
<?php } ?>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<input type="hidden" name="unreadinfomsg" id="unreadinfomsg" value="<?php echo $unread_sms_ic_id; ?>">
|
|
|
|
<?php } ?>
|
|
|
|
<!--作者平台的消息-->
|
|
|
|
<?php foreach ($all_unread_sms['sms'] as $am) { ?>
|
|
|
|
<li><a href="<?php echo site_url('author/edit_task/' . $am[0]->m_object_id); ?>">
|
|
|
|
<?php
|
|
|
|
$t_title = get_text_short($am[0]->t_title, 15);
|
|
|
|
echo $t_title['content'] . ' (' . count($am) . ')';
|
|
|
|
?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php } ?>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<?php } ?>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<?php
|
|
|
|
echo $this->config->item('site_code');
|
|
|
|
echo ' -';
|
|
|
|
$admin_info = $this->session->userdata('session_admin');
|
|
|
|
echo $admin_info['OPI_Name'];
|
|
|
|
?>
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<?php foreach ($this->config->item('site') as $site_item) { ?>
|
|
|
|
<li> <a href="<?php echo site_url('login/change_site/' . $site_item['site_code']); ?>">
|
|
|
|
<?php echo $site_item['site_code'] ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php } ?>
|
|
|
|
<li><a href="<?php echo site_url('login/out'); ?>">退出</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|