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

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