Ignore:
Timestamp:
Feb 4, 2015 2:58:53 PM (10 years ago)
Author:
namnd
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules/admin/views/reportAsistant
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/views/reportAsistant/index.php

    r462 r742  
    3434        });
    3535       
     36                $('#daterange').keyup(function (event) {
     37            if (event.keyCode == '13') {
     38                filter();
     39                                console.log("OK");
     40            }
     41            return false;
     42        });
    3643       
    3744        $( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) {
  • pro-violet-viettel/sourcecode/application/modules/admin/views/reportAsistant/indexCollaborator.php

    r490 r742  
    77    function init_page()
    88    {
     9                /*
     10                if($('input[name="daterange"]').val() !== ""){
     11                        $('#remove').click(function(){
     12                                $('input[name="daterange"]').val("");
     13                                filter();
     14                        });
     15                }*/
    916
    1017        $(".ajax_paging").click(function () {
     
    1825                    $("#content").html(data);
    1926                    init_page();
    20 
     27                                        $('.daterangepicker').daterangepicker({
     28                                                format: 'DD/MM/YYYY'
     29                                        });
     30                                       
    2131                },
    2232                error: function (jqXHR, textStatus, errorThrown)
     
    3444        });
    3545       
     46                $(document).on('click', '.applyBtn', function(){
     47                        $('#loading').css('display', 'block');
     48                        $('#table_content').hide();
     49                        filter();
     50                });
     51               
     52                $('#daterange').keyup(function (event) {
     53            if (event.keyCode == '13') {
     54                filter();
     55            }
     56            return false;
     57        });
    3658       
    3759        $( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) {
     
    105127    function filter()
    106128    {
     129                daterange = $('input[name="daterange"]').val();
    107130        $.ajax({
    108131            url: '<?php echo base_url();?>admin/thong_ke_cong_tac_vien/trang_ctv/<?php echo $id;?>/1',
     
    113136                // $result = jQuery.parseJSON(data);
    114137                $("#content").html(data);
    115                 init_page();
     138               
    116139                $("#keyword").focus();
    117140                $("#keyword").setCursorToTextEnd();
    118 
     141                                $('.daterangepicker').daterangepicker({
     142                                        format: 'DD/MM/YYYY'
     143                                });
     144                                $('input[name="daterange"]').val(daterange);
     145                                init_page();
    119146            },
    120147            error: function (jqXHR, textStatus, errorThrown)
  • pro-violet-viettel/sourcecode/application/modules/admin/views/reportAsistant/listview_user.php

    r737 r742  
    2626                                <div class="dataTables_filter" id="sample-table-2_filter">
    2727                                    <label>Tìm kiếm:
    28                                         <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>
     28                                        <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label>
     29                                </div>
     30                                                                <div style="clear: both;"></div>
     31                                <div id="daterangepicker" class="selectbox pull-right">
     32                                    <i class="icon-calendar"></i>
     33                                                                        <!--<i id="remove" class="btn-sm btn-danger icon-remove"></i>-->
     34                                    <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;">
    2935                                </div>
    3036                            </div>
     
    3642                        <thead>
    3743                            <tr role="row">                               
    38                                 <!--<th class="<?php if ($sorting_field == 'full_name') {echo $sorting_order;} else {echo "";}?>" id="full_name" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số điện thoại: activate to sort column ascending">Tên người dùng</th>-->
    39                                 <th class="<?php if ($sorting_field == 'collaborator_cellphone') {echo $sorting_order;} else {echo "sorting";}?>" id="collaborator_cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 283px;" aria-label="Họ tên: activate to sort column ascending">Số điện thoại người dùng</th>
     44                                <th class="<?php if ($sorting_field == 'full_name') {echo $sorting_order;} else {echo "";}?>" id="full_name" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số điện thoại: activate to sort column ascending">Tên người dùng</th>
     45                                <th class="<?php if ($sorting_field == 'collaborator_cellphone') {echo $sorting_order;} else {echo "sorting";}?>" id="collaborator_cellphone" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 283px;" aria-label="Họ tên: activate to sort column ascending">Số điện thuê bao</th>
    4046                                <th class="<?php if ($sorting_field == 'total_user') {echo $sorting_order;} else {echo "sorting";}?>" id="total_user" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Số điện thoại: activate to sort column ascending">Ngày giới thiệu</th> 
    4147                                <!--<th class="<?php if ($sorting_field == 'collaborator_created_time') {echo $sorting_order;} else {echo "sorting";}?>" id="collaborator_created_time" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 209px;" aria-label="Ngày đăng kÜ: activate to sort column ascending">Ngày đăng kÜ</th>-->
     
    5157                            <tr class="odd">
    5258                               
    53 
    54                                 <!--<td class=" ">
     59                                                               
     60                                <td class=" ">
    5561                                                                        <?php echo $paidlog['username']; ?>                                   
    56                                 </td>-->
     62                                </td>
    5763                                <td class=" "><?php echo $paidlog['user_cellphone']?></td>                               
    5864                                <td class="hidden-480 "><?php echo $paidlog['user_created_time'];?></td>
Note: See TracChangeset for help on using the changeset viewer.