Pārlūkot izejas kodu

调整自由目录

tags/6.3.2
叙述、别离 pirms 1 gada
vecāks
revīzija
3265c4767c
7 mainītis faili ar 26 papildinājumiem un 25 dzēšanām
  1. +1
    -1
      src/admin/freelist_add.php
  2. +1
    -1
      src/admin/freelist_edit.php
  3. +1
    -0
      src/admin/freelist_main.php
  4. +12
    -12
      src/admin/templets/freelist_add.htm
  5. +9
    -9
      src/admin/templets/freelist_edit.htm
  6. +1
    -1
      src/admin/templets/templets_one_edit.htm
  7. +1
    -1
      src/install/sql-dfdata.txt

+ 1
- 1
src/admin/freelist_add.php Parādīt failu

@@ -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();


+ 1
- 1
src/admin/freelist_edit.php Parādīt failu

@@ -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();


+ 1
- 0
src/admin/freelist_main.php Parādīt failu

@@ -83,6 +83,7 @@ function GetTagList($dsql,$pageno,$pagesize,$orderby='aid')
<td>
<a href=\"javascript:CreateNote({$row['aid']});\" class='btn btn-light btn-sm'><i class='fa fa-repeat'></i> 更新</a>
<a href=\"javascript:EditNote({$row['aid']});\" class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a>
<a href='$listurl' target='_blank' class='btn btn-light btn-sm'><i class='fa fa-eye'></i> 预览</a>
<a href=\"javascript:DelNote({$row['aid']});\" class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a>
</td>
</tr>";


+ 12
- 12
src/admin/templets/freelist_add.htm Parādīt failu

@@ -30,7 +30,7 @@
</tr>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">freelist功能基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表(如按标题拼音部首排序等)等轻松的实现统一化管理,并且自由列是独立编译的,不与其它模板混在一起,不会影响系统生成网页或浏览速度</div>
<div class="alert alert-info mb-0">freelist标签基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表,且自由列是独立编译的,轻松的实现统一化管理</div>
</td>
</tr>
<tr>
@@ -41,13 +41,13 @@
<label><img src="/static/web/img/g_t2.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="1"></label>
</td>
<td width="25%">
<label><img src="/static/web/img/g_t1.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="2"></label>
<label><img src="/static/web/img/g_t1.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="2" checked></label>
</td>
<td width="25%">
<label><img src="/static/web/img/g_t3.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="3"></label>
</td>
<td>
<label><img src="/static/web/img/g_t4.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="4" checked></label>
<label><img src="/static/web/img/g_t4.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle();" value="4"></label>
</td>
</tr>
</table>
@@ -58,8 +58,8 @@
<td><input type="text" name="title" id="title" class="admin-input-lg"></td>
</tr>
<tr>
<td>列表网页存放目录:</td>
<td><input type="text" name="listdir" id="listdir" value="{cmspath}/a/freelist/" class="admin-input-lg"> {listdir}变量的值</td>
<td>列表存放目录:</td>
<td><input type="text" name="listdir" id="listdir" value="{cmspath}/a/freelist/" class="admin-input-lg"></td>
</tr>
<tr>
<td>目录默认页名称:</td>
@@ -70,7 +70,10 @@
</tr>
<tr>
<td>命名规则:</td>
<td><input type="text" name="namerule" id="namerule" value="{listdir}/index_{listid}_{page}.html" class="admin-input-lg"></td>
<td>
<input type="text" name="namerule" id="namerule" value="{listdir}/index_{listid}_{page}.html" class="admin-input-lg">
<span>{listdir} 列表存放目录</span>
</td>
</tr>
<tr>
<td>列表模板:</td>
@@ -132,14 +135,14 @@
}
echo "</select>";
?>
<label>文档发布时间:<input type="text" name="subday" id="subday2" value="0" class="admin-input-sm"> 天以内(0表示不限)</label>
<label>发布天数:<input type="text" name="subday" id="subday2" value="0" class="admin-input-sm">(0表示不限)</label>
</td>
</tr>
<tr>
<td colspan="2">
<label>每页记录数:<input type="text" name="pagesize" id="pagesize" value="30" class="admin-input-sm"></label>
<label>显示列数: <input type="text" name="col" id="col3" value="1" class="admin-input-sm"></label>
<label>标题长度:<input type="text" name="titlelen" id="titlelen" value="60" class="admin-input-sm">(1字节 = 0.5个中文字)</label>
<label>标题长度:<input type="text" name="titlelen" id="titlelen" value="60" class="admin-input-sm">(1字节=0.5个中文字)</label>
</td>
</tr>
<tr>
@@ -166,14 +169,11 @@
<label><input type="radio" name="order" value="asc"> 由低到高</label>
</td>
</tr>
<tr>
<td colspan="2">循环内的单行记录样式支持字段(底层变量[field:varname/]):id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl,stime(pubdate的&quot;0000-00-00&quot;格式),textlink,typelink,imglink,image普通字段直接用[field:字段名/]表示Pubdate发布时间的调用参数[field:pubdate function=MyDate('Y-m-d H:i:s',@me)/]</td>
</tr>
<tr>
<td colspan="2" class="p-0">
<textarea name="innertext" id="myinnertext" class="admin-textarea-xl"></textarea>
<script>
document.form1.innertext.value = document.getElementById("list4").innerHTML.toLowerCase();
document.form1.innertext.value = document.getElementById("list2").innerHTML.toLowerCase();
</script>
</td>
</tr>


