From 3265c4767c021b2e65770b6fde89ed55d0449c86 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: Wed, 20 Mar 2024 17:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=87=AA=E7=94=B1=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/freelist_add.php | 2 +- src/admin/freelist_edit.php | 2 +- src/admin/freelist_main.php | 1 + src/admin/templets/freelist_add.htm | 24 ++++++++++++------------ src/admin/templets/freelist_edit.htm | 18 +++++++++--------- src/admin/templets/templets_one_edit.htm | 2 +- src/install/sql-dfdata.txt | 2 +- 7 files changed, 26 insertions(+), 25 deletions(-) diff --git a/src/admin/freelist_add.php b/src/admin/freelist_add.php index 813dad3c..ffc03939 100644 --- a/src/admin/freelist_add.php +++ b/src/admin/freelist_add.php @@ -37,7 +37,7 @@ if (empty($dopost)) { if (!empty($innertext)) $innertext = stripslashes($innertext); $listTag = "{dede:list $atts}$innertext{/dede:list}"; $listTag = addslashes($listTag); - $inquery = "INSERT INTO `#@__freelist` (`title`,`namerule` , `listdir`,`defaultpage`,`nodefault`,`templet`,`edtime`, `maxpage`,`click`,`listtag`,`keywords`,`description`) VALUES ('$title','$namerule','$listdir','$defaultpage','$nodefault','$templet','$edtime','$maxpage','0','$listTag','$keywords','$description');"; + $inquery = "INSERT INTO `#@__freelist` (`title`,`namerule`,`listdir`,`defaultpage`,`nodefault`,`templet`,`edtime`, `maxpage`,`click`,`listtag`,`keywords`,`description`) VALUES ('$title','$namerule','$listdir','$defaultpage','$nodefault','$templet','$edtime','$maxpage','0','$listTag','$keywords','$description');"; $dsql->ExecuteNoneQuery($inquery); ShowMsg("成功添加一个自由列表", "freelist_main.php"); exit(); diff --git a/src/admin/freelist_edit.php b/src/admin/freelist_edit.php index 5786b796..f3179467 100644 --- a/src/admin/freelist_edit.php +++ b/src/admin/freelist_edit.php @@ -43,7 +43,7 @@ if (empty($dopost)) { if (!empty($innertext)) $innertext = stripslashes($innertext); $listTag = "{dede:list $atts}$innertext{/dede:list}"; $listTag = addslashes($listTag); - $inquery = "UPDATE `#@__freelist` SET title='$title',namerule='$namerule',listdir='$listdir', defaultpage='$defaultpage',nodefault='$nodefault',templet='$templet',edtime='$edtime',`maxpage`='$maxpage',listtag='$listTag',keywords='$keywords',description='$description' WHERE aid='$aid';"; + $inquery = "UPDATE `#@__freelist` SET title='$title',namerule='$namerule',listdir='$listdir',defaultpage='$defaultpage',nodefault='$nodefault',templet='$templet',edtime='$edtime',`maxpage`='$maxpage',listtag='$listTag',keywords='$keywords',description='$description' WHERE aid='$aid';"; $dsql->ExecuteNoneQuery($inquery); ShowMsg("成功修改一个自由列表", "freelist_main.php"); exit(); diff --git a/src/admin/freelist_main.php b/src/admin/freelist_main.php index 0a0ec5e8..eb6e8a08 100644 --- a/src/admin/freelist_main.php +++ b/src/admin/freelist_main.php @@ -83,6 +83,7 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid') 更新 修改 + 预览 删除 "; diff --git a/src/admin/templets/freelist_add.htm b/src/admin/templets/freelist_add.htm index 3e4b76de..3236b4c9 100644 --- a/src/admin/templets/freelist_add.htm +++ b/src/admin/templets/freelist_add.htm @@ -30,7 +30,7 @@ -
freelist功能基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表(如按标题拼音部首排序等)等轻松的实现统一化管理,并且自由列是独立编译的,不与其它模板混在一起,不会影响系统生成网页或浏览速度
+
freelist标签基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表,且自由列是独立编译的,轻松的实现统一化管理
@@ -41,13 +41,13 @@ - + - + @@ -58,8 +58,8 @@ - 列表网页存放目录: - {listdir}变量的值 + 列表存放目录: + 目录默认页名称: @@ -70,7 +70,10 @@ 命名规则: - + + + {listdir} 列表存放目录 + 列表模板: @@ -132,14 +135,14 @@ } echo ""; ?> - + - + @@ -166,14 +169,11 @@ - - 循环内的单行记录样式支持字段(底层变量[field:varname/]):id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl,stime(pubdate的"0000-00-00"格式),textlink,typelink,imglink,image普通字段直接用[field:字段名/]表示Pubdate发布时间的调用参数[field:pubdate function=MyDate('Y-m-d H:i:s',@me)/] - diff --git a/src/admin/templets/freelist_edit.htm b/src/admin/templets/freelist_edit.htm index 6a0cef65..b06a14bb 100644 --- a/src/admin/templets/freelist_edit.htm +++ b/src/admin/templets/freelist_edit.htm @@ -28,7 +28,7 @@ -
自由列表说明:freelist功能基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表(如按标题拼音部首排序等)等轻松的实现统一化管理,并且自由列是独立编译的,不与其它模板混在一起,不会影响系统生成网页或浏览速度
+
freelist标签基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表,且自由列是独立编译的,轻松的实现统一化管理
@@ -36,8 +36,8 @@ - 列表网页存放目录: - {listdir}变量的值 + 列表存放目录: + 目录默认页名称: @@ -48,7 +48,10 @@ 命名规则: - + + + {listdir} 列表存放目录 + 列表模板: @@ -120,14 +123,14 @@ } echo ""; ?> - + - + @@ -171,9 +174,6 @@ - - 循环内的单行记录样式循环内的单行记录样式:支持字段(底层变量[field:varname/]):id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl,stime(pubdate的"0000-00-00"格式),textlink,typelink,imglink,image普通字段直接用[field:字段名/]表示Pubdate发布时间的调用参数[field:pubdate function=MyDate('Y-m-d H:i:s',@me)/] - diff --git a/src/admin/templets/templets_one_edit.htm b/src/admin/templets/templets_one_edit.htm index 88d52679..37c5e603 100644 --- a/src/admin/templets/templets_one_edit.htm +++ b/src/admin/templets/templets_one_edit.htm @@ -21,7 +21,7 @@ -
文档单页管理仅适用于页面较少的情况(建议小于500个页面)标签{dede:field name='body'/}调用
+
文档单页管理仅适用于页面较少的情况,标签{dede:field name='body'/}调用
diff --git a/src/install/sql-dfdata.txt b/src/install/sql-dfdata.txt index 398e055e..18655ccf 100755 --- a/src/install/sql-dfdata.txt +++ b/src/install/sql-dfdata.txt @@ -522,7 +522,7 @@ INSERT INTO `#@__flinktype` VALUES ('1','综合网站'), ('7','论坛类'), ('8','其它类型'); -INSERT INTO `#@__freelist` VALUES ('1','测试文档','{listdir}/index_{listid}_{page}.html','{cmspath}/freelist/','index.html','1','{style}/list_free.htm','1289712633','100','0','{dede:list pagesize="30" col="1" titlelen="60" orderby="pubdate" orderway="desc" typeid="1" channel="1" }
  • [field:imglink/] [field:textlink/] 日期:[field:pubdate function="getdatemk(@me)"/] 浏览:[field:click/] 好评:[field:scores/] \t\n

    [field:description/]

  • {/dede:list}','测试','测试文档'); +INSERT INTO `#@__freelist` VALUES ('1','测试文档','{listdir}/index_{listid}_{page}.html','{cmspath}/a/freelist/','index.html','1','{style}/list_free.htm','1289712633','100','0','{dede:list pagesize="30" col="1" titlelen="60" orderby="pubdate" orderway="desc" typeid="1" channel="1" }
  • [field:imglink/] [field:textlink/] 日期:[field:pubdate function="getdatemk(@me)"/] 浏览:[field:click/] 好评:[field:scores/] \t\n

    [field:description/]

  • {/dede:list}','测试','测试文档'); INSERT INTO `#@__member_type` VALUES ('1','50','中级会员半年','100','30');