国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

289 rindas
16KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>修改自由列表</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script language="javascript" src="../static/web/js/jquery.min.js"></script>
  10. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  11. <script src="js/main.js" language="javascript"></script>
  12. <script language="JavaScript">
  13. function ChangeListStyle() {
  14. var itxt = document.getElementById("myinnertext");
  15. var myems = document.getElementsByName("liststyle");
  16. if (myems[0].checked) itxt.value = document.getElementById("list1").innerHTML;
  17. else if (myems[1].checked) itxt.value = document.getElementById("list2").innerHTML;
  18. else if (myems[2].checked) itxt.value = document.getElementById("list3").innerHTML;
  19. else if (myems[3].checked) itxt.value = document.getElementById("list4").innerHTML;
  20. itxt.value = itxt.value.replace("<BR>", "<br>");
  21. itxt.value = itxt.value.toLowerCase();
  22. }
  23. function ShowHide(objname) {
  24. var obj = document.getElementById(objname);
  25. if (obj.style.display == "block" || obj.style.display == "")
  26. obj.style.display = "none";
  27. else
  28. obj.style.display = "block";
  29. }
  30. function SelectTemplets(fname) {
  31. var pos = GetWinPos(800,600);
  32. window.open("./dialog/select_templets.php?&activepath=<?php echo urlencode($cfg_templets_dir)?>&f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  33. }
  34. function CheckSubmit() {
  35. if (document.form1.title.value == "") {
  36. ShowMsg("自由列表标题标题不能为空");
  37. document.form1.title.focus();
  38. return false;
  39. }
  40. return true;
  41. }
  42. </script>
  43. <link rel="stylesheet" href="css/codemirror.css">
  44. <script type="text/javascript" src="js/codemirror.js"></script>
  45. <script type="text/javascript" src="js/mode/xml/xml.js"></script>
  46. <script type="text/javascript" src="js/mode/javascript/javascript.js"></script>
  47. <script type="text/javascript" src="js/mode/css/css.js"></script>
  48. <script type="text/javascript" src="js/mode/htmlmixed/htmlmixed.js"></script>
  49. </head>
  50. <body background="../static/web/img/allbg.gif" leftmargin="8" topmargin="8">
  51. <center>
  52. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3">
  53. <form action="freelist_edit.php" method="post" name="form1" onSubmit="return CheckSubmit();">
  54. <input type="hidden" name="dopost" value="save">
  55. <input type="hidden" name="aid" value="<?php echo $row['aid']?>">
  56. <tr>
  57. <td height="26" background="../static/web/img/tbg.gif">
  58. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table-borderless">
  59. <tr>
  60. <td width="35%" height="18" align="left" style="padding-left:10px"><a href="freelist_main.php">自由列表管理</a> &gt; 修改自由列表</td>
  61. <td width="65%" align="right"></td>
  62. </tr>
  63. </table>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="265" valign="top" bgcolor="#ffffff">
  68. <table width="99%" border="0" align="right" cellpadding="0" cellspacing="1" class="table-borderless">
  69. <tr>
  70. <td height="56">
  71. <table width="100%" border="0" cellspacing="1" cellpadding="0">
  72. <tr>
  73. <td height="26" colspan="2" align="left"><img src="../static/web/img/help.gif">自由列表标记的说明:自由列表标记(freelist)的功能基本等同于arclist标记,区别是freelist标记支持分页,这让生成Google
  74. Map、生成按自定义排序规则的文章列表(如按标题拼音部首排序等)等轻松的实现统一化管理,并且自由列是独立编译的,不与其它模板混在一起,这样不会影响系统生成HTML或访问速度</td>
  75. </tr>
  76. <tr>
  77. <td width="16%" height="26" align="left">自由列表标题:</td>
  78. <td width="84%" align="left"><input name="title" type="text" id="title" style="width:35%" value="<?php echo $row['title']?>"></td>
  79. </tr>
  80. <tr>
  81. <td height="26" align="left">列表HTML存放目录:</td>
  82. <td align="left"><input name="listdir" type="text" id="listdir" style="width:35%" value="<?php echo $row['listdir']?>">
  83. {listdir}变量的值</td>
  84. </tr>
  85. <tr>
  86. <td height="26" align="left">目录默认页名称:</td>
  87. <td align="left"><input name="defaultpage" type="text" id="defaultpage" style="width:35%" value="<?php echo $row['defaultpage']?>">
  88. <label><input name="nodefault" type="checkbox" id="nodefault" value="1"
  89. <?php if($row['nodefault']==1) echo " checked"; ?>>
  90. 不使用目录默认主页</label>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td height="26" align="left">命名规则:</td>
  95. <td align="left"><input name="namerule" type="text" id="namerule" style="width:35%" value="<?php echo $row['namerule']?>"></td>
  96. </tr>
  97. <tr>
  98. <td height="36" align="left">列表模板:</td>
  99. <td align="left"><input name="templet" type="text" id="templet" style="width:300px" value="<?php echo $row['templet']?>">
  100. <button type="button" name="set4" style="width:60px" onClick="SelectTemplets('form1.templet');" class="btn btn-success btn-sm">浏览</button></td>
  101. </tr>
  102. <tr>
  103. <td height="30" align="left">最大列出页数:</td>
  104. <td align="left">
  105. <input name="maxpage" type="text" id="maxpage" style="width:100px" value="<?php echo $row['maxpage']; ?>">
  106. </td>
  107. </tr>
  108. <tr>
  109. <td height="26" align="left"></td>
  110. <td align="left">以下选项用于模板里的 &lt;meta name=&quot;keywords|description&quot;content=&quot;&quot;&gt; 描述</td>
  111. </tr>
  112. <tr>
  113. <td height="26" align="left">关键词:</td>
  114. <td align="left"><input name="keywords" type="text" id="keywords" style="width:60%" value="<?php echo $row['keywords']; ?>"></td>
  115. </tr>
  116. <tr>
  117. <td height="26" align="left">列表描述:</td>
  118. <td align="left"><textarea name="description" id="description" style="width:60%;height:50px"><?php echo $row['description']?></textarea></td>
  119. </tr>
  120. </table>
  121. </td>
  122. </tr>
  123. <tr>
  124. <td height="26" align="left" style="background:#FBFCE2;"><img src="../static/web/img/file_tt.gif">列表样式:(这里是定义自由列表模板里的{dede:freelist/}标记的样式和属性)</td>
  125. </tr>
  126. <tr>
  127. <td height="26" align="left">
  128. 限定栏目:
  129. <?php
  130. $typeid = $ctag->GetAtt('typeid');
  131. echo "<select name='typeid' style='width:100px'>\r\n";
  132. echo "<option value='0'>不限栏目</option>\r\n";
  133. $dsql->SetQuery("Select id,typename, channeltype From #@__arctype");
  134. $dsql->Execute();
  135. while($lrow = $dsql->GetObject()){
  136. $disable = '';
  137. if($lrow->channeltype < -1)
  138. {
  139. $disable = 'disabled';
  140. }
  141. if($lrow->id==$typeid) echo "<option value='{$lrow->id}' selected $disable>{$lrow->typename}</option>\r\n";
  142. else echo "<option value='{$lrow->id}' $disable>{$lrow->typename}</option>\r\n";
  143. }
  144. echo "</select>";
  145. ?></td>
  146. </tr>
  147. <tr>
  148. <td height="26" align="left"> 限定频道:
  149. <?php
  150. $channel = $ctag->GetAtt('channel');
  151. echo "<select name='channel' style='width:100px'><option value='0'>不限</option>\r\n";
  152. $dsql->SetQuery("Select id,typename From #@__channeltype where id>0");
  153. $dsql->Execute();
  154. while($nrow = $dsql->GetObject())
  155. {
  156. if($nrow->id==$channel) echo "<option value='{$nrow->id}' selected>{$nrow->typename}</option>\r\n";
  157. else echo "<option value='{$nrow->id}'>{$nrow->typename}</option>\r\n";
  158. }
  159. echo "</select>";
  160. ?>
  161.  (如果限定了频道内容模型,则允许使用附加表指定的列表字段作为底层变量)</td>
  162. </tr>
  163. <tr>
  164. <td height="26" align="left">附加属性:
  165. <?php
  166. $att = $ctag->GetAtt('att');
  167. echo "<select name='att' style='width:100px'>\r\n";
  168. echo "<option value='0'>不限</option>\r\n";
  169. $dsql->SetQuery("Select * From #@__arcatt");
  170. $dsql->Execute();
  171. while($nrow = $dsql->GetObject())
  172. {
  173. if($att==$nrow->att)
  174. {
  175. echo "<option value='{$nrow->att}' selected>{$nrow->attname}</option>\r\n";
  176. }
  177. else
  178. {
  179. echo "<option value='{$nrow->att}'>{$nrow->attname}</option>\r\n";
  180. }
  181. }
  182. echo "</select>";
  183. ?>
  184. 文档发布时间:
  185. <input name="subday" type="text" id="subday" size="6" value="<?php echo $ctag->GetAtt('subday')?>">
  186. 天以内 (0 表示不限)</td>
  187. </tr>
  188. <tr>
  189. <td height="26" align="left">每页记录数:
  190. <input name="pagesize" type="text" id="pagesize" value="<?php echo $ctag->GetAtt('pagesize')?>"
  191. size="4">
  192.  显示列数:
  193. <input name="col" type="text" id="col" value="<?php $col = $ctag->GetAtt('col'); $v = ( empty($col) ? '1' : $col ); echo $v; ?>"
  194. size="4">
  195. 标题长度:
  196. <input name="titlelen" type="text" id="titlelen" value="<?php echo $ctag->GetAtt('titlelen')?>"
  197. size="4">
  198. (1 字节 = 0.5个中文字)</td>
  199. </tr>
  200. <tr>
  201. <td height="26" align="left">
  202. <?php
  203. $setype = $ctag->GetAtt('type');
  204. if($setype=='') $setype = 'X';
  205. ?>
  206. 高级筛选:
  207. <label><input name="types[]" type="checkbox" id="type1" value="image"
  208. <?php if(preg_match("#image#i",$setype)) echo ' checked'; ?>>
  209. 带缩略图</label>
  210. <label><input name="types[]" type="checkbox" id="type2" value="commend"
  211. <?php if(preg_match("#commend#i", $setype)) echo ' checked'; ?>>
  212. 推荐</label>
  213. <label><input name="types[]" type="checkbox" id="type3" value="spec" class="inputbut"
  214. <?php if(preg_match("#spec#i", $setype)) echo ' checked'; ?>>
  215. 专题</label> 关键词:
  216. <input name="keywordarc" type="text" id="keywordarc" value="<?php echo $ctag->GetAtt('keyword')?>">
  217. (&quot;,&quot;逗号分开)
  218. </td>
  219. </tr>
  220. <tr>
  221. <td height="26" align="left">排列顺序:
  222. <?php
  223. $orderby = $ctag->GetAtt('orderby');
  224. $sorta = "sortrank,置顶权限值;pubdate,发布时间;senddate,录入时间;click,点击量;id,文档ID,lastpost,最后评论时间;postnum,评论总数;rand,随机获取";
  225. $sortas = explode(';',$sorta);
  226. foreach($sortas as $v)
  227. {
  228. $vs = explode(',',$v);
  229. $vs[0] = trim($vs[0]);
  230. $sortarrs[$vs[0]] = $vs[1];
  231. }
  232. ?>
  233. <select name="orderby" id="orderby" style="width:120">
  234. <?php
  235. echo "<option value=\"$orderby\" selected>{$sortarrs[$orderby]}</option>\r\n";
  236. ?>
  237. <option value="sortrank">置顶权限值</option>
  238. <option value="pubdate">发布时间</option>
  239. <option value="senddate">录入时间</option>
  240. <option value="click">点击量</option>
  241. <option value="id">文档ID</option>
  242. <option value="lastpost">最后评论时间</option>
  243. <option value="postnum">评论总数</option>
  244. </select>
  245.  
  246. <label><input name="order" type="radio" value="desc"
  247. <?php if($ctag->GetAtt('orderway')=='desc') echo " checked"; ?>>
  248. 由高到低</label>
  249. <label><input type="radio" name="order" value="asc"
  250. <?php if($ctag->GetAtt('orderway')=='asc') echo " checked"; ?>>
  251. 由低到高</label></td>
  252. </tr>
  253. <tr>
  254. <td height="26" align="left">循环内的单行记录样式(InnerText):[<img src="../static/web/img/help.gif"><a
  255. href='javascript:ShowHide("innervar");'>底层变量field参考</a>]</td>
  256. </tr>
  257. <tr>
  258. <td height="80" align="left">
  259. <textarea name="innertext" cols="80" rows="6" id="myinnertext" style="width:80%;height:120px"><?php echo $ctag->GetInnerText()?></textarea>
  260. </td>
  261. </tr>
  262. <tr>
  263. <td height="80" align="left" id='innervar' style="display:none">
  264. <span><img src="../static/web/img/help.gif">支持字段(底层变量[field:varname/]):id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl,<br>stime(pubdate 的&quot;0000-00-00&quot;格式),textlink,typelink,imglink,image普通字段直接用[field:字段名/]表示<br>·Pubdate发布时间的调用参数 [field:pubdate function=MyDate('Y--%d H:i:s',@me)/]</span>
  265. </td>
  266. </tr>
  267. <tr>
  268. <td height="50" align="left"> &nbsp;
  269. <button name="Submit2" type="submit" id="Submit2" class="btn btn-success">保存一个列表</button>
  270. </td>
  271. </tr>
  272. </table>
  273. </td>
  274. </tr>
  275. </form>
  276. <tr>
  277. <td valign="top" bgcolor="#f8f8f8"></td>
  278. </tr>
  279. </table>
  280. </center>
  281. <script type="text/javascript">
  282. var editor = CodeMirror.fromTextArea(document.getElementById('myinnertext'), {
  283. lineNumbers: true,
  284. lineWrapping: true,
  285. mode: 'text/html'
  286. });
  287. </script>
  288. </body>
  289. </html>