国内流行的内容管理系统(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.

230 lines
10KB

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