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

163 lines
6.7 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--{if !$_G['inajax']}-->
<!--{if $_G['setting']['bbclosed'] && !$_G['adminid']}-->
<!--{template common/header_simple_start}-->
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
<!--{template common/header_simple_end}-->
<nav class="navbar sticky-top navbar-dark navbar-expand-lg navbar-light">
<div class="container-fluid">
<a class="leftTopmenu navbar-brand" href="{$_G[siteurl]}">
<img src="{eval echo $_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png';}" class="d-inline-block align-middle">
$_G['setting']['sitename']
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarScroll">
<!--{template header_right}-->
</div>
</div>
</nav>
<script type="text/javascript">
jQuery(document).ready(function(e) {
_header.init('{FORMHASH}');//初始化头部效果
//_header.Topcolor();
//_notice.init();
_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); //循环
}
</script>
<!--{else}-->
<!--{template common/header_simple}-->
<style>
html,body{
overflow: hidden
}
</style>
<!--{/if}-->
<!--{if !$param[login]}-->
<!--{else}-->
<div class="" id="main_succeed" style="max-width:500px;margin:0 auto;display: none">
<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 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="text-center" style="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']):'static/image/common/logo.png';}">
<!--{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 btn-primary" onclick="location.href='$url_forward';return false;" >立即跳转(<span class="num">3</span>s</button>
<button class="btn btn-primary" onclick="location.href='$_G['siteurl']';return false;" >首页</button>
<!--{else}-->
<button class="btn btn-primary" onclick="location.href='$url_forward';return false;">{lang return_to_the_naxt_level}<span class="num">3</span>s</button>
<button class="btn btn-primary" onclick="location.href='$_G['siteurl']';return false;" >首页</button>
<!--{/if}-->
<!--{elseif $allowreturn}-->
<script type="text/javascript">
if(history.length > (BROWSER.ie ? 0 : 1)) {
document.write('<a class="btn btn-primary" href="javascript:history.back()">返回</a> <a class="btn btn-primary" href="$_G['siteurl']">首页</a>');
} else {
document.write('<a class="btn btn-primary" href="$_G['siteurl']">首页</a>');
}
</script>
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if $param[login]}-->
<!--{/if}-->
<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">
<h4 class="modal-title">{lang board_message}</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="$alerttype">$show_message</div>
</div>
<div class="modal-footer">
<!--{if $param['closetime']}-->
<span class="btn btn-primary text-muted">$param['closetime'] {lang message_closetime}</span>
<!--{elseif $param['locationtime']}-->
<span class="btn btn-primary 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-bs-dismiss="modal" class="btn btn-outline-info"><strong>{lang close}</strong></button>
</div>
<!--{else}-->$show_message<!--{/if}-->
<!--{if !$_G['inajax']}-->
</div>
<!--{template common/footer}-->
<!--{else}-->
<!--{template common/footer_ajax}-->
<!--{/if}-->