Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/uaddldap.inc.php
<?php
if (!isset($get) && !$error) {
	echo <<<EOT
	<table border="2">
		<tr>
			<td><b>Name</b></td>
			<td><b>Email</b></td>
			<td>&nbsp;</td>
		</tr>
EOT;
	while (list($key, $value) = @each($info)) {
			if (is_int($key)) {
				$info["username"] = $value["uid"][0];
				$info["email"] = $value["mail"][0];
				if ($value["givenname"][0] || $value["sn"][0])
					$info["name"] = $value["givenname"][0]." ".$value["sn"][0];
				$url = "{$options['baseURL']}{$options['formSubmitTo']}?area=admin&action=uaddldap&get=".urlencode($info['email']);
			echo <<<EOT
			<tr>
				<td>$key: {$info['name']}</td>
				<td>{$info['email']}</td>
				<td><a href="{$url}">Select</a></td>
			</tr>
	
EOT;
		}
	}
}
elseif ($error) {
	echo $message;
}
?>
Return current item: BugIn and Ticketing System