Email confirmation field added
This commit is contained in:
@@ -30,8 +30,6 @@ function booking_report_summary() {
|
||||
$committee_count = 0;
|
||||
|
||||
$stats_attributes = array('style' => 'max-width:30%');
|
||||
|
||||
//TODO: add count of welfare people, and number of people fully paid
|
||||
|
||||
//define sorting information with the header
|
||||
//as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7
|
||||
@@ -443,9 +441,11 @@ function booking_coming_page() {
|
||||
$header = array('Name', 'State');
|
||||
}
|
||||
|
||||
//if configuration is set to show on lists even when no payment has been made, then include booking status of 0 (unpaid) or 1 (booked in)
|
||||
//also ensure any committee members always show
|
||||
if (variable_get('booking_auto_show_on_lists', 1) == 1)
|
||||
{
|
||||
$or = db_or()->condition('p.booking_status', 0)->condition('p.booking_status', 1);
|
||||
$or = db_or()->condition('p.booking_status', 0)->condition('p.booking_status', 1)>condition('p.booking_committee_member', 'Y');
|
||||
|
||||
$result = db_select('booking_person', 'p')
|
||||
->fields('p', array('booking_firstname', 'booking_lastname', 'booking_state', 'booking_readinggroup', 'booking_country'))
|
||||
@@ -460,33 +460,20 @@ function booking_coming_page() {
|
||||
}
|
||||
else
|
||||
{
|
||||
//payment must be made before someone will show up as booked in, but also include any committee member that might not have paid
|
||||
$or = db_or()->condition('p.booking_status', 1)->condition('p.booking_committee_member', 'Y');
|
||||
|
||||
$result = db_select('booking_person', 'p')
|
||||
->fields('p', array('booking_firstname', 'booking_lastname', 'booking_state', 'booking_readinggroup', 'booking_country'))
|
||||
->condition('p.booking_status', 1)
|
||||
->condition($or)
|
||||
->condition('p.booking_event_id', $event->eid, '=')
|
||||
->orderBy('booking_country')
|
||||
->orderBy('booking_state')
|
||||
->orderBy('booking_lastname')
|
||||
->orderBy('booking_firstname')
|
||||
->execute();
|
||||
|
||||
/*
|
||||
$result = db_query('SELECT booking_firstname, booking_lastname, booking_state, booking_readinggroup, booking_country
|
||||
FROM (
|
||||
SELECT booking_firstname, booking_lastname, booking_state, booking_readinggroup, booking_country
|
||||
FROM {booking_person}
|
||||
WHERE booking_status = 1 and booking_event_id = :eid
|
||||
) AS booking
|
||||
ORDER BY booking_state, booking_lastname, booking_firstname',
|
||||
array(':eid' => $event->eid));
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
//while ($booking = db_fetch_object($result)) {
|
||||
|
||||
//watchdog('booking', "Who's coming query: @info", array('@info' => var_export($result, TRUE)));
|
||||
|
||||
foreach ($result as $person)
|
||||
{
|
||||
$state = $person->booking_country === variable_get('booking_default_country') ? $person->booking_state : $person->booking_country;
|
||||
|
Reference in New Issue
Block a user