54 lines
1.8 KiB
Smarty
54 lines
1.8 KiB
Smarty
<div id="edit_form">
|
|
<form name="create_admin" method="post">
|
|
<table>
|
|
<tr>
|
|
<?php if ($action == 'edit') { ?>
|
|
<td colspan="2"><h3><?php echo $LANG['AdminEdit_admin_welcome']; ?></h3></td>
|
|
<?php } else { ?>
|
|
<td colspan="2"><h3><?php echo $LANG['AdminAdd_admin_welcome']; ?></h3></td>
|
|
<?php } ?>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo $LANG['AdminAdd_admin_username'] . ":"; ?></td>
|
|
<?php if ($action == 'edit') { ?>
|
|
<td><input class="flat" type="hidden" name="username" value="<?php echo $username; ?>" /><?php echo $username; ?></td>
|
|
<?php } else { ?>
|
|
<td><input class="flat" type="text" name="username" value="<?php echo $username ?? ''; ?>" /></td>
|
|
<?php } ?>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo $LANG['AdminAdd_admin_password1'] . ":"; ?></td>
|
|
<td><input class="flat" type="password" name="password1" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo $LANG['AdminAdd_admin_password2'] . ":"; ?></td>
|
|
<td><input class="flat" type="password" name="password2" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo $LANG['AdminAdd_admin_address'] . ":"; ?></td>
|
|
<td>
|
|
<select name="domains[]" size="10" multiple="multiple">
|
|
<?php
|
|
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>";
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<?php if ($action == 'edit') { ?>
|
|
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminEdit_admin_button']; ?>" /></td>
|
|
<?php } else { ?>
|
|
<td colspan="2" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php echo $LANG['AdminAdd_admin_button']; ?>" /></td>
|
|
<?php } ?>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="standout"><?php echo $message ?? ' '; ?></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|