国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

179 行
8.1KB

  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. <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script>
  8. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  9. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  10. <link href="css/base.css" rel="stylesheet" type="text/css">
  11. <script language="javascript">
  12. function SelectTemplets(fname) {
  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. function htmlSubmit() {
  18. form1.submit();
  19. $("#dedebiz_admin").val("");
  20. }
  21. </script>
  22. </head>
  23. <body background="images/allbg.gif" leftmargin="8" topmargin="8">
  24. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"
  25. class="table maintable table-bordered mt-3">
  26. <form name="form1" action="makehtml_homepage.php" target="stafrm" method="post">
  27. <input type="hidden" name="dopost" value="make">
  28. <tr>
  29. <td height="28" colspan="2" background='images/tbg.gif'>
  30. <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
  31. <tr>
  32. <td width="30%" height="18" style="padding-left:10px;"><strong>主页更新向导:</strong></td>
  33. <td width="70%" align="right">&nbsp;</td>
  34. </tr>
  35. </table>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td width="177" valign="top" bgcolor="#FFFFFF">选择主页模板:</td>
  40. <td width="791" valign="top" bgcolor="#FFFFFF">
  41. <input name="templet" type="text" id="templet" style="width:300" value="<?php echo $row['templet']?>">
  42. <button class="btn btn-secondary btn-sm" type="button" name="set4" value=""
  43. onClick="SelectTemplets('form1.templet');">浏览...</button>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td height="20" colspan="2" valign="top" bgcolor="#FFFFFF">
  48. 默认的情况下,生成的主页文件放在CMS的安装目录,如果您的CMS不是安装在网站根目录的,又想把主页创建到网站根目录,那么请用相对路径来表示“主页位置”。<br />
  49. 例:您的CMS安装在
  50. http://www.abc.com/dedecms/ 目录,您想生成的主页为 http://www.abc.com/index.html,那么主页位置就应该用:
  51. “../index.html”。</td>
  52. </tr>
  53. <tr>
  54. <td height="20" valign="top" bgcolor="#FFFFFF">主页位置:</td>
  55. <td height="20" valign="top" bgcolor="#FFFFFF">
  56. <input name="position" type="text" id="position" value="<?php echo $row['position']?>" size="30">
  57. </td>
  58. </tr>
  59. <tr>
  60. <td height="20" valign="top" bgcolor="#FFFFFF">相关选项:</td>
  61. <td height="20" valign="top" bgcolor="#FFFFFF">
  62. <label><input name="saveset" type="radio" value="0" class="np">
  63. 不保存当前选项</label>
  64. <label><input name="saveset" type="radio" class="np" value="1" checked>
  65. 保存当前选项</label>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td height="20" valign="top" bgcolor="#FFFFFF">首页模式:</td>
  70. <td height="20" valign="top" bgcolor="#FFFFFF">
  71. <label><input name="showmod" type="radio" value="0" class="np"
  72. <?php echo ($row['showmod']==0)? "checked='checked'" : "";?> />
  73. 动态浏览</label>
  74. <label><input name="showmod" type="radio" class="np" value="1"
  75. <?php echo ($row['showmod']==1)? "checked='checked'" : "";?> />
  76. 生成静态 (或者手动删除根目录下index.html文件)</label></td>
  77. </tr>
  78. <tr>
  79. <td height="20" colspan="2" valign="top" bgcolor="#dee2e6">
  80. 首页防篡改(主页位置更改请重新启动DedeBIZ商业组件)
  81. </td>
  82. </tr>
  83. <?php
  84. if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
  85. $client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
  86. $client->appid = $cfg_bizcore_appid;
  87. $client->key = $cfg_bizcore_key;
  88. $data = $client->AdminPWDExists();
  89. $data = json_decode($data->data);
  90. $rs = (array)($data->result);
  91. if($rs["admin_pwd_exists"] == "false") {?>
  92. <tr>
  93. <td height="20" valign="top" bgcolor="#FFFFFF">设置DedeBIZ操作密码:</td>
  94. <td height="20" valign="top" bgcolor="#FFFFFF">
  95. <input name="dedebiz_admin" type="password" id="dedebiz_admin" value="" size="30">
  96. 设定后所有的DedeBIZ涉及安全操作输入当前操作密码
  97. </td>
  98. </tr>
  99. <tr>
  100. <td height="20" valign="top" bgcolor="#FFFFFF">重复DedeBIZ操作密码:</td>
  101. <td height="20" valign="top" bgcolor="#FFFFFF">
  102. <input name="re_dedebiz_admin" type="password" id="re_dedebiz_admin" value="" size="30">
  103. </td>
  104. </tr>
  105. <?php }else{ ?>
  106. <tr>
  107. <td height="20" valign="top" bgcolor="#FFFFFF">DedeBIZ操作密码:</td>
  108. <td height="20" valign="top" bgcolor="#FFFFFF">
  109. <input name="dedebiz_admin" type="password" id="dedebiz_admin" value="" size="30">
  110. </td>
  111. </tr>
  112. <tr>
  113. <td height="20" valign="top" bgcolor="#FFFFFF">首页状态:</td>
  114. <td height="20" valign="top" bgcolor="#FFFFFF">
  115. <label><input name="lockindex" type="radio" class="np" value="unlock"
  116. <?php echo ($rs['index_lock_state']==true)? "checked='checked'" : "";?> />
  117. 解锁</label>
  118. <label><input name="lockindex" type="radio" value="lock" class="np"
  119. <?php echo ($row['index_lock_state']==false)? "checked='checked'" : "";?> />
  120. 锁定</label>
  121. </td>
  122. </tr>
  123. <?php
  124. }
  125. } else {
  126. ?>
  127. <tr>
  128. <td height="20" colspan="2" valign="top" bgcolor="#FFFFFF">
  129. 尚未开启DedeBIZ商业组件 <a class="btn btn-danger btn-sm" target="_blank" href="https://www.dedebiz.com/start?code=-1008">如何启动组件</a>
  130. </td>
  131. </tr>
  132. <?php
  133. }
  134. ?>
  135. <tr>
  136. <td height="31" colspan="2" bgcolor="#ffffff" align="center">&nbsp;&nbsp;
  137. <button name="view" class='btn btn-secondary' type="button" id="view"
  138. onClick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);">预览主页</button>
  139. <button type="button" onclick="htmlSubmit()" class='btn btn-secondary' name="Submit">更新主页HTML</button>
  140. &nbsp;
  141. </td>
  142. </tr>
  143. </form>
  144. <tr bgcolor="#F9FCEF">
  145. <td height="20" colspan="2">
  146. <table width="100%" class="table table-borderless">
  147. <tr>
  148. <td width="74%">进行状态: </td>
  149. <td width="26%" align="right">
  150. <script language='javascript'>
  151. function ResizeDiv(obj, ty) {
  152. if (ty == "+") document.all[obj].style.pixelHeight += 50;
  153. else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  154. }
  155. </script>
  156. [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]
  157. </td>
  158. </tr>
  159. </table>
  160. </td>
  161. </tr>
  162. <tr bgcolor="#FFFFFF">
  163. <td colspan="2" id="mtd">
  164. <div id='mdv' style='width:100%;height:350px;'>
  165. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  166. </div>
  167. </td>
  168. </tr>
  169. </table>
  170. </body>
  171. </html>