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

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

if (isset($selectedPriority)) {

	if (isset($confirm)) {
		echo <<<EOT
			<a href="{$options[baseURL]}?area=admin&action=predit">{$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="prdelete" />
			<input type="hidden" name="confirm" value="1" />
			<input type="hidden" name="selectedPriority" value="{$selectedPriority}" />
			{$verbage['adm_pri_ask_rep']} &quot;{$priorityName}&quot;?<br /><br />
			<select name="newPriority">
			<option value="-1">Select New Priority</option>
EOT;
			while (list($key, $value) = each ($bugDatabase->lists[priority])) {
				if ($value[id] != $selectedPriority) {
					$name = stripslashes($value[name]);
					echo <<<EOT
			<option value="{$value[id]}">{$name}</option>
EOT;
				}
			}
echo <<<EOT
			</select><br>
			<input type="button" value="{$verbage['adm_pri_delete']}" onClick="checkSubmit()" />
			</form>
			[<a href="{$options[baseURL]}?area=admin&action=predit">{$verbage['cancel']}</a>]

EOT;
		}
	}

?>
Return current item: BugIn and Ticketing System