<?php 
$server_list = getcache('downservers','commons');
foreach($server_list as $_r) if (in_array($_r['siteid'],array(0,$this->siteid))) $str .='<span class="ib" style="width:25%">'.$_r['sitename'].'</span>';
?>
<fieldset>
<legend>镜像服务器列表</legend>
<?php echo iconv(CHARSET,'utf-8',$str)?>
</fieldset>
<table cellpadding="2" cellspacing="1" width="98%">
	<tr>
	<td>附件下载方式</td>
	<td>
      	<input name="setting[downloadlink]" value="0" type="radio">
        链接到真实软件地址 
        <input name="setting[downloadlink]" value="1" checked="checked" type="radio">
        链接到跳转页面
      
	</td></tr>	
	<tr>
	<td>文件下载方式</td>
	<td>
      	<input name="setting[downloadtype]" value="0" type="radio">
        链接文件地址 
        <input name="setting[downloadtype]" value="1" checked="checked" type="radio">
        通过PHP读取      
	</td></tr>
	<tr> 
      <td>允许上传的文件类型</td>
      <td><input type="text" name="setting[upload_allowext]" value="rar|zip" size="40" class="input-text"></td>
    </tr>
	<tr> 
      <td>是否从已上传中选择</td>
      <td><input type="radio" name="setting[isselectfile]" value="1"> 是 <input type="radio" name="setting[isselectimage]" value="0" checked> 否</td>
    </tr>
	<tr> 
      <td>允许同时上传的个数</td>
      <td><input type="text" name="setting[upload_number]" value="10" size=3></td>
    </tr>	
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
	function add_mirrorsite(obj)
	{
		var name = $(obj).siblings("#addname").val();
		var url = $(obj).siblings("#addurl").val();
		var servers = $("#servers").text()+name+" | "+url+"\r\n";
		$("#servers").text(servers);
	}
//-->
</SCRIPT>