From c155326dc2c8c1a57b85573ead8344213ba51ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <41963737+Vaecq@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:32:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/tags_main.php | 14 ++++---------- src/admin/templets/tags_main.htm | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/admin/tags_main.php b/src/admin/tags_main.php index 924e29fa..3091fcd7 100644 --- a/src/admin/tags_main.php +++ b/src/admin/tags_main.php @@ -30,9 +30,7 @@ if (empty($action)) { $dlist->SetSource($query); $dlist->Display(); exit(); -} -//function update() -else if ($action == 'update') { +} else if ($action == 'update') { $tid = (empty($tid) ? 0 : intval($tid)); $count = (empty($count) ? 0 : intval($count)); if (empty($tid)) { @@ -43,9 +41,7 @@ else if ($action == 'update') { $dsql->ExecuteNoneQuery($query); ShowMsg("成功保存标签点击信息", 'tags_main.php'); exit(); -} -//function delete() -else if ($action == 'delete') { +} else if ($action == 'delete') { if (@is_array($ids)) { $stringids = implode(',', $ids); } else if (!empty($ids)) { @@ -76,9 +72,7 @@ else if ($action == 'delete') { $now = time(); $dsql->ExecuteNoneQuery("UPDATE `#@__tagindex` SET title='{$title}',keywords='{$kw}',`description`='{$des}',`uptime`='{$now}' WHERE id = {$tid}"); echo json_encode(array('code' => 200, 'result' => true)); -} -//function fetch() -else if ($action == 'fetch') { +} else if ($action == 'fetch') { $wheresql = ''; $start = isset($start) && is_numeric($start) ? $start : 0; $where = array(); @@ -127,7 +121,7 @@ else if ($action == 'fetch') { $dsql->ExecuteNoneQuery($query); $tid = $dsql->GetLastID(); } - $query = "REPLACE INTO `#@__taglist` (`tid`,`aid`,`typeid`,`arcrank`,`tag`) VALUES ('$tid', '$aid', '$typeid','$arcrank','$keyword'); "; + $query = "REPLACE INTO `#@__taglist` (`tid`,`aid`,`typeid`,`arcrank`,`tag`) VALUES ('$tid','$aid','$typeid','$arcrank','$keyword'); "; $dsql->ExecuteNoneQuery($query); } } diff --git a/src/admin/templets/tags_main.htm b/src/admin/templets/tags_main.htm index a2fd86ed..bf2fd70b 100644 --- a/src/admin/templets/tags_main.htm +++ b/src/admin/templets/tags_main.htm @@ -55,7 +55,7 @@ {dede:field.id/} {dede:field.tag/} - +