opensmtpdadmin/templates/create-mailbox.tpl

66 lines
2.1 KiB
Smarty
Raw Normal View History

2022-08-18 14:01:52 +02:00
<div id="edit_form">
<form name="create_mailbox" method="post">
<table>
<tr>
2022-09-03 11:30:40 +02:00
<td colspan="3"><h3><?php print $LANG['Create_mailbox_welcome']; ?></h3></td>
2022-08-18 14:01:52 +02:00
</tr>
<tr>
2022-09-03 11:30:40 +02:00
<td><?php print $LANG['Create_mailbox_username'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td><input class="flat" type="text" name="fUsername" value="<?php print $tUsername; ?>" /></td>
<td>
<select name="fDomain">
<?php
for ($i = 0; $i < count($list_domains); $i++) {
if ($tDomain == $list_domains[$i]) {
print "<option value=\"$list_domains[$i]\" selected>$list_domains[$i]</option>\n";
} else {
print "<option value=\"$list_domains[$i]\">$list_domains[$i]</option>\n";
}
}
?>
</select>
<?php print $pCreate_mailbox_username_text; ?>
</td>
</tr>
<tr>
2022-09-03 11:30:40 +02:00
<td><?php print $LANG['Create_mailbox_password'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td><input class="flat" type="password" name="fPassword" /></td>
<td><?php print $pCreate_mailbox_password_text; ?></td>
</tr>
<tr>
2022-09-03 11:30:40 +02:00
<td><?php print $LANG['Create_mailbox_password2'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td><input class="flat" type="password" name="fPassword2" /></td>
<td>&nbsp;</td>
</tr>
<tr>
2022-09-03 11:30:40 +02:00
<td><?php print $LANG['Create_mailbox_name'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td><input class="flat" type="text" name="fName" value="<?php print $tName; ?>" /></td>
<td><?php print $pCreate_mailbox_name_text; ?></td>
</tr>
<?php if ($CONF['quota'] == 'YES') { ?>
<tr>
2022-09-03 11:30:40 +02:00
<td><?php print $LANG['Create_mailbox_quota'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td><input type="text" name="fQuota" value="<?php print $tQuota; ?>" /></td>
<td><?php print $pCreate_mailbox_quota_text; ?></td>
<tr>
<?php } ?>
<tr>
2022-09-03 11:30:40 +02:00
<td><?php print $LANG['Create_mailbox_active'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td><input class="flat" type="checkbox" name="fActive" checked /></td>
<td>&nbsp;</td>
</tr>
<tr>
2022-09-03 11:30:40 +02:00
<td><?php print $LANG['Create_mailbox_mail'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td><input class="flat" type="checkbox" name="fMail" checked /></td>
<td>&nbsp;</td>
</tr>
<tr>
2022-09-03 11:30:40 +02:00
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $LANG['Create_mailbox_button']; ?>" /></td>
2022-08-18 14:01:52 +02:00
</tr>
<tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td>
</tr>
</table>
</form>
</div>