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

204 lines
9.4KB

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