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 | |
---|
38 | function filter() |
---|
39 | { |
---|
40 | $.ajax({ |
---|
41 | url: 'http://viettel.violet.vn/admin/cong_tac_vien/trang/1', |
---|
42 | type: "POST", |
---|
43 | data: $("#collaborator").serialize(), |
---|
44 | success: function (data, textStatus, jqXHR) |
---|
45 | { |
---|
46 | // $result = jQuery.parseJSON(data); |
---|
47 | $("#content").html(data); |
---|
48 | init_page(); |
---|
49 | $("#keyword").focus(); |
---|
50 | $("#keyword").setCursorToTextEnd(); |
---|
51 | |
---|
52 | }, |
---|
53 | error: function (jqXHR, textStatus, errorThrown) |
---|
54 | { |
---|
55 | $(".ajaxloading").hide(); |
---|
56 | } |
---|
57 | }); |
---|
58 | } |
---|
59 | |
---|
60 | |
---|
61 | </script> |
---|
62 | <div class="main-content" id="content"> |
---|
63 | <?php echo $content; ?> |
---|
64 | </div><!-- /.main-content --> |
---|
65 | </div><!-- /.main-container-inner --> |
---|
66 | |
---|
67 | <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> |
---|
68 | <i class="icon-double-angle-up icon-only bigger-110"></i> |
---|
69 | </a> |
---|
70 | </div><!-- /.main-container --> |
---|
71 | |
---|
72 | |
---|
73 | <div id="addUser" class="modal fade in" tabindex="-1"> |
---|
74 | <div class="modal-dialog"> |
---|
75 | <div class="modal-content"> |
---|
76 | <div class="modal-header no-padding"> |
---|
77 | <div class="table-header"> |
---|
78 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> |
---|
79 | <span class="white">Ã</span> |
---|
80 | </button> |
---|
81 | Thêm cá»ng tác viên |
---|
82 | </div> |
---|
83 | </div> |
---|
84 | |
---|
85 | <div class="modal-body"> |
---|
86 | <form id="add_user" onsubmit="return false;" class="form-horizontal" role="form"> |
---|
87 | <div class="form-group"> |
---|
88 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tên Äầy Äá»§ </label> |
---|
89 | |
---|
90 | <div class="col-sm-9"> |
---|
91 | <span class="input-icon"> |
---|
92 | <input name="full_name" type="text" id="form-field-1" placeholder="Tên cá»ng tác viên"> |
---|
93 | <i class="icon-user blue"></i> |
---|
94 | </span> |
---|
95 | </div> |
---|
96 | <div class="help-block"> </div> |
---|
97 | </div> |
---|
98 | <div class="form-group"> |
---|
99 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tên ÄÄng nháºp </label> |
---|
100 | |
---|
101 | <div class="col-sm-9"> |
---|
102 | <span class="input-icon"> |
---|
103 | <input name="login_name" type="text" id="form-field-1" placeholder="Tà i khoản"> |
---|
104 | <i class="icon-user blue"></i> |
---|
105 | </span> |
---|
106 | </div> |
---|
107 | <div class="help-block"> </div> |
---|
108 | </div> |
---|
109 | <div class="form-group"> |
---|
110 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Sá» Äiá»n thoại</label> |
---|
111 | |
---|
112 | <div class="col-sm-9"> |
---|
113 | <span class="input-icon"> |
---|
114 | <input name="cellphone" type="text" id="form-field-1" placeholder="Sá» Äiá»n thoại"> |
---|
115 | <i class="icon-user blue"></i> |
---|
116 | </span> |
---|
117 | </div> |
---|
118 | <div class="help-block"> </div> |
---|
119 | </div> |
---|
120 | <div class="space-4"></div> |
---|
121 | |
---|
122 | <div class="form-group"> |
---|
123 | <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> Máºt khẩu </label> |
---|
124 | |
---|
125 | <div class="col-sm-9"> |
---|
126 | <span class="input-icon"> |
---|
127 | <input type="password" name="passwd" id="form-field-2" placeholder="Máºt khẩu"> |
---|
128 | <i class="icon-lock blue"></i> |
---|
129 | </span> |
---|
130 | </div> |
---|
131 | <div class="help-block"> </div> |
---|
132 | </div> |
---|
133 | |
---|
134 | <div class="space-4"></div> |
---|
135 | |
---|
136 | <div class="clearfix form-actions"> |
---|
137 | <div class="col-md-offset-3 col-md-9"> |
---|
138 | <button class="btn btn-info" id="add_user" type="button"> |
---|
139 | <i class="icon-ok bigger-110"></i> |
---|
140 | Hoà n tất |
---|
141 | </button> |
---|
142 | |
---|
143 | |
---|
144 | <button class="btn" type="reset"> |
---|
145 | <i class="icon-undo bigger-110"></i> |
---|
146 | Xóa hết |
---|
147 | </button> |
---|
148 | </div> |
---|
149 | </div> |
---|
150 | |
---|
151 | </form></div> |
---|
152 | |
---|
153 | </div> |
---|
154 | </div><!-- /.modal-content --> |
---|
155 | </div><!-- /.modal-dialog --> |
---|
156 | <?php |
---|
157 | $this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/collaborator.js'))); |
---|
158 | ?> |
---|