-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreateuser.inc.php
32 lines (25 loc) · 1.68 KB
/
createuser.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
require "includes/form-messages.inc.php";
if (!showResults($result)) {
?>
<form class="createuserform" name="createuserform" action="<?php echo $tplHelper->makeCreateUserAction(); ?>" method="post">
<input type="hidden" name="createuserform[xsrfid]" value="<?php echo $tplHelper->generateXsrfCookie('createuserform'); ?>">
<fieldset>
<dl>
<dt><label for="createuserform[username]"><?php echo _('Username'); ?></label></dt>
<dd><input type="text" name="createuserform[username]" value="<?php echo htmlspecialchars($createuserform['username']); ?>"></dd>
<dt><label for="createuserform[firstname]"><?php echo _('Firstname'); ?></label></dt>
<dd><input type="text" name="createuserform[firstname]" value="<?php echo htmlspecialchars($createuserform['firstname']); ?>"></dd>
<dt><label for="createuserform[lastname]"><?php echo _('Lastname'); ?></label></dt>
<dd><input type="text" name="createuserform[lastname]" value="<?php echo htmlspecialchars($createuserform['lastname']); ?>"></dd>
<dt><label for="createuserform[mail]"><?php echo _('E-mailaddress'); ?></label></dt>
<dd><input type="text" name="createuserform[mail]" value="<?php echo htmlspecialchars($createuserform['mail']); ?>"></dd>
<?php if ($tplHelper->allowed(SpotSecurity::spotsec_send_notifications_services, 'email') && !$this->_settings->get('sendwelcomemail')) { ?>
<dt><label for="createuserform[sendmail]"><?php echo _('Send e-mail to new user?'); ?></label></dt>
<dd><input type="checkbox" name="createuserform[sendmail]"></dd>
<?php } ?>
<dd><input class="greyButton" type="submit" name="createuserform[submitcreate]" value="<?php echo _('Add'); ?>"></dd>
</dl>
</fieldset>
</form>
<?php }