Révision 2464e353
Ajouté par N0YB il y a presque 10 ans
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'];?>" /> |
Formats disponibles : Unified diff
XHTML Compliance - System Menu
Enforce select option