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

139 lines
6.8KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>软件频道设置</title>
  6. <link href="css/base.css" rel="stylesheet" type="text/css">
  7. <script language="JavaScript">
  8. function AddServer()
  9. {
  10. if(document.form1.serverurl.value==""||document.form1.serverurl.value=="http://"){ alert('服务器网址不能为空!'); return ;}
  11. if(document.form1.servername.value==""){ alert('服务器名称不能为空!'); return ;}
  12. if(document.form1.servertype.value==""){ alert('服务器类型不能为空!'); return ;}
  13. document.form1.sites.value += document.form1.serverurl.value+" | "+document.form1.servername.value+" | "+document.form1.servertype.value+"\r\n";
  14. }
  15. </script>
  16. </head>
  17. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  18. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  19. <form name="form1" action="soft_config.php" method="post">
  20. <input type="hidden" name="dopost" value="save" />
  21. <tr>
  22. <td height="28" colspan="2" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0">
  23. <tr>
  24. <td width="30%" height="18" style="padding-left:10px;"><strong>软件频道设置:</strong></td>
  25. <td width="70%" align="right">&nbsp;</td>
  26. </tr>
  27. </table></td>
  28. </tr>
  29. <tr>
  30. <td bgcolor="#FFFFFF" width="200">链接显示方式:</td>
  31. <td bgcolor="#FFFFFF">
  32. <input type="radio" name="downtype" class="np" value="0"<?php if($row['downtype']==0) echo " checked='checked' ";?>/>
  33. 直接显示地址列表
  34. <input name="downtype" type="radio" value="1" class="np"<?php if($row['downtype']==1) echo " checked='checked' ";?>/>
  35. 要求进入下载地址列表页
  36. </td>
  37. </tr>
  38. <tr>
  39. <td bgcolor="#FFFFFF">附件下载方式:</td>
  40. <td bgcolor="#FFFFFF">
  41. <input type="radio" name="gotojump" class="np" value="0"<?php if($row['gotojump']==0) echo " checked='checked' ";?>/>
  42. 链接到真实软件地址
  43. <input name="gotojump" type="radio" class="np" value="1"<?php if($row['gotojump']==1) echo " checked='checked' ";?>/>
  44. 链接到跳转页面
  45. </td>
  46. </tr>
  47. <tr>
  48. <td bgcolor="#FFFFFF">是否启用镜像站点:</td>
  49. <td bgcolor="#FFFFFF">
  50. <input type="radio" name="ismoresite" class="np" value="1"<?php if($row['ismoresite']==1) echo " checked='checked' ";?>/>
  51. 启用
  52. <input name="ismoresite" type="radio" class="np" value="0"<?php if($row['ismoresite']==0) echo " checked='checked' ";?>/>
  53. 不启用 </td>
  54. </tr>
  55. <tr>
  56. <td bgcolor="#FFFFFF">启用镜像站点后是否保留本地下载:</td>
  57. <td bgcolor="#FFFFFF">
  58. <input type="radio" name="islocal" class="np" value="1"<?php if($row['islocal']==1) echo " checked='checked' ";?>/>
  59. 保留
  60. <input name="islocal" type="radio" class="np" value="0"<?php if($row['islocal']==0) echo " checked='checked' ";?>/>
  61. 不保留 </td>
  62. </tr>
  63. <tr>
  64. <td bgcolor="#FFFFFF">镜像处理方式:</td>
  65. <td bgcolor="#FFFFFF">
  66. <input type="radio" name="moresitedo" class="np" value="1"<?php if($row['moresitedo']==1) echo " checked='checked' ";?>/>
  67. 根据本地地址和服务器列表自动生成
  68. <input name="moresitedo" type="radio" class="np" value="0"<?php if($row['moresitedo']==0) echo " checked='checked' ";?>/>
  69. 发布时按服务器生成列表由我手工填写
  70. </td>
  71. </tr>
  72. <tr>
  73. <td bgcolor="#F9FCEF" colspan='2' style="padding-left:10px;"><b>不管是全局,还是具体某软件设置了下面的参数,附件下载方式都必须链接到中转页,否则无效!</b></td>
  74. </td>
  75. <tr>
  76. <td bgcolor="#FFFFFF">下载默认等级:</td>
  77. <td bgcolor="#FFFFFF">
  78. <select name="dfrank" id="dfrank" style="width:150px">
  79. <?php
  80. $urank = $cuserLogin->getUserRank();
  81. $dsql->SetQuery("Select * from `#@__arcrank` where `rank`>=0 ");
  82. $dsql->Execute();
  83. while($nrow = $dsql->GetArray())
  84. {
  85. if($nrow['rank']==0) $nrow['membername'] = "开放下载";
  86. if($nrow['rank']==$row['dfrank']) echo " <option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>\r\n";
  87. else echo " <option value='{$nrow['rank']}'>{$nrow['membername']}</option>\r\n";
  88. }
  89. ?>
  90. </select>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td bgcolor="#FFFFFF">下载默认金币:</td>
  95. <td bgcolor="#FFFFFF">
  96. <input type="text" name="dfywboy" class="np" value="<?php echo $row['dfywboy']; ?>" style='width:80px;' />
  97. </td>
  98. </tr>
  99. <tr>
  100. <td bgcolor="#FFFFFF">参数限制方式:</td>
  101. <td bgcolor="#FFFFFF">
  102. <input type="radio" name="argrange" class="np" value="0"<?php if($row['argrange']==0) echo " checked='checked' ";?>/>允许发布时重新选择权限
  103. <input type="radio" name="argrange" class="np" value="2"<?php if($row['argrange']==1) echo " checked='checked' ";?>/>所有软件均使用此权限
  104. </td>
  105. </tr>
  106. <tr>
  107. <td height="26" colspan="2" bgcolor="#F9FCEF" style="padding-left:10px;">
  108. <strong>镜像服务器列表: </strong></td>
  109. </tr>
  110. <tr>
  111. <td colspan="2" bgcolor="#FFFFFF">服务器网址:
  112. <input name="serverurl" type="text" id="serverurl" value="http://" />
  113. 服务器名称:
  114. <input name="servername" type="text" id="servername" />
  115. 服务器类型:
  116. <input name="servertype" type="text" id="servertype" value="默认" />
  117. <input type="button" name="Submit" value="增加一项" onClick="AddServer()" class="coolbg np" />
  118. </td>
  119. </tr>
  120. <tr>
  121. <td height="62" colspan="2" bgcolor="#FFFFFF"><textarea name="sites" id="sites" style="width:99%;height:150px"><?php echo $row['sites']; ?></textarea></td>
  122. </tr>
  123. <tr>
  124. <td height="26" colspan="2" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>下载说明:</strong></td>
  125. </tr>
  126. <tr>
  127. <td height="62" colspan="2" bgcolor="#FFFFFF"><?php GetEditor('downmsg',$row['downmsg'],250); ?></td>
  128. </tr>
  129. <tr>
  130. <td height="41" colspan="2" bgcolor="#F9FCEF" align="center">
  131. <input type="submit" name="Submit" value="保存设置" class="coolbg np" />    
  132. <input type="reset" name="rset" id="rset" value="重置" class="coolbg np" />
  133. </td>
  134. </tr>
  135. </form>
  136. </table>
  137. </body>
  138. </html>