Ignore:
Timestamp:
Apr 23, 2015 12:00:06 PM (10 years ago)
Author:
namnd
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules/collaborator/views
Files:
6 edited

Legend:

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

    r883 r906  
    1818                <div class="collaborator-profile row" id="collaborator-profile-3">
    1919                    <div class="col-sm-offset-1 col-sm-10">
    20 
    2120                        <div class="tabbable">
    2221                            <ul class="nav nav-tabs padding-16">
    23 
    24                                 <li class="active">
    25                                     <a id="edit-password-tab" href="" data-toggle="tab">
     22                                                                <li class="active">
     23                                    <a id="edit-basic-tab" href="#edit-basic" data-toggle="tab">
     24                                        <i class="blue icon-key bigger-125"></i>
     25                                       ThÃŽng tin cá nhân
     26                                    </a>
     27                                </li>
     28                                <li>
     29                                    <a id="edit-password-tab" href="#edit-password" data-toggle="tab">
    2630                                        <i class="blue icon-key bigger-125"></i>
    2731                                       Thay đổi mật khẩu
    2832                                    </a>
    2933                                </li>
    30 
    3134                            </ul>
    32 
     35                                                       
    3336                            <div class="tab-content profile-edit-tab-content">
    34                                 <div class="tab-pane active" id="edit-password">
    35                                                                         <!--<form id="frm-change-password" class="form-horizontal" role="form" action="<?php echo $base_url; ?>collaborator/collaborator/change_password" method="POST">-->
     37                                                                <div class="tab-pane active" id="edit-basic">           
     38                                                                        <form id="frm-update-info" class="form-horizontal" role="form">
     39                                                                                <h4 class="header blue bolder smaller">ThÃŽng tin cá nhân</h4>
     40                                                                                <div class="row">
     41                                            <div class="col-sm-9">
     42                                                                                                <div class="form-group">
     43                                                                                                        <label for="form-field-username" class="col-sm-4 control-label no-padding-right">Số điện thoại</label>
     44                                                                                                        <div class="col-sm-8">
     45                                                                                                                <input type="text" name="username" value="<?php echo $username; ?>" placeholder="Số điện thoại" id="form-field-username" class="col-xs-12 col-sm-10" disabled>
     46                                                                                                        </div>
     47                                                                                                </div>
     48                                                                                                <div class="form-group">
     49                                                                                                        <label for="form-field-first" class="col-sm-4 control-label no-padding-right">Họ và tên</label>
     50                                                                                                        <label class="block clearfix has-error">                                                                               
     51                                                                                                                <div class="col-sm-8">
     52                                                                                                                        <input type="text" name="fullname" value="<?php echo $fullname; ?>" placeholder="Họ và tên" id="form-field-first" class="col-xs-12 col-sm-10">
     53                                                                                                                </div>
     54                                                                                                                <small><div class="col-sm-8 help-block" id="fullname_err"> </div></small>
     55                                                                                                        </label>
     56                                                                                                </div>
     57                                                                                        </div>
     58                                        </div>
     59                                        <div class="clearfix form-actions">
     60                                            <div class="col-md-offset-3 col-md-9">
     61                                                <button type="button" onclick="return updateInfo();" class="btn btn-info">
     62                                                    <i class="icon-ok bigger-110"></i>
     63                                                    Cập nhật
     64                                                </button>       
     65                                            </div>
     66                                        </div>
     67                                                                        </form>
     68                                                                </div>
     69                                                               
     70                                <div class="tab-pane" id="edit-password">
     71                                                                       
    3672                                                                        <form id="frm-change-password" class="form-horizontal" role="form">
    3773                                                                                <h4 class="header blue bolder smaller">Thay đổi mật khẩu</h4>
     
    81117                                                                                        <div class="col-md-offset-3 col-md-9">
    82118                                                                                                <button type="button" onclick="return changePassword(<?php echo $collaborator_id; ?>);"  class="btn btn-info">
    83                                                                                                 <!--<button type="submit"  class="btn btn-info">-->
    84119                                                                                                        <i class="icon-ok bigger-110"></i>
    85120                                                                                                        Thay đổi
     
    90125                                                                                </form>
    91126                                </div>
     127                                                               
    92128
    93129                            </div>
     
    103139</div><!-- /.main-container-inner -->
    104140</div><!-- /.main-container -->
     141
     142<div class="modal fade" id="updateInfoSuccess" tabindex="-1" role="dialog"aria-hidden="true">
     143        <div class="modal-dialog">
     144                <div class="modal-content">
     145                        <div class="modal-header">
     146                                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
     147                                <h4 class="modal-title">Cập nhật thÃŽng tin</h4>
     148                        </div>
     149                        <div class="modal-body">
     150                                <div class="alert alert-block alert-success"><center><?php echo lang('_SBG_USER_UPDATE_INFO_SUCCESS_MSG'); ?><center></div>
     151                                <center><button id="close" class="btn btn-primary" data-dismiss="modal">Đóng</button></center>
     152                        </div>
     153               
     154                </div>
     155        </div>
     156</div>
    105157
    106158<div class="modal fade" id="changePassSuccess" tabindex="-1" role="dialog"aria-hidden="true">
  • pro-violet-viettel/sourcecode/application/modules/collaborator/views/login.php

    r883 r906  
    8080                                                                                                                <div class="help-block"> </div>
    8181                                                                                                        </label>
     82                                                                                                       
     83                                                                                                        <label class="block clearfix alert-success">
     84                                                                                                                        Nếu chưa có hoặc quên mật khẩu, soạn tin nhắn theo cú pháp: <strong>SBG CTV</strong> gá»­i <strong>8062</strong>
     85                                                                                                        </label>
     86                                                                                                       
     87                                                                                               
    8288
    8389                                                                                                        <div class="space"></div>
  • pro-violet-viettel/sourcecode/application/modules/collaborator/views/reportAsistant/indexCollaborator.php

    r883 r906  
    1616                {
    1717                    // $result = jQuery.parseJSON(data);
     18                                        console.log(data);
    1819                    $("#content").html(data);
    1920                    init_page();
     
    122123                daterange = $('input[name="daterange"]').val();
    123124        $.ajax({
    124             url: '<?php echo base_url();?>cong_tac_vien/thong_ke_cong_tac_vien/trang_ctv/<?php echo $id;?>/1',
     125            url: '<?php echo base_url();?>collaborator/home/getCollaboratorsUsers/<?php echo $id;?>/1',
    125126            type: "POST",
    126127            data: $("#collaborator").serialize(),
     
    219220</div><!-- /.modal-dialog -->
    220221<?php
    221 $this->load->view('layout/admin/footer', array('base_url' => $base_url,'adminjs' => array('assets/js/admin/collaborator.js')));
     222$this->load->view('layout/collaborator/footer', array('base_url' => $base_url,'collaboratorjs' => array('assets/js/collaborator/collaborator.js')));
    222223?>
  • pro-violet-viettel/sourcecode/application/modules/collaborator/views/reportAsistant/listview_user.php

    r883 r906  
    33            <!-- PAGE CONTENT BEGINS -->
    44            <div style="padding-bottom:4px" class="table-header">
     5                       
    56                Đã giới thiệu
     7                                <div class="pull-right" style="margin:5px;">
     8                                        <a style="color:#fff" href="<?php echo base_url();?>collaborator/home/export/<?php echo $perpage?>/<?php echo ($keyword)?$keyword:'default'; ?>/<?php echo ($date_start)?$date_start:'default'; ?>/<?php echo ($date_end)?$date_end:'default'; ?>/<?php echo $sorting_order; ?>">Xuất ra Excel</a>
     9                                </div>
    610            </div>
    711
     
    4347                                <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>
    4448                                <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ố thuê bao</th>
    45                                 <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> 
     49                                <th class="<?php if ($sorting_field == 'user_created_time') {echo $sorting_order;} else {echo "sorting";}?>" id="user_created_time" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Ngày giới thiệu: activate to sort column ascending">Ngày giới thiệu</th> 
    4650                                <!--<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>-->
    4751                                 
     
    5256                           
    5357                            <?php
     58                                                        //var_dump($paidlogs);
    5459                            foreach ($paidlogs as $paidlog) {
    5560                                ?>
  • pro-violet-viettel/sourcecode/application/modules/collaborator/views/user/index.php

    r883 r906  
    2929     <div class="row" id="content">
    3030                <div class="col-xs-12">
    31                         <div class="row">
    32                                 <div class="col-sm-offset-1 col-sm-10">
    33                                         <form method="POST" id="frm-upload" action="" enctype="multipart/form-data" class="form-horizontal">
    34                                                 <h4 class="header blue bolder smaller">Chọn và tải file từ máy tính</h4>
    35                                                 <div class="row">
    36                                                         <div class="col-sm-9">
    37                                                                 <div class="form-group">
    38                                                                         <div class="col-sm-8" >
     31                        <div class="col-sm-offset-0 col-sm-12">
     32                                <div class="row">
     33                                <h4 class="header blue bolder smaller"> Bước 1: Tải file Đăng kÜ <a href="<?php echo $base_url ?>assets/Mau dang ky cua CTV.xls"><span style="color: red;">Tại đây</span></a></h4>
     34                                </div>
     35                                <div class="row">
     36                                        <h4 class="header blue bolder smaller">Bước 2: Điền thÃŽng tin vào file Đăng kÜ</h4>
     37                                        <h5>
     38                                        <ul class="nav">
     39                                                <li>    <b>Tên khách hàng</b>: KhÃŽng bắt buộc</li>
     40                                                <li>    <b>Tỉnh</b>: KhÃŽng bắt buộc</li>
     41                                                <li>    <b>Quận/Huyện</b>: KhÃŽng bắt buộc</li>
     42                                                <li>    <b>Đơn vị</b>: KhÃŽng bắt buộc</li>
     43                                                <li>    <b>Số điện thoại khách hàng</b>: Bắt buộc (có thể có số 0 đứng đầu hoặc khÃŽng có; phải là số điện thoại đi động, chỉ hỗ trợ Viettel, Vinaphone và Mobifone)</li>
     44                                                <li>    <b>Đăng kÜ gói dịch vụ</b>: KhÃŽng bắt buộc (Chọn VIP 1 hoặc VIP 3 hoặc để trống)</li>
     45                                                <li>    <b>Số tiền nạp vào TK SBG cá»§a khách hàng</b>: KhÃŽng bắt buộc (Nếu chọn thì chọn các giá trị có sẵn hoặc để trống)</li>
     46                                                <li>    <b>Mã CTV</b>: KhÃŽng bắt buộc</li>
     47                                        </ul>
     48                                        </h5>
     49                                </div>
     50                                <div class="row">
     51                                        <h4 class="header blue bolder smaller">Lưu Ü:</h4>
     52                                        <h5><ul>
     53                                                <li>    File đăng kÜ mẫu phải giữ nguyên định dạng XLS. KhÃŽng sá»­a định dạng cá»§a file mẫu, mọi sá»± thay đổi khÃŽng đúng sẜ có thể dẫn đến việc trừ tiền từ tài khoản cá»§a CTV khÃŽng đúng.</li>
     54                                                <li>    Các giao dịch trên file, nếu có tính phí thì phí sẜ được trừ trá»±c tiếp từ tài khoản chính cá»§a số điện thoại CTV (chính là số ĐT dùng để đăng nhập).</li>
     55                                        </ul></h5>
     56                                </div>
     57                               
     58                                <div class="row">
     59                                        <h4 class="header blue bolder smaller">Buớc 3: Upload file Đăng kÜ</h4>
     60                                        <div class="col-sm-offset-1 col-sm-10">
     61                                                <!--<h4 class="header blue bolder smaller">Chọn và tải file từ máy tính</h4>-->
     62                                                <form method="POST" id="frm-upload" action="" enctype="multipart/form-data" class="form-horizontal">
     63                                                       
     64                                                        <div class="row">
     65                                                                <div class="col-sm-9">
     66                                                                        <div class="form-group">
     67                                                                                <div class="col-sm-8" >
     68                                                                                       
     69                                                                                        <input type="text" id="input-upload" class="form-control"/>
     70                                                                                        <div class="file-upload btn btn-success">
     71                                                                                                <span>Chọn file ...</span>
     72                                                                                       
     73                                                                                                <input id="userfile" type="file" class="upload" name="userfile" />
     74                                                                                        </div>
     75                                                                                        <input type="submit" id="btn-submit" class="btn btn-primary" value="Tải lên" />
     76                                                                                </div>
    3977                                                                               
    40                                                                                 <input type="text" id="input-upload" class="form-control"/>
    41                                                                                 <div class="file-upload btn btn-success">
    42                                                                                         <span>Chọn file ...</span>
    43                                                                                
    44                                                                                         <input id="userfile" type="file" class="upload" name="userfile" />
    45                                                                                 </div>
    46                                                                                 <input type="submit" id="btn-submit" class="btn btn-primary" value="Tải lên" />
    4778                                                                        </div>
    48                                                                        
    4979                                                                </div>
    5080                                                        </div>
    51                                                 </div>
    52                                                 <h4 class="header blue bolder smaller"></h4>
    53                                                
     81                                                        <h4 class="header blue bolder smaller"></h4>
     82                                                       
    5483
    55                                         </form>
     84                                                </form>
     85                                        </div>
    5686                                </div>
    5787                        </div>
     
    6191        <center><label id="charging" style="display: none;"><h4><span class="icon-refresh icon-refresh-animate"></span> Đang xá»­ lÜ. Xin vui lòng chờ...</h4></label></center>
    6292        <div id="result">
    63         </div> 
     93        </div>
     94       
     95       
    6496</div><!-- /.main-content -->
    6597</div><!-- /.main-container-inner -->
  • pro-violet-viettel/sourcecode/application/modules/collaborator/views/user/result.php

    r883 r906  
    1 <?php if($success==0){ ?>
     1<?php if ($success == 0){ ?>
    22        <div id="error-upload" class="alert alert-danger" role="alert">
    33                <span class="icon-exclamation-sign" aria-hidden="true"></span>
    4                 <span class="sr-only">Error:</span> <?php echo " ".$process['error']; ?>
     4                <span class="sr-only">Error:</span> <?php echo " ".$upload_error['error']; ?>
    55        </div>
    6 <?php }elseif($success == 1){ ?>
    7         <?php if ($process){?>
     6<?php }else { ?>
     7        <?php if($process){ ?>
    88                <div class="row">
    99                        <div class="col-xs-12">
    10                                 <!-- PAGE CONTENT BEGINS -->
    1110                                <div style="padding-bottom:4px" class="table-header">
    1211                                Kết quả
    1312                                </div>
    14                         <?php //if ($success == 0){ ?>
    15                                
    16                         <?php //}elseif($success == 1){ ?>
    1713                                <div class="table-responsive">
    1814                                        <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper">
     
    2117                                                                <thead>
    2218                                                                        <tr role="row">
    23                                                                                 <th class="center sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 44px;" aria-label="">
    24                                                                                         <label>
    25                                                                                                 <input type="checkbox" class="ace">
    26                                                                                                 <span class="lbl"></span>
    27                                                                                         </label>
    2819                                                                                </th>
    2920                                                                                <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Số điện thoại</th>
    3021                                                                                <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Họ và tên</th>
    31                                                                                 <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Gói dịch vụ</th>
    32                                                                                 <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Số tiền nạp vào</th>
     22                                                                                <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Tên dịch vụ</th>
     23                                                                                <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Số tiền</th>
    3324                                                                                <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Ngày giờ thá»±c hiện</th>
    3425                                                                                <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Kết quả</th>
    3526                                                                                <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">LÜ do</th>
    3627                                                                        </tr>
    37                                                                          <tbody role="alert" aria-live="polite" aria-relevant="all">
    38 
    39                                                                                 <?php
    40                                                                                 foreach ($process as $user): ?>
    41                                                                                 <tr class="odd">
    42                                                                                         <td class="center  sorting_1">
    43                                                                                                 <label>
    44                                                                                                         <input type="checkbox" class="ace">
    45                                                                                                         <span class="lbl"></span>
    46                                                                                                 </label>
    47                                                                                         </td>
    48                                                                                         <td class=" "><?php echo $user['user']['username']; ?></td>
    49                                                                                         <td class=" "><?php echo $user['user']['fullname']; ?></td>
    50                                                                                         <td class=" "><?php echo $user['user']['service']; ?></td>
    51                                                                                         <td class=" "><?php echo $user['user']['amount']; ?></td>
    52                                                                                         <td class=" "><?php echo $user['date']; ?></td>
    53                                                                                         <td class=" "><?php echo ($user['success'] == 1? "Thành cÃŽng": "KhÃŽng thành cÃŽng"); ?></td>
    54                                                                                         <td class=" "><?php  echo $user['error']; ?></td>
    55                                                                                 </tr>
    56                                                                                 <?php endforeach; ?>
     28                                                                        <tbody role="alert" aria-live="polite" aria-relevant="all">
     29                                                                        <?php foreach ($process as $result ){ ?>
     30                                                                       
     31                                                                                <?php if ($result['register']){ ?>
     32                                                                                        <tr>
     33                                                                                                <td class=" "><?php echo $result['register']['user']['username']; ?></td>
     34                                                                                                <td class=" "><?php echo $result['register']['user']['fullname']; ?></td>
     35                                                                                                <td class=" "><?php echo $result['register']['user']['service']; ?></td>
     36                                                                                                <td class=" "><?php echo $result['register']['user']['amount']; ?></td>
     37                                                                                                <td class=" "><?php echo $result['register']['date']; ?></td>
     38                                                                                                <td class=" "><?php echo ($result['register']['data']['success'] == 1? "Thành cÃŽng": "KhÃŽng thành cÃŽng"); ?></td>
     39                                                                                                <td class=" "><?php echo $result['register']['data']['error']; ?></td>
     40                                                                                        </tr>                                                                   
     41                                                                                <?php } ?>
     42                                                                               
     43                                                                                <?php if ($result['charging']){ ?>
     44                                                                                        <tr>
     45                                                                                                <td class=" "><?php echo $result['charging']['user']['username']; ?></td>
     46                                                                                                <td class=" "><?php echo $result['charging']['user']['fullname']; ?></td>
     47                                                                                                <td class=" "><?php echo $result['charging']['user']['service']; ?></td>
     48                                                                                                <td class=" "><?php echo number_format($result['charging']['user']['amount'], 0); ?></td>
     49                                                                                                <td class=" "><?php echo $result['charging']['date']; ?></td>
     50                                                                                                <td class=" "><?php echo ($result['charging']['data']['success'] == 1? "Thành cÃŽng": "KhÃŽng thành cÃŽng"); ?></td>
     51                                                                                                <td class=" "><?php echo $result['charging']['data']['error']; ?></td>
     52                                                                                        </tr>                                                                   
     53                                                                                <?php } ?>
     54                                                                               
     55                                                                                <?php if ($result['chargingvip']){ ?>
     56                                                                                        <tr>
     57                                                                                                <td class=" "><?php echo $result['chargingvip']['user']['username']; ?></td>
     58                                                                                                <td class=" "><?php echo $result['chargingvip']['user']['fullname']; ?></td>
     59                                                                                                <td class=" "><?php echo $result['chargingvip']['user']['service']; ?></td>
     60                                                                                                <td class=" "><?php echo number_format($result['chargingvip']['user']['amount'], 0); ?></td>
     61                                                                                                <td class=" "><?php echo $result['chargingvip']['date']; ?></td>
     62                                                                                                <td class=" "><?php echo ($result['chargingvip']['data']['success'] == 1? "Thành cÃŽng": "KhÃŽng thành cÃŽng"); ?></td>
     63                                                                                                <td class=" "><?php echo $result['chargingvip']['data']['error']; ?></td>
     64                                                                                        </tr>                                                                   
     65                                                                                <?php } ?>
     66                                                                               
     67                                                                                <?php if ($result['register-vip']){ ?>
     68                                                                                        <tr>
     69                                                                                                <td class=" "><?php echo $result['register-vip']['user']['username']; ?></td>
     70                                                                                                <td class=" "><?php echo $result['register-vip']['user']['fullname']; ?></td>
     71                                                                                                <td class=" "><?php echo $result['register-vip']['user']['service']; ?></td>
     72                                                                                                <td class=" "><?php echo number_format($result['register-vip']['user']['amount'], 0); ?></td>
     73                                                                                                <td class=" "><?php echo $result['register-vip']['date']; ?></td>
     74                                                                                                <td class=" "><?php echo ($result['register-vip']['data']['success'] == 1? "Thành cÃŽng": "KhÃŽng thành cÃŽng"); ?></td>
     75                                                                                                <td class=" "><?php echo $result['register-vip']['data']['error']; ?></td>
     76                                                                                        </tr>                                                                   
     77                                                                                <?php } ?>
     78                                                                               
     79                                                                               
     80                                                                        <?php } ?>
     81                                                                       
    5782                                                                        </tbody>
    5883                                                                </thead>
    59                                                                 </table>
     84                                                        </table>
    6085                                                </div>
    6186                                        </div>
    6287                                </div>
    6388                        </div>
    64                         </div>
    65         <?php }else{ ?>
    66                 <div id="error-upload" class="alert alert-danger" role="alert">
    67                         <span class="icon-exclamation-sign" aria-hidden="true"></span>
    68                         <span class="sr-only">Error:</span> KhÃŽng đọc được file</div>
     89                </div>                                                 
    6990        <?php } ?>
    7091<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.