Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/uadd.inc.php
<table border="0">
	<tr align="center">
		<td><img src="gfx/uedit.png" border="0"><br>[<?php echo "{$verbage['adm_usr_add'] }"; ?>]</td>
	</tr>
</table>
<?php
if (!isset($mod)) {
		if ($options['ldapEnable'] && !isset($_REQUEST['addNorm']) && !isset($_SESSION['uaddinfo'])) {
			echo <<<EOT
		<hr>
		<form method="{$options['formMethod']}" action="{$options['baseURL']}{$options[formSubmitTo]}">
		<input type="hidden" name="area" value="admin" />
		<input type="hidden" name="action" value="uaddldap" />
		<b>Add LDAP User</b> / <a href="{$options['baseURL']}?area=admin&action=uadd&addNorm=1">Add Normal User</a>
		<hr>

		Enter a full or partial e-mail address to search for:<br>
		<input type="text" name="email" value="{$adminUserInfo['email']}" /><br>
		<br>
		<input type="submit" value="{$verbage['adm_usr_add'] }">
		</form>

EOT;
		}
		else {
			if ($_SESSION['uaddinfo']['email']) {
				$inf = $_SESSION['uaddinfo'];
				$email = htmlentities($inf['email']);
				$uname = htmlentities($inf['username']);
				$phone = htmlentities($inf['phone']);
				$name = htmlentities($inf['name']);
			}
			unset($_SESSION['uaddinfo']);
			echo <<<EOT
		<hr>
		<form method="{$options['formMethod']}" action="{$options[baseURL]}{$options[formSubmitTo]}">
		<input type="hidden" name="area" value="admin" />
		<input type="hidden" name="action" value="uadd" />
		<b>{$verbage['adm_usr_add']}</b>
		<hr>
		{$verbage['name']}:<br>
		<input type="text" name="mod[name]" value="{$name}" size="64" /><br>
		{$verbage['username']}:<br>
		<input type="text" name="mod[username]" value="{$uname}" size="32" /><br>
		{$verbage['password']}:<br>
		<input type="password" name="mod[pass]" /><br>
		{$verbage['groups']}:<br>
		<select NAME="mod[user_group][]" MULTIPLE>

EOT;
			$dg = explode(",", $options['defaultGroups']);
			while (list($key, $value) = each($bugDatabase->lists['group'])) {
				if (in_array($value['gid'], $dg)) 
					$selected = " SELECTED";
				else
					$selected = "";
				echo <<<EOT
			<OPTION VALUE="{$value['gid']}"{$selected}>{$value['group_name']}</OPTION>

EOT;
			}

			echo <<<EOT
		</select><br>
		<br>

		<br>
		{$verbage['sup_email']}<br>
		<input type="text" name="mod[email]" value="{$email}" /><br>
		<br>
		{$verbage['sup_phone']}<br>
		<input type="text" name="mod[phone]" value="{$phone}" /><br>
		<br>
		{$verbage['adm_options']}<br>
			<nobr><input type="checkbox" name="mod[flags][frames]"{$userOptions['frames']} />{$verbage['adm_opt_frames']}</nobr><br>
			<nobr><input type="checkbox" name="mod[flags][notify]"{$userOptions['notify']} />{$verbage['adm_opt_notify']}</nobr><br>
			<nobr><input type="checkbox" name="mod[flags][popup]"{$userOptions['popup']} /> Popup windows</nobr><br>
			<nobr><input type="checkbox" name="mod[flags][refresh_list]"{$userOptions['refresh_list']} />{$verbage['adm_usr_refresh']}</nobr><br>
			<nobr><input type="checkbox" name="mod[flags][list_sort_reverse]"{$userOptions['list_sort_reverse']} />{$verbage['adm_usr_reverse']}</nobr><br>
			<nobr><input type="checkbox" name="mod[flags][short_notification_notify]"{$userOptions['short_notification_notify']} />{$verbage['adm_usr_short_notify']}</nobr><br>
			<nobr><input type="checkbox" name="mod[flags][no_paging]"{$userOptions['no_paging']} />{$verbage['adm_usr_no_paging']}</nobr><br>
		<br>
		<input type="submit" value="{$verbage['adm_usr_add']}">
		</form>
EOT;
		}
	}
	else {
		echo <<<EOT
		<br />[<a href="$options[baseURL]?area=admin&action=uedit">{$verbage['continue']}</a>]<br />

EOT;
	}
?>
Return current item: BugIn and Ticketing System