'" . db_fetch_cell("select name from host_template where id=" . $_GET["id"]) . "'?", getenv("HTTP_REFERER"), "host_templates.php?action=remove&id=" . $_GET["id"]); include ('include/bottom_footer.php'); exit; } if ((read_config_option("remove_verification") == "") || (isset($_GET["confirm"]))) { db_execute("delete from host_template where id=" . $_GET["id"]); } } function template_edit() { global $colors; display_output_messages(); if (!empty($_GET["id"])) { $host_template = db_fetch_row("select * from host_template where id=" . $_GET["id"]); $header_label = "[edit: " . $host_template["name"] . "]"; }else{ $header_label = "[new]"; $_GET["id"] = 0; } start_box("Host Templates $header_label", "98%", $colors["header"], "3", "center", ""); ?>
Name
A useful name for this host template. Selected Graph Templates
Select one or more graph templates to associate with this host template.
0) { foreach($graph_templates as $graph_template) { $column1 = floor((sizeof($graph_templates) / 2) + (sizeof($graph_templates) % 2)); if (empty($graph_template["host_template_id"])) { $old_value = ""; }else{ $old_value = "on"; } if ($i == $column1) { print ""; } form_base_checkbox("gt_".$graph_template["id"], $old_value, $graph_template["name"], "",$_GET["id"],true); $i++; } } ?>
0) { foreach($graph_templates as $graph_template) { if (!empty($graph_template["host_template_id"])) { $i = 0; start_box("Graph Template: " . $graph_template["name"], "98%", "777777", "3", "center", ""); form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],$i); $i++; ?> Suggested Values ()
You can use this field to suggest defaults to the user or even over ride the non-template bit. For a list of valid field names, see the documentation. 0) { foreach ($data_templates as $data_template) { form_alternate_row_color($colors["form_alternate1"],$colors["form_alternate2"],$i); $i++; ?> Suggested Values ()
You can use this field to suggest defaults to the user or even over ride the non-template bit. For a list of valid field names, see the documentation. Host Templates", "98%", $colors["header"], "3", "center", "host_templates.php?action=edit"); print ""; DrawMatrixHeaderItem("Name",$colors["header_text"],1); DrawMatrixHeaderItem(" ",$colors["header_text"],1); print ""; $host_templates = db_fetch_assoc("select * from host_template order by name"); $i = 0; if (sizeof($host_templates) > 0) { foreach ($host_templates as $host_template) { form_alternate_row_color($colors["alternate"],$colors["light"],$i); $i++; ?> "> ">Delete