summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_crlmanager.php
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-06-16 15:14:16 -0700
committerN0YB <Al_Stu@Frontier.com>2014-06-16 15:14:16 -0700
commit2464e353414a60a867cba82837e34d4e37e0b075 (patch)
tree67acce6209c79b79a800cc71e2375ff3cad1e68b /usr/local/www/system_crlmanager.php
parentb4e9a4da0f438888abfd7f050964776d5bdf463e (diff)
downloadpfsense-2464e353414a60a867cba82837e34d4e37e0b075.zip
pfsense-2464e353414a60a867cba82837e34d4e37e0b075.tar.gz
XHTML Compliance - System Menu
Enforce select option
Diffstat (limited to 'usr/local/www/system_crlmanager.php')
-rw-r--r--usr/local/www/system_crlmanager.php30
1 files changed, 24 insertions, 6 deletions
diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php
index 099a6e1..08a9c31 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; ?>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>";
+ ?>
</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; ?>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>";
+ ?>
</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