@@ -101,8 +155,82 @@ $form["graph_size"] = new FormElement( // radio
"normal"=>"Normal (400 × 200)",
"large"=>"Large (500 × 300)"
),
"normal"
);
$form["features"]=newFormElement(// checkbox
"features",
array(
"drag"=>"Draggable graphs",
),
array(
"drag"
)
);
$form["top"]=newFormElement(
"top",
array(
// "basic" => "Basic",
"int_stats"=>array(
"label"=>"Internal statistics (\"at host\")",
"description"=>"Statistics generated at host/interface.\nDue to resource limits, some flows can be ignored or dropped already at host/interface, so some informations about them appers in 'internal stats'. However, they are not counted into 'external stats', as they are simply not shipped from host/interface to packetloss application."),
"ext_stats"=>array(
"label"=>"External statistics",
"description"=>"Statistics generated by packetloss application."),
"devices"=>array(
"label"=>"Separate interfaces",
"description"=>"Show statistics per interface, not just per host."),
"rd"=>array(
"label"=>"Separate directions",
"description"=>"Resolve from/to direction."),
"peer"=>array(
"label"=>"Show 'Subject 2' stats too",
"description"=>"Check this to see stats related to 'Subject 2 only' too.\n(If not checked, just stats related to 'Subject 1 only' and stats related to 'both Subject 1 and Subject 2' are shown.)"),
"hosts"=>array(
"label"=>"\"All hosts\" statistics",
"description"=>"Show overall statistics, not specific for any of Subject 1 or Subject 2.\nNote: These stats should be implemented for host-to-host view soon..."),
// "single_stats" => "Single statistics"
),
array(
// "basic",
// "int_stats",
"ext_stats",
// "devices",
// "rd",
"peer",
// "hosts",
// "single_stats"
)
);
$form["top_ct"]=newFormElement(
"top",
array(
"c"=>array(
"label"=>"Current values",
"description"=>"Values measured during last application life cycle (10 seconds)."),
"t"=>array(
"label"=>"Total values",
"description"=>"Show total values, collected since the application started.\nNote: Most of stats are 'total' for now, so you should probably keep this checked.")
),
array(
"normal"
// "c",
"t"
)
);
$form["top_unit"]=newFormElement(
"top_unit",
array(
"flows"=>array("label"=>"Flows","description"=>"Check this if you are interested in flows counts."),
"pkts"=>array("label"=>"Packets","description"=>"Check this if you are interested in packets counts."),
"bytes"=>array("label"=>"Bytes","description"=>"Check this if you are interested in bytes counts."),