ok
Direktori : /home/ngwcolle/www/ICICI_MS_UAT/ |
Current File : //home/ngwcolle/www/ICICI_MS_UAT/saleApi.php |
<?php include_once('dbconfig.php'); require_once('lib/config.php'); include_once('amountinword.php'); error_reporting(1); error_reporting(E_ALL); ini_set('display_errors', 1); $encryptionKey = "NGWC"; function encryptText($text, $key) { $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc')); $encrypted = openssl_encrypt($text, 'aes-256-cbc', $key, 0, $iv); return base64_encode($iv . $encrypted); } function decryptText($encryptedText, $key) { $data = base64_decode($encryptedText); $ivSize = openssl_cipher_iv_length('aes-256-cbc'); $iv = substr($data, 0, $ivSize); $encrypted = substr($data, $ivSize); return openssl_decrypt($encrypted, 'aes-256-cbc', $key, 0, $iv); } if (isset($_GET['pmtid'])) { $pmtid = decryptText($_GET['pmtid'], $encryptionKey); // echo $pmtid; $query = "SELECT tbl_payment_order.*,tbl_student.* FROM tbl_payment_order inner join tbl_student on tbl_payment_order.rollno=tbl_student.rollno where tbl_payment_order.id='$pmtid'"; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>NGWC PAYMENT APP</title> <!-- <meta name="viewport" content=", " /> --> <meta name="viewport" http-equiv='Content-Type' content='text/html; charset=iso-8859-1,initial-scale=1.0'> <script src="lib/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha1/dist/js/bootstrap.bundle.min.js"></script> <script src="lib/jquery.validate.min.js"></script> <script src="lib/additional-methods.min.js"></script> <script src="lib/validation.js"></script> <!-- <link rel="stylesheet" type="text/css" href="lib/style.css" media="screen"> --> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-alpha1/dist/css/bootstrap.min.css" media="screen"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" media="screen"> <style> body { display: flex; justify-content: center; align-items: center; height: auto; background: #fc4a1a; background: -webkit-linear-gradient(to right, #f7b733, #fc4a1a); background: linear-gradient(to right, #f7b733, #fc4a1a) } .card0 { margin: 40px 12px 15px 12px; border: 0; } /*Left Side card*/ .card1 { margin: 0; padding: 15px; padding-top: 25px; padding-bottom: 0px; background: #263238; height: 100%; } .bill-head { color: #ffffff; font-weight: bold; margin-bottom: 0px; margin-top: 0px; font-size: 30px; } .line { border-right: 1px grey solid; } .bill-date { color: #BDBDBD; } .red-bg { margin-top: 25px; margin-left: 0px; margin-right: 0px; background-color: #F44336; padding-left: 20px !important; padding: 25px 10px 25px 15px; } #total { margin-top: 0px; padding-left: 7px; } #total-label { margin-bottom: 0px; color: #ffffff; padding-left: 7px; } #heading1 { color: #ffffff; font-size: 20px; padding-left: 10px; } #heading2 { /* font-size: 27px; */ /** TEXT GRADIENT */ color: #f7b733; background-image: -webkit-linear-gradient(45deg, #fc4a1a 2%, #f7b733 70%); background-clip: text; -webkit-background-clip: text; text-fill-color: transparent; -webkit-text-fill-color: transparent; } /*For font-awesome icons in Placeholder*/ .placeicon { font-family: fontawesome !important; } /*Right Side Card*/ .card2 { padding: 25px; margin: 0; width: 100%; height: 100%; } .form-card .pay { font-weight: bold; width: 100%; } .form-card input, .form-card textarea { padding: 10px 8px 10px 8px; border: none; border: 1px solid lightgrey; border-radius: 0px; margin-bottom: 20px; margin-top: 1px; width: 100%; box-sizing: border-box; font-family: montserrat; color: #2C3E50; font-size: 14px; letter-spacing: 1px; } .form-card input:focus, .form-card textarea:focus { -moz-box-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; border: none; font-weight: bold; border: 1px solid gray; outline-width: 0; } .btn-info { color: #ffffff !important; } /*Imaged Radio Buttons*/ .radio-group { position: relative; margin-bottom: 25px; } .radio { display: inline-block; width: 204; height: 64; border-radius: 0; background: lightblue; box-sizing: border-box; border: 2px solid lightgrey; cursor: pointer; margin: 8px 25px 8px 0px; } .radio:hover { box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2); } .radio.selected { box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.4); } /*Fit image in bootstrap div*/ .fit-image { width: 100%; object-fit: cover; } /* The customcheck */ .customcheck { display: block; position: relative; padding-left: 35px; margin-bottom: 12px; cursor: pointer; font-size: 16px; border-color: red; border-radius: 5px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* Hide the browser's default checkbox */ .customcheck input { position: absolute; opacity: 0; cursor: pointer; } /* Create a custom checkbox */ .checkmark { position: absolute; top: 0; left: 0; height: 25px; width: 25px; background-color: #eee; border-radius: 5px; border-color: red; } /* On mouse-over, add a grey background color */ .customcheck:hover input~.checkmark { background-color: #ccc; border-color: red; border-radius: 5px; } /* When the checkbox is checked, add a blue background */ .customcheck input:checked~.checkmark { background-color: #02cf32; border-radius: 5px; } /* Create the checkmark/indicator (hidden when not checked) */ .checkmark:after { content: ""; position: absolute; display: none; } /* Show the checkmark when checked */ .customcheck input:checked~.checkmark:after { display: block; } /* Style the checkmark/indicator */ .customcheck .checkmark:after { left: 9px; top: 5px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } /* The check */ .check { display: block; position: relative; padding-left: 25px; margin-bottom: 12px; padding-right: 15px; cursor: pointer; font-size: 18px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* Hide the browser's default checkbox */ .check input { position: absolute; opacity: 0; cursor: pointer; } /* Create a custom checkbox */ .checkmark { position: absolute; top: 3px; left: 0; height: 18px; width: 18px; background-color: #fff; border-color: #fc4a1a; border-style: solid; border-width: 2px; } /* When the checkbox is checked, add a blue background */ .check input:checked~.checkmark { background-color: #fff; } /* Create the checkmark/indicator (hidden when not checked) */ .checkmark:after { content: ""; position: absolute; display: none; } /* Show the checkmark when checked */ .check input:checked~.checkmark:after { display: block; } /* Style the checkmark/indicator */ .check .checkmark:after { left: 5px; top: 1px; width: 5px; height: 10px; border: solid; border-color: #fc4a1a; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } .cust-btn { margin-bottom: 10px; background-color: #f8204f; border-width: 2px; border-color: #f8204f; color: #fff; } .cust-btn:hover { border-color: #f8204f; background-color: #fff; color: #f8204f; border-radius: 20px; transform-style: 2s; } </style> </head> <body> <!-- form tag` --> <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-9 col-lg-9 col-sm-12"> <div class="card card0 rounded-0"> <div class="row"> <div class="col-md-12 col-sm-12 p-0 box"> <div class="card rounded-0 border-0 card2 " id="paypage"> <?php $result = $con->query($query); if ($result->num_rows > 0) { $row = $result->fetch_assoc(); ?> <form action="processSale.php" method="post" id="saleApi" accept-charset="ISO-8859-1"> <div class="form-card "> <h2 id="heading2" class="display-6 text-center fw-bold">STUDENT PAYMENT DETAILS</h2> <div class="row"> <div class="col-8 col-md-6 col-sm-12"> <label class="pay"><strong><em>Merchant Txn. Ref. No: *</em></strong></label> <input type="text" name="TxnRefNo" id="TxnRefNo" value="<?php echo random_strings(11) . substr($row['rollno'], -3); ?>" readonly> </div> <div class="col-4 col-md-6 col-sm-12"> <label class="pay"><strong><em>Order ID *</em></strong></label> <input type="text" name="OrderInfo" id="OrderInfo" value="<?php echo "NGWC" . date('dmY') . random_nums(3); ?>" class="placeicon" readonly> </div> <div class="col-md-4 col-sm-12"> <label class="pay">Student First Name</label> <input type="text" name="FirstName" id="FirstName" placeholder="John Smith" value="<?php echo trim($row['studentfirstname']); ?>" readonly> </div> <div class="col-md-4 col-sm-12"> <label class="pay">Student Middle Name</label> <input type="text" name="middlename" id="middlename" placeholder="" value="<?php echo trim($row['studentmiddlename']); ?>" readonly> </div> <div class="col-md-4 col-sm-12"> <label class="pay">Student Last Name</label> <input type="text" name="LastName" id="LastName" placeholder="John Smith" value="<?php echo trim($row['studentlastname']); ?>" readonly> </div> </div> <div class="row"> <div class="col-8 col-md-6 col-sm-12"> <label class="pay">Email</label> <input type="text" name="Email" id="Email" value="<?php echo $row['email']; ?>" readonly> </div> <div class="col-4 col-md-6 col-sm-12"> <label class="pay">Phone No.</label> <input type="text" name="Phone" id="Phone" value="<?php echo $row['mobile']; ?>" readonly> </div> </div> <div class="row"> <div class="col-md-6 text-left col-sm-12"> <label class="pay">Amount to be Paid</label> <input type="text" name="Amount" id="Amount" readonly required value="<?php echo $row['amountdue']; ?>"> <span style="color: #00a8ff;font-size:18px;text-align:justify;;">Amount in Words : <?php echo getConvertNumberToWord($row['amountdue']); ?></span> </div> <div class="col-4 col-md-6 col-sm-12"> <label class="pay">Roll No.</label> <input type="text" name="UDF01" id="UDF01" value="<?php echo $row['rollno']; ?>" readonly> </div> <div class="col-md-12 col-sm-12"> <label class="pay">Purpose of Payment.</label> <input type="text" name="UDF02" id="UDF02" value="<?php echo $row['remark']; ?>" readonly> </div> <div class="col-md-12 col-sm-12"> <label class="check" style="color: #fc4a1a;font-size:15px;text-align:justify;">I have paid the requisite fees of Rs.<?php echo $row['amountdue'] . "(Rupees " . getConvertNumberToWord($row['amountdue']) . "[in words]) only, online, through the link specified on the website of the Institute under above Transaction No. " . "dated " . date('d/m/Y') . "."; ?> <input type="checkbox" id="is_name" name="is_name" required> <span class="checkmark"></span> </label> </div> </div> </div> <div class="row"> <input class="textbox" type="hidden" name="Currency" id="Currency" size="50" maxlength="40" required value="<?php echo CURRENCYID; ?>" /> <input class="textbox" type="hidden" name="MerchantId" id="MerchantId" required value="<?php echo MERCHANTID; ?>" /> <input class="textbox" type="hidden" name="TerminalId" id="TerminalId" required value="<?php echo TERMINALID; ?>" /> <input class="textbox" type="hidden" name="UDF04" id="UDF04" required value="<?php echo $pmtid; ?>" /> <input class="textbox" type="hidden" name="TxnType" id="TxnType" value="Pay" readonly="readonly" required /> <input class="textbox" type="hidden" name="UDF03" id="UDF03" value="<?php echo $row['studentfirstname'] . " " . $row['studentmiddlename'] . " " . $row['studentlastname']; ?>" readonly="readonly" required /> </div> <div class="row"> <div class="col-md-6"> <input type="submit" name="SubButL" id="submit" value="MAKE A PAYMENT " class="btn btn-info placeicon rounded-0" /> <!-- <input type="submit" value="MAKE A PAYMENT "> --> </div> </div> </div> </form> <?php } ?> </div> </div> </div> </div> </div> </div> </div> <!-- form tag ends --> <!-- The "Pay Now!" button submits the form and gives control to the form 'action' parameter --> <script> $(document).ready(function() { $('#submit').hide(); // ddrc $(document)[0].oncontextmenu = function() { return false; } $(document).mousedown(function(e) { if (e.button == 2) { alert('Sorry, this functionality is disabled!'); return false; } else { return true; } }); // ddrc $('#is_name').change(function() { if ($(this).is(':checked')) { $('#submit').show(); } else { $('#submit').hide(); } }); }); </script> </body> </html>