| @@ -79,7 +79,7 @@ if ($dojob == '') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| $dvlen = $tjlen * 1; | $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 %"; | $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}"; | $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); | ShowMsg($tjsta, $nurl, 0, 500); | ||||
| @@ -139,7 +139,7 @@ if ($dojob == '') { | |||||
| $tjlen = 100; | $tjlen = 100; | ||||
| } | } | ||||
| $dvlen = $tjlen * 1; | $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 %"; | $tjsta .= "<br>完成处理文档总数 $tjlen %"; | ||||
| if ($tjnum < $totalnum) { | 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}"; | $nurl = "article_description_main.php?totalnum=$totalnum&startdd=".($startdd + $pagesize)."&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}"; | ||||
| @@ -79,7 +79,7 @@ $ttime = time() - $sstime; | |||||
| $ttime = number_format(($ttime / 60), 2); | $ttime = number_format(($ttime / 60), 2); | ||||
| //返回提示信息 | //返回提示信息 | ||||
| $tjlen = $totalnum > 0 ? ceil(($tjnum / $totalnum) * 100) : 100; | $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 %"; | $tjsta .= "<br>到达位置:".($startdd + $pagesize).",用时:$ttime 分钟<br>完成更新文档总数 $tjlen %"; | ||||
| //速度测试 | //速度测试 | ||||
| if ($tjnum < $totalnum) { | if ($tjnum < $totalnum) { | ||||
| @@ -25,7 +25,7 @@ function __getfields() | |||||
| else if ($action == 'getfields') { | else if ($action == 'getfields') { | ||||
| AjaxHead(); | AjaxHead(); | ||||
| $dsql->GetTableFields($exptable); | $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>"; | echo "表(".$exptable.")含有的字段:<br>"; | ||||
| while ($row = $dsql->GetFieldObject()) { | while ($row = $dsql->GetFieldObject()) { | ||||
| echo "<a href=\"javascript:pf('{$row->name}')\">".$row->name."</a>\r\n"; | echo "<a href=\"javascript:pf('{$row->name}')\">".$row->name."</a>\r\n"; | ||||
| @@ -55,9 +55,9 @@ | |||||
| <tr> | <tr> | ||||
| <td colspan="2"><div class="alert alert-info mb-0">程序用于批量替换数据库中某字段的文档,此操作极为危险,请小心使用</div></td> | <td colspan="2"><div class="alert alert-info mb-0">程序用于批量替换数据库中某字段的文档,此操作极为危险,请小心使用</div></td> | ||||
| </tr> | </tr> | ||||
| <tr id="datasel"> | |||||
| <tr> | |||||
| <td width="260">选择数据表与字段:</td> | <td width="260">选择数据表与字段:</td> | ||||
| <td> | |||||
| <td class="p-0"> | |||||
| <table width="98%" cellspacing="0" cellpadding="0"> | <table width="98%" cellspacing="0" cellpadding="0"> | ||||
| <tr> | <tr> | ||||
| <td id="tables"> | <td id="tables"> | ||||
| @@ -78,7 +78,7 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td id='fields'></td> | |||||
| <td id="fields"></td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td><input type="text" name="rpfield" id="rpfield" class="biz-input-md">(选择替换字段)</td> | <td><input type="text" name="rpfield" id="rpfield" class="biz-input-md">(选择替换字段)</td> | ||||