Browse Source

优化

tags/6.2.0
叙述、别离 1 year ago
parent
commit
eb06a159ed
4 changed files with 7 additions and 7 deletions
  1. +2
    -2
      src/admin/article_description_main.php
  2. +1
    -1
      src/admin/makehtml_archives_action.php
  3. +1
    -1
      src/admin/sys_data_replace.php
  4. +3
    -3
      src/admin/templets/sys_data_replace.htm

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

@@ -79,7 +79,7 @@ if ($dojob == '') {
exit();
}
$dvlen = $tjlen * 1;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #1eb867;text-align:left'><div style='max-width:260px;width:$dvlen%;height:16px;background:#1eb867'></div></div>";
$tjsta = "<div style='width:260px;height:16px;text-align:left;border:1px solid #1eb867;border-radius:.2rem'><div style='max-width:260px;width:$dvlen%;height:16px;background:#1eb867'></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);
@@ -139,7 +139,7 @@ if ($dojob == '') {
$tjlen = 100;
}
$dvlen = $tjlen * 1;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #1eb867;text-align:left'><div style='max-width:260px;width:$dvlen%;height:16px;background:#1eb867'></div></div>";
$tjsta = "<div style='width:260px;height:16px;text-align:left;border:1px solid #1eb867;border-radius:.2rem'><div style='max-width:260px;width:$dvlen%;height:16px;background:#1eb867'></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}";


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

@@ -79,7 +79,7 @@ $ttime = time() - $sstime;
$ttime = number_format(($ttime / 60), 2);
//返回提示信息
$tjlen = $totalnum > 0 ? ceil(($tjnum / $totalnum) * 100) : 100;
$tjsta = "<div style='width:260px;height:16px;border:1px solid #1eb867;text-align:left'><div style='max-width:260px;width:$tjlen%;height:16px;background:#1eb867'></div></div>";
$tjsta = "<div style='width:260px;height:16px;text-align:left;border:1px solid #1eb867;border-radius:.2rem'><div style='max-width:260px;width:$tjlen%;height:16px;background:#1eb867'></div></div>";
$tjsta .= "<br>到达位置:".($startdd + $pagesize).",用时:$ttime 分钟<br>完成更新文档总数 $tjlen %";
//速度测试
if ($tjnum < $totalnum) {


+ 1
- 1
src/admin/sys_data_replace.php View File

@@ -25,7 +25,7 @@ function __getfields()
else if ($action == 'getfields') {
AjaxHead();
$dsql->GetTableFields($exptable);
echo "<div style='border:1px solid #ababab;background-color:#FEFFF0;margin-top:6px;padding:6px;line-height:160%'>";
echo "<div class='alert alert-warning mb-0'>";
echo "表(".$exptable.")含有的字段:<br>";
while ($row = $dsql->GetFieldObject()) {
echo "<a href=\"javascript:pf('{$row->name}')\">".$row->name."</a>\r\n";


+ 3
- 3
src/admin/templets/sys_data_replace.htm View File

@@ -55,9 +55,9 @@
<tr>
<td colspan="2"><div class="alert alert-info mb-0">程序用于批量替换数据库中某字段的文档,此操作极为危险,请小心使用</div></td>
</tr>
<tr id="datasel">
<tr>
<td width="260">选择数据表与字段:</td>
<td>
<td class="p-0">
<table width="98%" cellspacing="0" cellpadding="0">
<tr>
<td id="tables">
@@ -78,7 +78,7 @@
</td>
</tr>
<tr>
<td id='fields'></td>
<td id="fields"></td>
</tr>
<tr>
<td><input type="text" name="rpfield" id="rpfield" class="biz-input-md">(选择替换字段)</td>


Loading…
Cancel
Save