include "include/config.inc";
$page["title"] = "Graphs";
$page["file"] = "graphs.html";
show_header($page["title"],0,0);
?>
show_table_header("CONFIGURATION OF GRAPHS");
echo "
";
?>
if(isset($register))
{
if($register=="add")
{
$result=add_graph($name,$width,$height);
show_messages($result,"Graph added","Cannot add graph");
}
if($register=="update")
{
$result=update_graph($graphid,$name,$width,$height);
show_messages($result,"Graph updated","Cannot update graph");
}
if($register=="delete")
{
$result=delete_graph($graphid);
show_messages($result,"Graph deleted","Cannot delete graph");
unset($graphid);
}
}
?>
show_table_header("GRAPHS");
echo "
Name | "; echo "Width | "; echo "Height | "; echo "Actions | "; echo ""; $result=DBselect("select g.graphid,g.name,g.width,g.height from graphs g order by g.name"); echo "
$name_ | "; echo "$width_ | "; echo "$height_ | "; echo "Change - Delete | "; echo "