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

140 lines
7.3KB

  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. var op="";
  11. var sel = document.getElementById("c_userlist");
  12. for(var i=0;i<sel.length;i++){
  13. if(sel.options[i].selected == true){
  14. op +=sel.options[i].value+",";
  15. }
  16. }
  17. if(document.form1.c_servurl.value==""||document.form1.c_servurl.value=="http://"){ alert('服务器网址不能为空!'); return ;}
  18. if(document.form1.c_servname.value==""){ alert('服务器名称不能为空!'); return ;}
  19. if(document.form1.c_servuser.value==""){ alert('FTP用户名不能为空!'); return ;}
  20. if(document.form1.c_servpwd.value==""){ alert('FTP密码不能为空!'); return ;}
  21. document.form1.c_servinfo.value += document.form1.c_servname.value+" | "+document.form1.c_servurl.value+
  22. " | "+document.form1.c_servport.value+" | "+document.form1.c_servuser.value+" | "+document.form1.c_servpwd.value+" | "+op+
  23. "\r\n";
  24. }
  25. </script>
  26. </head>
  27. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  28. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  29. <form name="form1" action="sys_multiserv.php" method="post">
  30. <input type="hidden" name="dopost" value="save" />
  31. <tr>
  32. <td height="28" colspan="2" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0">
  33. <tr>
  34. <td width="30%" height="18" style="padding-left:10px;"><strong>服务器分布/远程设置:</strong></td>
  35. <td width="70%" align="right">&nbsp;</td>
  36. </tr>
  37. </table></td>
  38. </tr>
  39. <tr>
  40. <td colspan="2" bgcolor="#FFFFFF">在开启分布/远程设置后需要在栏目中对相关的站点进行设置,例如子域名、后台栏目生成</td>
  41. </tr>
  42. <tr>
  43. <td height="26" colspan="2" bgcolor="#F9FCEF">
  44. <strong>附件服务器设置: </strong></td>
  45. </tr>
  46. <tr>
  47. <td bgcolor="#FFFFFF" width="19%">是否启用附件服务器:</td>
  48. <td width="81%" bgcolor="#FFFFFF">
  49. <input name="c_remoteuploads" type="radio" class="np" value="1" <?php echo ($row['remoteuploads']==1)? 'checked' : '';?>/>
  50. 启用
  51. <input name="c_remoteuploads" type="radio" class="np" value="0" <?php echo ($row['remoteuploads']==0)? 'checked' : '';?>/>
  52. 不启用
  53. <small style="color:#999">开启后附件将同步远程发布到附件服务器中</small></td>
  54. </tr>
  55. <tr>
  56. <td bgcolor="#FFFFFF">附件服务器域名:</td>
  57. <td bgcolor="#FFFFFF"> <label>
  58. <input name="c_remoteupUrl" type="text" id="c_remoteupUrl" value="<?php echo empty($row['remoteupUrl'])? '' :$row['remoteupUrl'];?>" size="35">
  59. <small style="color:#999"> 例如:http://img.dedecms.com,开启后图片地址都变为远程地址</small></label></td>
  60. </tr>
  61. <tr>
  62. <td valign="top" bgcolor="#FFFFFF">远程服务器(FTP):</td>
  63. <td align="center" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="5" cellpadding="0">
  64. <tr>
  65. <td width="14%">主机IP:</td>
  66. <td width="86%" style="text-align:left;"><input name="c_rmhost" type="text" id="c_rmhost" value="<?php echo empty($row['rminfo']['rmhost'])? '' : $row['rminfo']['rmhost'];?>" size="35"></td>
  67. </tr>
  68. <tr>
  69. <td>FTP端口:</td>
  70. <td style="text-align:left;"><input name="c_rmport" type="text" id="c_rmport" value="<?php echo empty($row['rminfo']['rmport'])? '' :$row['rminfo']['rmport'];?>" size="35"></td>
  71. </tr>
  72. <tr>
  73. <td>FTP用户名</td>
  74. <td style="text-align:left;"><input name="c_rmname" type="text" id="c_rmname" value="<?php echo empty($row['rminfo']['rmname'])? '': $row['rminfo']['rmname'];?>" size="35"></td>
  75. </tr>
  76. <tr>
  77. <td>FTP密码</td>
  78. <td style="text-align:left;"><input name="c_rmpwd" type="text" id="c_rmpwd" value="<?php echo empty($row['rminfo']['rmpwd'])? '': $row['rminfo']['rmpwd'];?>" size="35"></td>
  79. </tr>
  80. </table></td>
  81. </tr>
  82. <tr>
  83. <td height="26" colspan="2" bgcolor="#F9FCEF">
  84. <strong>远程服务器列表:</strong>(FTP镜像) <small style="color:#999">添加的服务器配置将在前台远程发布中可选</small></td>
  85. </tr>
  86. <tr>
  87. <td colspan="2" bgcolor="#FFFFFF">
  88. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  89. <tr>
  90. <td width="160" height="30" align="right" style="line-height:28px;">名称:
  91. </td>
  92. <td width="181" align="left" style="line-height:28px;"><input name="c_servname" type="text" id="c_servname" value="站点1" size="22" /></td>
  93. <td width="102" rowspan="6" align="center"><span style="line-height:28px;">
  94. <input type="button" name="Submit2" value="增加一项" onClick="AddServer()" class="coolbg np" />
  95. </span></td>
  96. <td width="832">自定义文本编辑框</td>
  97. </tr>
  98. <tr>
  99. <td width="160" height="30" align="right" style="line-height:28px;">服务器IP:</td>
  100. <td height="30" align="left" style="line-height:28px;"><input name="c_servurl" type="text" id="c_servurl" size="22" /></td>
  101. <td width="832" rowspan="5" valign="top"><textarea name="c_servinfo" id="c_servinfo" style="width:100%;height:150px"><?php echo $row['servinfo'] ;?></textarea><br/>
  102. (<strong>格式</strong>:名称|服务器IP|FTP端口|FTP用户名|FTP密码|管理员,每行一条,以&quot;,&quot;结束)</td>
  103. </tr>
  104. <tr>
  105. <td width="160" height="30" align="right" style="line-height:28px;"> FTP端口:</td>
  106. <td height="30" align="left" style="line-height:28px;"><input name="c_servport" type="text" id="c_servport" value="21" size="6" /></td>
  107. </tr>
  108. <tr>
  109. <td width="160" height="30" align="right" style="line-height:28px;">FTP用户名:</td>
  110. <td height="30" align="left" style="line-height:28px;"><input name="c_servuser" type="text" id="c_servuser" size="22"></td>
  111. </tr>
  112. <tr>
  113. <td width="160" height="15" align="right" style="line-height:28px;">FTP密码:</td>
  114. <td height="15" align="left" style="line-height:28px;"><input name="c_servpwd" type="text" id="c_servpwd" size="22"></td>
  115. </tr>
  116. <tr>
  117. <td height="7" align="right" style="line-height:28px;">管理员:</td>
  118. <td height="7" align="left" style="line-height:28px;"> <select name="c_userlist" size="3" multiple id="c_userlist">
  119. <?php foreach ($adminLists as $adminList) { ?>
  120. <option value="<?php echo $adminList['userid'];?>"><?php echo $adminList['uname'];?> | <?php echo $adminList['typename'];?></option>
  121. <?php }?>
  122. </select>
  123. <br/>(多选)</td>
  124. </tr>
  125. </table>
  126. </td>
  127. </tr>
  128. <tr>
  129. <td height="41" colspan="2" bgcolor="#FAFAF1" align="center">
  130. <input type="submit" name="Submit" value="保存设置" class="coolbg np" />    
  131. <input type="reset" name="rset" id="rset" value="重置" class="coolbg np" />
  132. </td>
  133. </tr>
  134. </form>
  135. </table>
  136. </body>
  137. </html>