ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/luckymerchan/code/admin/users/ |
<?php $CORE->page_title = 'Nạp tiá»n user'; $user_id = $CORE->input['user_id']??0; $r_user = $DB->fetch_row($DB->query("SELECT * FROM tb_user WHERE user_id='$user_id' ")); $r_guest = $DB->fetch_row($DB->query("SELECT * FROM tb_guest WHERE user_id='$user_id' ")); $q_pay = $DB->query("SELECT * FROM tb_guest_pay_his WHERE user_id='$user_id' ORDER BY ngay_phat_sinh DESC"); $txt_his = ''; $i=1; while($r_pay = $DB->fetch_row($q_pay)){ $txt_his .= '<tr id="tr_pay_'.$r_pay['guest_pay_his_id'].'"><td>'.$i.'</td><td>'.$r_pay['ngay_phat_sinh'].'</td><td>'.$r_pay['so_tien'].'</td><td>'.$r_pay['so_diem'].'</td><td>'.$r_pay['nap_type'].'</td><td>'.$r_pay['fee_type'].'</td><td>#</td></tr>'; $i++; } if(isset($CORE->input['submitbt'])){ $user_id = $CORE->input['user_id']??0; $r_user = $DB->fetch_row($DB->query("SELECT * FROM tb_user WHERE user_id='$user_id' ")); $r_guest = $DB->fetch_row($DB->query("SELECT * FROM tb_guest WHERE user_id='$user_id' ")); $f = $CORE->input['f']; $ngay_phat_sinh = date('Y-m-d H:i:s',strtotime($f['ngay_phat_sinh'])); $so_tien = floatval($f['so_tien']); $so_diem = $so_tien*$arr_giapoint[1]; $fee_type = 'donate'; $arr_insert = array('user_id'=>$user_id,'so_tien'=>$so_tien,'so_diem'=>$so_diem,'ngay_phat_sinh'=>$ngay_phat_sinh,'nap_type'=>$f['nap_type'],'fee_type'=>$fee_type,'time_post'=>time(),'user_post'=>$ob_user->user_id); $DB->do_insert('tb_guest_pay_his',$arr_insert); update_fee_his($user_id); close_popup('Äã cáºp nháºt'); } include 'include/block/header_popup.php'; ?> <div class="card"> <div class="card-header">Nạp tiá»n cho user <?php echo $r_guest['guest_fullname'];?> donate </div> <div class="card-body" style="font-size: 12px;"> <form method="post" id="form_hoan_tra" action=""> <input type="hidden" value="<?php echo $user_id;?>" name="user_id" id="user_id"> <div class="row"> <div class="col-sm-4"> <div class="form-group"> <label>Ngà y nạp</label> <input type="text" name="f[ngay_phat_sinh]" class="form-control" id="my_datetimepicker" value="" required> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label>Số tiá»n (USD)</label> <input type="number" step="0.1" name="f[so_tien]" class="form-control"> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label>Hình thức TT</label> <select name="f[nap_type]" class="form-control"> <option value="">----</option> <option value="Promotion">Promotion</option> <option value="Binance">Binance</option> </select> </div> </div> </div> <input type="submit" class="submit" style="display:none;" name="submitbt"> </form> </div> <div class="card-footer"> <a class="gui_yeu_cau btn btn-danger" href="javascript:void(0);">Submit</a> <a class="dong m-l-5 btn btn-dark" href="javascript:void(0);">Close</a> </div> </div> <?php if(!empty($txt_his)){ ?> <table class="table table-bordered"> <tr><td colspan="6">Lịch sá» giao dịch <b><?php echo $r_guest['guest_fullname'];?></b> <?php if($r_guest['guest_vip_levelname']!='') { echo '<span class="text-danger">Gói VIP: ' .$r_guest['guest_vip_levelname'].'</span>'; } ?></td></tr> <tr><th>TT</th><th>Ngà y phát sinh</th><th>Số tiá»n</th><th>Số Ä‘iểm</th><th>Hình thức TT</th><th>Loại phÃ</th><th>#</th></tr> <?php echo $txt_his;?> </table> <?php } ?> <script> $('.gui_yeu_cau').click(function (){ $('#form_hoan_tra .submit').click(); return false; }); $('.dong').click(function (){ window.close(); }); $('.delete_pay').click(function(){ var id = $(this).data('id'); if(confirm('Are you sure delete this fee?')) { var guest_pay_his = $(this).data('id'); var user_id = $(this).data('userid'); $.ajax( { url: '?act=admin&code=users&type=delete_naptien&user_id='+user_id+'&guest_pay_his=' + guest_pay_his, success: function (result) { $('#tr_pay_'+guest_pay_his).remove(); } } ); } }); jQuery('#my_datetimepicker').datetimepicker({ format:'d-m-Y H:i:s' }); </script> <?php include ROOT_PATH . 'include/block/footer_popup.php'; exit(); ?>