field_edit_form.inc.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. defined('IN_PHPCMS') or exit('No permission resources.');
  3. $server_list = getcache('downservers','commons');
  4. foreach($server_list as $_r) if (in_array($_r['siteid'],array(0,$this->siteid))) $str .='<span class="ib" style="width:25%">'.$_r['sitename'].'</span>';
  5. ?>
  6. <fieldset>
  7. <legend>镜像服务器列表</legend>
  8. <?php echo $str?>
  9. </fieldset>
  10. <table cellpadding="2" cellspacing="1" width="98%">
  11. <tr>
  12. <td>文件链接方式</td>
  13. <td>
  14. <input name="setting[downloadlink]" value="0" type="radio" <?php if(!$setting['downloadlink']) echo 'checked';?>>
  15. 链接到真实软件地址
  16. <input name="setting[downloadlink]" value="1" type="radio" <?php if($setting['downloadlink']) echo 'checked';?>>
  17. 链接到跳转页面
  18. </td>
  19. </tr>
  20. <tr>
  21. <td>文件下载方式</td>
  22. <td>
  23. <input name="setting[downloadtype]" value="0" type="radio" <?php if(!$setting['downloadtype']) echo 'checked';?>>
  24. 链接文件地址
  25. <input name="setting[downloadtype]" value="1" type="radio" <?php if($setting['downloadtype']) echo 'checked';?>>
  26. 通过PHP读取
  27. </td>
  28. <tr>
  29. <td>允许上传的文件类型</td>
  30. <td><input type="text" name="setting[upload_allowext]" value="<?php echo $setting['upload_allowext'];?>" size="40" class="input-text"></td>
  31. </tr>
  32. <tr>
  33. <td>是否从已上传中选择</td>
  34. <td><input type="radio" name="setting[isselectimage]" value="1" <?php if($setting['isselectimage']) echo 'checked';?>> 是 <input type="radio" name="setting[isselectimage]" value="0" <?php if(!$setting['isselectimage']) echo 'checked';?>> 否</td>
  35. </tr>
  36. <tr>
  37. <td>允许同时上传的个数</td>
  38. <td><input type="text" name="setting[upload_number]" value="<?php echo $setting['upload_number'];?>" size=3></td>
  39. </tr>
  40. </tr>
  41. </table>
  42. <SCRIPT LANGUAGE="JavaScript">
  43. <!--
  44. function add_mirrorsite(obj)
  45. {
  46. var name = $(obj).siblings("#addname").val();
  47. var url = $(obj).siblings("#addurl").val();
  48. var servers = $("#servers").text()+name+" | "+url+"\r\n";
  49. $("#servers").text(servers);
  50. }
  51. //-->
  52. </SCRIPT>