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, 'method'=>$this->router->method, 'class'=>$this->router->class )); |
---|
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 | $('[data-toggle="ajaxModal"]').on('click', |
---|
65 | function(e) { |
---|
66 | $('#ajaxModal').remove(); |
---|
67 | e.preventDefault(); |
---|
68 | var $this = $(this) |
---|
69 | , $remote = $this.data('remote') || $this.attr('href') |
---|
70 | , $modal = $('<div class="modal" id="ajaxModal"><div class="modal-body"></div></div>'); |
---|
71 | $('body').append($modal); |
---|
72 | $modal.modal({backdrop: 'static', keyboard: false}); |
---|
73 | $modal.load($remote); |
---|
74 | } |
---|
75 | ); |
---|
76 | |
---|
77 | |
---|
78 | } |
---|
79 | |
---|
80 | |
---|
81 | function filter() |
---|
82 | { |
---|
83 | $.ajax({ |
---|
84 | url: 'http://viettel.violet.vn/admin/mau_tin_nhan/trang/1', |
---|
85 | type: "POST", |
---|
86 | data: $("#collaborator").serialize(), |
---|
87 | success: function (data, textStatus, jqXHR) |
---|
88 | { |
---|
89 | // $result = jQuery.parseJSON(data); |
---|
90 | $("#content").html(data); |
---|
91 | init_page(); |
---|
92 | $("#keyword").focus(); |
---|
93 | $("#keyword").setCursorToTextEnd(); |
---|
94 | |
---|
95 | }, |
---|
96 | error: function (jqXHR, textStatus, errorThrown) |
---|
97 | { |
---|
98 | $(".ajaxloading").hide(); |
---|
99 | } |
---|
100 | }); |
---|
101 | } |
---|
102 | |
---|
103 | |
---|
104 | </script> |
---|
105 | <style type="text/css" media="screen"> |
---|
106 | .widget-header-flat { |
---|
107 | background: #307ecc; |
---|
108 | color: #fff |
---|
109 | } |
---|
110 | .widget-toolbar>[data-action="collapse"], .header-color-dark>.widget-toolbar>[data-action="collapse"] { |
---|
111 | color: #fff |
---|
112 | } |
---|
113 | .widget-header, .widget-content { |
---|
114 | width: auto |
---|
115 | } |
---|
116 | .widget-body .table thead:first-child tr { |
---|
117 | background: #EDECEC; |
---|
118 | color: #707070; |
---|
119 | font-weight: normal; |
---|
120 | } |
---|
121 | </style> |
---|
122 | <div class="main-content" id="content"> |
---|
123 | <div id="breadcrumbs" class="breadcrumbs"> |
---|
124 | |
---|
125 | <ul class="breadcrumb"> |
---|
126 | <li> |
---|
127 | <i class="icon-home home-icon"></i> |
---|
128 | <a href="#">Trang chá»§</a> |
---|
129 | </li> |
---|
130 | |
---|
131 | <li> |
---|
132 | <a href="#">Quản lÜ tin nhắn</a> |
---|
133 | </li> |
---|
134 | |
---|
135 | </ul><!-- .breadcrumb --> |
---|
136 | |
---|
137 | <div id="nav-search" class="nav-search"> |
---|
138 | <form class="form-search"> |
---|
139 | <span class="input-icon"> |
---|
140 | <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="Tìm kiếm ..."> |
---|
141 | <i class="icon-search nav-search-icon"></i> |
---|
142 | </span> |
---|
143 | </form> |
---|
144 | </div><!-- #nav-search --> |
---|
145 | </div> |
---|
146 | |
---|
147 | |
---|
148 | |
---|
149 | |
---|
150 | <div class="page-content"> |
---|
151 | |
---|
152 | <div class="page-header"> |
---|
153 | <h1> |
---|
154 | Tin nhắn |
---|
155 | <small> |
---|
156 | <i class="icon-double-angle-right"></i> |
---|
157 | Mẫu tin nhắn |
---|
158 | </small> |
---|
159 | </h1> |
---|
160 | </div><!-- /.page-header --> |
---|
161 | |
---|
162 | <div class="row"> |
---|
163 | |
---|
164 | |
---|
165 | <?php echo $statistics; ?> |
---|
166 | <?php //echo $content; ?> |
---|
167 | </div> |
---|
168 | </div> |
---|
169 | </div><!-- /.main-content --> |
---|
170 | </div><!-- /.main-container-inner --> |
---|
171 | |
---|
172 | <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> |
---|
173 | <i class="icon-double-angle-up icon-only bigger-110"></i> |
---|
174 | </a> |
---|
175 | </div><!-- /.main-container --> |
---|
176 | |
---|
177 | |
---|
178 | <div id="addSms" class="modal fade in" tabindex="-1"> |
---|
179 | |
---|
180 | <div class="modal-dialog"> |
---|
181 | <div class="modal-content"> |
---|
182 | <div class="modal-header no-padding"> |
---|
183 | <div class="table-header"> |
---|
184 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> |
---|
185 | <span class="white">Ã</span> |
---|
186 | </button> |
---|
187 | Mẫu tin nhắn |
---|
188 | </div> |
---|
189 | </div> |
---|
190 | |
---|
191 | <div class="modal-body"> |
---|
192 | <form id="add_sms" onsubmit="return false;" class="form-horizontal" role="form"> |
---|
193 | |
---|
194 | <div class="form-group"> |
---|
195 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Mẫu tin nhắn </label> |
---|
196 | |
---|
197 | <div class="col-sm-9"> |
---|
198 | <span class="input-icon"> |
---|
199 | <input name="sms_content" type="text" id="form-field-1" placeholder="Mẫu tin nhắn" value=""> |
---|
200 | <i class="icon-user blue"></i> |
---|
201 | </span> |
---|
202 | </div> |
---|
203 | <div class="help-block"> </div> |
---|
204 | </div> |
---|
205 | <div class="form-group"> |
---|
206 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tin trả lá»i </label> |
---|
207 | |
---|
208 | <div class="col-sm-9"> |
---|
209 | <span class="input-icon"> |
---|
210 | <input name="sms_reply" type="text" id="form-field-1" placeholder="Tin trả lá»i" value=""> |
---|
211 | <i class="icon-user blue"></i> |
---|
212 | </span> |
---|
213 | </div> |
---|
214 | <div class="help-block"> </div> |
---|
215 | </div> |
---|
216 | <div class="form-group"> |
---|
217 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Mã dá»ch vụ</label> |
---|
218 | |
---|
219 | <div class="col-sm-9"> |
---|
220 | <span class="input-icon"> |
---|
221 | <input name="service_id" type="text" id="form-field-1" placeholder="Mã dá»ch vụ" value=""> |
---|
222 | <i class="icon-user blue"></i> |
---|
223 | </span> |
---|
224 | </div> |
---|
225 | <div class="help-block"> </div> |
---|
226 | </div> |
---|
227 | <div class="form-group"> |
---|
228 | <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Mã lá»nh</label> |
---|
229 | |
---|
230 | <div class="col-sm-9"> |
---|
231 | <span class="input-icon"> |
---|
232 | <input name="commandcode" type="text" id="form-field-1" placeholder="Mã lá»nh" value=""> |
---|
233 | <i class="icon-user blue"></i> |
---|
234 | </span> |
---|
235 | </div> |
---|
236 | <div class="help-block"> </div> |
---|
237 | </div> |
---|
238 | |
---|
239 | |
---|
240 | <div class="space-4"></div> |
---|
241 | |
---|
242 | |
---|
243 | |
---|
244 | <div class="space-4"></div> |
---|
245 | <div class="form-group errors" id="add_sms"></div> |
---|
246 | |
---|
247 | </div> |
---|
248 | <div class="clearfix form-actions"> |
---|
249 | <div class="col-md-offset-3 col-md-9"> |
---|
250 | <button class="btn btn-info" id="add_sms" type="button"> |
---|
251 | <i class="icon-ok bigger-110"></i> |
---|
252 | Hoà n tất |
---|
253 | </button> |
---|
254 | |
---|
255 | |
---|
256 | <button class="btn" type="reset"> |
---|
257 | <i class="icon-undo bigger-110"></i> |
---|
258 | Xóa hết |
---|
259 | </button> |
---|
260 | </div> |
---|
261 | </div> |
---|
262 | |
---|
263 | </form></div> |
---|
264 | |
---|
265 | </div> |
---|
266 | |
---|
267 | </div><!-- /.modal-content --> |
---|
268 | </div><!-- /.modal-dialog --> |
---|
269 | <?php |
---|
270 | $this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/smstemplate.js'))); |
---|
271 | ?> |
---|