hxp
2024-11-19 3c433d5045813bd41d407b34a381cf100465621f
serverops/packBranch.php
@@ -131,6 +131,7 @@
   </center>
   <input type="button" value="添加分支" onclick="window.location.href='packBranchEdit.php?opType=add'" />
   &nbsp;注:打包分支对应的选服、资源、公告等为默认值,即如果对应版本不存在或版本状态不存在则读该打包分支下配置的默认信息;
   <hr />
   <table width="100%">
      <?php
@@ -168,30 +169,16 @@
      ?>
   </table>
   <script type='text/javascript' src="/js/common.js"></script>
   <script type="text/javascript">
      function doPost(to, p) { // to:提交动作(action),p:参数
         var myForm = document.createElement("form");
         myForm.method = "post";
         myForm.action = to;
         for (var i in p) {
            var myInput = document.createElement("input");
            myInput.setAttribute("name", i); // 为input对象设置name
            myInput.setAttribute("value", p[i]); // 为input对象设置value
            myForm.appendChild(myInput);
         }
         document.body.appendChild(myForm);
         myForm.submit();
         document.body.removeChild(myForm); // 提交后移除创建的form
      }
      function suredel(Channel, BranchNum, BranchName) {
         if (!window.confirm("确定删除" + Channel + "分支: " + BranchName + " (" + BranchNum + ") ?")) {
            return false;
         }
         doPost("packBranch.php", {
         doSubmit("packBranch.php", {
            "opType": "del",
            "BranchNum": BranchNum,
         });
         }, 'post');
         return true;
      }
   </script>