国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

126 行
5.8KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>软件下载设置</title>
  7. <link rel="stylesheet" href="../static/web/font/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="js/main.js"></script>
  13. <script>
  14. function AddServer() {
  15. if (document.form1.serverurl.value == "" || document.form1.serverurl.value == "http://") { ShowMsg('服务器网址不能为空'); return; }
  16. if (document.form1.servername.value == "") { ShowMsg('服务器名称不能为空'); return; }
  17. if (document.form1.servertype.value == "") { ShowMsg('服务器类型不能为空'); return; }
  18. document.form1.sites.value += document.form1.serverurl.value + " | " + document.form1.servername.value + " | " + document.form1.servertype.value + "";
  19. }
  20. </script>
  21. </head>
  22. <body>
  23. <form name="form1" action="soft_config.php" method="post">
  24. <input type="hidden" name="dopost" value="save">
  25. <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
  26. <tr>
  27. <td bgcolor="#f5f5f5" colspan="2">软件下载设置</td>
  28. </tr>
  29. <tr>
  30. <td colspan="2">
  31. <div class="alert alert-info mb-0">不管是全局,还是具体某软件设置了下面的参数,附件下载方式都必须链接到中转页,否则无效</div>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td width="260">链接显示方式:</td>
  36. <td>
  37. <label><input type="radio" name="downtype" value="0" <?php if ($row['downtype']==0) echo " checked='checked' ";?>> 直接显示地址列表</label>
  38. <label><input type="radio" name="downtype" value="1" <?php if ($row['downtype']==1) echo " checked='checked' ";?>> 要求进入下载地址列表页</label>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td>附件下载方式:</td>
  43. <td>
  44. <label><input type="radio" name="gotojump" value="0" <?php if ($row['gotojump']==0) echo " checked='checked' ";?>> 链接到真实软件地址</label>
  45. <label><input type="radio" name="gotojump" value="1" <?php if ($row['gotojump']==1) echo " checked='checked' ";?>> 链接到跳转页面</label>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td>是否启用镜像站点:</td>
  50. <td>
  51. <label><input type="radio" name="ismoresite" value="1" <?php if ($row['ismoresite']==1) echo " checked='checked' ";?>> 启用</label>
  52. <label><input type="radio" name="ismoresite" value="0" <?php if ($row['ismoresite']==0) echo " checked='checked' ";?>> 不启用</label>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td>启用镜像站点后是否保留本地下载:</td>
  57. <td>
  58. <label><input type="radio" name="islocal" value="1" <?php if ($row['islocal']==1) echo " checked='checked' ";?>> 保留</label>
  59. <label><input type="radio" name="islocal" value="0" <?php if ($row['islocal']==0) echo " checked='checked' ";?>> 不保留</label>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>镜像处理方式:</td>
  64. <td>
  65. <label><input type="radio" name="moresitedo" value="1" <?php if ($row['moresitedo']==1) echo " checked='checked' ";?>> 根据本地地址和服务器列表自动生成</label>
  66. <label><input type="radio" name="moresitedo" value="0" <?php if ($row['moresitedo']==0) echo " checked='checked' ";?>> 发布时按服务器生成列表由我手工填写</label>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>下载默认等级:</td>
  71. <td>
  72. <select name="dfrank" id="dfrank" class="admin-input-sm">
  73. <?php
  74. $urank = $cuserLogin->getUserRank();
  75. $dsql->SetQuery("SELECT * FROM `#@__arcrank` where `rank`>=0 ");
  76. $dsql->Execute();
  77. while($nrow = $dsql->GetArray())
  78. {
  79. if ($nrow['rank']==0) $nrow['membername'] = "开放下载";
  80. if ($nrow['rank']==$row['dfrank']) echo "<option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>";
  81. else echo "<option value='{$nrow['rank']}'>{$nrow['membername']}</option>";
  82. }
  83. ?>
  84. </select>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>下载默认金币:</td>
  89. <td><input type="text" name="dfywboy" value="<?php echo $row['dfywboy'];?>" class="admin-input-xs">
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>参数限制方式:</td>
  94. <td>
  95. <label><input type="radio" name="argrange" value="0" <?php if ($row['argrange']==0) echo " checked='checked' ";?>> 允许发布时重新选择权限</label>
  96. <label><input type="radio" name="argrange" value="2" <?php if ($row['argrange']==1) echo " checked='checked' ";?>> 所有软件均使用此权限</label>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td>镜像服务器列表:</td>
  101. <td>
  102. <label>服务器网址:<input type="text" name="serverurl" id="serverurl" value="http://"></label>
  103. <label>服务器名称:<input type="text" name="servername" id="servername"></label>
  104. <label>服务器类型:<input type="text" name="servertype" id="servertype" value="默认"></label>
  105. <button type="button" name="Submit" onclick="AddServer()" class="btn btn-success btn-sm">添加一项</button>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td colspan="2"><textarea name="sites" id="sites" class="admin-textarea-xl"><?php echo $row['sites'];?></textarea></td>
  110. </tr>
  111. <tr>
  112. <td colspan="2">下载说明:</td>
  113. </tr>
  114. <tr>
  115. <td colspan="2"><?php GetEditor('downmsg',$row['downmsg'],400);?></td>
  116. </tr>
  117. <tr>
  118. <td bgcolor="#f5f5f5" colspan="2" align="center">
  119. <button type="submit" name="Submit" class="btn btn-success btn-sm">保存</button>
  120. <button type="reset" name="rset" id="rset" class="btn btn-outline-success btn-sm">重置</button>
  121. </td>
  122. </tr>
  123. </table>
  124. </form>
  125. </body>
  126. </html>