Modifications so unpaid people can move to bottom of waiting list
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
Reference in New Issue
Block a user