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

149 lines
6.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>软件频道设置</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.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.bundle.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. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  24. <form name="form1" action="soft_config.php" method="post">
  25. <input type="hidden" name="dopost" value="save">
  26. <tr>
  27. <td height="26" colspan="2" background="../static/web/img/tbg.gif">
  28. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  29. <tr>
  30. <td width="30%" style="padding-left:10px">软件频道设置</td>
  31. <td width="70%" align="right"></td>
  32. </tr>
  33. </table>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td width="200">链接显示方式:</td>
  38. <td>
  39. <label><input type="radio" name="downtype" class="np" value="0" <?php if($row['downtype']==0) echo " checked='checked' "; ?>>
  40. 直接显示地址列表</label>
  41. <label><input name="downtype" type="radio" value="1" class="np" <?php if($row['downtype']==1) echo " checked='checked' "; ?>>
  42. 要求进入下载地址列表页</label>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>附件下载方式:</td>
  47. <td>
  48. <label><input type="radio" name="gotojump" class="np" value="0" <?php if($row['gotojump']==0) echo " checked='checked' "; ?>>
  49. 链接到真实软件地址</label>
  50. <label><input name="gotojump" type="radio" class="np" value="1" <?php if($row['gotojump']==1) echo " checked='checked' "; ?>>
  51. 链接到跳转页面</label>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>是否启用镜像站点:</td>
  56. <td>
  57. <label><input type="radio" name="ismoresite" class="np" value="1" <?php if($row['ismoresite']==1) echo " checked='checked' "; ?>>
  58. 启用</label>
  59. <label><input name="ismoresite" type="radio" class="np" value="0" <?php if($row['ismoresite']==0) echo " checked='checked' "; ?>>
  60. 不启用</label>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td>启用镜像站点后是否保留本地下载:</td>
  65. <td>
  66. <label><input type="radio" name="islocal" class="np" value="1" <?php if($row['islocal']==1) echo " checked='checked' "; ?>>
  67. 保留</label>
  68. <label><input name="islocal" type="radio" class="np" value="0" <?php if($row['islocal']==0) echo " checked='checked' "; ?>>
  69. 不保留</label>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>镜像处理方式:</td>
  74. <td>
  75. <label><input type="radio" name="moresitedo" class="np" value="1" <?php if($row['moresitedo']==1) echo " checked='checked' "; ?>>
  76. 根据本地地址和服务器列表自动生成</label>
  77. <label><input name="moresitedo" type="radio" class="np" value="0" <?php if($row['moresitedo']==0) echo " checked='checked' "; ?>>
  78. 发布时按服务器生成列表由我手工填写</label>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td bgcolor="#f8f8f8" colspan='2' style="padding-left:10px">不管是全局,还是具体某软件设置了下面的参数,附件下载方式都必须链接到中转页,否则无效</td>
  83. </tr>
  84. <tr>
  85. <td>下载默认等级:</td>
  86. <td>
  87. <select name="dfrank" id="dfrank" style="width:160px">
  88. <?php
  89. $urank = $cuserLogin->getUserRank();
  90. $dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 ");
  91. $dsql->Execute();
  92. while($nrow = $dsql->GetArray())
  93. {
  94. if($nrow['rank']==0) $nrow['membername'] = "开放下载";
  95. if($nrow['rank']==$row['dfrank']) echo "<option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>";
  96. else echo "<option value='{$nrow['rank']}'>{$nrow['membername']}</option>";
  97. }
  98. ?>
  99. </select>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>下载默认金币:</td>
  104. <td>
  105. <input type="text" name="dfywboy" class="np" value="<?php echo $row['dfywboy']; ?>" style='width:80px;'>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td>参数限制方式:</td>
  110. <td>
  111. <label><input type="radio" name="argrange" class="np" value="0"
  112. <?php if($row['argrange']==0) echo " checked='checked' "; ?>> 允许发布时重新选择权限</label>
  113. <label><input type="radio" name="argrange" class="np" value="2"
  114. <?php if($row['argrange']==1) echo " checked='checked' "; ?>> 所有软件均使用此权限</label>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td height="26" colspan="2" bgcolor="#f8f8f8" style="padding-left:10px">
  119. 镜像服务器列表:</td>
  120. </tr>
  121. <tr>
  122. <td colspan="2">服务器网址:
  123. <input name="serverurl" type="text" id="serverurl" value="http://">
  124. 服务器名称:
  125. <input name="servername" type="text" id="servername">
  126. 服务器类型:
  127. <input name="servertype" type="text" id="servertype" value="默认">
  128. <button type="button" name="Submit" onClick="AddServer()" class="btn btn-success btn-sm">增加一项</button>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td height="62" colspan="2"><textarea name="sites" id="sites" style="width:98%;height:150px"><?php echo $row['sites']; ?></textarea></td>
  133. </tr>
  134. <tr>
  135. <td height="26" colspan="2" bgcolor="#f8f8f8" style="padding-left:10px">下载说明:</td>
  136. </tr>
  137. <tr>
  138. <td height="60" colspan="2"><?php GetEditor('downmsg',$row['downmsg'],250); ?></td>
  139. </tr>
  140. <tr>
  141. <td bgcolor="#f8f8f8" colspan="2" align="center" class="py-3">
  142. <button type="submit" name="Submit" class="btn btn-success btn-sm">保存</button>
  143. <button type="reset" name="rset" id="rset" class="btn btn-success btn-sm">重置</button>
  144. </td>
  145. </tr>
  146. </form>
  147. </table>
  148. </body>
  149. </html>