Révision 2464e353
Ajouté par N0YB il y a presque 10 ans
usr/local/www/system_advanced_admin.php | ||
---|---|---|
355 | 355 |
<td width="78%" class="vtable"> |
356 | 356 |
<select name="ssl-certref" id="ssl-certref" class="formselect"> |
357 | 357 |
<?php |
358 |
$rowIndex = 0; |
|
358 | 359 |
foreach($a_cert as $cert): |
359 | 360 |
$selected = ""; |
360 | 361 |
if ($pconfig['ssl-certref'] == $cert['refid']) |
361 | 362 |
$selected = "selected=\"selected\""; |
363 |
$rowIndex++; |
|
362 | 364 |
?> |
363 | 365 |
<option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'];?></option> |
364 |
<?php endforeach; ?> |
|
366 |
<?php endforeach; |
|
367 |
if ($rowIndex == 0) |
|
368 |
echo "<option></option>"; |
|
369 |
?> |
|
365 | 370 |
</select> |
366 | 371 |
</td> |
367 | 372 |
</tr> |
usr/local/www/system_advanced_firewall.php | ||
---|---|---|
537 | 537 |
<select name="tftpinterface[]" multiple="multiple" class="formselect" size="3"> |
538 | 538 |
<?php |
539 | 539 |
$ifdescs = get_configured_interface_with_descr(); |
540 |
$rowIndex = 0; |
|
540 | 541 |
foreach ($ifdescs as $ifent => $ifdesc): |
542 |
$rowIndex++; |
|
541 | 543 |
?> |
542 | 544 |
<option value="<?=$ifent;?>" <?php if (in_array($ifent, $pconfig['tftpinterface'])) echo "selected=\"selected\""; ?>><?=gettext($ifdesc);?></option> |
543 |
<?php endforeach; ?> |
|
545 |
<?php endforeach; |
|
546 |
if ($rowIndex == 0) |
|
547 |
echo "<option></option>"; |
|
548 |
?> |
|
544 | 549 |
</select> |
545 | 550 |
<strong><?=gettext("Choose the interfaces where you want TFTP proxy helper to be enabled.");?></strong> |
546 | 551 |
</td> |
usr/local/www/system_crlmanager.php | ||
---|---|---|
304 | 304 |
<td width="78%" class="vtable"> |
305 | 305 |
<select name='method' id='method' class="formselect" onchange='method_change()'> |
306 | 306 |
<?php |
307 |
$rowIndex = 0; |
|
307 | 308 |
foreach($crl_methods as $method => $desc): |
308 | 309 |
if (($_GET['importonly'] == "yes") && ($method != "existing")) |
309 | 310 |
continue; |
310 | 311 |
$selected = ""; |
311 | 312 |
if ($pconfig['method'] == $method) |
312 | 313 |
$selected = "selected=\"selected\""; |
314 |
$rowIndex++; |
|
313 | 315 |
?> |
314 | 316 |
<option value="<?=$method;?>" <?=$selected;?>><?=$desc;?></option> |
315 |
<?php endforeach; ?> |
|
317 |
<?php endforeach; |
|
318 |
if ($rowIndex == 0) |
|
319 |
echo "<option></option>"; |
|
320 |
?> |
|
316 | 321 |
</select> |
317 | 322 |
</td> |
318 | 323 |
</tr> |
... | ... | |
328 | 333 |
<td width="78%" class="vtable"> |
329 | 334 |
<select name='caref' id='caref' class="formselect"> |
330 | 335 |
<?php |
336 |
$rowIndex = 0; |
|
331 | 337 |
foreach($a_ca as $ca): |
332 | 338 |
$selected = ""; |
333 | 339 |
if ($pconfig['caref'] == $ca['refid']) |
334 | 340 |
$selected = "selected=\"selected\""; |
341 |
$rowIndex++; |
|
335 | 342 |
?> |
336 | 343 |
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option> |
337 |
<?php endforeach; ?> |
|
344 |
<?php endforeach; |
|
345 |
if ($rowIndex == 0) |
|
346 |
echo "<option></option>"; |
|
347 |
?> |
|
338 | 348 |
</select> |
339 | 349 |
</td> |
340 | 350 |
</tr> |
... | ... | |
493 | 503 |
<tr> |
494 | 504 |
<td class="listlr" colspan="3" align="center"> |
495 | 505 |
<b><?php echo gettext("Choose a Certificate to Revoke"); ?></b>: <select name='certref' id='certref' class="formselect"> |
496 |
<?php foreach($ca_certs as $cert): ?> |
|
506 |
<?php $rowIndex = 0; |
|
507 |
foreach($ca_certs as $cert): |
|
508 |
$rowIndex++; ?> |
|
497 | 509 |
<option value="<?=$cert['refid'];?>"><?=htmlspecialchars($cert['descr'])?></option> |
498 |
<?php endforeach; ?> |
|
510 |
<?php endforeach; |
|
511 |
if ($rowIndex == 0) |
|
512 |
echo "<option></option>"; ?> |
|
499 | 513 |
</select> |
500 | 514 |
<b><?php echo gettext("Reason");?></b>: |
501 | 515 |
<select name='crlreason' id='crlreason' class="formselect"> |
502 |
<?php foreach($openssl_crl_status as $code => $reason): ?> |
|
516 |
<?php $rowIndex = 0; |
|
517 |
foreach($openssl_crl_status as $code => $reason): |
|
518 |
$rowIndex++; ?> |
|
503 | 519 |
<option value="<?= $code ?>"><?= htmlspecialchars($reason) ?></option> |
504 |
<?php endforeach; ?> |
|
520 |
<?php endforeach; |
|
521 |
if ($rowIndex == 0) |
|
522 |
echo "<option></option>"; ?> |
|
505 | 523 |
</select> |
506 | 524 |
<input name="act" type="hidden" value="addcert" /> |
507 | 525 |
<input name="crlref" type="hidden" value="<?=$crl['refid'];?>" /> |
usr/local/www/system_usermanager.php | ||
---|---|---|
728 | 728 |
<td width="78%" class="vtable"> |
729 | 729 |
<select name='caref' id='caref' class="formselect" onchange='internalca_change()'> |
730 | 730 |
<?php |
731 |
$rowIndex = 0; |
|
731 | 732 |
foreach( $config['ca'] as $ca): |
732 | 733 |
if (!$ca['prv']) |
733 | 734 |
continue; |
735 |
$rowIndex++; |
|
734 | 736 |
?> |
735 | 737 |
<option value="<?=$ca['refid'];?>"><?=$ca['descr'];?></option> |
736 |
<?php endforeach; ?> |
|
738 |
<?php endforeach; |
|
739 |
if ($rowIndex == 0) |
|
740 |
echo "<option></option>"; |
|
741 |
?> |
|
737 | 742 |
</select> |
738 | 743 |
</td> |
739 | 744 |
</tr> |
... | ... | |
743 | 748 |
<select name='keylen' class="formselect"> |
744 | 749 |
<?php |
745 | 750 |
$cert_keylens = array( "2048", "512", "1024", "4096"); |
751 |
$rowIndex = 0; |
|
746 | 752 |
foreach( $cert_keylens as $len): |
753 |
$rowIndex++; |
|
747 | 754 |
?> |
748 | 755 |
<option value="<?=$len;?>"><?=$len;?></option> |
749 |
<?php endforeach; ?> |
|
756 |
<?php endforeach; |
|
757 |
if ($rowIndex == 0) |
|
758 |
echo "<option></option>"; |
|
759 |
?> |
|
750 | 760 |
</select> |
751 | 761 |
bits |
752 | 762 |
</td> |
Formats disponibles : Unified diff
XHTML Compliance - System Menu
Enforce select option