更新内容:

1.修改系统日志数据数量显示不全问题
2.修改用户中心-登录记录切换页数报错问题
3.修改通知中心徽章显示效果

更多更新内容请前往DzzOffice 笔记中查看
This commit is contained in:
小胡
2024-05-21 13:04:52 +08:00
Unverified
parent 01fff2a372
commit 8fb8be3186
5 changed files with 23 additions and 20 deletions

View File

@@ -47,7 +47,7 @@ if($type=="list"){
$firstlogs = file( $logdir.$logfiles[0] ) ;
$firstlogsnum = count($firstlogs);
$countlogfile=count($logfiles);
$count = ($countlogfile-1)*4000+$firstlogsnum;
$logs = array();
$jishu=4000;//每个日志文件最多行数
$start = ($page - 1) * $lpp;
@@ -87,13 +87,13 @@ if($type=="list"){
$logs = file( $logdir.$lastlog["file"] );
$logs = array_reverse($logs);
if($keyword){
foreach($logs as $key => $value) {
if(!empty($_GET['keyword']) && strpos($value, $_GET['keyword']) === FALSE) {
unset($logs[$key]);
}
}
}
$count = count($logs);
foreach($logs as $key => $value) {
if(!empty($_GET['keyword']) && strpos($value, $_GET['keyword']) === FALSE) {
unset($logs[$key]);
}
}
$count = count($logs);
}
if( $lastlog["file"]!=$logfiles[0] ){
$j++;
}

View File

@@ -122,7 +122,7 @@
<li class="nav-item">
<a href="javascript:;" id="dzz_notification" data-href="index.php?mod=system&op=notification&filter=new" class="animations-box position-relative nav-link active navbar-notice js-popbox" role="button" data-bs-container="body" data-bs-placement="bottom" data-bs-trigger="focus" data-auto-adapt="true" data-bs-toggle="popover">
<span class="dzz dzz-notifications basil"></span>
<span class="position-absolute translate-middle badge bg-danger badge-pill hide">&nbsp;</span>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger hide">&nbsp;</span>
</a>
</li>
<!--{/if}-->

View File

@@ -141,7 +141,7 @@ elseif($do == 'login'){
'op' => $_GET['op'],
'do' => $_GET['do']
);
$theurl = CURSCRIPT . "?" . url_implode($gets);
$theurl = BASESCRIPT . "?" . url_implode($gets);
$logdir = DZZ_ROOT.'./data/log/';
$logfiles = get_log_files($logdir, $operation);
@@ -189,11 +189,11 @@ elseif($do == 'login'){
//获取数据开始
$logs = file( $logdir.$lastlog["file"] );
$logs = array_reverse($logs);
foreach($logs as $key => $value) {
if(!empty($keyword) && strpos($value, $keyword) === FALSE) {
unset($logs[$key]);
}
}
foreach($logs as $key => $value) {
if(!empty($keyword) && strpos($value, $keyword) === FALSE) {
unset($logs[$key]);
}
}
$count = count($logs);
if( $lastlog["file"]!=$logfiles[0] ){
$j++;

View File

@@ -42,5 +42,8 @@
}
</script>
<!--{else}-->
暂无记录
<div style="text-align: center;">
<img src="static/image/common/no_list.png"><br>
<span class="no-result-title">没有相关的内容…</span>
</div>
<!--{/if}-->

View File

@@ -24,10 +24,10 @@ class Checkvalue{
}
//验证码
if($secqaacheck || $seccodecheck){
if(!check_seccode( $_GET['seccodeverify'],$_GET['sechash'])){
showTips(array('error'=>lang('submit_seccode_invalid')), $type);
}
if($secqaacheck || $seccodecheck){
if(!check_seccode( $_GET['seccodeverify'],$_GET['sechash'])){
showTips(array('error'=>lang('submit_seccode_invalid')), $type);
}
}
//验证用户名