Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/predit.inc.php
<?php
	echo <<<EOT
<table border="0">
	<tr align="center">
		<td><img src="gfx/predit.png" border="0"><br>[{$verbage['adm_priority_editor']}]</td>
	</tr>
</table>
<hr>
EOT;
if (isset($selectedPriority)) {
	if (!$mod) {
		echo <<<EOT
		<form method="{$options[formMethod]}" action="{$options[baseURL]}{$options[formSubmitTo]}">
		<input type="hidden" name="area" value="admin" />
		<input type="hidden" name="action" value="predit" />
		{$formFields}
		<input type="hidden" name="adminWriteChanges" value="1" />
		<b>{$verbage['priority']}: {$bugDatabase->lists['priority'][$selectedPriority]['name']}</b>
		<hr>
		{$verbage['adm_pri_name']}<br />
		<input type="text" name="mod[name]" value="{$priorityName}" /><br />
		<br>
		{$verbage['adm_pri_col']}<br />
		#<input type="text" name="mod[color]" value="{$priorityColor}" size="6" /><br />
		<input type="submit" value="{$verbage['adm_pri_update']}">
		</form>
EOT;
	}
	else {
		echo <<<EOT
		[<a href="{$options[baseURL]}?area=admin&action=predit">{$verbage['continue']}</a>]

EOT;
	}
}
else {
		echo <<<EOT
	{$verbage['adm_pri_edit']}
	<table border="1">
		<tr>
			<th>ID</th>
			<th>{$verbage['priority']}</th>
			<th>{$verbage['color']}</th>
			<th>{$verbage['delete']}</th>
		</tr>
EOT;

		while (list($key, $value) = each($bugDatabase->lists[priority])) {
			$color = htmlentities($value[color]);
			$name = htmlentities($value[name]);
			echo <<<EOT
		<tr>
			<td>
				<a href="{$options[baseURL]}?area=admin&action=predit&selectedPriority={$value[id]}">{$key}</a>
			</td>
			<td>
				<a href="{$options[baseURL]}?area=admin&action=predit&selectedPriority={$value[id]}">{$name}</a>
			</td>
			<td bgcolor="#{$color}">
				#{$color}
			</td>
			<td>
				<a href="{$options[baseURL]}?area=admin&action=prdelete&selectedPriority={$value[id]}">[{$verbage['delete']}]</a>
			</td>
		</tr>

EOT;

		}
		echo <<<EOT
	</table><br />
	[<a href="{$options[baseURL]}?area=admin&action=pradd">{$verbage['adm_pri_add']}</a>]<br>
EOT;
	}
?>
Return current item: BugIn and Ticketing System