Revision 3150f4a4
Added by Sjon Hortensius about 10 years ago
usr/local/www/services_snmp.php | ||
---|---|---|
198 | 198 |
'Enable', |
199 | 199 |
'Enable the SNMP Daemon and its controls', |
200 | 200 |
$pconfig['enable'] |
201 |
))->toggles('.toggle-snmp');
|
|
201 |
)); |
|
202 | 202 |
|
203 | 203 |
$form->add($section); |
204 | 204 |
|
205 | 205 |
$section = new Form_Section('SNMP Daemon settings'); |
206 | 206 |
|
207 |
if($pconfig['enable']) |
|
208 |
$section->addClass('toggle-snmp', 'in'); |
|
209 |
else |
|
210 |
$section->addClass('toggle-snmp', 'collapse'); |
|
211 |
|
|
212 | 207 |
$section->addInput(new Form_Input( |
213 | 208 |
'pollport', |
214 | 209 |
'Polling Port', |
... | ... | |
241 | 236 |
|
242 | 237 |
$section = new Form_Section('SNMP Traps Enable'); |
243 | 238 |
|
244 |
if($pconfig['enable']) |
|
245 |
$section->addClass('toggle-snmp', 'in'); |
|
246 |
else |
|
247 |
$section->addClass('toggle-snmp', 'collapse'); |
|
248 |
|
|
249 | 239 |
$section->addInput(new Form_Checkbox( |
250 | 240 |
'trapenable', |
251 | 241 |
'Enable', |
... | ... | |
287 | 277 |
|
288 | 278 |
$section = new Form_Section('SNMP Modules'); |
289 | 279 |
|
290 |
if($pconfig['enable']) |
|
291 |
$section->addClass('toggle-snmp', 'in'); |
|
292 |
else |
|
293 |
$section->addClass('toggle-snmp', 'collapse'); |
|
294 |
|
|
295 |
$group = new Form_Group('SNMP modules'); |
|
280 |
$group = new Form_MultiCheckboxGroup('SNMP modules'); |
|
296 | 281 |
|
297 |
$group->add(new Form_Checkbox( |
|
282 |
$group->add(new Form_MultiCheckbox(
|
|
298 | 283 |
'mibii', |
299 | 284 |
null, |
300 | 285 |
'MibII', |
301 | 286 |
$pconfig['mibii'] |
302 | 287 |
)); |
303 | 288 |
|
304 |
$group->add(new Form_Checkbox( |
|
289 |
$group->add(new Form_MultiCheckbox(
|
|
305 | 290 |
'netgraph', |
306 | 291 |
null, |
307 | 292 |
'Netgraph', |
308 | 293 |
$pconfig['netgraph'] |
309 | 294 |
)); |
310 | 295 |
|
311 |
$group->add(new Form_Checkbox( |
|
296 |
$group->add(new Form_MultiCheckbox(
|
|
312 | 297 |
'pf', |
313 | 298 |
null, |
314 | 299 |
'PF', |
315 | 300 |
$pconfig['pf'] |
316 | 301 |
)); |
317 | 302 |
|
318 |
$group->add(new Form_Checkbox( |
|
303 |
$group->add(new Form_MultiCheckbox(
|
|
319 | 304 |
'hostres', |
320 | 305 |
null, |
321 | 306 |
'Host Resources', |
322 | 307 |
$pconfig['hostres'] |
323 | 308 |
)); |
324 | 309 |
|
325 |
$group->add(new Form_Checkbox( |
|
310 |
$group->add(new Form_MultiCheckbox(
|
|
326 | 311 |
'ucd', |
327 | 312 |
null, |
328 | 313 |
'UCD', |
329 | 314 |
$pconfig['ucd'] |
330 | 315 |
)); |
331 | 316 |
|
332 |
$group->add(new Form_Checkbox( |
|
317 |
$group->add(new Form_MultiCheckbox(
|
|
333 | 318 |
'regex', |
334 | 319 |
null, |
335 | 320 |
'Regex', |
... | ... | |
341 | 326 |
|
342 | 327 |
$section = new Form_Section('Interface Binding'); |
343 | 328 |
|
344 |
if($pconfig['enable']) |
|
345 |
$section->addClass('toggle-snmp', 'in'); |
|
346 |
else |
|
347 |
$section->addClass('toggle-snmp', 'collapse'); |
|
348 |
|
|
349 | 329 |
$section->addInput(new Form_Select( |
350 | 330 |
'bindip', |
351 | 331 |
'Bind Interface', |
... | ... | |
371 | 351 |
//]]> |
372 | 352 |
</script> |
373 | 353 |
|
374 |
<?php include("foot.inc"); |
|
354 |
<?php include("foot.inc"); |
Also available in: Unified diff
removed enormous form toggle, that's meant for smaller sections.
Also implemented new MultiCheckboxes. Refs #163