source: pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php @ 372

Last change on this file since 372 was 371, checked in by quyenla, 11 years ago

collaborator order sourcecode

File size: 7.6 KB
Line 
1<?php
2$base_url = base_url();
3$this->load->view('layout/admin/header', array('base_url' => $base_url));
4$this->load->view('layout/admin/sidebar', array('base_url' => $base_url));
5?>
6<script type="text/javascript">
7    function init_page()
8    {
9
10        $(".ajax_paging").click(function () {
11            $.ajax({
12                url: $(this).attr("href"),
13                type: "POST",
14                data: $("#collaborator").serialize(),
15                success: function (data, textStatus, jqXHR)
16                {
17                    // $result = jQuery.parseJSON(data);
18                    $("#content").html(data);
19                    init_page();
20
21                },
22                error: function (jqXHR, textStatus, errorThrown)
23                {
24                    $(".ajaxloading").hide();
25                }
26            });
27            return false;
28        })
29        $('#keyword').keyup(function (event) {
30            if (event.keyCode == '13') {
31                filter();
32            }
33            return false;
34        });
35       
36       
37$( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) {
38            var current_class=$( this ).attr('class');
39            $(".sorting_desc").attr("class","sorting");
40            $(".sorting_asc").attr("class","sorting");
41     
42            if(current_class=='sorting')
43            {
44                $(this).attr("class","sorting_desc");
45            }
46            else
47            {
48                if(current_class=='sorting_desc')
49                {
50                    $(this).attr("class","sorting_asc");
51                }
52                else
53                    {
54                    if(current_class=='sorting_asc')
55                    {
56                        $(this).attr("class","sorting");
57                    }
58                }
59            }
60            $("#sorting_field").val($(this).attr("id"));
61            $("#sorting_order").val($(this).attr("class"));
62            filter();
63        });
64
65
66    }
67
68
69    function filter()
70    {
71        $.ajax({
72            url: 'http://viettel.violet.vn/admin/cong_tac_vien/trang/1',
73            type: "POST",
74            data: $("#collaborator").serialize(),
75            success: function (data, textStatus, jqXHR)
76            {
77                // $result = jQuery.parseJSON(data);
78                $("#content").html(data);
79                init_page();
80                $("#keyword").focus();
81                $("#keyword").setCursorToTextEnd();
82
83            },
84            error: function (jqXHR, textStatus, errorThrown)
85            {
86                $(".ajaxloading").hide();
87            }
88        });
89    }
90
91
92</script>
93<div class="main-content" id="content">
94    <?php echo $content; ?>
95</div><!-- /.main-content -->
96</div><!-- /.main-container-inner -->
97
98<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
99    <i class="icon-double-angle-up icon-only bigger-110"></i>
100</a>
101</div><!-- /.main-container -->
102
103
104<div id="addUser" class="modal fade in" tabindex="-1">
105    <div class="modal-dialog">
106        <div class="modal-content">
107            <div class="modal-header no-padding">
108                <div class="table-header">
109                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
110                        <span class="white">×</span>
111                    </button>
112                    Thêm cộng tác viên
113                </div>
114            </div>
115
116            <div class="modal-body">
117                <form id="add_user" onsubmit="return false;" class="form-horizontal" role="form">
118                    <div class="form-group">
119                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tên đầy đủ </label>
120
121                        <div class="col-sm-9">
122                            <span class="input-icon">
123                                <input name="full_name" type="text" id="form-field-1" placeholder="Tên cộng tác viên">
124                                <i class="icon-user blue"></i>
125                            </span>
126                        </div>
127                        <div class="help-block"> </div>
128                    </div>
129                    <div class="form-group">
130                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tên đăng nhập </label>
131
132                        <div class="col-sm-9">
133                            <span class="input-icon">
134                                <input name="login_name" type="text" id="form-field-1" placeholder="Tài khoản">
135                                <i class="icon-user blue"></i>
136                            </span>
137                        </div>
138                        <div class="help-block"> </div>
139                    </div>
140                    <div class="form-group">
141                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Số điện thoại</label>
142
143                        <div class="col-sm-9">
144                            <span class="input-icon">
145                                <input name="cellphone" type="text" id="form-field-1" placeholder="Số điện thoại">
146                                <i class="icon-user blue"></i>
147                            </span>
148                        </div>
149                        <div class="help-block"> </div>
150                    </div>
151                    <div class="space-4"></div>
152
153                    <div class="form-group">
154                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Mật khẩu </label>
155
156                        <div class="col-sm-9">
157                            <span class="input-icon">
158                                <input type="password" name="passwd" id="form-field-2" placeholder="Mật khẩu">
159                                <i class="icon-lock blue"></i>
160                            </span>
161                        </div>
162                        <div class="help-block"> </div>
163                    </div>
164                    <div class="form-group">
165                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Mật khẩu </label>
166
167                        <div class="col-sm-9">
168                            <span class="input-icon">
169                                <input type="password" name="passwd2" id="form-field-2" placeholder="Nhập lại mật khẩu">
170                                <i class="icon-lock blue"></i>
171                            </span>
172                        </div>
173                        <div class="help-block"> </div>
174                    </div>
175
176                    <div class="space-4"></div>
177                    <div class="form-group errors" id="add_user">
178                       
179                    </div>
180                    <div class="clearfix form-actions">
181                        <div class="col-md-offset-3 col-md-9">
182                            <button class="btn btn-info" id="add_user" type="button">
183                                <i class="icon-ok bigger-110"></i>
184                                Hoàn tất
185                            </button>
186
187                            &nbsp; &nbsp; &nbsp;
188                            <button class="btn" type="reset">
189                                <i class="icon-undo bigger-110"></i>
190                                Xóa hết
191                            </button>
192                        </div>
193                    </div>
194
195                </form></div>
196
197        </div>
198    </div><!-- /.modal-content -->
199</div><!-- /.modal-dialog -->
200<?php
201$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/collaborator.js')));
202?>
Note: See TracBrowser for help on using the repository browser.