Files
OMS/app/base/view/desktop/widgets/system_notice.html
2026-01-04 19:08:31 +08:00

78 lines
2.7 KiB
HTML

<!--
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<style>
#widgets_systemnotice, #widgets_patchinfo {
width: 100%;
}
#widgets_systemnotice tr, #widgets_patchinfo tr {
height: 30px;
line-height: 30px;
color: #333
}
#widgets_systemnotice tr th, #widgets_patchinfo tr th {
text-align: left;
width: 70%;
}
#widgets_systemnotice tr td, #widgets_patchinfo tr td {
text-align: right;
font-weight: normal;
padding-right: 10px;
}
#ome_desktop_widgets_systemnotice .no_infos, #ome_desktop_widgets_patchinfo .no_infos {
padding: 10px 0 5px 0;
}
</style>
<div class="clearfix dashbd-row">
<{if $info}>
<table id="widgets_systemnotice" cellpadding="0" cellspacing="0">
<{foreach from=$info item=item}>
<tr style="font-weight:bold">
<{if $item.status == 'true'}>
<th><a href="index.php?app=desktop&ctl=rpcnotify&act=index&action=detail&id=<{$item.id}>&finderview=detail_basic" target="dialog::{width:600,height:350,title:'消息详情'}"><{$item.info}></a></th>
<{elseif $item.status == 'false'}>
<th><b><a style="color: red;" href="index.php?app=desktop&ctl=rpcnotify&act=index&action=detail&id=<{$item.id}>&finderview=detail_basic" target="dialog::{width:600,height:350,title:'消息详情'}"><{$item.info}></a></b></th>
<{else}>
<th><a href="<{$item.callback}>"><{$item.info}></a></th>
<{/if}>
<td><{$item.notifytime}></td>
</tr>
<{/foreach}>
</table>
<{else}>
<div class="no_infos">暂无任何系统消息......</div>
<{/if}>
</div>
<script>
function _get_rpcnotify_num(id) {
W.page('index.php?app=desktop&ctl=rpcnotify&act=read',{method:'POST',onComplete:function(){
var notify=$E('#topbar .notify_num');
if(notify){
var msg=notify.get('text'),n;
n=msg.substring(1,msg.length-1);
n=n-1>0?'('+(n-1)+')':'';
notify.set('text',n);
}
},data:{id:id,from:'dashboard'}
});
}
</script>