| | |
| | | </center> |
| | | |
| | | <input type="button" value="添加分支" onclick="window.location.href='packBranchEdit.php?opType=add'" /> |
| | | 注:打包分支对应的选服、资源、公告等为默认值,即如果对应版本不存在或版本状态不存在则读该打包分支下配置的默认信息; |
| | | <hr /> |
| | | <table width="100%"> |
| | | <?php |
| | |
| | | ?> |
| | | </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> |