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

103 lines
4.2KB

  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>生成HTML</title>
  6. <link href="css/base.css" rel="stylesheet" type="text/css">
  7. <script language="javascript">
  8. function SelectTemplets(fname)
  9. {
  10. if(document.all){
  11. var posLeft = window.event.clientY-100;
  12. var posTop = window.event.clientX-400;
  13. }
  14. else{
  15. var posLeft = 100;
  16. var posTop = 100;
  17. }
  18. window.open("./dialog/select_templets.php?&activepath=<?php echo urlencode($cfg_templets_dir.'/plus')?>&f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
  19. }
  20. </script>
  21. </head>
  22. <body background="images/allbg.gif" leftmargin="8" topmargin="8">
  23. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  24. <form name="form1" action="makehtml_js_action.php" method="get" target='stafrm'>
  25. <tr>
  26. <td height="28" colspan="2" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0">
  27. <tr>
  28. <td width="30%" height="18" style="padding-left:10px;"><strong>获取栏目JS文件:</strong></td>
  29. <td width="70%" align="right"><a href="catalog_main.php"><u>栏目管理</u></a>
  30. </td>
  31. </tr>
  32. </table></td>
  33. </tr>
  34. <tr>
  35. <td width="108" valign="top" bgcolor="#FFFFFF">选择栏目:</td>
  36. <td width="377" valign="top" bgcolor="#FFFFFF">
  37. <?php
  38. if(empty($cid)) $cid="0";
  39. $tl = new TypeLink($cid);
  40. $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
  41. echo "<select name='typeid' style='width:300'>\r\n";
  42. if($cid=="0") echo "<option value='0' selected>所有栏目...</option>\r\n";
  43. echo $typeOptions;
  44. echo "</select>";
  45. ?>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td height="40" bgcolor="#FFFFFF">JS文件:</td>
  50. <td height="40" bgcolor="#FFFFFF">
  51. <font color="#660000">
  52. <?php echo "&lt;script src='".$cfg_cmspath."/data/js/".$cid.".js' language='javascript'&gt;&lt;/script&gt;"; ?>
  53. </font>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td height="20" valign="top" bgcolor="#FFFFFF">模板文件:</td>
  58. <td height="20" valign="top" bgcolor="#FFFFFF"><input name="templet" type="text" id="templet" style="width:300" value="plus/js.htm">
  59. <input type="button" name="set4" value="浏览..." style="width:60" onClick="SelectTemplets('form1.templet');">
  60. </td>
  61. </tr>
  62. <tr>
  63. <td height="20" valign="top" bgcolor="#FFFFFF">更新选项:</td>
  64. <td height="20" valign="top" bgcolor="#FFFFFF">
  65. <input type="radio" name="uptype" value="all" class="np">
  66. 更新所有栏目
  67. <input name="uptype" type="radio" value="onlyme" class="np" checked>
  68. 仅当前文件
  69. </td>
  70. </tr>
  71. <tr>
  72. <td height="20" colspan="2" bgcolor="#ffffff" align="center">
  73. <input name="b112" type="button" class="coolbg np" value="生成/更新JS文件" onClick="document.form1.submit();" style="width:120px">
  74. </td>
  75. </tr>
  76. </form>
  77. <tr bgcolor="#F9FCEF">
  78. <td height="20" colspan="2"> <table width="100%">
  79. <tr>
  80. <td width="74%">进行状态: </td>
  81. <td width="26%" align="right"> <script language='javascript'>
  82. function ResizeDiv(obj,ty)
  83. {
  84. if(ty=="+") document.all[obj].style.pixelHeight += 50;
  85. else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  86. }
  87. </script>
  88. [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
  89. </td>
  90. </tr>
  91. </table></td>
  92. </tr>
  93. <tr bgcolor="#FFFFFF">
  94. <td colspan="2" id="mtd">
  95. <div id='mdv' style='width:100%;height:350px;'>
  96. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  97. </div>
  98. </td>
  99. </tr>
  100. </table>
  101. </body>
  102. </html>