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

130 lines
5.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/bootstrap.min.js"></script>
  12. <script src="/static/web/js/admin.main.js"></script>
  13. </head>
  14. <body>
  15. <form name="form1" action="soft_config.php" method="post">
  16. <input type="hidden" name="dopost" value="save">
  17. <table class="table shadow-sm my-3">
  18. <tr>
  19. <td colspan="2">软件下载设置</td>
  20. </tr>
  21. <tr>
  22. <td width="260">链接显示方式:</td>
  23. <td>
  24. <label><input type="radio" name="gotojump" value="0" <?php if ($row['gotojump']==0) echo " checked ";?>> 真实软件链接地址</label>
  25. <label><input type="radio" name="gotojump" value="1" <?php if ($row['gotojump']==1) echo " checked ";?>> 字符软件链接地址</label>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td>软件下载方式:</td>
  30. <td>
  31. <label><input type="radio" name="downtype" value="0" <?php if ($row['downtype']==0) echo " checked ";?>> 当前软件发布页</label>
  32. <label><input type="radio" name="downtype" value="1" <?php if ($row['downtype']==1) echo " checked ";?>> 链接到地址列表页</label>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>是否启用镜像站点:</td>
  37. <td>
  38. <label><input type="radio" name="ismoresite" value="1" <?php if ($row['ismoresite']==1) echo " checked ";?>> 启用</label>
  39. <label><input type="radio" name="ismoresite" value="0" <?php if ($row['ismoresite']==0) echo " checked ";?>> 不启用</label>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>启用镜像站点后是否保留本地下载:</td>
  44. <td>
  45. <label><input type="radio" name="islocal" value="1" <?php if ($row['islocal']==1) echo " checked ";?>> 保留</label>
  46. <label><input type="radio" name="islocal" value="0" <?php if ($row['islocal']==0) echo " checked ";?>> 不保留</label>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>镜像处理方式:</td>
  51. <td>
  52. <label><input type="radio" name="moresitedo" value="1" <?php if ($row['moresitedo']==1) echo " checked ";?>> 本地地址和服务器列表自动生成</label>
  53. <label><input type="radio" name="moresitedo" value="0" <?php if ($row['moresitedo']==0) echo " checked ";?>> 按服务器生成列表由我手工填写</label>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td>下载默认等级:</td>
  58. <td>
  59. <select name="dfrank" id="dfrank" class="admin-input-sm">
  60. <?php
  61. $urank = $cuserLogin->getUserRank();
  62. $dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0 ");
  63. $dsql->Execute();
  64. while($nrow = $dsql->GetArray())
  65. {
  66. if ($nrow['rank']==0) $nrow['membername'] = "开放下载";
  67. if ($nrow['rank']==$row['dfrank']) echo "<option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>";
  68. else echo "<option value='{$nrow['rank']}'>{$nrow['membername']}</option>";
  69. }
  70. ?>
  71. </select>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>下载默认金币:</td>
  76. <td><input type="text" name="dfywboy" value="<?php echo $row['dfywboy'];?>" class="admin-input-xs">
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>参数限制方式:</td>
  81. <td>
  82. <label><input type="radio" name="argrange" value="0" <?php if ($row['argrange']==0) echo " checked ";?>> 所有软件重新选择权限</label>
  83. <label><input type="radio" name="argrange" value="1" <?php if ($row['argrange']==1) echo " checked ";?>> 所有软件均使用此权限</label>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td>镜像服务器列表:</td>
  88. <td>
  89. <label>镜像域名:<input type="text" name="serverurl" id="serverurl"></label>
  90. <label>镜像目录:<input type="text" name="servername" id="servername"></label>
  91. <label>镜像名称:<input type="text" name="servertype" id="servertype" value="默认下载地址"></label>
  92. <button type="button" name="submit" onclick="AddServer();" class="btn btn-success btn-sm">添加一项</button>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td colspan="2"><textarea name="sites" id="sites" class="admin-textarea-xl"><?php echo $row['sites'];?></textarea></td>
  97. </tr>
  98. <tr>
  99. <td colspan="2">下载说明:</td>
  100. </tr>
  101. <tr>
  102. <td colspan="2"><?php GetEditor('downmsg',$row['downmsg'],400);?></td>
  103. </tr>
  104. <tr>
  105. <td colspan="2" align="center">
  106. <button type="submit" name="submit" class="btn btn-success btn-sm">保存</button>
  107. <button type="reset" name="rset" id="rset" class="btn btn-outline-success btn-sm">重置</button>
  108. </td>
  109. </tr>
  110. </table>
  111. </form>
  112. <script>
  113. function AddServer() {
  114. if (document.form1.serverurl.value == "" || document.form1.serverurl.value == "") {
  115. ShowMsg('镜像域名不能为空');
  116. return;
  117. }
  118. if (document.form1.servername.value == "") {
  119. ShowMsg('镜像目录不能为空');
  120. return;
  121. }
  122. if (document.form1.servertype.value == "") {
  123. ShowMsg('镜像名称不能为空');
  124. return;
  125. }
  126. document.form1.sites.value += document.form1.serverurl.value + " | " + document.form1.servername.value + " | " + document.form1.servertype.value + "";
  127. }
  128. </script>
  129. </body>
  130. </html>