__('Delete'), 2 => __('Duplicate'), 3 => __('Sync Aggregates') ); /* set default action */ set_default_action(); switch (get_request_var('action')) { case 'save': aggregate_color_form_save(); break; case 'actions': aggregate_color_form_actions(); break; case 'template_edit': top_header(); aggregate_color_template_edit(); bottom_footer(); break; default: top_header(); aggregate_color_template(); bottom_footer(); break; } /** draw_color_template_items_list - draws a nicely formatted list of color items for display * on an edit form * @param array $item_list - an array representing the list of color items. this array should * come directly from the output of db_fetch_assoc() * @param string $filename - the filename to use when referencing any external url * @param string $url_data - any extra GET url information to pass on when referencing any * external url * @param bool $disable_controls - whether to hide all edit/delete functionality on this form */ function draw_color_template_items_list($item_list, $filename, $url_data, $disable_controls) { global $config; global $struct_color_template_item; $display_text = array( array('display' => __('Color Item'), 'align' => 'left', 'nohide' => true), array('display' => __('Color'), 'align' => 'left', 'nohide' => true), array('display' => __('Hex'), 'align' => 'left', 'nohide' => true), ); html_header($display_text, 2); $i = 1; $total_items = cacti_sizeof($item_list); if (cacti_sizeof($item_list)) { foreach ($item_list as $item) { /* alternating row color */ form_alternate_row('line' . $item['color_template_item_id'], true, true); print '
" . __n('Click \'Continue\' to delete the following Color Template', 'Click \'Continue\' to delete following Color Templates', cacti_sizeof($color_array)) . "
" . __n('Click \'Continue\' to duplicate the following Color Template. You can optionally change the title format for the new color template.', 'Click \'Continue\' to duplicate following Color Templates. You can optionally change the title format for the new color templates.', cacti_sizeof($color_array)) . "
" . __('Title Format:') . '
';
form_text_box('title_format', '
" . __n('Click \'Continue\' to Synchronize all Aggregate Graphs with the selected Color Template.', 'Click \'Continue\' to Syncrhonize all Aggregate Graphs with the selected Color Templates.', cacti_sizeof($color_array)) . "
| ' . __('Search') . ' | ' . __('Color Templates') . ' |