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

100 lines
4.3KB

  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. <script src="../static/web/js/jquery.min.js"></script>
  10. <script src="js/main.js" language="javascript"></script>
  11. <script language="javascript">
  12. function SelectTemplets(fname) {
  13. var pos = GetWinPos(800,600);
  14. window.open("./dialog/select_templets.php?&activepath=<?php echo urlencode($cfg_templets_dir.'/plus')?>&f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  15. }
  16. </script>
  17. </head>
  18. <body>
  19. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  20. <form name="form1" action="makehtml_js_action.php" method="get" target='stafrm'>
  21. <tr>
  22. <td height="26" colspan="2" background="../static/web/img/tbg.gif">
  23. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  24. <tr>
  25. <td width="30%" style="padding-left:10px">更新脚本</td>
  26. <td width="70%" align="right"><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td>
  27. </tr>
  28. </table>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td width="260" height="26">选择栏目:</td>
  33. <td height="26">
  34. <?php
  35. if(empty($cid)) $cid="0";
  36. $tl = new TypeLink($cid);
  37. $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
  38. echo "<select name='typeid' style='width:260px'>";
  39. if($cid=="0") echo "<option value='0' selected>所有栏目</option>";
  40. echo $typeOptions;
  41. echo "</select>";
  42. ?>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td height="26">JS文件:</td>
  47. <td height="26">
  48. <span><?php echo "&lt;script src='".$cfg_cmspath."/static/js/".$cid.".js' language='javascript'&gt;&lt;/script&gt;"; ?></span>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td height="26">模板文件:</td>
  53. <td height="26"><input name="templet" type="text" id="templet" value="plus/js.htm" style="width:260px">
  54. <button type="button" class="btn btn-success btn-sm" name="set4" onClick="SelectTemplets('form1.templet');">浏览</button>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td height="26">更新选项:</td>
  59. <td height="26">
  60. <label><input type="radio" name="uptype" value="all" class="np">
  61. 更新所有栏目</label>
  62. <label><input name="uptype" type="radio" value="onlyme" class="np" checked>
  63. 仅当前文件</label>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td height="26" bgcolor="#F8FCF1" colspan="2" align="center">
  68. <button name="b112" type="button" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button>
  69. </td>
  70. </tr>
  71. </form>
  72. <tr>
  73. <td height="26" colspan="2">
  74. <table width="100%" class="table table-borderless">
  75. <tr>
  76. <td width="70%">结果:</td>
  77. <td width="30%" align="right">
  78. <script language='javascript'>
  79. function ResizeDiv(obj, ty) {
  80. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  81. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  82. }
  83. </script>
  84. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  85. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  86. </td>
  87. </tr>
  88. </table>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td colspan="2" id="mtd">
  93. <div id="mdv" style="width:100%;height:300px">
  94. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  95. </div>
  96. </td>
  97. </tr>
  98. </table>
  99. </body>
  100. </html>