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

120 lines
5.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 href="css/base.css" rel="stylesheet" type="text/css">
  7. <link rel="stylesheet" type="text/css" media="all" href="../static/js/calendar/calendar-win2k-1.css" title="win2k-1" />
  8. <script type="text/javascript" src="../static/js/calendar/calendar.js"></script>
  9. <script type="text/javascript" src="../static/js/calendar/calendar-cn.js"></script>
  10. <script language="javascript">
  11. function SelectTemplets(fname)
  12. {
  13. var posLeft = 200;
  14. var posTop = 300;
  15. window.open("./dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
  16. }
  17. </script>
  18. </head>
  19. <body background="images/allbg.gif" leftmargin="8" topmargin="8">
  20. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  21. <form name="form1" action="makehtml_homepage.php" target="stafrm" method="post">
  22. <input type="hidden" name="dopost" value="make">
  23. <tr>
  24. <td height="28" colspan="2" background='images/tbg.gif'>
  25. <table width="98%" border="0" cellpadding="0" cellspacing="0">
  26. <tr>
  27. <td width="30%" height="18" style="padding-left:10px;"><strong>主页更新向导:</strong></td>
  28. <td width="70%" align="right">&nbsp;</td>
  29. </tr>
  30. </table>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td width="177" valign="top" bgcolor="#FFFFFF">选择主页模板:</td>
  35. <td width="791" valign="top" bgcolor="#FFFFFF">
  36. <input name="templet" type="text" id="templet" style="width:300" value="<?php echo $row['templet']?>">
  37. <input type="button" name="set4" value="浏览..." style="width:60" onClick="SelectTemplets('form1.templet');">
  38. </td>
  39. </tr>
  40. <tr>
  41. <td height="20" colspan="2" valign="top" bgcolor="#FFFFFF">默认的情况下,生成的主页文件放在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" value="<?php echo $row['position']?>" size="30">
  49. </td>
  50. </tr>
  51. <?php
  52. if($cfg_remote_site=='Y')
  53. {
  54. ?>
  55. <tr>
  56. <td height="20" valign="top" bgcolor="#FFFFCC">远程发布:</td>
  57. <td height="20" valign="top" bgcolor="#FFFFCC"><input name="remotepos" type="text" id="remotepos" value="/index.html" size="30">
  58. (“/”相对远程站点根目录)&nbsp;&nbsp;&nbsp;&nbsp;</td>
  59. </tr>
  60. <tr>
  61. <td height="20" colspan="2" valign="top" bgcolor="#FFFFCC">您已经启用远程发布,请确保正确 [<a href="sys_info.php" style="color:red">配置FTP</a>]</td>
  62. </tr>
  63. <?php
  64. }
  65. ?>
  66. <tr>
  67. <td height="20" valign="top" bgcolor="#FFFFFF">相关选项:</td>
  68. <td height="20" valign="top" bgcolor="#FFFFFF">
  69. <input name="saveset" type="radio" value="0" class="np">
  70. 不保存当前选项
  71. <input name="saveset" type="radio" class="np" value="1" checked>
  72. 保存当前选项
  73. </td>
  74. </tr>
  75. <tr>
  76. <td height="20" valign="top" bgcolor="#FFFFFF">首页模式:</td>
  77. <td height="20" valign="top" bgcolor="#FFFFFF"><input name="showmod" type="radio" value="0" class="np" <?php echo ($row['showmod']==0)? "checked='checked'" : "";?>/>
  78. 动态浏览
  79. <input name="showmod" type="radio" class="np" value="1" <?php echo ($row['showmod']==1)? "checked='checked'" : "";?> />
  80. 生成静态 (或者手动删除根目录下index.html文件)</td>
  81. </tr>
  82. <tr>
  83. <td height="31" colspan="2" bgcolor="#ffffff" align="center">&nbsp;&nbsp;
  84. <input name="view" class='coolbg np' type="button" id="view" value="预览主页" onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);" />
  85. <input type="submit" class='coolbg np' name="Submit" value="更新主页HTML" />
  86. &nbsp;
  87. </td>
  88. </tr>
  89. </form>
  90. <tr bgcolor="#F9FCEF">
  91. <td height="20" colspan="2"><table width="100%">
  92. <tr>
  93. <td width="74%">进行状态: </td>
  94. <td width="26%" align="right">
  95. <script language='javascript'>
  96. function ResizeDiv(obj,ty)
  97. {
  98. if(ty=="+") document.all[obj].style.pixelHeight += 50;
  99. else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  100. }
  101. </script>
  102. [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
  103. </td>
  104. </tr>
  105. </table> </td>
  106. </tr>
  107. <tr bgcolor="#FFFFFF">
  108. <td colspan="2" id="mtd">
  109. <div id='mdv' style='width:100%;height:350px;'>
  110. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  111. </div>
  112. </td>
  113. </tr>
  114. </table>
  115. </body>
  116. </html>