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

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

	if (isset($selectedProject)) {

		if (isset($confirm)) {
			echo <<<EOT
			<a href="{$options[baseURL]}?area=admin&action=pedit">{$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="pdelete" />
			<input type="hidden" name="confirm" value="1" />
			<input type="hidden" name="selectedProject" value="{$selectedProject}" />
			{$verbage['adm_pro_ask_rep']} {$bugDatabase->lists[project][$selectedProject][name]}?<br>
			<select name="newProject">
			<option value="-1">{$verbage['adm_pro_ask_new']}</option>
EOT;
			while (list($key, $value) = each ($bugDatabase->lists[project])) {
				if ($value[id] != $selectedProject) {
					$name = stripslashes($value[name]);
					echo <<<EOT
			<option value="{$value[id]}">{$name}</option>
EOT;
				}
			}
		echo <<<EOT
			</select><br>
			<input type="button" value="{$verbage['adm_pro_delete']}" onClick="checkSubmit()" />
			</form>


[<a href="{$options['baseURL']}?area=admin&action=pedit">{$verbage['cancel']}</a>]

EOT;
		}
	}

?>
Return current item: BugIn and Ticketing System