First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
include "include/database.php";
|
||||
|
||||
// Start the template and output buffering
|
||||
startTemplate();
|
||||
$templatePageTitle = "";
|
||||
$noTitle = true;
|
||||
$noBackground = true;
|
||||
$headerArgs = "";
|
||||
$selected_template = "default.print.html";
|
||||
|
||||
|
||||
unset($trx_num);
|
||||
unset($user_num);
|
||||
if (array_key_exists('tnum',$_GET) && strlen($_GET['tnum']) > 0) $trx_num = intval($_GET['tnum']);
|
||||
if (array_key_exists('unum',$_GET) && strlen($_GET['unum']) > 0) $user_num = intval($_GET['unum']);
|
||||
|
||||
// Validate the parameters
|
||||
if (!isset($trx_num) || $trx_num == 0) {
|
||||
$error_message = getLanguageText('ERRORMSG-INVALID-PARAMETERS');
|
||||
header("Location: /?error_message=".urlencode($error_message));
|
||||
exit();
|
||||
}
|
||||
|
||||
if (!isset($user_num) || $user_num == 0) {
|
||||
$error_message = getLanguageText('ERRORMSG-INVALID-PARAMETERS');
|
||||
header("Location: /?error_message=".urlencode($error_message));
|
||||
exit();
|
||||
}
|
||||
|
||||
// Get and validate the transaction
|
||||
$query = "SELECT * FROM user_account WHERE school_num = $school_num AND user_num = $user_num AND transaction_status = 'Closed' AND transaction_amount < 0 AND record_num = $trx_num";
|
||||
$results = db_query($query);
|
||||
|
||||
if (db_num_rows($results) == 0) {
|
||||
$error_message = getLanguageText('ERRORMSG-INVALID-PARAMETERS');
|
||||
header("Location: /?error_message=".urlencode($query));
|
||||
echo($query);
|
||||
exit();
|
||||
}
|
||||
|
||||
$PageTitle = getLanguageText('TEXT-RECEIPT');
|
||||
$showFacebook = 'Y';
|
||||
$menuInclude = "menu.receipt.php";
|
||||
|
||||
?>
|
||||
<center>
|
||||
<h2><?php displayLanguageText('TEXT-RECEIPT'); ?></h2>
|
||||
<div id='receipt-content'></div>
|
||||
</center>
|
||||
<?php
|
||||
|
||||
endTemplate("blank.html");
|
||||
?>
|
||||
Reference in new issue
Block a user