add 'gm_jp'

master
LMR 3 weeks ago
parent b747a280c0
commit aa3ca01ac1

@ -21,13 +21,13 @@
sitecode: '<?php echo $this->config->item('site_code'); ?>', sitecode: '<?php echo $this->config->item('site_code'); ?>',
width: 1024, width: 1024,
height: 800, height: 800,
onInit: function (finder) { onInit: function(finder) {
finder.on('files:choose', function (evt) { finder.on('files:choose', function(evt) {
var file = evt.data.files.first(); var file = evt.data.files.first();
alert(file.getUrl()); alert(file.getUrl());
}); });
finder.on('file:choose:resizedImage', function (evt) { finder.on('file:choose:resizedImage', function(evt) {
alert(evt.data.resizedUrl); alert(evt.data.resizedUrl);
}); });
} }
@ -55,14 +55,14 @@
var url = '<?php echo site_url("author/set_msg_to_read"); ?>'; var url = '<?php echo site_url("author/set_msg_to_read"); ?>';
$.post(url, { $.post(url, {
'msg_ids': ic_ids 'msg_ids': ic_ids
}, function (result) { }, function(result) {
window.location.href = window.location.href; window.location.href = window.location.href;
}); });
} }
</script> </script>
<script> <script>
var _hmt = _hmt || []; var _hmt = _hmt || [];
(function () { (function() {
var hm = document.createElement("script"); var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?57ab7a81de0914994d5f2cf7986124f8"; hm.src = "https://hm.baidu.com/hm.js?57ab7a81de0914994d5f2cf7986124f8";
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
@ -137,10 +137,10 @@
<input type="text" class="input-xlarge" name="keywords" id="keywords" <input type="text" class="input-xlarge" name="keywords" id="keywords"
value="<?php echo isset($keywords) ? $keywords : false; ?>"> value="<?php echo isset($keywords) ? $keywords : false; ?>">
<button class="btn">搜索</button> <button class="btn">搜索</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'))) { ?> <?php if (in_array($this->config->item('site_code'), array('jp', 'gm', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gm_jp', 'gh_gm', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it'))) { ?>
<a href="<?php <a href="<?php
$admin_info = $this->session->userdata('session_admin'); $admin_info = $this->session->userdata('session_admin');
echo 'https://multimedia.mycht.cn/authorise/' . $admin_info['OPI_SN'] . '/' . $this->config->item('site_code') ?>" echo 'https://multimedia.mycht.cn/authorise/' . $admin_info['OPI_SN'] . '/' . $this->config->item('site_code') ?>"
target="_blank" class="btn" title="图片上传管理"><i class="icon-picture"></i></a> target="_blank" class="btn" title="图片上传管理"><i class="icon-picture"></i></a>
<?php } else { ?> <?php } else { ?>
<a href="#" onclick="openKCFinder_singleFile_res();" class="btn" title="快速上传图片"><i <a href="#" onclick="openKCFinder_singleFile_res();" class="btn" title="快速上传图片"><i
@ -170,7 +170,7 @@
$total_count = $all_unread_sms['sms_count'] + $info_unread_sms['sms_count']; //计算未读消息总数 $total_count = $all_unread_sms['sms_count'] + $info_unread_sms['sms_count']; //计算未读消息总数
$unread_sms_ic_id = 0; //用于设置所有收录消息为已读 $unread_sms_ic_id = 0; //用于设置所有收录消息为已读
if ($total_count != 0) { if ($total_count != 0) {
?> ?>
<!-- 如果当前页面存在未读消息,则消息数减一 --> <!-- 如果当前页面存在未读消息,则消息数减一 -->
<?php <?php
if (isset($current_msg) && isset($all_unread_sms['sms'][$current_msg])) { if (isset($current_msg) && isset($all_unread_sms['sms'][$current_msg])) {

@ -21,13 +21,13 @@
sitecode: '<?php echo $this->config->item('site_code'); ?>', sitecode: '<?php echo $this->config->item('site_code'); ?>',
width: 1024, width: 1024,
height: 800, height: 800,
onInit: function (finder) { onInit: function(finder) {
finder.on('files:choose', function (evt) { finder.on('files:choose', function(evt) {
var file = evt.data.files.first(); var file = evt.data.files.first();
alert(file.getUrl()); alert(file.getUrl());
}); });
finder.on('file:choose:resizedImage', function (evt) { finder.on('file:choose:resizedImage', function(evt) {
alert(evt.data.resizedUrl); alert(evt.data.resizedUrl);
}); });
} }
@ -38,17 +38,18 @@
// window.KCFinder = {}; // window.KCFinder = {};
// window.KCFinder.callBack = function (url) { // window.KCFinder.callBack = function (url) {
// <?php // <?php
// switch ($this->config->item('site_code')) { // switch ($this->config->item('site_code')) {
// case 'ah': // case 'ah':
// echo "alert(url.replace('/kcfinder/upload/ah/','https://data.asiahighlights.com/'));"; // echo "alert(url.replace('/kcfinder/upload/ah/','https://data.asiahighlights.com/'));";
// break; // break;
// case 'gm': // case 'gm':
// echo "alert(url.replace('/kcfinder/upload/gm/','https://data.chinahighlightstravel.de/'));"; // echo "alert(url.replace('/kcfinder/upload/gm/','https://data.chinahighlightstravel.de/'));";
// break; // break;
// default: // default:
// echo 'alert(url);'; // echo 'alert(url);';
// } // }
// ?> //
?>
// window.KCFinder = null; // 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'); // 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');
@ -76,7 +77,7 @@
var url = '<?php echo site_url("author/set_msg_to_read"); ?>'; var url = '<?php echo site_url("author/set_msg_to_read"); ?>';
$.post(url, { $.post(url, {
'msg_ids': ic_ids 'msg_ids': ic_ids
}, function (result) { }, function(result) {
window.location.href = window.location.href; window.location.href = window.location.href;
}); });
} }
@ -123,7 +124,7 @@
</script> </script>
<script> <script>
var _hmt = _hmt || []; var _hmt = _hmt || [];
(function () { (function() {
var hm = document.createElement("script"); var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?57ab7a81de0914994d5f2cf7986124f8"; hm.src = "https://hm.baidu.com/hm.js?57ab7a81de0914994d5f2cf7986124f8";
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
@ -202,21 +203,21 @@
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-default btn-sm" type="submit">搜索</button> <button class="btn btn-default btn-sm" type="submit">搜索</button>
<?php if (in_array($this->config->item('site_code'), ['jp', 'gm', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gh_gm', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it'])) {?> <?php if (in_array($this->config->item('site_code'), ['jp', 'gm', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gm_jp', 'gh_gm', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it'])) { ?>
<a href="<?php <a href="<?php
$admin_info = $this->session->userdata('session_admin'); $admin_info = $this->session->userdata('session_admin');
echo 'https://multimedia.mycht.cn/authorise/' . $admin_info['OPI_SN'] . '/' . $this->config->item('site_code')?>" 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 target="_blank" class="btn btn-default btn-sm" title="多媒体图片"><span
class="glyphicon glyphicon-picture"></span></a> class="glyphicon glyphicon-picture"></span></a>
<?php } else {?> <?php } else { ?>
<a href="#" onclick="openKCFinder_singleFile_res();" class="btn btn-default btn-sm" title="快速上传图片"><span <a href="#" onclick="openKCFinder_singleFile_res();" class="btn btn-default btn-sm" title="快速上传图片"><span
class="glyphicon glyphicon-picture"></span></a> class="glyphicon glyphicon-picture"></span></a>
<a target="_blank" <a target="_blank"
href="<?php href="<?php
$admin_info = $this->session->userdata('session_admin'); $admin_info = $this->session->userdata('session_admin');
echo 'https://multimedia.mycht.cn/authorise/' . $admin_info['OPI_SN'] . '/' . $this->config->item('site_code')?>" 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> class="btn btn-default btn-sm" title="多媒体图片"><span class="glyphicon glyphicon-new-window"></span></a>
<?php }?> <?php } ?>
<a href="#" title="静态化更新" class="btn btn-default btn-sm" data-toggle="modal" <a href="#" title="静态化更新" class="btn btn-default btn-sm" data-toggle="modal"
data-target="#cache_refresh_modal"><span class="glyphicon glyphicon-repeat"></span></a> 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" <a href="#" title="cdn缓存清理" class="btn btn-default btn-sm" data-toggle="modal"
@ -226,33 +227,33 @@ $admin_info = $this->session->userdata('session_admin');
</form> </form>
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<?php <?php
$all_unread_sms = get_all_unread_sms(); $all_unread_sms = get_all_unread_sms();
$info_unread_sms = get_all_unread_sms('info'); $info_unread_sms = get_all_unread_sms('info');
if (isset($information->ic_id)) { if (isset($information->ic_id)) {
$current_msg = $information->ic_id; $current_msg = $information->ic_id;
} }
if (isset($task->t_id)) { if (isset($task->t_id)) {
$current_msg = $task->t_id; $current_msg = $task->t_id;
} }
$total_count = $all_unread_sms['sms_count'] + $info_unread_sms['sms_count']; //计算未读消息总数 $total_count = $all_unread_sms['sms_count'] + $info_unread_sms['sms_count']; //计算未读消息总数
$unread_sms_ic_id = 0; //用于设置所有收录消息为已读 $unread_sms_ic_id = 0; //用于设置所有收录消息为已读
if ($total_count != 0) { if ($total_count != 0) {
?> ?>
<!-- 如果当前页面存在未读消息,则消息数减一 --> <!-- 如果当前页面存在未读消息,则消息数减一 -->
<?php <?php
if (isset($current_msg) && isset($all_unread_sms['sms'][$current_msg])) { if (isset($current_msg) && isset($all_unread_sms['sms'][$current_msg])) {
$total_count = $total_count - count($all_unread_sms['sms'][$current_msg]); $total_count = $total_count - count($all_unread_sms['sms'][$current_msg]);
unset($all_unread_sms['sms'][$current_msg]); unset($all_unread_sms['sms'][$current_msg]);
} }
?> ?>
<?php <?php
if (isset($current_msg) && isset($info_unread_sms['sms'][$current_msg])) { if (isset($current_msg) && isset($info_unread_sms['sms'][$current_msg])) {
$total_count = $total_count - count($info_unread_sms['sms'][$current_msg]); $total_count = $total_count - count($info_unread_sms['sms'][$current_msg]);
unset($info_unread_sms['sms'][$current_msg]); unset($info_unread_sms['sms'][$current_msg]);
} }
?> ?>
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-envelope icon-white pull-left" style="margin-top:3px;"></i> <span <i class="icon-envelope icon-white pull-left" style="margin-top:3px;"></i> <span
@ -262,53 +263,53 @@ $admin_info = $this->session->userdata('session_admin');
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<!-- 信息平台的消息 --> <!-- 信息平台的消息 -->
<?php if (isset($info_unread_sms['sms']) && ! empty($info_unread_sms['sms'])) {?> <?php if (isset($info_unread_sms['sms']) && ! empty($info_unread_sms['sms'])) { ?>
<a style="padding-left:20px;" href="javascript:void(0);" <a style="padding-left:20px;" href="javascript:void(0);"
onclick="set_allmsg_to_read($('#unreadinfomsg').val());">标记全部收录信息为已读</a> onclick="set_allmsg_to_read($('#unreadinfomsg').val());">标记全部收录信息为已读</a>
<li class="divider"></li> <li class="divider"></li>
<?php foreach ($info_unread_sms['sms'] as $m) {?> <?php foreach ($info_unread_sms['sms'] as $m) { ?>
<li><a href="<?php echo site_url('information/edit/' . $m[0]->is_id); ?>"> <li><a href="<?php echo site_url('information/edit/' . $m[0]->is_id); ?>">
<?php <?php
$t_title = get_text_short($m[0]->t_title, 15); $t_title = get_text_short($m[0]->t_title, 15);
echo '[' . $m[0]->ic_sitecode . '] ' . $t_title['content'] . ' (' . $m[0]->m_content . ')'; echo '[' . $m[0]->ic_sitecode . '] ' . $t_title['content'] . ' (' . $m[0]->m_content . ')';
?> ?>
</a> </a>
</li> </li>
<?php $unread_sms_ic_id .= ',' . $m[0]->m_object_id; ?> <?php $unread_sms_ic_id .= ',' . $m[0]->m_object_id; ?>
<?php }?> <?php } ?>
<li class="divider"></li> <li class="divider"></li>
<input type="hidden" name="unreadinfomsg" id="unreadinfomsg" value="<?php echo $unread_sms_ic_id; ?>"> <input type="hidden" name="unreadinfomsg" id="unreadinfomsg" value="<?php echo $unread_sms_ic_id; ?>">
<?php }?> <?php } ?>
<!--作者平台的消息--> <!--作者平台的消息-->
<?php foreach ($all_unread_sms['sms'] as $am) {?> <?php foreach ($all_unread_sms['sms'] as $am) { ?>
<li><a href="<?php echo site_url('author/edit_task/' . $am[0]->m_object_id); ?>"> <li><a href="<?php echo site_url('author/edit_task/' . $am[0]->m_object_id); ?>">
<?php <?php
$t_title = get_text_short($am[0]->t_title, 15); $t_title = get_text_short($am[0]->t_title, 15);
echo $t_title['content'] . ' (' . count($am) . ')'; echo $t_title['content'] . ' (' . count($am) . ')';
?> ?>
</a> </a>
</li> </li>
<?php }?> <?php } ?>
</ul> </ul>
</li> </li>
<?php }?> <?php } ?>
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<?php <?php
echo $this->config->item('site_code'); echo $this->config->item('site_code');
echo ' -'; echo ' -';
$admin_info = $this->session->userdata('session_admin'); $admin_info = $this->session->userdata('session_admin');
echo $admin_info['OPI_Name']; echo $admin_info['OPI_Name'];
?> ?>
<b class="caret"></b> <b class="caret"></b>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<?php foreach ($this->config->item('site') as $site_item) {?> <?php foreach ($this->config->item('site') as $site_item) { ?>
<li> <a href="<?php echo site_url('login/change_site/' . $site_item['site_code']); ?>"> <li> <a href="<?php echo site_url('login/change_site/' . $site_item['site_code']); ?>">
<?php echo $site_item['site_code'] ?> <?php echo $site_item['site_code'] ?>
</a> </a>
</li> </li>
<?php }?> <?php } ?>
<li><a href="<?php echo site_url('login/out'); ?>">退出</a></li> <li><a href="<?php echo site_url('login/out'); ?>">退出</a></li>
</ul> </ul>
</li> </li>

Loading…
Cancel
Save