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

113 lines
5.3KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>主页更新向导</title>
  7. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link href="css/base.css" rel="stylesheet" type="text/css">
  10. <script language="javascript">
  11. function SelectTemplets(fname) {
  12. var posLeft = 200;
  13. var posTop = 300;
  14. window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop);
  15. }
  16. </script>
  17. </head>
  18. <body background="images/allbg.gif" leftmargin="8" topmargin="8">
  19. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3">
  20. <form name="form1" action="makehtml_homepage.php" target="stafrm" method="post">
  21. <input type="hidden" name="dopost" value="make">
  22. <tr>
  23. <td height="28" colspan="2" background='images/tbg.gif'>
  24. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
  25. <tr>
  26. <td width="30%" height="18" style="padding-left:10px;"><strong>主页更新向导:</strong></td>
  27. <td width="70%" align="right">&nbsp;</td>
  28. </tr>
  29. </table>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td width="177" valign="top" bgcolor="#FFFFFF">选择主页模板:</td>
  34. <td width="791" valign="top" bgcolor="#FFFFFF">
  35. <input name="templet" type="text" id="templet" style="width:300" value="<?php echo $row['templet']?>">
  36. <button class="btn btn-secondary btn-sm" type="button" name="set4" value="" onClick="SelectTemplets('form1.templet');">浏览...</button>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td height="20" colspan="2" valign="top" bgcolor="#FFFFFF">
  41. 默认的情况下,生成的主页文件放在CMS的安装目录,如果您的CMS不是安装在网站根目录的,又想把主页创建到网站根目录,那么请用相对路径来表示“主页位置”。<br />
  42. 例:您的CMS安装在
  43. http://www.abc.com/dedecms/ 目录,您想生成的主页为 http://www.abc.com/index.html,那么主页位置就应该用:
  44. “../index.html”。</td>
  45. </tr>
  46. <tr>
  47. <td height="20" valign="top" bgcolor="#FFFFFF">主页位置:</td>
  48. <td height="20" valign="top" bgcolor="#FFFFFF"><input name="position" type="text" id="position"
  49. value="<?php echo $row['position']?>" size="30">
  50. </td>
  51. </tr>
  52. <tr>
  53. <td height="20" valign="top" bgcolor="#FFFFFF">相关选项:</td>
  54. <td height="20" valign="top" bgcolor="#FFFFFF">
  55. <label><input name="saveset" type="radio" value="0" class="np">
  56. 不保存当前选项</label>
  57. <label><input name="saveset" type="radio" class="np" value="1" checked>
  58. 保存当前选项</label>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td height="20" valign="top" bgcolor="#FFFFFF">首页模式:</td>
  63. <td height="20" valign="top" bgcolor="#FFFFFF">
  64. <label><input name="showmod" type="radio" value="0" class="np"
  65. <?php echo ($row['showmod']==0)? "checked='checked'" : "";?> />
  66. 动态浏览</label>
  67. <label><input name="showmod" type="radio" class="np" value="1"
  68. <?php echo ($row['showmod']==1)? "checked='checked'" : "";?> />
  69. 生成静态 (或者手动删除根目录下index.html文件)</label></td>
  70. </tr>
  71. <tr>
  72. <td height="31" colspan="2" bgcolor="#ffffff" align="center">&nbsp;&nbsp;
  73. <button name="view" class='btn btn-secondary' type="button" id="view"
  74. onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);">预览主页</button>
  75. <button type="submit" class='btn btn-secondary' name="Submit">更新主页HTML</button>
  76. &nbsp;
  77. </td>
  78. </tr>
  79. </form>
  80. <tr bgcolor="#F9FCEF">
  81. <td height="20" colspan="2">
  82. <table width="100%" class="table table-borderless">
  83. <tr>
  84. <td width="74%">进行状态: </td>
  85. <td width="26%" align="right">
  86. <script language='javascript'>
  87. function ResizeDiv(obj, ty) {
  88. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  89. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  90. }
  91. </script>
  92. [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
  93. </td>
  94. </tr>
  95. </table>
  96. </td>
  97. </tr>
  98. <tr bgcolor="#FFFFFF">
  99. <td colspan="2" id="mtd">
  100. <div id='mdv' style='width:100%;height:350px;'>
  101. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  102. </div>
  103. </td>
  104. </tr>
  105. </table>
  106. </body>
  107. </html>