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 = "
";
-}
\ 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 @@