opensmtpdadmin/templates/add-mailbox.tpl

48 lines
1.6 KiB
Smarty
Raw Normal View History

2022-09-06 13:56:05 +02:00
<?php if (count($list_domains) > 0) { ?>
2022-09-02 23:08:29 +02:00
<div id="edit_form">
<form name="create_mailbox" method="post">
<table>
<tr>
2022-09-04 16:31:50 +02:00
<td colspan="3"><h3><?php echo $LANG['Add_mailbox_welcome']; ?></h3></td>
2022-09-02 23:08:29 +02:00
</tr>
<tr>
2022-09-04 16:31:50 +02:00
<td><?php echo $LANG['Add_mailbox_username'] . ":"; ?></td>
2022-09-04 11:38:47 +02:00
<td><input class="flat" type="text" name="username" value="<?php echo $username ?? ''; ?>" /></td>
2022-09-02 23:08:29 +02:00
<td>
<select name="domain">
<?php
foreach ($list_domains as $row) {
echo '<option value="' . $row['domain'] . '"';
2022-09-04 13:10:23 +02:00
if ($list_domains[$domain_key]['domain'] == $row['domain']) echo ' selected';
2022-09-05 20:29:41 +02:00
echo ">" . $row['domain'] . "</option>";
2022-09-02 23:08:29 +02:00
}
?>
</select>
</td>
</tr>
<tr>
2022-09-04 16:31:50 +02:00
<td><?php echo $LANG['Add_mailbox_password'] . ":"; ?></td>
2022-09-02 23:08:29 +02:00
<td><input class="flat" type="password" name="password1" /></td>
2022-09-04 16:31:50 +02:00
<td><?php echo $LANG['Add_mailbox_password_text']; ?></td>
2022-09-02 23:08:29 +02:00
</tr>
<tr>
2022-09-04 16:31:50 +02:00
<td><?php echo $LANG['Add_mailbox_password2'] . ":"; ?></td>
2022-09-02 23:08:29 +02:00
<td><input class="flat" type="password" name="password2" /></td>
<td>&nbsp;</td>
</tr>
<tr>
2022-09-04 16:31:50 +02:00
<td><?php echo $LANG['Add_mailbox_name'] . ":"; ?></td>
2022-09-04 11:38:47 +02:00
<td><input class="flat" type="text" name="name" value="<?php echo $name ?? ''; ?>" /></td>
2022-09-04 16:31:50 +02:00
<td><?php echo $LANG['Add_mailbox_name_text']; ?></td>
2022-09-02 23:08:29 +02:00
</tr>
<tr>
2022-09-04 16:31:50 +02:00
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['Add_mailbox_button']; ?>" /></td>
2022-09-02 23:08:29 +02:00
</tr>
<tr>
2022-09-04 11:38:47 +02:00
<td colspan="3" class="standout"><?php echo $message ?? '&nbsp'; ?></td>
2022-09-02 23:08:29 +02:00
</tr>
</table>
</form>
</div>
2022-09-06 13:56:05 +02:00
<?php } ?>