opensmtpdadmin/templates/admin_create-admin.tpl

42 lines
1.3 KiB
Smarty
Raw Normal View History

2022-08-18 14:01:52 +02:00
<div id="edit_form">
<form name="create_admin" method="post">
<table>
<tr>
2022-09-02 23:06:08 +02:00
<td colspan="2"><h3><?php echo $PALANG['pAdminCreate_admin_welcome']; ?></h3></td>
2022-08-18 14:01:52 +02:00
</tr>
<tr>
2022-09-02 23:06:08 +02:00
<td><?php echo $PALANG['pAdminCreate_admin_username'] . ":"; ?></td>
<td><input class="flat" type="text" name="username" value="<?php echo $username ?? ''; ?>" /></td>
2022-08-18 14:01:52 +02:00
</tr>
<tr>
2022-09-02 23:06:08 +02:00
<td><?php echo $PALANG['pAdminCreate_admin_password1'] . ":"; ?></td>
<td><input class="flat" type="password" name="password1" /></td>
2022-08-18 14:01:52 +02:00
</tr>
<tr>
2022-09-02 23:06:08 +02:00
<td><?php echo $PALANG['pAdminCreate_admin_password2'] . ":"; ?></td>
<td><input class="flat" type="password" name="password2" /></td>
2022-08-18 14:01:52 +02:00
</tr>
<tr>
2022-09-02 23:06:08 +02:00
<td><?php echo $PALANG['pAdminCreate_admin_address'] . ":"; ?></td>
2022-08-18 14:01:52 +02:00
<td>
2022-09-02 23:06:08 +02:00
<select name="domains[]" size="10" multiple="multiple">
2022-08-18 14:01:52 +02:00
<?php
2022-09-02 23:06:08 +02:00
foreach ($list_domains as $row) {
echo '<option value="' . $row['domain'] . '"';
if (isset($domains['domains']) && in_array($row['domain'], $domains['domains'])) echo ' selected';
echo ">" . $row['domain'] . "</option>\n";
2022-08-18 14:01:52 +02:00
}
?>
</select>
</td>
</tr>
<tr>
2022-09-02 23:06:08 +02:00
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $PALANG['pAdminCreate_admin_button']; ?>" /></td>
2022-08-18 14:01:52 +02:00
</tr>
<tr>
2022-09-02 23:06:08 +02:00
<td colspan="2" class="standout"><?php echo $message ?? '&nbsp;'; ?></td>
2022-08-18 14:01:52 +02:00
</tr>
</table>
</form>
</div>