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:
Jonathan Rosenbaum
2015-01-26 18:52:16 +00:00
parent 934bc4438c
commit 304c9e2f37
4 changed files with 67 additions and 26 deletions
+10
View File
@@ -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'])) {