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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>更新脚本</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="js/main.js"></script>
  12. <script>
  13. function SelectTemplets(fname) {
  14. var pos = GetWinPos(800, 600);
  15. window.open("./dialog/select_templets.php?&activepath=<?php echo urlencode($cfg_templets_dir.'/plus')?>&f=" +
  16. fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left +", top=" + pos.top);
  17. }
  18. </script>
  19. </head>
  20. <body>
  21. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  22. <form name="form1" action="makehtml_js_action.php" method="get" target='stafrm'>
  23. <tr>
  24. <td height="26" colspan="2" background="../static/web/img/tbg.gif">
  25. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  26. <tr>
  27. <td width="30%" style="padding-left:10px">更新脚本</td>
  28. <td width="70%" align="right"><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td>
  29. </tr>
  30. </table>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td width="260" height="26">选择栏目:</td>
  35. <td height="26">
  36. <?php
  37. if(empty($cid)) $cid="0";
  38. $tl = new TypeLink($cid);
  39. $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
  40. echo "<select name='typeid' style='width:260px'>";
  41. if($cid=="0") echo "<option value='0' selected>所有栏目</option>";
  42. echo $typeOptions;
  43. echo "</select>";
  44. ?>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td height="26">JS文件:</td>
  49. <td height="26">
  50. <span><?php echo "&lt;script src='".$cfg_cmspath."/static/js/".$cid.".js'&gt;&lt;/script&gt;"; ?></span>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td height="26">模板文件:</td>
  55. <td height="26"><input name="templet" type="text" id="templet" value="plus/js.htm" style="width:260px">
  56. <button type="button" class="btn btn-success btn-sm" name="set4" onClick="SelectTemplets('form1.templet');">浏览</button>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td height="26">更新选项:</td>
  61. <td height="26">
  62. <label><input type="radio" name="uptype" value="all" class="np"> 更新所有栏目 </label>
  63. <label><input name="uptype" type="radio" value="onlyme" class="np" checked> 仅当前文件</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>
  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:360px">
  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>