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

179 lines
8.0KB

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