/** * HTML for Row * * @param string $p_caption Caption. * @param string $p_message_type Message type. * @return void */ function get_capability_row_for_email($p_caption, $p_message_type) { $t_access_levels = MantisEnum::getValues(config_get('access_levels_enum_string')); echo '<tr><td>' . string_display($p_caption) . '</td>' . "\n"; echo ' <td' . color_notify_flag($p_message_type, 'reporter') . '>' . show_notify_flag($p_message_type, 'reporter') . '</td>' . "\n"; echo ' <td' . color_notify_flag($p_message_type, 'handler') . '>' . show_notify_flag($p_message_type, 'handler') . '</td>' . "\n"; echo ' <td' . color_notify_flag($p_message_type, 'monitor') . '>' . show_notify_flag($p_message_type, 'monitor') . '</td>' . "\n"; echo ' <td' . color_notify_flag($p_message_type, 'bugnotes') . '>' . show_notify_flag($p_message_type, 'bugnotes') . '</td>' . "\n"; echo ' <td' . color_notify_flag($p_message_type, 'category') . '>' . show_notify_flag($p_message_type, 'category') . '</td>' . "\n"; foreach ($t_access_levels as $t_access_level) { echo ' <td' . color_threshold_flag($t_access_level, $p_message_type) . '>' . show_notify_threshold($t_access_level, $p_message_type) . '</td>' . "\n"; } echo '</tr>' . "\n"; }
function get_capability_row_for_email($p_caption, $p_message_type) { $t_access_levels = explode_enum_string(config_get('access_levels_enum_string')); echo '<tr ' . helper_alternate_class() . '><td>' . string_display($p_caption) . '</td>'; echo '<td class="center"' . colour_notify_flag($p_message_type, 'reporter') . '>' . show_notify_flag($p_message_type, 'reporter') . '</td>'; echo '<td class="center"' . colour_notify_flag($p_message_type, 'handler') . '>' . show_notify_flag($p_message_type, 'handler') . '</td>'; echo '<td class="center"' . colour_notify_flag($p_message_type, 'monitor') . '>' . show_notify_flag($p_message_type, 'monitor') . '</td>'; echo '<td class="center"' . colour_notify_flag($p_message_type, 'bugnotes') . '>' . show_notify_flag($p_message_type, 'bugnotes') . '</td>'; foreach ($t_access_levels as $t_access_level) { $t_entry_array = explode_enum_arr($t_access_level); echo '<td class="center"' . colour_threshold_flag((int) $t_entry_array[0], $p_message_type) . '>' . show_notify_threshold((int) $t_entry_array[0], $p_message_type) . '</td>'; } echo '</tr>' . "\n"; }