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

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

paidlogs

File size: 9.7 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, '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                                $('#sales-charts').css({'width':'100%' , 'height':'200px'});
80                                $.plot("#sales-charts", <?php echo json_encode($chard) ?>, {
81                                        hoverable: true,
82                                        shadowSize: 0,
83                                        series: {
84                                                lines: { show: true },
85                                                points: { show: true }
86                                        },
87                                        xaxis: {
88                                                tickLength: 0
89                                        },
90                                        yaxis: {
91                                                ticks: 10,
92                                                min: 0,
93                                                max:<?php echo $max;?>,
94                                                tickDecimals: 0
95                                        },
96                                        grid: {
97                                                backgroundColor: { colors: [ "#fff", "#fff" ] },
98                                                borderWidth: 1,
99                                                borderColor:'#555'
100                                        }
101                                });
102    }
103
104
105    function filter()
106    {
107        $.ajax({
108            url: 'http://viettel.violet.vn/admin/doanh_thu_tong_hop/trang/1',
109            type: "POST",
110            data: $("#collaborator").serialize(),
111            success: function (data, textStatus, jqXHR)
112            {
113                // $result = jQuery.parseJSON(data);
114                $("#content").html(data);
115                init_page();
116                $("#keyword").focus();
117                $("#keyword").setCursorToTextEnd();
118
119            },
120            error: function (jqXHR, textStatus, errorThrown)
121            {
122                $(".ajaxloading").hide();
123            }
124        });
125    }
126
127
128</script>
129<style type="text/css" media="screen">
130                        .widget-header-flat {
131                                background: #307ecc;
132                                color: #fff
133                        }
134                        .widget-toolbar>[data-action="collapse"], .header-color-dark>.widget-toolbar>[data-action="collapse"] {
135                                color: #fff
136                        }
137                        .widget-header, .widget-content {
138                                width: auto
139                        }
140                        .widget-body .table thead:first-child tr {
141                                background: #EDECEC;
142                            color: #707070;
143                            font-weight: normal;
144                        }
145                </style>
146             
147<div class="main-content" >
148    <div id="breadcrumbs" class="breadcrumbs">
149
150    <ul class="breadcrumb">
151        <li>
152            <i class="icon-home home-icon"></i>
153            <a href="#">Trang chá»§</a>
154        </li>
155
156        <li>
157            <a href="#">Quản lÜ tin nhắn</a>
158        </li>
159       
160    </ul><!-- .breadcrumb -->
161
162    <div id="nav-search" class="nav-search">
163        <form class="form-search">
164            <span class="input-icon">
165                <input type="text" autocomplete="off" id="nav-search-input" class="nav-search-input" placeholder="Tìm kiếm ...">
166                <i class="icon-search nav-search-icon"></i>
167            </span>
168        </form>
169    </div><!-- #nav-search -->
170</div>
171   
172   
173   
174   
175<div class="page-content">
176   
177    <div class="page-header">
178        <h1>
179            Tin nhắn
180            <small>
181                <i class="icon-double-angle-right"></i>
182                Mẫu tin nhắn
183            </small>
184        </h1>
185    </div><!-- /.page-header -->
186   
187     <div class="row"> 
188    <?php echo $statistics; ?>   
189     </div>
190     <div class="row" id="content">   
191    <?php echo $content; ?>
192     </div>
193    </div>
194</div><!-- /.main-content -->
195</div><!-- /.main-container-inner -->
196
197<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
198    <i class="icon-double-angle-up icon-only bigger-110"></i>
199</a>
200</div><!-- /.main-container -->
201
202
203<div id="addSms" class="modal fade in" tabindex="-1">
204     
205    <div class="modal-dialog">
206        <div class="modal-content">
207            <div class="modal-header no-padding">
208                <div class="table-header">
209                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
210                        <span class="white">×</span>
211                    </button>
212                    Mẫu tin nhắn
213                </div>
214            </div>
215
216            <div class="modal-body">
217                <form id="add_sms" onsubmit="return false;" class="form-horizontal" role="form">
218                   
219                    <div class="form-group">
220                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Mẫu tin nhắn </label>
221
222                        <div class="col-sm-9">
223                            <span class="input-icon">
224                                <input  name="sms_content" type="text" id="form-field-1" placeholder="Mẫu tin nhắn" value="">
225                                <i class="icon-user blue"></i>
226                            </span>
227                        </div>
228                        <div class="help-block"> </div>
229                    </div>
230                    <div class="form-group">
231                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Tin trả lời </label>
232
233                        <div class="col-sm-9">
234                            <span class="input-icon">
235                                <input  name="sms_reply" type="text" id="form-field-1" placeholder="Tin trả lời"  value="">
236                                <i class="icon-user blue"></i>
237                            </span>
238                        </div>
239                        <div class="help-block"> </div>
240                    </div>
241                    <div class="form-group">
242                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Mã dịch vụ</label>
243
244                        <div class="col-sm-9">
245                            <span class="input-icon">
246                                <input   name="service_id" type="text" id="form-field-1" placeholder="Mã dịch vụ"  value="">
247                                <i class="icon-user blue"></i>
248                            </span>
249                        </div>
250                        <div class="help-block"> </div>
251                    </div>
252                    <div class="form-group">
253                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Mã lệnh</label>
254
255                        <div class="col-sm-9">
256                            <span class="input-icon">
257                                <input   name="commandcode" type="text" id="form-field-1" placeholder="Mã lệnh"  value="">
258                                <i class="icon-user blue"></i>
259                            </span>
260                        </div>
261                        <div class="help-block"> </div>
262                    </div>
263                   
264                   
265                    <div class="space-4"></div>
266
267                   
268
269                    <div class="space-4"></div>
270                    <div class="form-group errors" id="add_sms"></div>
271                       
272                    </div>
273                    <div class="clearfix form-actions">
274                        <div class="col-md-offset-3 col-md-9">
275                            <button class="btn btn-info" id="add_sms" type="button">
276                                <i class="icon-ok bigger-110"></i>
277                                Hoàn tất
278                            </button>
279
280                            &nbsp; &nbsp; &nbsp;
281                            <button class="btn" type="reset">
282                                <i class="icon-undo bigger-110"></i>
283                                Xóa hết
284                            </button>
285                        </div>
286                    </div>
287
288                </form></div>
289
290        </div>
291
292    </div><!-- /.modal-content -->
293</div><!-- /.modal-dialog -->
294<?php
295$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/report.js')));
296?>
Note: See TracBrowser for help on using the repository browser.