Revision a02e2774
Added by Sjon Hortensius over 10 years ago
usr/local/www/diag_ping.php | ||
---|---|---|
152 | 152 |
['placeholder' => 'Hostname to ping'] |
153 | 153 |
)); |
154 | 154 |
|
155 |
$section->addInput(new Form_Checkbox( |
|
155 |
$group = new Form_Group('IP Protocol'); |
|
156 |
$group->add(new Form_Checkbox( |
|
156 | 157 |
'ipproto', |
157 |
'IP Protocol', |
|
158 |
$pconfig['protocol'], |
|
159 |
array('ipv4' => 'IPv4', 'ipv6' => 'IPv6') |
|
160 |
))->displayAsRadio()->setHelp('Select the protocol to use'); |
|
158 |
null, |
|
159 |
'IPv4', |
|
160 |
('ipv4' == $pconfig['protocol']), |
|
161 |
'ipv4' |
|
162 |
))->displayAsRadio(); |
|
163 |
$group->add(new Form_Checkbox( |
|
164 |
'ipproto', |
|
165 |
null, |
|
166 |
'IPv6', |
|
167 |
('ipv6' == $pconfig['protocol']), |
|
168 |
'ipv6' |
|
169 |
))->displayAsRadio(); |
|
170 |
$group->setHelp('Select the protocol to use'); |
|
171 |
$section->add($group); |
|
161 | 172 |
|
162 | 173 |
$section->addInput(new Form_Select( |
163 | 174 |
'sourceip', |
... | ... | |
187 | 198 |
<pre><?= $result ?></pre> |
188 | 199 |
</div> |
189 | 200 |
</div> |
190 |
</div> |
|
191 | 201 |
<?php |
192 | 202 |
} |
193 | 203 |
|
Also available in: Unified diff
Properly convert select > radios
refs #69