国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
8.3KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>智能标记向导</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <link rel="stylesheet" href="css/codemirror.css">
  11. <script src="../static/web/js/jquery.min.js"></script>
  12. <script src="js/codemirror.js"></script>
  13. <script src="js/mode/xml/xml.js"></script>
  14. <script src="js/mode/javascript/javascript.js"></script>
  15. <script src="js/mode/css/css.js"></script>
  16. <script src="js/mode/htmlmixed/htmlmixed.js"></script>
  17. <script src="js/main.js"></script>
  18. </head>
  19. <body>
  20. <span id="list1" style="display:none">[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])</span>
  21. <span id="list2" style="display:none">[field:typelink/] [field:textlink/]</span>
  22. <span id="list3" style="display:none">
  23. <table width="98%">
  24. <tr>
  25. <td align="center">[field:imglink/]</td>
  26. </tr>
  27. <tr>
  28. <td align="center">[field:textlink/]</td>
  29. </tr>
  30. </table>
  31. </span>
  32. <span id="list4" style="display:none">
  33. <table width="100%">
  34. <tr>
  35. <td width="30%" rowspan="2" align="center">[field:imglink/]</td>
  36. <td width="70%"><a href="[field:filename/]">[field:title/]</a></td>
  37. </tr>
  38. <tr>
  39. <td>[field:info/]</td>
  40. </tr>
  41. </table>
  42. </span>
  43. <form action="mytag_tag_guide_ok.php" method="post" target="stafrm" name="form1">
  44. <input type="hidden" name="dopost" value="gettag">
  45. <table align="center" class="table maintable my-3">
  46. <tr>
  47. <td bgcolor="#f5f5f5"><a href="mytag_main.php">自定义宏标记</a> &gt; 智能标记向导</td>
  48. </tr>
  49. <tr>
  50. <td class="p-0">
  51. <table class="table table-borderless">
  52. <tr>
  53. <td width="25%">
  54. <label><img src="../static/web/img/g_t2.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="1" checked="1"></label>
  55. </td>
  56. <td width="25%">
  57. <label><img src="../static/web/img/g_t1.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="2"></label>
  58. </td>
  59. <td width="25%">
  60. <label><img src="../static/web/img/g_t3.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="3"></label>
  61. </td>
  62. <td>
  63. <label><img src="../static/web/img/g_t4.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="4"></label>
  64. </td>
  65. </tr>
  66. </table>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. <span>调用栏目:</span>
  72. <?php
  73. $tl = new TypeLink(0);
  74. $typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1);
  75. echo "<select name='typeid' class='admin-input-sm'>";
  76. echo "<option value='0' selected>不限栏目</option>";
  77. echo $typeOptions;
  78. echo "</select>";
  79. ?>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>
  84. <span>限定栏目:</span>
  85. <?php
  86. echo "<select name='channel' class='admin-input-sm'>";
  87. echo "<option value='0' selected>不限栏目</option>";
  88. $tl->dsql->SetQuery("Select id,typename From `#@__channeltype` where id>0");
  89. $tl->dsql->Execute();
  90. while($row = $tl->dsql->GetObject())
  91. {
  92. echo "<option value='{$row->id}'>{$row->typename}</option>";
  93. }
  94. echo "</select>";
  95. ?>
  96. <span>附加属性:</span>
  97. <?php
  98. echo "<select name='att' class='admin-input-sm'>";
  99. echo "<option value='0' selected>不限</option>";
  100. $tl->dsql->SetQuery("SELECT * FROM `#@__arcatt`");
  101. $tl->dsql->Execute();
  102. while($row = $tl->dsql->GetObject())
  103. {
  104. echo "<option value='{$row->att}'>{$row->attname}</option>";
  105. }
  106. echo "</select>";
  107. ?>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>
  112. <label>调用记录条数:<input type="text" name="row" id="row" value="10" class="admin-input-xs"></label>
  113. <label>显示列数:<input type="text" name="col" id="col" value="1" class="admin-input-xs"></label>
  114. <label>标题长度:<input type="text" name="titlelen" id="titlelen" value="24" class="admin-input-xs"></label>
  115. <span>(1字节=0.5个中文字)</span>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. <span>高级筛选:</span>
  121. <label><input type="checkbox" name="types[]" id="type[]" value="image"> 带缩略图</label>
  122. <label><input type="checkbox" name="types[]" id="type[]" value="commend"> 推荐</label>
  123. <label><input type="checkbox" name="types[]" id="type[]" value="spec"> 专题</label>
  124. <label>关键词:<input type="text" name="keyword" id="keyword" class="admin-input-sm"></label>
  125. <span>(英文逗号分开)</span>
  126. </td>
  127. </tr>
  128. <tr>
  129. <td>
  130. <span>排列顺序:</span>
  131. <select name="orderby" id="orderby" class="admin-input-sm">
  132. <option value="sortrank">置顶权限值</option>
  133. <option value="pubdate" selected>发布时间</option>
  134. <option value="senddate">录入时间</option>
  135. <option value="click">点击量</option>
  136. <option value="id">文档id</option>
  137. <option value="lastpost">最后评论时间</option>
  138. <option value="scores">评论积分</option>
  139. <option value="rand">随机获取</option>
  140. </select>
  141. <label><input type="radio" name="order" value="desc" checked="1"> 由高到低</label>
  142. <label><input type="radio" name="order" value="asc"> 由低到高</label>
  143. </td>
  144. </tr>
  145. <tr>
  146. <td>
  147. <label>文档发布时间:<input type="text" name="subday" id="subday" value="0" class="admin-input-xs"> 天以内</label>
  148. <span>(0表示不限)</span>
  149. </td>
  150. </tr>
  151. <tr>
  152. <td>
  153. <span>提取特定文档:</span>
  154. <button type="button" class="btn btn-success btn-sm" id="selarc" onclick="SelectArcList('form1.arcid');">选择节点文档</button>
  155. <textarea name="arcid" id="arcid" class="admin-textarea-sm"></textarea>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td>单条记录样式(InnerText):</td>
  160. </tr>
  161. <tr>
  162. <td class="p-0"><textarea name="innertext" id="myinnertext" class="admin-textarea-xl">[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br></textarea></td>
  163. </tr>
  164. <tr>
  165. <td>循环内的单行记录样式(InnerText)支持字段(底层变量[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>
  166. </tr>
  167. <tr>
  168. <td bgcolor="#f5f5f5" align="center">
  169. <button type="button" name="Submit1" id="Submit1" class="btn btn-success btn-sm" onclick="DoSubmit('gettag')">生成模板调用标记</button>
  170. <button type="button" name="Submit2" id="Submit2" class="btn btn-success btn-sm" onclick="DoSubmit('savetag')">生成模板调用标签</button>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td>
  175. <div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  176. </td>
  177. </tr>
  178. </table>
  179. </form>
  180. <script>
  181. var editor = CodeMirror.fromTextArea(document.getElementById('myinnertext'), {
  182. lineNumbers: true,
  183. lineWrapping: true,
  184. mode: 'text/html'
  185. });
  186. function ChangeListStyle() {
  187. var itxt = document.getElementById("myinnertext");
  188. var myems = document.getElementsByName("liststyle");
  189. if (myems[0].checked) editor.setValue(document.getElementById("list1").innerHTML);
  190. else if (myems[1].checked) editor.setValue(document.getElementById("list2").innerHTML);
  191. else if (myems[2].checked) editor.setValue(document.getElementById("list3").innerHTML);
  192. else if (myems[3].checked) editor.setValue(document.getElementById("list4").innerHTML);
  193. itxt.value = itxt.value.replace("<br>", "<br>");
  194. itxt.value = itxt.value.toLowerCase();
  195. }
  196. function DoSubmit(j) {
  197. document.form1.dopost.value = j;
  198. document.form1.submit();
  199. }
  200. function SelectArcList(fname) {
  201. var pos = GetWinPos(800,600);
  202. window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  203. }
  204. </script>
  205. </body>
  206. </html>