Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/sdelete.inc.php
<?php
    echo <<<EOT
<table border="0">
	<tr align="center">
		<td><img src="gfx/sedit.png" border="0"><br>[{$verbage['adm_stat_delete']}]</td>
	</tr>
</table>
<hr>

<script language="JavaScript">
<!--
function checkSubmit() {
	if (document.list['newStatus'].options[document.list['newStatus'].selectedIndex].value == -1) {
		alert("You must enter a new Status");
	}
	else {
		document.list.submit();
	}
}
-->
</script>
EOT;
if (isset($selectedStatus)) {

	if (isset($_REQUEST['confirm'])) {
		echo <<<EOT
			<a href="{$options['baseURL']}?area=admin&action=sedit">{$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="sdelete" />
			<input type="hidden" name="confirm" value="1" />
			<input type="hidden" name="selectedStatus" value="{$selectedStatus}" />
			{$verbage['adm_stat_ask_rep']} {$statusName}?<br>
			<select name="newStatus">
			<option value="-1">{$verbage['adm_stat_ask_new']}</option>
EOT;
			while (list($key, $value) = each ($bugDatabase->lists['status'])) {
				if ($value[id] != $selectedStatus) {
					$name = stripslashes($value['name']);
					echo <<<EOT
			<option value="{$value['id']}">{$name}</option>
EOT;
				}
			}
echo <<<EOT
			</select><br>
			<input type="button" value="{$verbage['adm_stat_delete']}" onClick="checkSubmit()" />
			</form>
			[<a href="{$options['baseURL']}?area=admin&action=sedit">{$verbage['cancel']}</a>]

EOT;
		}
	}

?>
Return current item: BugIn and Ticketing System