You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/templates/create-alias-domain.php

50 lines
1.8 KiB
PHP

<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
<div id="edit_form">
<form name="alias_domain" method="post">
<table>
<tr>
<td colspan="3"><h3><?php print $PALANG['pCreate_alias_domain_welcome']; ?></h3></td>
</tr>
<tr>
<td><?php print $PALANG['pCreate_alias_domain_alias'] . ":"; ?></td>
<td>
<select class="flat" name="alias_domain">
<?php
foreach ($list_domains as $dom)
{
if (isset($list_aliases[$dom]) || in_array($dom,$list_aliases)) continue;
print "<option value=\"$dom\"".(($fAliasDomain == $dom) ? ' selected' : '').">$dom</option>\n";
}
?>
</select>
<td><?php print $PALANG['pCreate_alias_domain_alias_text']; ?></td>
</tr>
<tr>
<td><?php print $PALANG['pCreate_alias_domain_target'] . ":"; ?></td>
<td>
<select class="flat" name="target_domain">
<?php
foreach ($list_domains as $dom)
{
if (isset($list_aliases[$dom])) continue;
print "<option value=\"$dom\"".(($fTargetDomain == $dom) ? ' selected' : '').">$dom</option>\n";
}
?>
</select>
<td><?php print $PALANG['pCreate_alias_domain_target_text']; ?></td>
</tr>
<tr>
<td><?php print $PALANG['pCreate_alias_domain_active'] . ":"; ?></td>
<td><input class="flat" type="checkbox" name="active" value="1"<?php if ($fActive) { print ' checked'; } ?> /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3" class="standout"><?php if ($error) { print '<span class="error_msg">'; } print $tMessage; if ($error) { print '</span>'; } ?></td>
</tr>
<tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pCreate_alias_domain_button']; ?>" /></td>
</tr>
</table>
</form>
</div>