mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
Added not logged-in logic for transaction edit, also:
1). Added error spans for transaction edit 2). Removed some css from transaction.js 3). Added css for errors to transaction.css
This commit is contained in:
@@ -63,6 +63,16 @@ $change_fund = CHANGE_FUND;
|
||||
echo json_encode($send_back);
|
||||
}
|
||||
|
||||
// Patron who made a transaction not logged in.
|
||||
if (isset($_POST['not_logged_in'])) {
|
||||
$query = "SELECT CONCAT(contacts.last_name, ', ', contacts.first_name, ' ',contacts.middle_initial) AS full_name
|
||||
FROM transaction_log, contacts
|
||||
WHERE transaction_id=" . $_POST['transaction_id'] .
|
||||
" AND contacts.contact_id = transaction_log.sold_to;";
|
||||
$sql = mysql_query($query, $YBDB) or die(mysql_error());
|
||||
$result = mysql_fetch_assoc($sql);
|
||||
echo $result["full_name"];
|
||||
}
|
||||
|
||||
// Anonymous transaction - save and communicate back settings
|
||||
if(isset($_POST['anonymous'])) {
|
||||
|
||||
Reference in New Issue
Block a user