mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-23 01:03:23 -05:00
This gets volunteer history select working correctly.
This commit is contained in:
parent
e6b05b4eab
commit
f95f2d2b2c
@ -1018,6 +1018,11 @@ $(function() {
|
|||||||
sold_to = $("[name='sold_to']").val();
|
sold_to = $("[name='sold_to']").val();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Volunteer History query
|
||||||
|
$.post("json/transaction.php",{ volunteer_history_select: 1, contact_id: sold_to }, function(data) {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
var payment_type_group = $("input[name='payment_type']"), payment_type, check_number;
|
var payment_type_group = $("input[name='payment_type']"), payment_type, check_number;
|
||||||
if (payment_type_group.length) {
|
if (payment_type_group.length) {
|
||||||
payment_type_group.each(function(){
|
payment_type_group.each(function(){
|
||||||
|
@ -268,7 +268,7 @@ $stand_time_value = STAND_TIME_VALUE;
|
|||||||
$query = 'SELECT volunteer FROM contacts WHERE contact_id="' . $_POST['contact_id'] . '";';
|
$query = 'SELECT volunteer FROM contacts WHERE contact_id="' . $_POST['contact_id'] . '";';
|
||||||
$sql = mysql_query($query, $YBDB) or die(mysql_error());
|
$sql = mysql_query($query, $YBDB) or die(mysql_error());
|
||||||
$result = mysql_fetch_assoc($sql);
|
$result = mysql_fetch_assoc($sql);
|
||||||
if ($result['history'] == "") {
|
if ($result['volunteer'] == "") {
|
||||||
echo "First Volunteer History";
|
echo "First Volunteer History";
|
||||||
} else {
|
} else {
|
||||||
// Description may have newlines
|
// Description may have newlines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user