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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>更新首页</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. <script src="/static/web/js/jquery.min.js"></script>
  11. <script src="/static/web/js/admin.main.js"></script>
  12. </head>
  13. <body>
  14. <form name="form1" action="makehtml_homepage.php" target="stafrm" method="post">
  15. <input type="hidden" name="dopost" value="make">
  16. <table class="table shadow-sm my-3">
  17. <tr>
  18. <td colspan="2">更新首页</td>
  19. </tr>
  20. <?php
  21. if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
  22. $client = new DedeBizClient();
  23. $data = $client->AdminPWDExists();
  24. if ($data->code == -1) {
  25. ?>
  26. <tr>
  27. <td colspan="2">
  28. <div class="alert alert-info mb-0">启动商业组件失败,如何<a href="https://www.dedebiz.com/start?code=-1008" target="_blank">启动组件</a></div>
  29. </td>
  30. </tr>
  31. <?php
  32. } else {
  33. $data = json_decode($data->data);
  34. $rs = (array)($data->result);
  35. if ($rs["admin_pwd_exists"] == "false") {
  36. ?>
  37. <tr>
  38. <td>设置密码:</td>
  39. <td><input type="password" name="dedebiz_admin" autocomplete="off" id="dedebiz_admin" class="admin-input-sm">设定后所有的DedeBIZ涉及安全操作输入当前操作密码</td>
  40. </tr>
  41. <tr>
  42. <td>重复密码:</td>
  43. <td><input type="password" name="re_dedebiz_admin" autocomplete="off" id="re_dedebiz_admin" class="admin-input-sm"></td>
  44. </tr>
  45. <?php } else {?>
  46. <tr>
  47. <td>操作密码:</td>
  48. <td><input type="password" name="dedebiz_admin" autocomplete="off" id="dedebiz_admin" class="admin-input-sm"></td>
  49. </tr>
  50. <tr>
  51. <td>首页状态:</td>
  52. <td>
  53. <label><input type="radio" name="lockindex" value="unlock" <?php echo ($rs['index_lock_state']==true)? "checked" : "";?>> 解锁</label>
  54. <label><input type="radio" name="lockindex" value="lock" <?php echo ($row['index_lock_state']==false)? "checked" : "";?>> 锁定</label>
  55. </td>
  56. </tr>
  57. <?php }}} else {?>
  58. <tr>
  59. <td colspan="2">
  60. <div class="alert alert-info mb-0">启动商业组件失败,如何<a href="https://www.dedebiz.com/start?code=-1008" target="_blank">启动组件</a></div>
  61. </td>
  62. </tr>
  63. <?php }?>
  64. <tr>
  65. <td width="260">选择首页模板:</td>
  66. <td>
  67. <input type="text" name="templet" id="templet" value="<?php echo $row['templet']?>" class="admin-input-sm">
  68. <button type="button" name="set4" class="btn btn-success btn-sm" onclick="SelectTemplets('form1.templet');">选择</button>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td>首页位置:</td>
  73. <td><input type="text" name="position" id="position" value="<?php echo $row['position']?>" class="admin-input-sm"></td>
  74. </tr>
  75. <tr>
  76. <td>相关选项:</td>
  77. <td>
  78. <label><input type="radio" name="saveset" value="0"> 不保存当前选项</label>
  79. <label><input type="radio" name="saveset" value="1" checked> 保存当前选项</label>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>首页模式:</td>
  84. <td>
  85. <label><input type="radio" name="showmod" value="0" <?php echo ($row['showmod']==0)? "checked" : "";?>> 动态浏览</label>
  86. <label><input type="radio" name="showmod" value="1" <?php echo ($row['showmod']==1)? "checked" : "";?>> 生成静态</label>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td colspan="2" align="center">
  91. <button type="submit" name="submit" class="btn btn-success btn-sm">开始更新</button>
  92. <button type="button" name="view" class="btn btn-outline-success btn-sm" onclick="window.open('makehtml_homepage.php?dopost=view&templet='+form1.templet.value);">预览首页</button>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td colspan="2">
  97. <div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
  98. </td>
  99. </tr>
  100. </table>
  101. </form>
  102. <script>
  103. function SelectTemplets(fname) {
  104. var pos = GetWinPos(800, 600);
  105. window.open("./dialog/select_templets.php?f=" + fname, "poptempWin","scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
  106. }
  107. function htmlSubmit() {
  108. form1.submit();
  109. $("#dedebiz_admin").val("");
  110. }
  111. </script>
  112. </body>
  113. </html>