From 069bc0caec36c7ec6fb6c61e2e2e3e8c0a64bdc2 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?= Date: Sun, 22 Dec 2024 19:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/freelist_main.php | 3 ++- src/admin/search_keywords_main.php | 9 +++++---- src/admin/templets/freelist_main.htm | 14 ++++++-------- src/admin/templets/search_keywords_main.htm | 20 ++++++++------------ 4 files changed, 21 insertions(+), 25 deletions(-) diff --git a/src/admin/freelist_main.php b/src/admin/freelist_main.php index e06af95e..5d1051e3 100644 --- a/src/admin/freelist_main.php +++ b/src/admin/freelist_main.php @@ -92,4 +92,5 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid') echo $line; } echo ""; -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/src/admin/search_keywords_main.php b/src/admin/search_keywords_main.php index 7e226a10..1bc46c7a 100644 --- a/src/admin/search_keywords_main.php +++ b/src/admin/search_keywords_main.php @@ -61,8 +61,8 @@ function GetKeywordList($dsql, $pageno, $pagesize, $orderby = 'aid') { global $cfg_phpurl; $start = ($pageno - 1) * $pagesize; - $printhead = "
- + $printhead = " +
@@ -85,7 +85,7 @@ function GetKeywordList($dsql, $pageno, $pagesize, $orderby = 'aid') while ($row = $dsql->GetArray()) { $line = " - + @@ -108,4 +108,5 @@ function GetKeywordList($dsql, $pageno, $pagesize, $orderby = 'aid') "; echo "
{$row['aid']}
"; -} \ No newline at end of file +} +?> \ No newline at end of file diff --git a/src/admin/templets/freelist_main.htm b/src/admin/templets/freelist_main.htm index c0b2a4f9..429882da 100644 --- a/src/admin/templets/freelist_main.htm +++ b/src/admin/templets/freelist_main.htm @@ -22,7 +22,7 @@ orderby = ordertype; var listArea = $Obj('rslist'); var errMsg = "重新加载列表"; - fetch("freelist_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype + addget).then(resp=>resp.text()).then((d) => { + fetch("freelist_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype + addget).then(resp => resp.text()).then((d) => { listArea.innerHTML = d; }).catch((error) => { listArea.innerHTML = errMsg; @@ -79,8 +79,7 @@ if (i == pageno) ahtml += "
  • " + i + "
  • "; else ahtml += "
  • " + i + "
  • "; } - } - else if (pagenum < listsize) { + } else if (pagenum < listsize) { for (i = 1; i <= pagenum; i++) { if (i == pageno) ahtml += "
  • " + i + "
  • "; else ahtml += "
  • " + i + "
  • "; @@ -119,11 +118,10 @@
    自由列表管理
    -
    - -
    - -
    +
    +
    +
    +
    diff --git a/src/admin/templets/search_keywords_main.htm b/src/admin/templets/search_keywords_main.htm index 2210c6a1..3a464fab 100644 --- a/src/admin/templets/search_keywords_main.htm +++ b/src/admin/templets/search_keywords_main.htm @@ -21,7 +21,7 @@ orderby = ordertype; var listArea = $Obj('rslist'); var errMsg = "重新加载列表"; - fetch("search_keywords_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype).then(resp=>{ + fetch("search_keywords_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype).then(resp => { if (resp.ok) { return resp.text() } @@ -45,9 +45,7 @@ var kws = $Obj('spwords' + nid).value; var ct = $Obj('count' + nid).value; var errMsg = "重新加载列表"; - + const formData = new FormData() formData.append('dopost', 'update'); formData.append('aid', nid); @@ -82,7 +80,7 @@ var pagenum = Math.ceil(totalrow / pagesize); if (pagenum <= pageno) pageno = pagenum; var errMsg = "重新加载列表"; - fetch("search_keywords_main.php?dopost=del&aid=" + nid + "&pageno=" + pageno + "&orderby=" + orderby).then(resp=>{ + fetch("search_keywords_main.php?dopost=del&aid=" + nid + "&pageno=" + pageno + "&orderby=" + orderby).then(resp => { if (resp.ok) { return resp.text() } @@ -111,8 +109,7 @@ if (i == pageno) ahtml += "
  • " + i + "
  • "; else ahtml += "
  • " + i + "
  • "; } - } - else if (pagenum < listsize) { + } else if (pagenum < listsize) { for (i = 1; i <= pagenum; i++) { if (i == pageno) ahtml += "
  • " + i + "
  • "; else ahtml += "
  • " + i + "
  • "; @@ -141,11 +138,10 @@
    搜索关键词管理
    -
    - -
    - -
    +
    +
    +
    +