diff --git a/fss/fsw/index.html b/fss/fsw/index.html index d1eeba2..8d1e51f 100644 --- a/fss/fsw/index.html +++ b/fss/fsw/index.html @@ -109,10 +109,14 @@
-
源站(192.168.66.100)
+
源站

监听目录:

相对目录:

+
+ 全选 + 同步 +
@@ -181,6 +185,7 @@ var chknum = 0; var scip = ""; //目标服务器ip var urlpath = ".";// 当前的操作目录 + var chkarr = new Array; //选中的文件或目录 //var bfsarr = new Array; // base file infomation array $(function () { @@ -198,7 +203,8 @@ // 目标服务器的文件信息 - var scfs = function () { + // st 源站 或 目标站 + var scfs = function (st) { // scip = $("input[name='sip']").val(); // ip storage @@ -216,7 +222,7 @@ $("input[name='tsdir']").val(urlpath) // var html = "
  • 输入源服务器" + scip + "
  • "; - $("#mbip").text("源站(" + scip + ")"); + $("#ssip").text("源站(" + scip + ")"); // 获取信息 gescinfo("#scsc", scip, urlpath); @@ -227,6 +233,7 @@ // button click function for TARGET SERVER $("#tentsip").on("click", function () { + $("#mbip").text("目标站(" + scip + ")"); tgfs(); }) @@ -276,22 +283,27 @@ // html += "
  • "; - html += ""; - if (v.dirflag) { - html += "" + v.fname + "
    "; + html += ""; + if (v.dirflag) { //如果是文件夹 + html += "" ; + html += v.fname + // html += ""+v.fname +""; + html += "
  • "; } else { html += "" + - "" + v.fname + "
    "; + "" + + v.fname + ""; } - if (v.isbackup == 1) { - html += "
    恢复
    "; - } else { - html += "
    "; - } + // if (v.isbackup == 1) { + // html += "
    恢复
    "; + // } else { + // html += "
    "; + // } html += ""; }) @@ -328,17 +340,17 @@ }) - //全选按钮设置点击事件 $("#slall").click(function () { + //1、循环设置其它多选框选中状态,跟标识用的变量一样 $(".mfile").prop("checked", chkall); // down button toggle if (chkall || chknum > 2) { - $("#tropt").show() + chknum += 1 } else { - $("#tropt").hide() + chknum -= 1 } //2、标识的变量取反 @@ -347,14 +359,20 @@ //同步操作 $("#sybtn").on("click", function () { - var ttsip = $("input[name='serverip']").val(); - if (ttsip == "") { - alert("老天鹅,你还没填写目标服务器地址。"); - } else { - $("#hscip").val(scip); - // 提交表单 - $(".form-inline").submit(); - } + // 获取选中的文件 或者文件夹 + chkarr.push($("input[name='sfiles[]']:checked").val()); + console.log(chkarr) + // var ss = $("input[name='sfiles[]']:checked").val(); + //var ss = $(".mfile").has("checked").val() + // console.log(ss) + // var ttsip = $("input[name='serverip']").val(); + // if (ttsip == "") { + // alert("老天鹅,你还没填写目标服务器地址。"); + // } else { + // $("#hscip").val(scip); + // // 提交表单 + // $(".form-inline").submit(); + // } });