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

101 lines
4.5KB

  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="js/main.js" language="javascript"></script>
  10. <script language="javascript">
  11. function SelectTemplets(fname) {
  12. var pos = GetWinPos(800,600);
  13. 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);
  14. }
  15. </script>
  16. </head>
  17. <body background="../static/web/img/allbg.gif" leftmargin="8" topmargin="8">
  18. <table width="98%" border="0" cellpadding="3" cellspacing="1" align="center" class="table maintable table-bordered mt-3">
  19. <form name="form1" action="makehtml_js_action.php" method="get" target='stafrm'>
  20. <tr>
  21. <td height="26" colspan="2" background='../static/web/img/tbg.gif'>
  22. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
  23. <tr>
  24. <td width="30%" height="18" style="padding-left:10px">更新脚本</td>
  25. <td width="70%" align="right"><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a>
  26. </td>
  27. </tr>
  28. </table>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td>
  33. <td width="377" valign="top" bgcolor="#FFFFFF">
  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:300px'>\r\n";
  39. if($cid=="0") echo "<option value='0' selected>所有栏目</option>\r\n";
  40. echo $typeOptions;
  41. echo "</select>";
  42. ?>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td height="36" bgcolor="#FFFFFF">JS文件:</td>
  47. <td height="36" bgcolor="#FFFFFF">
  48. <span>
  49. <?php echo "&lt;script src='".$cfg_cmspath."/data/js/".$cid.".js' language='javascript'&gt;&lt;/script&gt;"; ?>
  50. </span>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td height="26" valign="top" bgcolor="#FFFFFF">模板文件:</td>
  55. <td height="26" valign="top" bgcolor="#FFFFFF"><input name="templet" type="text" id="templet" style="width:300px" value="plus/js.htm">
  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" valign="top" bgcolor="#FFFFFF">更新选项:</td>
  61. <td height="26" valign="top" bgcolor="#FFFFFF">
  62. <label><input type="radio" name="uptype" value="all" class="np">
  63. 更新所有栏目</label>
  64. <label><input name="uptype" type="radio" value="onlyme" class="np" checked>
  65. 仅当前文件</label>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td height="26" colspan="2" bgcolor="#ffffff" align="center">
  70. <button name="b112" type="button" class="btn btn-success" onClick="document.form1.submit();">开始更新</button>
  71. </td>
  72. </tr>
  73. </form>
  74. <tr bgcolor="#f8f8f8">
  75. <td height="26" colspan="2">
  76. <table width="100%" class="table table-borderless">
  77. <tr>
  78. <td width="74%">进行状态:</td>
  79. <td width="26%" align="right">
  80. <script language='javascript'>
  81. function ResizeDiv(obj, ty) {
  82. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  83. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  84. }
  85. </script>
  86. [<a href='javascript:;' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='javascript:;' onClick="ResizeDiv('mdv','-');">缩小</a>]
  87. </td>
  88. </tr>
  89. </table>
  90. </td>
  91. </tr>
  92. <tr bgcolor="#FFFFFF">
  93. <td colspan="2" id="mtd">
  94. <div id='mdv' style='width:100%;height:350px;'>
  95. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  96. </div>
  97. </td>
  98. </tr>
  99. </table>
  100. </body>
  101. </html>