addGlobal(new Form_Input( 'getactivity', null, 'hidden', 'yes' )); $section = new Form_Section('pfTop Configuration'); $validViews = array( 'default' => gettext('default'), 'label' => gettext('label'), 'long' => gettext('long'), 'queue' => gettext('queue'), 'rules' => gettext('rules'), 'size' => gettext('size'), 'speed' => gettext('speed'), 'state' => gettext('state'), 'time' => gettext('time'), ); $section->addInput(new Form_Select( 'viewtype', 'View', $viewtype, $validViews )); $section->addInput(new Form_Select( 'sorttype', 'Sort by', $sorttype, array( 'none' => gettext('None'), 'age' => gettext('Age'), 'bytes' => gettext('Bytes'), 'dest' => gettext('Destination Address'), 'dport' => gettext('Destination Port'), 'exp' => gettext('Expiry'), 'peak' => gettext('Peak'), 'pkt' => gettext('Packet'), 'rate' => gettext('Rate'), 'size' => gettext('Size'), 'sport' => gettext('Source Port'), 'src' => gettext('Source Address'), ) )); $validStates = array(50, 100, 200, 500, 100, 'all'); $section->addInput(new Form_Select( 'states', 'Maximum # of States', $numstate, array_combine($validStates, $validStates) )); $form->add($section); print $form; ?>
=gettext("Gathering pfTOP activity, please wait...")?>