Current File : /home/inlingua/public_html/faridabad/icentex/admin_fd/refund.php |
<?php
session_start();
// Include the database connection details
require('../dbConnection.php');
// Include common functions
require('../commonFunc.php');
// Include common functions
require('../globalVars.php');
// Include the table handler class
require('../dbHandler.class.php');
// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();
// Records selection sql
$sqlQuery = "SELECT a.* FROM ingl_invoice_main a left join timesheet_location b on
a.centre=b.recNo where 1=1 && a.recNo='".$_REQUEST['kV']."' ";
// Select records from table
$selectedRecords = $dbObject->Select($sqlQuery);
$objectData=$dbObject->SelectNext();
?>
<h3>Refund Amount</h3>
<form method="post" action="refund_action.php">
<input type='hidden' name="kV" value="<?php echo $_REQUEST['kV']; ?>">
<table>
<tr><td><b>Invoice No.</b></td><td><?php echo $objectData['invoice_no'] ?></td></tr>
<tr><td><b>Name</b></td><td><?php echo $objectData['student_name'] ?></td></tr>
<tr><td><b>Amount Refunded</b></td><td><input type="text" name="refunded_amount" value="0.00"></td></tr>
<tr><td><b>Refunded Details</b></td><td><textarea name="refunded_details"></textarea></td></tr>
<tr><td colspan="2"><input type="submit" name="aC" value="Refund"></td></tr>
</table>
</form>