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

98 lines
4.3KB

  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  4. <title>更新Tag HTML</title>
  5. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  6. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  7. <link href="css/base.css" rel="stylesheet" type="text/css">
  8. </head>
  9. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  10. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA" align="center"
  11. class="table maintable table-bordered mt-3">
  12. <form name="form1" action="makehtml_tag_action_list.php" method="get" target='stafrm'>
  13. <tr>
  14. <td height="28" colspan="2" background='images/tbg.gif'>
  15. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
  16. <tr>
  17. <td width="30%" height="18"><strong>更新Tag HTML</strong> </td>
  18. <td width="70%" align="right">
  19. <a href="tags_main.php" class="btn btn-secondary btn-sm">Tag标签管理</a>
  20. </td>
  21. </tr>
  22. </table>
  23. </td>
  24. </tr>
  25. <tr>
  26. <td width="300" valign="top" bgcolor="#FFFFFF">选择Tag:</td>
  27. <td width="377" valign="top" bgcolor="#FFFFFF">
  28. <?php
  29. $dd = $dsql->GetOne("SELECT ROUND(AVG(total)) as tt FROM `#@__tagindex`"); // 取一个平均
  30. $dd['tt'] = ($dd['tt'] > 5)? $dd['tt'] : 0;
  31. $sql="select * from #@__tagindex where total > {$dd['tt']} order by tag asc";
  32. $dsql->Execute('al',$sql);
  33. echo "<select name='tagid' style='width:300px'>\r\n";
  34. if($tid == 0) echo "<option value='0' selected='1'>更新所有Tag...</option>\r\n";
  35. while($row=$dsql->GetObject('al')){
  36. if($tid > 0 && $tid == $row->id) echo "<option value='".$row->id."' selected='1'>".$row->tag."</option>";
  37. else echo "<option value='".$row->id."'>".$row->tag."</option>";
  38. }
  39. echo "</select>";
  40. ?>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td height="20" valign="top" bgcolor="#FFFFFF">每次最大创建页数:</td>
  45. <td height="20" valign="top" bgcolor="#FFFFFF"><input name="maxpagesize" type="text" id="maxpagesize" value="50"
  46. size="10">
  47. 个文件 </td>
  48. </tr>
  49. <tr>
  50. <td height="20" valign="top" bgcolor="#FFFFFF">说明:</td>
  51. <td height="20" valign="top" bgcolor="#FFFFFF">
  52. 仅更新文档数多于<?php echo $dd['tt'];?>的关键词<br>
  53. 更新所有Tag将会智能更新在[Tag标签管理]中重新获取更新的内容<br>
  54. Tag首页模板文件:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag.htm<br>
  55. Tag列表页模板文件:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/taglist.htm<br>
  56. 生成静态文件后,访问动态文件则直接跳转到静态文件,如果需要动态访问,删除对应文件即可。
  57. </td>
  58. </tr>
  59. <tr>
  60. <td height="20" colspan="2" bgcolor="#FAFAF1" align="center">
  61. <button name="b112" type="button" class="btn btn-secondary btn-sm"
  62. onClick="document.form1.action='makehtml_taglist_action.php';document.form1.submit();">生成Tag HTML</button>
  63. </td>
  64. </tr>
  65. </form>
  66. <tr bgcolor="#F9FCEF">
  67. <td height="20" colspan="2">
  68. <table width="100%" class="table table-borderless">
  69. <tr>
  70. <td width="74%">进行状态: </td>
  71. <td width="26%" align="right">
  72. <script language='javascript'>
  73. function ResizeDiv(obj, ty) {
  74. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  75. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  76. }
  77. </script>
  78. [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
  79. </td>
  80. </tr>
  81. </table>
  82. </td>
  83. </tr>
  84. <tr bgcolor="#FFFFFF">
  85. <td colspan="2" id="mtd">
  86. <div id='mdv' style='width:100%;height:350px;'>
  87. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  88. </div>
  89. </td>
  90. </tr>
  91. </table>
  92. </body>
  93. </html>