fix template for edit-admin

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@106 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 17 years ago
parent 01d61d011b
commit 4e58481b8b

@ -10,7 +10,7 @@
</tr>
<tr>
<td><?php print $PALANG['pAdminEdit_admin_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" /></td>
<td><input class="flat" type="password" name="fPassword" value="<?= $fPassword; ?>"/></td>
<td><?php print $pAdminEdit_admin_password_text; ?></td>
</tr>
<tr>
@ -32,16 +32,13 @@
<td colspan=3 align=center>
<select name="fDomains[]" size="10" multiple="multiple">
<?php
for ($i = 0; $i < sizeof ($list_domains); $i++)
{
if (in_array ($list_domains[$i], $tDomains))
{
print "<option value=\"" . $list_domains[$i] . "\" selected=\"selected\">" . $list_domains[$i] . "</option>\n";
}
else
{
print "<option value=\"" . $list_domains[$i] . "\">" . $list_domains[$i] . "</option>\n";
foreach($tAllDomains as $domain) {
// should escape $domain here to stop xss etc.
$selected = '';
if (in_array ($domain, $tDomains)) {
$selected = "selected='selected'";
}
print "<option value='$domain' $selected>$domain</option>\n";
}
?>
</select>

Loading…
Cancel
Save