- Timestamp:
- Jan 9, 2015 10:35:30 AM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode/application/modules/admin/views
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php
r576 r690 18 18 $("#content").html(data); 19 19 init_page(); 20 20 $('.daterangepicker').daterangepicker(); 21 21 }, 22 22 error: function (jqXHR, textStatus, errorThrown) … … 34 34 }); 35 35 36 $(document).on('click', '.applyBtn', function(){ 37 //$('#loading').css('display', 'block'); 38 //$('#table_content').hide(); 39 filter(); 40 }); 36 41 37 42 $( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) { … … 92 97 $("#keyword").focus(); 93 98 $("#keyword").setCursorToTextEnd(); 99 $('.daterangepicker').daterangepicker(); 94 100 95 101 }, -
pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/listview.php
r590 r690 72 72 <div class="dataTables_filter" id="sample-table-2_filter"> 73 73 <label>Tìm kiếm: 74 <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>74 <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label> 75 75 </div> 76 <div id="daterangepicker" class="selectbox pull-right"> 77 <i class="icon-calendar"></i> 78 <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;"> 79 80 </span> 81 </div> 76 82 </div> 77 83 </div> … … 86 92 <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> 87 93 <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> 88 94 <th>Quáºn/Huyá»n</th> 95 <th>Tá»nh/TP</th> 89 96 <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"> 90 97 <i class="icon-time bigger-110 hidden-480"></i> … … 107 114 <td class=" "><a href="<?php echo base_url();?>admin/thong_ke_cong_tac_vien/<?php echo $collaborator['id'];?>"><?php echo $collaborator['full_name']?></a></td> 108 115 <td class=" "><?php echo $collaborator['cellphone'];?></td> 109 116 <td class=" "><?php echo $collaborator['district'];?></td> 117 <td class=" "><?php echo $collaborator['province'];?></td> 110 118 <td class=" "><?php echo $collaborator['created_time'];?></td> 111 119 -
pro-violet-viettel/sourcecode/application/modules/admin/views/home/editSms.php
r585 r690 1 1 2 2 <div class="modal-dialog"> 3 3 <div class="modal-content"> -
pro-violet-viettel/sourcecode/application/modules/admin/views/report/index.php
r461 r690 18 18 $("#content").html(data); 19 19 init_page(); 20 20 $('.daterangepicker').daterangepicker(); 21 21 }, 22 22 error: function (jqXHR, textStatus, errorThrown) … … 33 33 return false; 34 34 }); 35 35 $(document).on('click', '.applyBtn', function(){ 36 //$('#loading').css('display', 'block'); 37 //$('#table_content').hide(); 38 filter(); 39 }); 36 40 37 41 $( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) { … … 105 109 function filter() 106 110 { 111 daterange = $('input[name="daterange"]').val(); 107 112 $.ajax({ 108 113 url: '<?php echo base_url();?>admin/doanh_thu_tong_hop/trang/1', … … 116 121 $("#keyword").focus(); 117 122 $("#keyword").setCursorToTextEnd(); 118 123 $('.daterangepicker').daterangepicker(); 124 $('input[name="daterange"]').val(daterange); 119 125 }, 120 126 error: function (jqXHR, textStatus, errorThrown) … … 204 210 </div><!-- /.modal-dialog --> 205 211 <?php 206 $this->load->view('layout/admin/footer', array('base_url' => $base_url ));212 $this->load->view('layout/admin/footer', array('base_url' => $base_url, 'adminjs' => array('assets/js/admin/report.js'))); 207 213 ?> -
pro-violet-viettel/sourcecode/application/modules/admin/views/report/listview.php
r573 r690 1 1 2 2 3 3 … … 13 13 <div class="row"> 14 14 <div class="col-sm-6"> 15 <div id="sample-table-2_length" class="dataTables_length"><label>Hi á»n thá»15 <div id="sample-table-2_length" class="dataTables_length"><label>Hiện thị 16 16 <select onchange="filter();" name="items" size="1" aria-controls="sample-table-2"> 17 17 <?php foreach ($itemsoptions as $option) { ?> 18 18 <option <?php if($option == $perpage) echo "selected"; ?> value="<?php echo $option;?>"><?php echo $option;?></option> 19 19 <?php } ?> 20 </select> b ản ghi</label>20 </select> bản ghi</label> 21 21 22 22 </div> … … 25 25 <div class="col-sm-6"> 26 26 <div class="dataTables_filter" id="sample-table-2_filter"> 27 <label>T ìm kiếm:28 <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>27 <label>Tìm kiếm: 28 <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label> 29 29 </div> 30 <div id="daterangepicker" class="selectbox pull-right"> 31 <i class="icon-calendar"></i> 32 <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;"> 33 34 </span> 35 </div> 36 </div> 30 37 </div> 31 38 </div> … … 37 44 <tr role="row"> 38 45 39 <th class="<?php if ($sorting_field == 'fullname') {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">Há» tên</th>40 <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: 283px;" aria-label="H á» tên: activate to sort column ascending">Sá» Äiá»n thoại</th>41 <th class="<?php if ($sorting_field == 'amount') {echo $sorting_order;} else {echo "sorting";}?>" id="amount" 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á» tiá»n</th>42 <th class="<?php if ($sorting_field == 'paid_type') {echo $sorting_order;} else {echo "sorting";}?>" id="paid_type" 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">SMS/Card</th>43 <th class="<?php if ($sorting_field == 'paid_time') {echo $sorting_order;} else {echo "sorting";}?>" id="paid_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</th>46 <th class="<?php if ($sorting_field == 'fullname') {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">Họ tên</th> 47 <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: 283px;" aria-label="Họ tên: activate to sort column ascending">Số điện thoại</th> 48 <th class="<?php if ($sorting_field == 'amount') {echo $sorting_order;} else {echo "sorting";}?>" id="amount" 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ố tiền</th> 49 <th class="<?php if ($sorting_field == 'paid_type') {echo $sorting_order;} else {echo "sorting";}?>" id="paid_type" 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">SMS/Card</th> 50 <th class="<?php if ($sorting_field == 'paid_time') {echo $sorting_order;} else {echo "sorting";}?>" id="paid_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</th> 44 51 45 52 </thead> … … 76 83 77 84 </tbody></table><div class="row"><div class="col-sm-6"> 78 <div class="dataTables_info" id="sample-table-2_info">Hi á»n thá» <?php echo ($start+1)?> Äến <?php echo ($start+$perpage)?> cá»§a <?php echo $total?> bản ghi</div>85 <div class="dataTables_info" id="sample-table-2_info">Hiển thị <?php echo ($start+1)?> đến <?php echo ($start+$perpage)?> của <?php echo $total?> bản ghi</div> 79 86 80 87 </div> -
pro-violet-viettel/sourcecode/application/modules/admin/views/user/index.php
r461 r690 16 16 $("#content").html(data); 17 17 init_page(); 18 $('.daterangepicker').daterangepicker(); 18 19 }, 19 20 error: function (jqXHR, textStatus, errorThrown) … … 24 25 return false; 25 26 }); 26 $('#keyword').bind('input', function(){ 27 $('#keyword').keyup(function (event) { 28 if (event.keyCode == '13') { 29 filter(); 30 } 31 return false; 32 }); 33 /*$('#keyword').bind('input', function(){ 34 filter(); 35 });*/ 36 $('#daterange').keyup(function (event) { 37 if (event.keyCode == '13') { 38 filter(); 39 } 40 return false; 41 }); 42 43 $(document).on('click', '.applyBtn', function(){ 44 $('#loading').css('display', 'block'); 45 $('#table_content').hide(); 27 46 filter(); 28 47 }); … … 59 78 function filter() 60 79 { 80 daterange = $('input[name="daterange"]').val(); 61 81 $.ajax({ 62 82 url: '<?php echo base_url();?>admin/nguoi_dung/trang/1', … … 65 85 success: function (data, textStatus, jqXHR) 66 86 { 87 $('#loading').css('display', 'none'); 88 $('#table_content').show(); 67 89 $("#content").html(data); 68 90 init_page(); 69 91 $("#keyword").focus(); 70 92 $("#keyword").setCursorToTextEnd(); 71 93 $('.daterangepicker').daterangepicker(); 94 $('input[name="daterange"]').val(daterange); 72 95 }, 73 96 error: function (jqXHR, textStatus, errorThrown) -
pro-violet-viettel/sourcecode/application/modules/admin/views/user/listview.php
r644 r690 66 66 <div class="dataTables_filter" id="sample-table-2_filter"> 67 67 <label>Tìm kiếm: 68 <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' aria-controls="sample-table-2"></label>68 <input type="text" name="keyword" id="keyword" value='<?php echo $keyword;?>' style="width: 162px; height: 18px;" aria-controls="sample-table-2"></label> 69 69 </div> 70 70 <div class="dataTables_status" style="float: right;" id="sample-table-2_status"><label>Lá»c: 71 <select onchange="filter();" name="status" size="1" style="width: 1 39px; height: 28px;" aria-controls="sample-table-2" class="">71 <select onchange="filter();" name="status" size="1" style="width: 176px; height: 28px;"> 72 72 <?php foreach ($statusoptions as $key=>$option):?> 73 73 <option <?php if ($key == $status) echo "selected"; ?> value="<?php echo $key; ?>"><?php echo $option; ?></option> 74 74 <?php endforeach; ?> 75 75 </select> 76 </div> 77 <div style="clear: both;"></div> 78 <div id="daterangepicker" class="selectbox pull-right"> 79 <i class="icon-calendar"></i> 80 <input id="daterange" type="text" name="daterange" class="daterangepicker" style="background: #ffffff; width: 176px; height: 28px; position: inherit;"> 81 82 </span> 83 </div> 76 84 </div> 77 85 </div> … … 82 90 <input type="hidden" name="sorting_field" id="sorting_field" value="<?php echo $sorting_field;?>"/> 83 91 </form> 92 <!-- Table Content --> 93 <center><div id="loading" style="display:none;"><img src="<?php echo base_url();?>/assets/img/loading.gif"/></div></center> 94 <div id="table_content"> 84 95 <table class="table table-striped table-bordered table-hover dataTable" id="sample-table-2" aria-describedby="sample-table-2_info"> 85 96 <thead> … … 91 102 </label> 92 103 </th> 93 <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="Tà i khoản: activate to sort column ascending">Username</th> 94 <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> 95 <th class="<?php if ($sorting_field == 'acc_balanced') {echo $sorting_order;} else {echo "sorting";}?>" id="acc_balanced" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 176px;" aria-label="Tiá»n: activate to sort column ascending">Tà i khoản (VNÄ)</th> 96 <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: 150px;" aria-label="Ngà y ÄÄng kÜ: activate to sort column ascending"> 104 <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: 156px;" aria-label="Tà i khoản: activate to sort column ascending">Username</th> 105 <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: 156px;" aria-label="Sá» Äiá»n thoại: activate to sort column ascending">Sá» Äiá»n thoại</th> 106 <th class="<?php if ($sorting_field == 'acc_balanced') {echo $sorting_order;} else {echo "sorting";}?>" id="acc_balanced" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;" aria-label="Tiá»n: activate to sort column ascending">Tà i khoản (VNÄ)</th> 107 <th style="width: 140px;">Quáºn/Huyá»n</th> 108 <th style="width: 140px;">Tá»nh/TP</th> 109 <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: 156px;" aria-label="Ngà y ÄÄng kÜ: activate to sort column ascending"> 97 110 <i class="icon-time bigger-110 hidden-480"></i> 98 111 Ngà y ÄÄng kÜ 99 112 </th> 100 <th class="<?php if ($sorting_field == 'expire_date') {echo $sorting_order;} else {echo "sorting";}?>" id="expire_date" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 1 50px;" aria-label="Ngà y hết hạn: activate to sort column ascending">113 <th class="<?php if ($sorting_field == 'expire_date') {echo $sorting_order;} else {echo "sorting";}?>" id="expire_date" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 140px;" aria-label="Ngà y hết hạn: activate to sort column ascending"> 101 114 <i class="icon-time bigger-110 hidden-480"></i> 102 115 Ngà y hết hạn 103 116 </th> 104 <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 1 76px;">Tình trạng</th>117 <th class="sorting_disabled" id="status" role="columnheader" tabindex="0" aria-controls="sample-table-2" rowspan="1" colspan="1" style="width: 156px;">Tình trạng</th> 105 118 </tr> 106 119 </thead> … … 119 132 </td> 120 133 <td class=" "> 121 <a onclick="getUserHistory(<?php echo $user['us_id']; ?>, 1);" data-toggle="modal"><?php echo @$user['username']; ?></a>134 <a onclick="getUserHistory(<?php echo $user['us_id']; ?>, 1);" data-toggle="modal"><?php echo $user['username']; ?></a> 122 135 <!--<a href="#user-history" data-toggle="modal"><?php echo @$user['username']; ?></a>--> 123 136 </td> … … 126 139 </td> 127 140 <td class="hidden-480 "><?php echo number_format($user['acc_balanced'], 0); ?></td> 141 <td><?php echo $user['district']; ?></td> 142 <td><?php echo $user['province']; ?></td> 128 143 <td class=" "><?php echo $user['created_time']; ?></td> 129 144 <td class=" "><?php echo isset($user['expire_date']) && strtotime($user['expire_date'])>0 ? date('d/m/Y', strtotime($user['expire_date'])) : '';?></td> 145 130 146 <td class=" "> 131 147 <?php if(strtotime($user['expire_date'])>time()){ ?> … … 151 167 </div> 152 168 </div> 169 </div> 153 170 </div> 154 171 … … 249 266 } 250 267 251 252 268 </script>
Note: See TracChangeset
for help on using the changeset viewer.