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

Loading…
Cancel
Save