1
wangsheng
2022-03-22 7bd27b4c5967ffaa87e8a813687da7edb909148c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<%@ Page Language="C#"   AutoEventWireup="true" CodeFile="GwDiverter.aspx.cs" Inherits="_GwDiverter" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" /><meta http-equiv="Cache-Control" content="no-siteapp" />
<title>gwdiverter.aspx</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico" /><link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet" /><link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet" /><link href="css/plugins/iCheck/custom.css" rel="stylesheet" /><link href="css/animate.min.css" rel="stylesheet" /><link href="css/style.min862f.css?v=4.1.0" rel="stylesheet" /><link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet" /><link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet" /><link href="css/jquery.numberedtextarea.css" rel="stylesheet" />
    <script src="js/loading.js" type="text/javascript"></script>
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/json.js"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/content.min.js?v=1.0.0"></script>
    <script src="js/plugins/iCheck/icheck.min.js"></script>
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="/js/jquery-loading.js"></script>
    <script type="text/javascript" src="/js/jquery-form.js"></script>
    <script type="text/javascript" src="/js/jquery.numberedtextarea.js"></script>
    <script type="text/javascript" src="/js/mytek-pager.js"></script>
    <script src="js/mytek-pagination.js?r=11" type="text/javascript"></script>
    <style>
        body { font-size: 12px; color: #111111; }
        .mask { position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777; z-index: 1002; left: 0px; opacity: 0.5; -moz-opacity: 0.5; text-align: center; display: none; }
        .mask span { height: 70%; display: inline-block; vertical-align: middle; }
        .mask span img { vertical-align: middle; }
    </style>
    <script>
        (function ($) {
            $.ajaxBak = $.ajax;
 
            $.ajax = function (options) {
                options.timeout = 300000;
                options.url = options.url + (options.url.indexOf("?") > 0 ? "&" : "?") + "r=" + Math.random();
 
                options.complete = function (e) {
                    $("body").hideLoading();
                }
 
                if (options.showloading !== false) {
                    $("body").showLoading();
                }
 
                try {
                    return $.ajaxBak.call(this, options);
                } catch (e) {
                    if (options.showloading !== false) {
                        $("body").hideLoading();
                    }
                }
                return this;
            }
        })(jQuery);
 
       $(document).ready(function(){
            $(".icheck-me").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",});
            $(".input-group.date").datepicker({todayBtn:"linked",keyboardNavigation:!1,forceParse:!1,calendarWeeks:!0,autoclose:!0});
            $("[data-toggle='tooltip']").tooltip();
            $("[data-toggle=popover]").popover()
       });
    </script>
    
    <script type="text/javascript" language="javascript">
        function disAdd() {
            location.href = "GwDiverterUpdate.aspx?action=add";
        }
 
        $(document).ready(function() {
 
            $("#checkAll").click(function() {
                $("input[name='checkbox']").prop("checked", $(this).is(":checked"));
            });
 
            function loadPageList() {
                $.ajax({
                    url: "GwDiverter.ashx",
                    type: "POST",
                    data: { action: "loadGwDiverter" },
                    success: function(result) {
                        if (result.OK) {
                            $("#gwdiverterTable tbody").html(result.Message.Table);
                        } else {
                            mytek.alert(result.Message, result.OK);
                        }
                    }
                });
            }
 
            loadPageList();
 
            $(document).on("click", ".action-delete", function() {
                var id = $(this).data("id");
                mytek.confirm("是否需要删除导流策略?", "导流策略删除后将无法恢复,请谨慎操作!", function(b) {
                    if (b) {
                        $.post("GwDiverter.ashx", { action: "delete", did: id }, function(r) {
                            if (r.OK) {
                                mytek.alert(r.Message, true, function() {
                                    loadPageList();
                                });
                            } else {
                                mytek.alert(r.Message, false);
                            }
 
                        });
                    }
                });
            })
 
            $(document).on("click", ".action-edit", function() {
                var id = $(this).data("id");
                location.href = "GwDiverterUpdate.aspx?action=edit&DiverterID=" + id;
            })
        });
    </script>
</head>
<body class="white-bg">
    
    <div class="wrapper wrapper-content table-responsive">
        
    <form name="Form_ID" method="post" action="GwClient.aspx" id="Form_ID">
    <table class="table table-striped table-bordered table-hover" id="gwdiverterTable">
        <thead>
            <tr class="header">
                <th class="col-md-2">
                    导流编号
                </th>
                <th class="col-md-2">
                    导流策略名
                </th>
                <th class="col-md-9">
                    策略内容
                </th>
                <th class="col-md-1">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
    </form>
    <div class="footBar">
        <div class="operatorBar">
            <input class="btn btn-warning" value="添  加" onclick="disAdd();" type="button" />
        </div>
        <!-- .operatorBar -->
    </div>
    <!-- .footBar -->
 
        <div id="mask" class="mask">
            <span></span>
            <img src="img/spinning-circles.svg" alt="载入中..." /></div>
    </div>
</body>
</html>