Ignore:
Timestamp:
Apr 23, 2015 12:00:06 PM (10 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.