summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_crlmanager.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-18 10:29:42 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-18 10:29:42 -0300
commit34bb3ffc28b3888a20fa8ee1009c6859d41219b6 (patch)
tree64a3567453f0210b1aa115df8252d8817090aef0 /usr/local/www/system_crlmanager.php
parentbee27ca1e762009c3241438c8df0795a9952a95a (diff)
parent1657cfd2d421087ccd5a229fdfe38175d315a6c0 (diff)
downloadpfsense-34bb3ffc28b3888a20fa8ee1009c6859d41219b6.zip
pfsense-34bb3ffc28b3888a20fa8ee1009c6859d41219b6.tar.gz
Merge pull request #1237 from N0YB/XHTML_Compliance_System_Menu
Diffstat (limited to 'usr/local/www/system_crlmanager.php')
-rw-r--r--usr/local/www/system_crlmanager.php34
1 files changed, 26 insertions, 8 deletions
diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php
index 41c623d..35794f6 100644
--- a/usr/local/www/system_crlmanager.php
+++ b/usr/local/www/system_crlmanager.php
@@ -304,15 +304,20 @@ function method_change() {
<td width="78%" class="vtable">
<select name='method' id='method' class="formselect" onchange='method_change()'>
<?php
+ $rowIndex = 0;
foreach($crl_methods as $method => $desc):
if (($_GET['importonly'] == "yes") && ($method != "existing"))
continue;
$selected = "";
if ($pconfig['method'] == $method)
$selected = "selected=\"selected\"";
+ $rowIndex++;
+ ?>
+ <option value="<?=$method;?>" <?=$selected;?>><?=$desc;?></option>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>";
?>
- <option value="<?=$method;?>"<?=$selected;?>><?=$desc;?></option>
- <?php endforeach; ?>
</select>
</td>
</tr>
@@ -328,13 +333,18 @@ function method_change() {
<td width="78%" class="vtable">
<select name='caref' id='caref' class="formselect">
<?php
+ $rowIndex = 0;
foreach($a_ca as $ca):
$selected = "";
if ($pconfig['caref'] == $ca['refid'])
$selected = "selected=\"selected\"";
+ $rowIndex++;
+ ?>
+ <option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>";
?>
- <option value="<?=$ca['refid'];?>"<?=$selected;?>><?=$ca['descr'];?></option>
- <?php endforeach; ?>
</select>
</td>
</tr>
@@ -493,15 +503,23 @@ function method_change() {
<tr>
<td class="listlr" colspan="3" align="center">
<b><?php echo gettext("Choose a Certificate to Revoke"); ?></b>: <select name='certref' id='certref' class="formselect">
- <?php foreach($ca_certs as $cert): ?>
+ <?php $rowIndex = 0;
+ foreach($ca_certs as $cert):
+ $rowIndex++; ?>
<option value="<?=$cert['refid'];?>"><?=htmlspecialchars($cert['descr'])?></option>
- <?php endforeach; ?>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>"; ?>
</select>
<b><?php echo gettext("Reason");?></b>:
<select name='crlreason' id='crlreason' class="formselect">
- <?php foreach($openssl_crl_status as $code => $reason): ?>
+ <?php $rowIndex = 0;
+ foreach($openssl_crl_status as $code => $reason):
+ $rowIndex++; ?>
<option value="<?= $code ?>"><?= htmlspecialchars($reason) ?></option>
- <?php endforeach; ?>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>"; ?>
</select>
<input name="act" type="hidden" value="addcert" />
<input name="crlref" type="hidden" value="<?=$crl['refid'];?>" />
OpenPOWER on IntegriCloud