Révision 226a09d4
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/load_balancer_pool_edit.php | ||
---|---|---|
287 | 287 |
<tr> |
288 | 288 |
<td align="center"> |
289 | 289 |
<b><?=gettext("Pool Disabled"); ?></b> |
290 |
<br/> |
|
291 |
<select id="serversDisabledSelect" name="serversdisabled[]" multiple="multiple" size="5"> |
|
290 | 292 |
<?php |
291 | 293 |
if (is_array($pconfig['serversdisabled'])) { |
292 |
echo "<select id=\"serversDisabledSelect\" name=\"serversdisabled[]\" multiple=\"multiple\" size=\"5\">"; |
|
293 | 294 |
foreach($pconfig['serversdisabled'] as $svrent) { |
294 | 295 |
if($svrent != '') echo " <option value=\"{$svrent}\">{$svrent}</option>\n"; |
295 | 296 |
} |
296 |
echo "</select>"; |
|
297 | 297 |
} |
298 | 298 |
?> |
299 |
</select> |
|
299 | 300 |
<input class="formbtn" type="button" name="removeDisabled" value="<?=gettext("Remove"); ?>" onclick="RemoveServerFromPool(document.iform, 'serversdisabled[]');" /> |
300 | 301 |
</td> |
301 | 302 |
|
... | ... | |
306 | 307 |
|
307 | 308 |
<td align="center"> |
308 | 309 |
<b><?=gettext("Enabled (default)"); ?></b> |
310 |
<br/> |
|
311 |
<select id="serversSelect" name="servers[]" multiple="multiple" size="5"> |
|
309 | 312 |
<?php |
310 | 313 |
if (is_array($pconfig['servers'])) { |
311 |
echo "<select id=\"serversSelect\" name=\"servers[]\" multiple=\"multiple\" size=\"5\">"; |
|
312 | 314 |
foreach($pconfig['servers'] as $svrent) { |
313 | 315 |
echo " <option value=\"{$svrent}\">{$svrent}</option>\n"; |
314 | 316 |
} |
315 |
echo "</select>"; |
|
316 | 317 |
} |
317 | 318 |
?> |
319 |
</select> |
|
318 | 320 |
<input class="formbtn" type="button" name="removeEnabled" value="<?=gettext("Remove"); ?>" onclick="RemoveServerFromPool(document.iform, 'servers[]');" /> |
319 | 321 |
</td> |
320 | 322 |
</tr> |
Formats disponibles : Unified diff
Tidy up "load_balancer_pool_edit.php" XHTML
Backout changes to the the SELECT tag from pull request 1104, further testing shows that it doesn't populate the disabled/enabled server list 100% correctly.