Modifications so unpaid people can move to bottom of waiting list

This commit is contained in:
2014-05-28 12:28:23 +10:00
parent f7af25051c
commit 41f39b6705
5 changed files with 53 additions and 13 deletions

View File

@@ -312,19 +312,27 @@ function booking_rooms_allocate_form($node, &$form_state, $location_id) {
$j = 0;
for ($i = 1; $i <= $data->booking_room_queenbeds; $i++)
{
$row = _booking_clone_array($default_row);
$row = _booking_clone_array($default_row);
$default = (!empty($existing_beds[3][$j])) ? $existing_beds[3][$j++] : 0;
$row['booking_room_queenbed_p1'] = array('data' => array(
'#type' => 'select',
'#options' => $attendee_select,
'#name' => 'booking_room_queenbed_p1[' . $data->rid . '][' . $i . ']',
'#value' => (!empty($existing_beds[3][$j])) ? $existing_beds[3][$j++] : 0,
'#value' => $default,
));
//find the default for the second bed
$default = (!empty($existing_beds[3][$j])) ? $existing_beds[3][$j++] : 0;
$row['booking_room_queenbed_p2'] = array('data' => array(
'#type' => 'select',
'#options' => $attendee_select,
'#name' => 'booking_room_queenbed_p2[' . $data->rid . '][' . $i . ']',
'#value' => (!empty($existing_beds[3][$j])) ? $existing_beds[3][$j++] : 0,
));
'#value' => $default,
));
//add this row to the table
$options[$counter++] = $row;
}
@@ -450,4 +458,12 @@ function booking_rooms_allocate_form_submit($form, &$form_state) {
} //each room
} //each bed type
}
/**
* Function for viewing room report
*/
function booking_rooms_view_form($node, &$form_state, $location_id) {
global $event;
}