Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/udelete.inc.php
<?php
echo <<<EOT
<table border="0">
	<tr align="center">
		<td><img src="gfx/uedit.png" border="0"><br />[{$verbage['adm_usr_delete']}]</td>
	</tr>
</table>
<hr>
<script language="JavaScript">
<!--
function checkSubmit() {
	if (document.list['newUser'].options[document.list['newUser'].selectedIndex].value == -1) {
		alert("You must enter a new User");
	}
	else {
		document.list.submit();
	}
}
-->
</script>
EOT;

	if (isset($selectedUser)) {

		if (isset($_REQUEST['confirm'])) {
			echo <<<EOT
			<br /><a href="{$options['baseURL']}?area=admin&action=uedit">{$verbage['continue']}</a>

EOT;
		}
		else {
		echo <<<EOT
			<form action="{$options['baseURL']}{$options['formSubmitTo']}" method="{$options['formMethod']}" name="list">
			<input type="hidden" name="area" value="admin" />
			<input type="hidden" name="action" value="udelete" />
			<input type="hidden" name="confirm" value="1" />
			<input type="hidden" name="selectedUser" value="{$selectedUser}" />
			{$verbage['adm_usr_ask_rep']} {$userName}:<br>
			<select name="newUser">
			<option value="-1">Select New User</option>
EOT;
			reset($bugDatabase->lists['user']);
			while (list($key, $value) = each ($bugDatabase->lists['user'])) {
				if ($value['uid'] != $selectedUser) {
					$name = stripslashes($value['name']);
					echo <<<EOT
			<option value="{$value[uid]}">{$name}</option>
EOT;
				}
			}
echo <<<EOT
			</select><br />
			<input type="button" value="{$verbage['adm_usr_delete']}" onClick="checkSubmit()" />
			</form>
			[<a href="{$options['baseURL']}?area=admin&action=uedit">{$verbage[cancel]}</a>]

EOT;

		}
	}

?>
Return current item: BugIn and Ticketing System