opensmtpdadmin/templates/add-alias.tpl

37 lines
1.2 KiB
Smarty

<?php if (count($list_domains) > 0) { ?>
<div id="edit_form">
<form name="create_alias" method="post">
<table>
<tr>
<td colspan="3"><h3><?php echo $LANG['Add_alias_welcome']; ?></h3></td>
</tr>
<tr>
<td><?php echo $LANG['Add_alias_address']; ?></td>
<td><input class="flat" type="text" name="address" value="<?php echo $address ?? ''; ?>" /></td>
<td>
<select name="domain">
<?php
foreach ($list_domains as $row) {
echo '<option value="' . $row['domain'] . '"';
if ($list_domains[$domain_key]['domain'] == $row['domain']) echo ' selected';
echo ">" . $row['domain'] . "</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td><?php echo $LANG['Add_alias_goto'] . ":"; ?></td>
<td><input class="flat" type="text" name="goto" value="<?php echo $goto ?? ''; ?>" /></td>
<td><?php echo $LANG['Add_alias_goto_text']; ?></td>
</tr>
<tr>
<td colspan="3" class="help_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['Add_alias_button']; ?>" /></td>
</tr>
<tr>
<td colspan="3" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>
</tr>
</table>
</div>
<?php } ?>