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

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

collaborator page

File size: 2.1 KB
Line 
1<?php
2
3$base_url = base_url();
4$this->load->view('layout/admin/header', array('base_url' => $base_url));
5$this->load->view('layout/admin/sidebar', array('base_url' => $base_url));
6?>
7<script type="text/javascript">
8    function init_page()
9    {
10
11        $(".ajax_paging").click(function () {
12            $.ajax({
13                url: $(this).attr("href"),
14                type: "POST",
15                data: $("#collaborator").serialize(),
16                success: function (data, textStatus, jqXHR)
17                {
18                    // $result = jQuery.parseJSON(data);
19                    $("#content").html(data);
20                    init_page();
21
22                },
23                error: function (jqXHR, textStatus, errorThrown)
24                {
25                    $(".ajaxloading").hide();
26                }
27            });
28            return false;
29        })
30        $('#keyword').keyup(function (event) {
31            if (event.keyCode == '13') {             
32                filter();
33            }
34            return false;
35        });
36    }
37   
38   
39    function filter()
40    {
41        $.ajax({
42            url: 'http://viettel.violet.vn/admin/cong_tac_vien/trang/1',
43            type: "POST",
44            data: $("#collaborator").serialize(),
45            success: function (data, textStatus, jqXHR)
46            {
47                // $result = jQuery.parseJSON(data);
48                $("#content").html(data);
49                init_page();
50                $("#keyword").focus();
51                $("#keyword").setCursorToTextEnd();
52
53            },
54            error: function (jqXHR, textStatus, errorThrown)
55            {
56                $(".ajaxloading").hide();
57            }
58        });
59    }
60
61
62</script>
63<div class="main-content" id="content">
64    {content}
65</div><!-- /.main-content -->
66</div><!-- /.main-container-inner -->
67
68<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
69    <i class="icon-double-angle-up icon-only bigger-110"></i>
70</a>
71</div><!-- /.main-container -->
72<?php
73
74$this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/collaborator.js')));
75?>
Note: See TracBrowser for help on using the repository browser.