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

106 lines
4.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 rel="stylesheet" href="../static/web/css/admin.css">
  7. <link rel="stylesheet" media="all" href="../static/web/js/calendar/calendar-win2k-1.css" title="win2k-1">
  8. <script type="text/javascript" src="../static/web/js/calendar/calendar.js"></script>
  9. <script type="text/javascript" src="../static/web/js/calendar/calendar-cn.js"></script>
  10. <script language="javascript">
  11. function checkAll()
  12. {
  13. for(i=0;i<document.form2.Iterm.length;i++)
  14. {
  15. if(!document.form2.Iterm[i].checked)
  16. {
  17. document.form2.Iterm[i].checked=true;
  18. } else {
  19. document.form2.Iterm[i].checked=false;
  20. }
  21. }
  22. }
  23. function changeDopost(postval)
  24. {
  25. document.form2.maketype.value = postval;
  26. document.form2.submit;
  27. }
  28. </script>
  29. </head>
  30. <body>
  31. <table width="98%" border="0" cellpadding="3" cellspacing="1" align="center">
  32. <form action="makeremote_all.php" method="post" name="form2" target="stafrm" id="form2">
  33. <input type="hidden" name="dopost" value="make">
  34. <input type="hidden" name="maketype" value="">
  35. <tr>
  36. <td height="26" colspan="5" background="../static/web/img/tbg.gif">
  37. <table width="98%" border="0" cellpadding="0" cellspacing="0">
  38. <tr>
  39. <td width="30%" height="18">远程服务器同步向导:</td>
  40. <td width="70%" align="right"><a href="makeremote_all.php?dopost=updateremote">&nbsp;[更新同步目录]</a></td>
  41. </tr>
  42. </table>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td width="61" bgcolor="#ffffff">
  47. <label><input type="checkbox" name="remoteiterm" id="remoteiterm" onChange="javascript:checkAll()"></label>&nbsp;选择
  48. </td>
  49. <td width="185" align="center" bgcolor="#ffffff">项目(站点根目录)</td>
  50. <td width="265" align="center" bgcolor="#ffffff">项目说明</td>
  51. <td width="195" align="center" bgcolor="#ffffff">选择服务器</td>
  52. <td width="196" align="center" bgcolor="#ffffff">状态</td>
  53. </tr>
  54. <?php
  55. foreach($remotefile as $key => $value)
  56. {
  57. $bgcolor = ($key % 2 == 0)? '#E6F3CD' : '#ffffff';
  58. ?>
  59. <tr>
  60. <td width="60" align="center" bgcolor="<?php echo $bgcolor; ?>"><input name="Iterm[<?php echo $key; ?>]" type="checkbox" id="Iterm" value="<?php echo $value['filedir'] ; ?>"></td>
  61. <td width="185" align="left" bgcolor="<?php echo $bgcolor; ?>"><?php echo $value['filedir'] ; ?><?php echo ($value['issystem']==1)? '<span style='color:#dc3545'>[系统]</span>' : '' ; ?></td>
  62. <td width="260" bgcolor="<?php echo $bgcolor; ?>"><?php echo $value['description'] ; ?></td>
  63. <td width="190" align="center" bgcolor="<?php echo $bgcolor; ?>"><label></label></td>
  64. <td width="190" align="center" bgcolor="<?php echo $bgcolor; ?>"><?php echo GetState($value['state']) ; ?></td>
  65. </tr>
  66. <?php
  67. }
  68. ?>
  69. <tr>
  70. <td height="30" colspan="5" bgcolor="#FAFAF1" align="left">功能说明:本功能主要用于本地服务器文件同远程服务器进行同步,这里我们有几个是系统文件夹(Html生成、文件上传、专题)是必须要同远程服务器同步的,当然也有可选文件夹,用户可以在系统根目录\data\config.file.inc.php文件中进行修改(修改方法已在文件中说明)</td>
  71. </tr>
  72. <tr>
  73. <td height="30" colspan="5" bgcolor="#FAFAF1" align="center">
  74. <input type="submit" class='coolbg np' name="Submit2" value="更新选择">&nbsp;
  75. <input type="submit" class='coolbg np' name="Submit" value="同步更新所有" onClick="changeDopost('makeall')">
  76. </td>
  77. </tr>
  78. </form>
  79. <tr bgcolor="#E6F3CD">
  80. <td height="26" colspan="5"><table width="100%">
  81. <tr>
  82. <td width="70%">进行状态:</td>
  83. <td width="30%" align="right">
  84. <script language='javascript'>
  85. function ResizeDiv(obj,ty) {
  86. if(ty=="+") document.all[obj].style.pixelHeight += 50;
  87. else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
  88. }
  89. </script>
  90. <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
  91. <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
  92. </td>
  93. </tr>
  94. </table>
  95. </td>
  96. </tr>
  97. <tr bgcolor="#ffffff">
  98. <td colspan="5" id="mtd">
  99. <div id="mdv" style="width:100%;height:300px">
  100. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  101. </div>
  102. </td>
  103. </tr>
  104. </table>
  105. </body>
  106. </html>