Ignore:
Timestamp:
Nov 4, 2014 4:14:22 PM (11 years ago)
Author:
quyenla
Message:

collaborator

Location:
pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator
Files:
2 edited

Legend:

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

    r375 r401  
    22$base_url = base_url();
    33$this->load->view('layout/admin/header', array('base_url' => $base_url));
    4 $this->load->view('layout/admin/sidebar', 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  ));
    55?>
    66<script type="text/javascript">
     
    3535       
    3636       
    37 $( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) {
     37        $( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) {
    3838            var current_class=$( this ).attr('class');
    3939            $(".sorting_desc").attr("class","sorting");
     
    6262            filter();
    6363        });
     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            );
    6476
    6577
  • pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/listview.php

    r373 r401  
    8383                                    </label>
    8484                                </th>
     85                             
     86                                <th class="<?php if ($sorting_field == 'full_name') {echo $sorting_order;} else {echo "sorting";}?>" id="full_name" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 183px;" aria-label="Họ tên: activate to sort column ascending">Họ tên</th>
    8587                                <th class="<?php if ($sorting_field == 'cellphone') {echo $sorting_order;} else {echo "sorting";}?>" id="cellphone" 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">Số điện thoại</th>
    86                                 <th class="<?php if ($sorting_field == 'full_name') {echo $sorting_order;} else {echo "sorting";}?>" id="full_name" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 183px;" aria-label="Họ tên: activate to sort column ascending">Họ tên</th>
    8788                                <th class="sorting" id="money" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 122px;" aria-label="Tiền: activate to sort column ascending">Tiền</th>
    8889                                <th class="<?php if ($sorting_field == 'created_time') {echo $sorting_order;} else {echo "sorting";}?>" id="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">
     
    107108                                </td>
    108109
     110                               
     111                                <td class=" "><?php echo $collaborator['full_name']?></td>
    109112                                <td class=" ">
    110113                                    <a href="#"><?php echo $collaborator['cellphone']?></a>
    111114                                </td>
    112                                 <td class=" "><?php echo $collaborator['full_name']?></td>
    113115                                <td class="hidden-480 ">3,330 VND</td>
    114116                                <td class=" "><?php echo $collaborator['created_time']?></td>
     
    131133                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
    132134                                        <a href="#" class="blue">
    133                                             <i class="icon-zoom-in bigger-130"></i>
     135                                            <i data-toggle="ajaxModal" href='http://viettel.violet.vn/admin/cong_tac_vien/xem/<?php echo $collaborator['id'];?>'  class="icon-zoom-in bigger-130"></i>
    134136                                        </a>
    135137
    136138                                        <a href="#" class="green">
    137                                             <i class="icon-pencil bigger-130"></i>
     139                                            <i data-toggle="ajaxModal" href='http://viettel.violet.vn/admin/cong_tac_vien/sua/<?php echo $collaborator['id'];?>' data-toggle="modal" href='#editUser' class="icon-pencil bigger-130"></i>
    138140                                        </a>
    139141
    140142                                        <a href="#" class="red">
    141                                             <i class="icon-trash bigger-130"></i>
     143                                            <i data-toggle="ajaxModal" href='http://viettel.violet.vn/admin/cong_tac_vien/xoa/<?php echo $collaborator['id'];?>' data-toggle="modal" href='#deleteUser' class="icon-trash bigger-130"></i>
    142144                                        </a>
    143145                                    </div>
Note: See TracChangeset for help on using the changeset viewer.