Browse Source

进度条自适应,文字优化

tags/6.1.9
xushubieli 1 month ago
parent
commit
3d0a3c85be
2 changed files with 12 additions and 12 deletions
  1. +6
    -6
      src/admin/article_description_main.php
  2. +6
    -6
      src/admin/makehtml_archives_action.php

+ 6
- 6
src/admin/article_description_main.php View File

@@ -80,9 +80,9 @@ if ($dojob == '') {
ShowMsg('完成所有任务', 'javascript:;');
exit();
}
$dvlen = $tjlen * 2;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #28a745;text-align:left'><div style='width:$dvlen%;height:16px;background:#28a745'></div></div>";
$tjsta .= "<br>完成处理文档总数 $tjlen %";
$dvlen = $tjlen * 1;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #28a745;text-align:left'><div style='max-width:260px;width:$dvlen%;height:16px;background:#28a745'></div></div>";
$tjsta .= "<br>完成处理文档总数 $tjlen %";
$nurl = "article_description_main.php?totalnum=$totalnum&startdd={$startdd}&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}";
ShowMsg($tjsta, $nurl, 0, 500);
exit();
@@ -140,9 +140,9 @@ if ($dojob == '') {
} else {
$tjlen = 100;
}
$dvlen = $tjlen * 2;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #28a745;text-align:left'><div style='width:$dvlen%;height:16px;background:#28a745'></div></div>";
$tjsta .= "<br>完成处理文档总数 $tjlen %";
$dvlen = $tjlen * 1;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #28a745;text-align:left'><div style='max-width:260px;width:$dvlen%;height:16px;background:#28a745'></div></div>";
$tjsta .= "<br>完成处理文档总数 $tjlen %";
if ($tjnum < $totalnum) {
$nurl = "article_description_main.php?totalnum=$totalnum&startdd=".($startdd + $pagesize)."&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}";
ShowMsg($tjsta, $nurl, 0, 500);


+ 6
- 6
src/admin/makehtml_archives_action.php View File

@@ -79,9 +79,9 @@ $ttime = time() - $sstime;
$ttime = number_format(($ttime / 60), 2);
//返回提示信息
$tjlen = $totalnum > 0 ? ceil(($tjnum / $totalnum) * 100) : 100;
$dvlen = $tjlen * 2;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #28a745;text-align:left'><div style='width:$dvlen%;height:16px;background:#28a745'></div></div>";
$tjsta .= "<br>本次用时:".number_format($t2, 2).",总用时:$ttime 分钟,到达位置:".($startdd + $pagesize)."<br>完成创建文件总数的 $tjlen %";
$dvlen = $tjlen * 1;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #28a745;text-align:left'><div style='max-width:260px;width:$dvlen%;height:16px;background:#28a745'></div></div>";
$tjsta .= "<br>到达位置:".($startdd + $pagesize).",用时:$ttime 分钟<br>完成更新文档总数 $tjlen %";
//速度测试
if ($tjnum < $totalnum) {
$nurl = "makehtml_archives_action.php?endid=$endid&startid=$startid&typeid=$typeid";
@@ -91,12 +91,12 @@ if ($tjnum < $totalnum) {
exit();
} else {
if ($typeid != '') {
ShowMsg("生成文件:$totalnum,总用时:{$ttime} 分钟,现转向当前栏目更新", "makehtml_list_action.php?typeid=$typeid&uptype=all&maxpagesize=50&upnext=1");
ShowMsg("更新文档:$totalnum,用时:{$ttime} 分钟,现转向当前栏目更新", "makehtml_list_action.php?typeid=$typeid&uptype=all&maxpagesize=50&upnext=1");
} else {
if ($uptype == '') {
ShowMsg("生成文件:$totalnum,总用时:{$ttime} 分钟,完成所有所有任务", "javascript:;");
ShowMsg("更新文档:$totalnum,用时:{$ttime} 分钟,完成所有所有任务", "javascript:;");
} else {
ShowMsg("完成文档更新任务,现在开始进行主页更新", "makehtml_all.php?action=make&step=3&uptype=$uptype&mkvalue=$mkvalue");
ShowMsg("完成更新文档任务,现在开始进行主页更新", "makehtml_all.php?action=make&step=3&uptype=$uptype&mkvalue=$mkvalue");
}
}
}

Loading…
Cancel
Save