Files
DzzOffice/core/template/default/common/showmessage.htm

175 lines
6.9 KiB
HTML
Raw Permalink Normal View History

<!--{if !$_G['inajax']}-->
<!--{template common/header_common}-->
2022-11-02 23:21:46 +08:00
<style>
html,body{
overflow: hidden
}
</style>
<!--{if $_G['setting']['bbclosed'] && $_G['uid']}-->
<link rel="stylesheet" type="text/css" href="static/bootstrap/css/bootstrap.min.css?YWE">
<link rel="stylesheet" type="text/css" href="static/css/app_manage.css?YWE">
<link rel="stylesheet" type="text/css" href="static/dzzicon/icon.css?YWE"/>
<link rel="stylesheet" href="static/popbox/popbox.css">
<script type="text/javascript" src="static/js/header.js?YWE"></script>
<script type="text/javascript" src="static/popbox/jquery.popbox.js?YWE"></script>
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
<nav class="navbar navbar-inverse resNav bs-top-container" >
<div class="resNav-item resNav-left">
<ul class="nav navbar-nav navbar-nav-left">
<li>
<a class="site" href="{$_G[siteurl]}"><span class="site-logo">
<img src="static/image/common/logo.png" style="max-height: 30px;">
</span>
<span class="site-name">$_G['setting']['sitename']</span>
</a>
</li>
</ul>
</div>
<div class="resNav-item resNav-right">
<!--{template header_right}-->
</div>
2022-11-02 23:21:46 +08:00
</nav>
<script type="text/javascript">
jQuery(document).ready(function(e) {
_header.init('{FORMHASH}');//初始化头部效果
//_header.Topcolor();
//_notice.init();
jQuery(".resNav .js-popbox").each(function(){
jQuery(this).popbox();
});
_notice.getNotificationCount();
});
_notice={};
_notice.flashStep=1;
_notice.checkurl='index.php?mod=system&op=notification&filter=checknew';
_notice.normalTitle= document.title;
_notice.getNotificationCount=function(){
jQuery.getJSON(_notice.checkurl,function(json){
var sum=parseInt(json.sum);
_notice.showTips(sum);
if(json.timeout>0) window.setTimeout(_notice.getNotificationCount,json.timeout);
});
}
_notice.showTips=function(sum){
if(sum>0){
jQuery('#dzz_notification>span.badge').html(sum).removeClass('hide');
jQuery('#dzz_notification>span.dzz').hide();
//_notice.flashTitle();
}else{
jQuery('#dzz_notification>span.badge').addClass('hide');
jQuery('#dzz_notification>span.dzz').show();
//_notice.flashTitle(1);
}
}
_notice.flashTitle=function(flag){
//仅窗口不在焦点时闪烁title回到焦点时停止闪烁并将title恢复正常
if(flag || CurrentActive){//当前处于焦点
document.title=_notice.normalTitle;
_notice.flashTitleRun = false;
return;//退出循环
}
_notice.flashTitleRun = true;
_notice.flashStep++;
if (_notice.flashStep==3) {_notice.flashStep=1;}
if (_notice.flashStep==1) {document.title="【您有新的通知】";}
if (_notice.flashStep==2) {document.title="【$_G[setting][sitename]】";}
setTimeout(function(){_notice.flashTitle();},500); //循环
}
$("img").one("error", function(e){
$(this).attr("src", "static/image/common/logo.png");
});
2022-11-02 23:21:46 +08:00
</script>
<!--{/if}-->
<!--{if !$param[login]}-->
2022-11-02 23:21:46 +08:00
<!--{else}-->
<div class="" id="main_succeed" style="max-width:500px;margin:0 auto;display: none">
<div class="f_c altw">
<div class="alert_right">
<h5 id="succeedmessage"></h5>
<p id="succeedlocation" class="alert_btnleft"></p>
<p class="alert_btnleft"><a id="succeedmessage_href">{lang message_forward}</a></p>
</div>
</div>
</div>
<div class="well" id="main_message">
<!--{/if}-->
<!--{else}-->
<!--{template common/header_ajax}-->
<!--{/if}-->
<!--{if $param[msgtype] == 1 || $param[msgtype] == 2 && !$_G[inajax]}-->
<div id="ct" class="container" style="position: absolute;width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;min-height: -webkit-fill-available;margin: 0;text-align: center;">
<div id="messagetext">
<!--{if $_G['setting']['sitelogo']}-->
<img src="{eval echo $_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'';}">
<!--{else}-->
<img src="static/image/common/logo.png">
<!--{/if}-->
<h4 style="font-size: large;">$show_message</h4>
<!--{if !$_G['setting']['bbclosed']|| !$_G['adminid'] ==0}-->
<!--{if $url_forward}-->
<!--{if !$param[redirectmsg]}-->
<button class="btn-jump btn btn-primary" onclick="location.href='$url_forward';return false;" >立即跳转(<span class="num">3</span>s</button>
<button class="btn-jump btn btn-primary" onclick="location.href='$_G['siteurl']';return false;" >首页</button>
<!--{else}-->
<button class="btn-jump btn btn-primary" onclick="location.href='$url_forward';return false;">{lang return_to_the_naxt_level}<span class="num">3</span>s</button>
<!--{/if}-->
<!--{elseif $allowreturn}-->
<script type="text/javascript">
if(history.length > (BROWSER.ie ? 0 : 1)) {
document.write('<a class="btn-jump btn btn-primary" href="javascript:history.back()">返回</a>');
} else {
document.write('<a class="btn-jump btn btn-primary" href="$_G['siteurl']">首页</a>');
}
</script>
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if $param[login]}-->
<!--{/if}-->
2022-11-02 23:21:46 +08:00
<script type="text/javascript">
jQuery(document).ready(function(){
function jump(cont){
window.setTimeout(function(){
cont--;
if(cont>0){
$('.num').text(cont);
jump(cont);
}
},1000)
}
jump(3);
});
</script>
</div>
<!--{elseif $param[msgtype] == 2}-->
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">{lang board_message}</h4>
</div>
<div class="modal-body">
<div class="$alerttype">$show_message</div>
</div>
<div class="modal-footer">
<!--{if $param['closetime']}-->
<span class="btn btn-link text-muted">$param['closetime'] {lang message_closetime}</span>
<!--{elseif $param['locationtime']}-->
<span class="btn btn-link text-muted">$param['locationtime'] {lang message_locationtime}</span>
<!--{/if}-->
<!--{if $param[login]}-->
<button type="button" class="btn btn-info" onclick="hideWindow('$_GET['handlekey']');showWindow('login', 'user.php?mod=login&action=login');"><strong>{lang login}</strong></button>
<!--{if !$_G['setting']['bbclosed']}-->
<button type="button" class="btn btn-info" onclick="hideWindow('$_GET['handlekey']');window.open('user.php?mod=rigister');"><em>$_G['setting']['reglinkname']</em></button>
<!--{/if}-->
<!--{/if}-->
<button type="button" data-dismiss="modal" class="btn btn-default"><strong>{lang close}</strong></button>
</div>
<!--{else}-->$show_message<!--{/if}-->
<!--{if !$_G['inajax']}-->
</div>
<!--{template common/footer}-->
<!--{else}-->
<!--{template common/footer_ajax}-->
<!--{/if}-->