">
 Go
0) { foreach ($input_list as $input) { /* we need to find out which graph items will be affected by saving this particular item */ $item_list = db_fetch_assoc("select graph_templates_item.id from graph_template_input_defs,graph_templates_item where graph_template_input_defs.graph_template_item_id=graph_templates_item.local_graph_template_item_id and graph_templates_item.local_graph_id=" . $_POST["local_graph_id"] . " and graph_template_input_defs.graph_template_input_id=" . $input["id"]); /* loop through each item affected and update column data */ if (sizeof($item_list) > 0) { foreach ($item_list as $item) { db_execute("update graph_templates_item set " . $input["column_name"] . "='" . $_POST{$input["column_name"] . "_" . $input["id"]} . "' where id=" . $item["id"]); } } } } } if (isset($_POST["save_component_graph_diff"])) { if ($_POST["type"] == "1") { $intrusive = true; }elseif ($_POST["type"] == "2") { $intrusive = false; } change_graph_template($_POST["local_graph_id"], $_POST["graph_template_id"], $intrusive); } if (isset($_POST["save_component_item"])) { $save["id"] = $_POST["graph_template_item_id"]; $save["graph_template_id"] = $_POST["graph_template_id"]; $save["local_graph_id"] = $_POST["local_graph_id"]; $save["task_item_id"] = form_input_validate($_POST["task_item_id"], "task_item_id", "", true, 3); $save["color_id"] = form_input_validate($_POST["color_id"], "color_id", "", true, 3); $save["graph_type_id"] = form_input_validate($_POST["graph_type_id"], "graph_type_id", "", true, 3); $save["cdef_id"] = form_input_validate($_POST["cdef_id"], "cdef_id", "", true, 3); $save["consolidation_function_id"] = form_input_validate($_POST["consolidation_function_id"], "consolidation_function_id", "", true, 3); $save["text_format"] = form_input_validate($_POST["text_format"], "text_format", "", true, 3); $save["value"] = form_input_validate($_POST["value"], "value", "", true, 3); $save["hard_return"] = form_input_validate((isset($_POST["hard_return"]) ? $_POST["hard_return"] : ""), "hard_return", "", true, 3); $save["gprint_id"] = form_input_validate($_POST["gprint_id"], "gprint_id", "", true, 3); $save["sequence"] = $_POST["sequence"]; if (!is_error_message()) { $graph_template_item_id = sql_save($save, "graph_templates_item"); if ($graph_template_item_id) { raise_message(1); }else{ raise_message(2); } } if (is_error_message()) { header ("Location: graphs.php?action=item_edit&graph_template_item_id=" . (empty($graph_template_item_id) ? $_POST["graph_template_item_id"] : $graph_template_item_id) . "&local_graph_id=" . $_POST["local_graph_id"]); exit; }elseif (read_config_option("full_view_graph") == "") { header ("Location: graphs.php?action=item&local_graph_id=" . $_POST["local_graph_id"]); exit; }elseif (read_config_option("full_view_graph") == "on") { header ("Location: graphs.php?action=graph_edit&local_graph_id=" . $_POST["local_graph_id"]); exit; } } if ((is_error_message()) || (empty($_POST["local_graph_id"])) || (isset($_POST["save_component_input"])) || (isset($_POST["save_component_graph_diff"]))) { header ("Location: graphs.php?action=graph_edit&local_graph_id=" . (empty($local_graph_id) ? $_POST["local_graph_id"] : $local_graph_id)); }else{ header ("Location: graphs.php"); } } /* ----------------------- item - Graph Items ----------------------- */ function item() { global $colors, $consolidation_functions, $graph_item_types, $struct_graph_item; if (empty($_GET["local_graph_id"])) { $template_item_list = array(); $header_label = "[new]"; }else{ $template_item_list = db_fetch_assoc("select graph_templates_item.id, graph_templates_item.text_format, graph_templates_item.value, graph_templates_item.hard_return, graph_templates_item.graph_type_id, graph_templates_item.consolidation_function_id, CONCAT_WS(' - ',data_template_data.name,data_template_rrd.data_source_name) as data_source_name, cdef.name as cdef_name, colors.hex from graph_templates_item left join data_template_rrd on graph_templates_item.task_item_id=data_template_rrd.id left join data_local on data_template_rrd.local_data_id=data_local.id left join data_template_data on data_local.id=data_template_data.local_data_id left join cdef on cdef_id=cdef.id left join colors on color_id=colors.id where graph_templates_item.local_graph_id=" . $_GET["local_graph_id"] . " order by graph_templates_item.sequence"); $header_label = "[edit: " . db_fetch_cell("select title from graph_templates_graph where local_graph_id=" . $_GET["local_graph_id"]) . "]"; } if (read_config_option("full_view_graph") == "") { start_box("Graph Management $header_label", "98%", $colors["header"], "3", "center", ""); draw_graph_form_select("?action=item&local_graph_id=" . $_GET["local_graph_id"]); end_box(); } $graph_template_id = db_fetch_cell("select graph_template_id from graph_local where id=" . $_GET["local_graph_id"]); if (empty($graph_template_id)) { $add_text = "graphs.php?action=item_edit&local_graph_id=" . $_GET["local_graph_id"]; }else{ $add_text = ""; } start_box("Graph Items $header_label", "98%", $colors["header"], "3", "center", $add_text); print ""; DrawMatrixHeaderItem("Graph Item",$colors["header_text"],1); DrawMatrixHeaderItem("Task Name",$colors["header_text"],1); DrawMatrixHeaderItem("Graph Item Type",$colors["header_text"],1); DrawMatrixHeaderItem("CF Type",$colors["header_text"],1); DrawMatrixHeaderItem("Item Color",$colors["header_text"],4); print ""; $group_counter = 0; $_graph_type_name = ""; $i = 0; if (sizeof($template_item_list) > 0) { foreach ($template_item_list as $item) { /* graph grouping display logic */ $this_row_style = ""; $use_custom_row_color = false; $hard_return = ""; if (($graph_item_types{$item["graph_type_id"]} != "GPRINT") && ($graph_item_types{$item["graph_type_id"]} != $_graph_type_name)) { $this_row_style = "font-weight: bold;"; $use_custom_row_color = true; if ($group_counter % 2 == 0) { $alternate_color_1 = "EEEEEE"; $alternate_color_2 = "EEEEEE"; $custom_row_color = "D5D5D5"; }else{ $alternate_color_1 = $colors["alternate"]; $alternate_color_2 = $colors["alternate"]; $custom_row_color = "D2D6E7"; } $group_counter++; } $_graph_type_name = $graph_item_types{$item["graph_type_id"]}; /* alternating row color */ if ($use_custom_row_color == false) { form_alternate_row_color($alternate_color_1,$alternate_color_2,$i); }else{ print ""; } print ""; if (empty($graph_template_id)) { print ""; } print "Item # " . ($i+1) . ""; if (empty($graph_template_id)) { print ""; } print "\n"; if (empty($item["data_source_name"])) { $item["data_source_name"] = "No Task"; } switch (true) { case ereg("(AREA|STACK|GPRINT|LINE[123])", $_graph_type_name): $matrix_title = "(" . $item["data_source_name"] . "): " . $item["text_format"]; break; case ereg("(HRULE|VRULE)", $_graph_type_name): $matrix_title = "HRULE: " . $item["value"]; break; case ereg("(COMMENT)", $_graph_type_name): $matrix_title = "COMMENT: " . $item["text_format"]; break; } if ($item["hard_return"] == "on") { $hard_return = "<HR>"; } print "" . htmlspecialchars($matrix_title) . $hard_return . "\n"; print "" . $graph_item_types{$item["graph_type_id"]} . "\n"; print "" . $consolidation_functions{$item["consolidation_function_id"]} . "\n"; print " \n"; print "" . $item["hex"] . "\n"; print "Move Down Move Up\n"; print "Delete \n"; print ""; $i++; } }else{ print "No Items"; } end_box(); /* only display the "inputs" area if we are using a graph template for this graph */ if ($graph_template_id != "0") { start_box("Graph Item Inputs", "98%", $colors["header"], "3", "center", ""); print "
\n"; $input_item_list = db_fetch_assoc("select * from graph_template_input where graph_template_id=$graph_template_id order by name"); if (sizeof($input_item_list) > 0) { foreach ($input_item_list as $item) { $current_def_value = db_fetch_row("select graph_templates_item." . $item["column_name"] . ", graph_templates_item.id from graph_templates_item,graph_template_input_defs where graph_template_input_defs.graph_template_item_id=graph_templates_item.local_graph_template_item_id and graph_template_input_defs.graph_template_input_id=" . $item["id"] . " and graph_templates_item.local_graph_id=" . $_GET["local_graph_id"] . " limit 0,1"); $field_name = $item["column_name"]; form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],$i); $i++; print " " . $item["name"] . ""; if (!empty($item["description"])) { print "
" . $item["description"]; } print " \n"; draw_nontemplated_item($struct_graph_item{$item["column_name"]}, $field_name . "_" . $item["id"], $current_def_value[$field_name]); print "\n"; } }else{ print "No Inputs"; } end_box(); } form_hidden_id("local_graph_id",$_GET["local_graph_id"]); form_hidden_box("save_component_input","1",""); if ((read_config_option("full_view_graph") == "") && (sizeof($input_item_list) > 0)) { form_save_button("graphs.php"); } } function item_movedown() { include_once ("include/functions.php"); move_item_down("graph_templates_item", $_GET["graph_template_item_id"], "local_graph_id=" . $_GET["local_graph_id"]); } function item_moveup() { include_once ("include/functions.php"); move_item_up("graph_templates_item", $_GET["graph_template_item_id"], "local_graph_id=" . $_GET["local_graph_id"]); } function item_remove() { db_execute("delete from graph_templates_item where id=" . $_GET["graph_template_item_id"]); } function item_edit() { global $colors, $struct_graph_item, $graph_item_types, $consolidation_functions; if (read_config_option("full_view_graph") == "") { start_box("Graph Template Management [edit]", "98%", $colors["header"], "3", "center", ""); draw_graph_form_select("?action=item&local_graph_id=" . $_GET["local_graph_id"]); end_box(); } if (!empty($_GET["graph_template_item_id"])) { $template_item = db_fetch_row("select * from graph_templates_item where id=" . $_GET["graph_template_item_id"]); } start_box("Template Item Configuration", "98%", $colors["header"], "3", "center", ""); ?> 0) { $default_item = $default["task_item_id"]; }else{ $default_item = 0; } $i = 0; while (list($field_name, $field_array) = each($struct_graph_item)) { form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],$i); $i++; print "" . $field_array["title"] . "
\n"; if (isset($field_array["description"])) { print $field_array["description"]; } print "\n"; draw_nontemplated_item($field_array, $field_name, (isset($template_item) ? $template_item[$field_name] : "")); print "\n"; } form_hidden_id("local_graph_id",$_GET["local_graph_id"]); form_hidden_id("graph_template_item_id",(isset($template_item) ? $template_item["id"] : "0")); form_hidden_id("graph_template_id",(isset($template_item) ? $template_item["graph_template_id"] : "0")); form_hidden_id("sequence",(isset($template_item) ? $template_item["sequence"] : "0")); form_hidden_id("_graph_type_id",(isset($template_item) ? $template_item["graph_type_id"] : "0")); form_hidden_box("save_component_item","1",""); end_box(); form_save_button( $_SERVER["HTTP_REFERER"]); } /* ------------------------------------ graph - Graphs ------------------------------------ */ function graph_diff() { global $colors; include("include/config_arrays.php"); $template_query = "select graph_templates_item.id, graph_templates_item.text_format, graph_templates_item.value, graph_templates_item.hard_return, graph_templates_item.consolidation_function_id, graph_templates_item.graph_type_id, CONCAT_WS(' - ',data_template_data.name,data_template_rrd.data_source_name) as task_item_id, cdef.name as cdef_id, colors.hex as color_id from graph_templates_item left join data_template_rrd on graph_templates_item.task_item_id=data_template_rrd.id left join data_local on data_template_rrd.local_data_id=data_local.id left join data_template_data on data_local.id=data_template_data.local_data_id left join cdef on cdef_id=cdef.id left join colors on color_id=colors.id"; /* first, get information about the graph template as that's what we're going to model this graph after */ $graph_template_items = db_fetch_assoc(" $template_query where graph_templates_item.graph_template_id=" . $_GET["graph_template_id"] . " and graph_templates_item.local_graph_id=0 order by graph_templates_item.sequence"); /* next, get information about the current graph so we can make the appropriate comparisons */ $graph_items = db_fetch_assoc(" $template_query where graph_templates_item.local_graph_id=" . $_GET["local_graph_id"] . " order by graph_templates_item.sequence"); $graph_template_inputs = db_fetch_assoc("select graph_template_input.column_name, graph_template_input_defs.graph_template_item_id from graph_template_input,graph_template_input_defs where graph_template_input.id=graph_template_input_defs.graph_template_input_id and graph_template_input.graph_template_id=" . $_GET["graph_template_id"]); /* ok, we want to loop through the array with the GREATEST number of items so we don't have to worry about tacking items on the end */ if (sizeof($graph_template_items) > sizeof($graph_items)) { $items = $graph_template_items; }else{ $items = $graph_items; } ?>
The template you have selected requires some changes to be made to the structure of your graph. Below is a preview of your graph along with changes that need to be completed as shown in the left-hand column.

Graph Preview", "98%", $colors["header"], "3", "center", ""); $graph_item_actions = array("normal" => "", "add" => "+", "delete" => "-"); $group_counter = 0; $i = 0; $mode = "normal"; $_graph_type_name = ""; if (sizeof($items) > 0) { foreach ($items as $item) { reset($struct_graph_item); /* graph grouping display logic */ $bold_this_row = false; $use_custom_row_color = false; $action_css = ""; unset($graph_preview_item_values); if ((sizeof($graph_template_items) > sizeof($graph_items)) && ($i >= sizeof($graph_items))) { $mode = "add"; $user_message = "When you click save, the items marked with a '+' will be added (Recommended)."; }elseif ((sizeof($graph_template_items) < sizeof($graph_items)) && ($i >= sizeof($graph_template_items))) { $mode = "delete"; $user_message = "When you click save, the items marked with a '-' will be removed (Recommended)."; } /* here is the fun meshing part. first we check the graph template to see if there is an input for each field of this row. if there is, we revert to the value stored in the graph, if not we revert to the value stored in the template. got that? ;) */ for ($j=0; ($j < count($graph_template_inputs)); $j++) { if ($graph_template_inputs[$j]["graph_template_item_id"] == (isset($graph_template_items[$i]["id"]) ? $graph_template_items[$i]["id"] : "")) { /* if we find out that there is an "input" covering this field/item, use the value from the graph, not the template */ $graph_item_field_name = (isset($graph_template_inputs[$j]["column_name"]) ? $graph_template_inputs[$j]["column_name"] : ""); $graph_preview_item_values[$graph_item_field_name] = (isset($graph_items[$i][$graph_item_field_name]) ? $graph_items[$i][$graph_item_field_name] : ""); } } /* go back through each graph field and find out which ones haven't been covered by the "inputs" above. for each one, use the value from the template */ while (list($field_name, $field_array) = each($struct_graph_item)) { if ($mode == "delete") { $graph_preview_item_values[$field_name] = (isset($graph_items[$i][$field_name]) ? $graph_items[$i][$field_name] : ""); }elseif (!isset($graph_preview_item_values[$field_name])) { $graph_preview_item_values[$field_name] = (isset($graph_template_items[$i][$field_name]) ? $graph_template_items[$i][$field_name] : ""); } } /* "prepare" array values */ $consolidation_function_id = $graph_preview_item_values["consolidation_function_id"]; $graph_type_id = $graph_preview_item_values["graph_type_id"]; /* color logic */ if (($graph_item_types[$graph_type_id] != "GPRINT") && ($graph_item_types[$graph_type_id] != $_graph_type_name)) { $bold_this_row = true; $use_custom_row_color = true; $hard_return = ""; if ($group_counter % 2 == 0) { $alternate_color_1 = "EEEEEE"; $alternate_color_2 = "EEEEEE"; $custom_row_color = "D5D5D5"; }else{ $alternate_color_1 = $colors["alternate"]; $alternate_color_2 = $colors["alternate"]; $custom_row_color = "D2D6E7"; } $group_counter++; } $_graph_type_name = $graph_item_types[$graph_type_id]; /* alternating row colors */ if ($use_custom_row_color == false) { if ($i % 2 == 0) { $action_column_color = $alternate_color_1; }else{ $action_column_color = $alternate_color_2; } }else{ $action_column_color = $custom_row_color; } print ""; $i++; /* make the left-hand column blue or red depending on if "add"/"remove" mode is set */ if ($mode == "add") { $action_column_color = $colors["header"]; $action_css = ""; }elseif ($mode == "delete") { $action_column_color = "C63636"; $action_css = "text-decoration: line-through;"; } if ($bold_this_row == true) { $action_css .= " font-weight:bold;"; } /* draw the TD that shows the user whether we are going to: KEEP, ADD, or DROP the item */ print "" . $graph_item_actions[$mode] . ""; print "Item # " . $i . "\n"; if (empty($graph_preview_item_values["task_item_id"])) { $graph_preview_item_values["task_item_id"] = "No Task"; } switch (true) { case ereg("(AREA|STACK|GPRINT|LINE[123])", $_graph_type_name): $matrix_title = "(" . $graph_preview_item_values["task_item_id"] . "): " . $graph_preview_item_values["text_format"]; break; case ereg("(HRULE|VRULE)", $_graph_type_name): $matrix_title = "HRULE: " . $graph_preview_item_values["value"]; break; case ereg("(COMMENT)", $_graph_type_name): $matrix_title = "COMMENT: " . $graph_preview_item_values["text_format"]; break; } /* use the cdef name (if in use) if all else fails */ if ($matrix_title == "") { if ($graph_preview_item_values["cdef_id"] != "") { $matrix_title .= "CDEF: " . $graph_preview_item_values["cdef_id"]; } } if ($graph_preview_item_values["hard_return"] == "on") { $hard_return = "<HR>"; } print "" . htmlspecialchars($matrix_title) . $hard_return . "\n"; print "" . $graph_item_types{$graph_preview_item_values["graph_type_id"]} . "\n"; print "" . $consolidation_functions{$graph_preview_item_values["consolidation_function_id"]} . "\n"; print " \n"; print "" . $graph_preview_item_values["color_id"] . "\n"; print ""; } }else{ form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],0); ?> No Items
 
 When you click save, the graph items will remain untouched (could cause inconsistencies).

"> "> " . db_fetch_cell("select title from graph_templates_graph where local_graph_id=" . $_GET["local_graph_id"]) . "?", getenv("HTTP_REFERER"), "graphs.php?action=graph_remove&local_graph_id=" . $_GET["local_graph_id"]); include ('include/bottom_footer.php'); exit; } if ((read_config_option("remove_verification") == "") || (isset($_GET["confirm"]))) { db_execute("delete from graph_templates_graph where local_graph_id=" . $_GET["local_graph_id"]); db_execute("delete from graph_templates_item where local_graph_id=" . $_GET["local_graph_id"]); db_execute("delete from graph_local where id=" . $_GET["local_graph_id"]); } } function graph_edit() { global $colors, $struct_graph, $image_types; if (read_config_option("full_view_graph") == "") { start_box("Graph Management [edit]", "98%", $colors["header"], "3", "center", ""); draw_graph_form_select("?action=graph_edit&local_graph_id=" . $_GET["local_graph_id"]); end_box(); } $use_graph_template = true; if (!empty($_GET["local_graph_id"])) { $local_graph_template_graph_id = db_fetch_cell("select local_graph_template_graph_id from graph_templates_graph where local_graph_id=" . $_GET["local_graph_id"]); $graphs = db_fetch_row("select * from graph_templates_graph where local_graph_id=" . $_GET["local_graph_id"]); $graphs_template = db_fetch_row("select * from graph_templates_graph where id=$local_graph_template_graph_id"); $header_label = "[edit: " . $graphs["title"] . "]"; if ($graphs["graph_template_id"] == "0") { $use_graph_template = false; } }else{ $header_label = "[new]"; $use_graph_template = false; } if ((read_config_option("full_view_graph") == "on") && (!empty($_GET["local_graph_id"]))) { item(); } start_box("Graph Template Selection $header_label", "98%", $colors["header"], "3", "center", ""); ?> Selected Graph Template
Choose a graph template to apply to this graph. Please note that graph data may be lost if you change the graph template after one is already applied. Graph Configuration", "98%", $colors["header"], "3", "center", ""); $i = 0; while (list($field_name, $field_array) = each($struct_graph)) { form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],$i); $i++; print "" . $field_array["title"] . "
\n"; if (($use_graph_template == false) || ($graphs_template{"t_" . $field_name} == "on")) { print $field_array["description"]; } print "\n"; if (($use_graph_template == false) || ($graphs_template{"t_" . $field_name} == "on")) { draw_nontemplated_item($field_array, $field_name, (isset($graphs) ? $graphs[$field_name] : "")); }else{ draw_templated_item($field_array, $field_name, (isset($graphs) ? $graphs[$field_name] : "")); } print "\n"; } form_hidden_id("graph_template_graph_id",(isset($graphs) ? $graphs["id"] : "0")); form_hidden_id("local_graph_id",(isset($graphs) ? $graphs["local_graph_id"] : "0")); form_hidden_id("local_graph_template_graph_id",(isset($graphs) ? $graphs["local_graph_template_graph_id"] : "0")); form_hidden_id("_graph_template_id",(isset($graphs) ? $graphs["graph_template_id"] : "0")); form_hidden_box("save_component_graph","1",""); end_box(); form_save_button("graphs.php"); } function graph() { global $colors; /* remember these search fields in session vars so we don't have to keep passing them around */ if (isset($_REQUEST["page"])) { $_SESSION["sess_graph_current_page"] = $_REQUEST["page"]; }elseif (isset($_SESSION["sess_graph_current_page"])) { $_REQUEST["page"] = $_SESSION["sess_graph_current_page"]; }else{ $_REQUEST["page"] = "1"; /* default value */ } if (isset($_REQUEST["filter"])) { $_SESSION["sess_graph_filter"] = $_REQUEST["filter"]; }elseif (isset($_SESSION["sess_graph_filter"])) { $_REQUEST["filter"] = $_SESSION["sess_graph_filter"]; }else{ $_REQUEST["filter"] = ""; /* default value */ } if (isset($_REQUEST["host_id"])) { $_SESSION["sess_graph_host_id"] = $_REQUEST["host_id"]; }elseif (isset($_SESSION["sess_graph_host_id"])) { $_REQUEST["host_id"] = $_SESSION["sess_graph_host_id"]; }else{ $_REQUEST["host_id"] = ""; /* default value */ } start_box("Graph Management", "98%", $colors["header"], "3", "center", "graphs.php?action=graph_edit"); ?> ">
Filter by host:  ">  
0 and graph_templates_graph.title like '%%" . $_REQUEST["filter"] . "%%' group by graph_templates_graph.id"; $total_rows = sizeof(db_fetch_assoc("select graph_templates_graph.local_graph_id $sql_base")); $graph_list = db_fetch_assoc("select graph_templates_graph.id, graph_templates_graph.local_graph_id, graph_templates_graph.height, graph_templates_graph.width, graph_templates_graph.title, graph_templates.name $sql_base order by graph_templates_graph.title limit " . (ROWS_PER_PAGE*($_REQUEST["page"]-1)) . "," . ROWS_PER_PAGE); }else{ $total_rows = db_fetch_cell("select COUNT(id) from graph_templates_graph where graph_templates_graph.local_graph_id!=0 and graph_templates_graph.title like '%%" . $_REQUEST["filter"] . "%%'"); $graph_list = db_fetch_assoc("select graph_templates_graph.id, graph_templates_graph.local_graph_id, graph_templates_graph.height, graph_templates_graph.width, graph_templates_graph.title, graph_templates.name from graph_templates_graph left join graph_templates on graph_templates_graph.graph_template_id=graph_templates.id where graph_templates_graph.local_graph_id!=0 and graph_templates_graph.title like '%%" . $_REQUEST["filter"] . "%%' order by graph_templates_graph.title limit " . (ROWS_PER_PAGE*($_REQUEST["page"]-1)) . "," . ROWS_PER_PAGE); } print " \n \n \n
<< "; if ($_REQUEST["page"] > 1) { print ""; } print "Previous"; if ($_REQUEST["page"] > 1) { print ""; } print " Showing Rows " . ((ROWS_PER_PAGE*($_REQUEST["page"]-1))+1) . " to " . ((($total_rows < ROWS_PER_PAGE) || ($total_rows < (ROWS_PER_PAGE*$_REQUEST["page"]))) ? $total_rows : (ROWS_PER_PAGE*$_REQUEST["page"])) . " of $total_rows "; if (($_REQUEST["page"] * ROWS_PER_PAGE) < $total_rows) { print ""; } print "Next"; if (($_REQUEST["page"] * ROWS_PER_PAGE) < $total_rows) { print ""; } print " >>
\n"; print ""; DrawMatrixHeaderItem("Graph Title",$colors["header_text"],1); DrawMatrixHeaderItem("Template Name",$colors["header_text"],1); DrawMatrixHeaderItem("Size",$colors["header_text"],2); print ""; $i = 0; if (sizeof($graph_list) > 0) { foreach ($graph_list as $graph) { form_alternate_row_color($colors["alternate"],$colors["light"],$i); ?> ">\\1", $graph["title"]);?> None" : $graph["name"]); ?> x ">Delete  No Graphs Found"; } end_box(); } ?>