'" . db_fetch_cell("select name from rra where id=" . $_GET["id"]) . "'?", "rra.php", "rra.php?action=remove&id=" . $_GET["id"]); exit; } if ((read_config_option("remove_verification") == "") || (isset($_GET["confirm"]))) { db_execute("delete from rra where id=" . $_GET["id"]); db_execute("delete from rra_cf where rra_id=" . $_GET["id"]); } } function rra_edit() { global $colors, $fields_rra_edit; if (!empty($_GET["id"])) { $rra = db_fetch_row("select * from rra where id=" . $_GET["id"]); $header_label = "[edit: " . $rra["name"] . "]"; }else{ $header_label = "[new]"; } html_start_box("Round Robin Archives $header_label", "98%", $colors["header"], "3", "center", ""); draw_edit_form(array( "config" => array(), "fields" => inject_form_variables($fields_rra_edit, (isset($rra) ? $rra : array())) )); html_end_box(); form_save_button("rra.php"); } function rra() { global $colors; html_start_box("Round Robin Archives", "98%", $colors["header"], "3", "center", "rra.php?action=edit"); print ""; DrawMatrixHeaderItem("Name",$colors["header_text"],1); DrawMatrixHeaderItem("Steps",$colors["header_text"],1); DrawMatrixHeaderItem("Rows",$colors["header_text"],1); DrawMatrixHeaderItem("Timespan",$colors["header_text"],2); print ""; $rras = db_fetch_assoc("select id,name,rows,steps,timespan from rra order by steps"); $i = 0; if (sizeof($rras) > 0) { foreach ($rras as $rra) { form_alternate_row_color($colors["alternate"],$colors["light"],$i); $i++; ?> "> ">Delete