Added ajax function to individually manage room allocation

This commit is contained in:
2014-06-03 18:39:34 +10:00
parent 9aef5c23ed
commit eff81fdbba
4 changed files with 277 additions and 12 deletions

View File

@@ -1141,10 +1141,8 @@ function _booking_studygroup_email_summary($node) {
//check that this study group session has been defined for this attendee
if (!empty($node->$sessionid))
{
$rows[] = t($studygroups[$i]->booking_studygroup_descrip . " session number:\t" . $node->$sessionid);
$rows[] = t("Role:\t" . _booking_studygroup_role_lookup($node->$roleid));
}
$rows[] = t($studygroups[$i]->booking_studygroup_descrip . ": Group " . $node->$sessionid . ", " . _booking_studygroup_role_lookup($node->$roleid));
}
}
}
@@ -1167,12 +1165,12 @@ function _booking_room_email_summary($node) {
//check that this attendee has had a room allocated
if (! empty($node->rid))
{
$rows[] = t("Room Location\t" . _booking_room_location_lookup($node->booking_room_location_id));
$rows[] = t("Room Number\t" . $node->booking_room_number);
$rows[] = t("Bed Type\t" . _booking_room_bedtype_lookup($node->booking_room_bedtype));
$rows[] = t("Room Location: " . _booking_room_location_lookup($node->booking_room_location_id));
$rows[] = t("Room Number: " . $node->booking_room_number);
$rows[] = t("Bed Type: " . _booking_room_bedtype_lookup($node->booking_room_bedtype));
}
else
$rows[] = t("No room currently allocated.");
$rows[] = t("\tNo room currently allocated.");
}
foreach ($rows as $key => $value)