+ 9
- 9
src/admin/templets/freelist_edit.htm Parādīt failu

@@ -28,7 +28,7 @@

<tr>
<td colspan="2">
<div class="alert alert-info mb-0">自由列表说明:freelist功能基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表(如按标题拼音部首排序等)等轻松的实现统一化管理,并且自由列是独立编译的,不与其它模板混在一起,不会影响系统生成网页或浏览速度</div>
<div class="alert alert-info mb-0">freelist标签基本等同于arclist标签,区别是freelist标签支持分页,按自定义排序规则的文档列表,且自由列是独立编译的,轻松的实现统一化管理</div>
</td>
</tr>
<tr>
@@ -36,8 +36,8 @@
<td><input type="text" name="title" id="title" value="<?php echo $row['title']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>列表网页存放目录:</td>
<td><input type="text" name="listdir" id="listdir" value="<?php echo $row['listdir']?>" class="admin-input-lg"> {listdir}变量的值</td>
<td>列表存放目录:</td>
<td><input type="text" name="listdir" id="listdir" value="<?php echo $row['listdir']?>" class="admin-input-lg"></td>
</tr>
<tr>
<td>目录默认页名称:</td>
@@ -48,7 +48,10 @@
</tr>
<tr>
<td>命名规则:</td>
<td><input type="text" name="namerule" id="namerule" value="<?php echo $row['namerule']?>" class="admin-input-lg"></td>
<td>
<input type="text" name="namerule" id="namerule" value="<?php echo $row['namerule']?>" class="admin-input-lg">
<span>{listdir} 列表存放目录</span>
</td>
</tr>
<tr>
<td>列表模板:</td>
@@ -120,14 +123,14 @@
}
echo "</select>";
?>
<label>文档发布时间:<input type="text" name="subday" id="subday" class="admin-input-sm"> value="<?php echo $ctag->GetAtt('subday')?>"> 天以内(0表示不限)</label>
<label>发布天数:<input type="text" name="subday" id="subday" class="admin-input-sm" value="<?php echo $ctag->GetAtt('subday')?>">(0表示不限)</label>
</td>
</tr>
<tr>
<td colspan="2">
<label>每页记录数:<input type="text" name="pagesize" id="pagesize" value="<?php echo $ctag->GetAtt('pagesize')?>" class="admin-input-sm"></label>
<label>显示列数:<input type="text" name="col" id="col" value="<?php $col = $ctag->GetAtt('col'); $v = ( empty($col) ? '1' : $col ); echo $v;?>" class="admin-input-sm"></label>
<label>标题长度:<input type="text" name="titlelen" id="titlelen" value="<?php echo $ctag->GetAtt('titlelen')?>" class="admin-input-sm">(1字节 = 0.5个中文字)</label>
<label>标题长度:<input type="text" name="titlelen" id="titlelen" value="<?php echo $ctag->GetAtt('titlelen')?>" class="admin-input-sm">(1字节=0.5个中文字)</label>
</td>
</tr>
<tr>
@@ -171,9 +174,6 @@
<label><input type="radio" name="order" value="asc" <?php if ($ctag->GetAtt('orderway')=='asc') echo 'checked';?>> 由低到高</label>
</td>
</tr>
<tr>
<td colspan="2">循环内的单行记录样式循环内的单行记录样式:支持字段(底层变量[field:varname/]):id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl,stime(pubdate的&quot;0000-00-00&quot;格式),textlink,typelink,imglink,image普通字段直接用[field:字段名/]表示Pubdate发布时间的调用参数[field:pubdate function=MyDate('Y-m-d H:i:s',@me)/]</td>
</tr>
<tr>
<td colspan="2" class="p-0"><textarea name="innertext" id="myinnertext" class="admin-textarea-xl"><?php echo $ctag->GetInnerText()?></textarea></td>
</tr>


+ 1
- 1
src/admin/templets/templets_one_edit.htm Parādīt failu

@@ -21,7 +21,7 @@
</tr>
<tr>
<td colspan="2">
<div class="alert alert-info mb-0">文档单页管理仅适用于页面较少的情况(建议小于500个页面)标签{dede:field name='body'/}调用</div>
<div class="alert alert-info mb-0">文档单页管理仅适用于页面较少的情况标签{dede:field name='body'/}调用</div>
</td>
</tr>
<tr>


+ 1
- 1
src/install/sql-dfdata.txt Parādīt failu

@@ -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" }<li>[field:imglink/] [field:textlink/] <span class=info><small>日期:</small>[field:pubdate function="getdatemk(@me)"/] <small>浏览:</small>[field:click/] <small>好评:</small>[field:scores/] </span>\t\n<p class=intro>[field:description/]</p></li>{/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" }<li>[field:imglink/] [field:textlink/] <span class=info><small>日期:</small>[field:pubdate function="getdatemk(@me)"/] <small>浏览:</small>[field:click/] <small>好评:</small>[field:scores/] </span>\t\n<p class=intro>[field:description/]</p></li>{/dede:list}','测试','测试文档');
INSERT INTO `#@__member_type` VALUES ('1','50','中级会员半年','100','30');


Notiek ielāde…
Atcelt
Saglabāt