2012-02-06 Vanessa Gil <vanessa.gil@artica.es>

* godmode/events/custom_events.php
	  operation/events/events_list.php: Addes criticity info
	in event view.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5492 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-02-06 11:51:14 +00:00
parent bb0f4455c0
commit 5284db3a2b
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-02-06 Vanessa Gil <vanessa.gil@artica.es>
* godmode/events/custom_events.php
operation/events/events_list.php: Addes criticity info
in event view.
2012-02-06 Vanessa Gil <vanessa.gil@artica.es>
* godmode/events/custom_events.php: Added file.

View File

@ -41,7 +41,7 @@ $table->data = array();
$table->data[0][0] = '<h3>'.__('Show event fields').'</h3>';
$table->data[1][0] = '<b>'.__('Event ID').'</b>';
$table->data[1][1] = __('Yes').'&nbsp;'.html_print_radio_button('show_id_evento', 1, '', $config['show_id_evento'], true).'&nbsp;';
$table->data[1][1] = __('Yes').'&nbsp;'.html_print_radio_button('show_id_evento', 1, '', $config['show_id_evento'], true);
$table->data[1][1] .= __('No').'&nbsp;'.html_print_radio_button('show_id_evento', 0, '', $config['show_id_evento'], true);
$table->data[2][0] = '<b>'.__('Event name').'</b>';

View File

@ -892,9 +892,17 @@ foreach ($result as $event) {
$string .= ',';
}
$string = rtrim($string, ',');
$odd = ($odd == '')? 'rowOdd' : '';
}
else {
$string .= '<i>- ' . __('Empty') . ' -</i>';
$odd = ($odd == '')? 'rowOdd' : '';
}
if ($event["criticity"] != '') {
$string .= '<tr class="' . $odd . '"><td align="left" valign="top">' . '<b>' . __('Criticity') . '</td><td align="left">';
$string .= $event["criticity"];
$string .= '</td></tr><tr>';
$odd = ($odd == '')? 'rowOdd' : '';
}
$string .= '</td></tr>';
$string .= '</table>';