- Timestamp:
- Apr 23, 2015 12:00:06 PM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/collaborator/views/user
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/collaborator/views/user/index.php
r883 r906 29 29 <div class="row" id="content"> 30 30 <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> 39 77 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" />47 78 </div> 48 49 79 </div> 50 80 </div> 51 </div> 52 <h4 class="header blue bolder smaller"></h4> 53 81 <h4 class="header blue bolder smaller"></h4> 82 54 83 55 </form> 84 </form> 85 </div> 56 86 </div> 57 87 </div> … … 61 91 <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> 62 92 <div id="result"> 63 </div> 93 </div> 94 95 64 96 </div><!-- /.main-content --> 65 97 </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){ ?> 2 2 <div id="error-upload" class="alert alert-danger" role="alert"> 3 3 <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']; ?> 5 5 </div> 6 <?php }else if($success == 1){ ?>7 <?php if ($process){?>6 <?php }else { ?> 7 <?php if($process){ ?> 8 8 <div class="row"> 9 9 <div class="col-xs-12"> 10 <!-- PAGE CONTENT BEGINS -->11 10 <div style="padding-bottom:4px" class="table-header"> 12 11 Kết quả 13 12 </div> 14 <?php //if ($success == 0){ ?>15 16 <?php //}elseif($success == 1){ ?>17 13 <div class="table-responsive"> 18 14 <div role="grid" class="dataTables_wrapper" id="sample-table-2_wrapper"> … … 21 17 <thead> 22 18 <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>28 19 </th> 29 20 <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Sá» Äiá»n thoại</th> 30 21 <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óidá»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> 33 24 <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> 34 25 <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Kết quả</th> 35 26 <th role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">LÜ do</th> 36 27 </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 57 82 </tbody> 58 83 </thead> 59 84 </table> 60 85 </div> 61 86 </div> 62 87 </div> 63 88 </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> 69 90 <?php } ?> 70 91 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.