add highlighting to manual email page for welfare cases

This commit is contained in:
2016-05-25 22:58:22 +10:00
parent 691e1feeef
commit 89460e6157
2 changed files with 4 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ function booking_manual_email()
$email_options_array['missedpayment'] = 'Missed Payment Email';
$email_options_array['travelrequired'] = 'Travel Form Required Email';
$email_options_array['travelcomplete'] = 'Travel Form Complete Email';
//add in the custom email types
for ($i = 1; $i <= variable_get('booking_custom_email_count','5'); $i++)
@@ -72,6 +73,7 @@ function booking_manual_email()
foreach($result as $data)
{
$group_text = "";
$class = $data->booking_welfare_required == 'Y' ? "normal-row" : "reserveleader-row";
//$paid = _booking_amount_owing($data);
//$paid = _booking_amount_owing($data->nid);
$options[$data->nid] = array (
@@ -86,6 +88,7 @@ function booking_manual_email()
'booking_fully_paid' => $data->booking_payment_complete == 'Y' ? 'Yes' : 'No',
'welfare_required' => $data->booking_welfare_required == 'Y' ? 'Yes' : 'No',
'travel_form' => $data->tid > 0 ? 'Yes' : 'No',
'#attributes' => array('id' => array($class)),
);
if (variable_get('booking_enable_studygroups', 0) == 1)