Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/cedit.inc.php
<?php
	echo <<<EOT
<table border="0">
	<tr align="center">
		<td><img src="gfx/cedit.png" border="0"><br>[{$verbage['adm_cat_editor']}]</td>
	</tr>
</table>
<hr>
EOT;
if (isset($selectedCategory)) {
	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="cedit" />
		{$formFields}
		<input type="hidden" name="adminWriteChanges" value="1" />
		<b>{$verbage['category']}: {$bugDatabase->lists[category][$selectedCategory][name]}</b>
		<hr>
		{$verbage['category']} {$verbage['name']}: <br />
		<input type="text" name="mod[name]" value="{$categoryName}" /><br />
		<br>
		<input type="submit" value="{$verbage['adm_cat_update']}">
		</form>
EOT;
	}
	else {
		echo <<<EOT
		[<a href="{$options[baseURL]}?area=admin&action=cedit">Continue</a>]

EOT;
	}
}
else {
		echo <<<EOT
	{$verbage['adm_cat_edit']}
	<table border=1>
		<tr>
			<th>ID</th>
			<th>{$verbage['category']}</th>
			<th>{$verbage['delete']}</th>
		</tr>
EOT;

		while (list($key, $value) = each($bugDatabase->lists[category])) {
			$name = htmlentities($value['name']);
			echo <<<EOT
		<tr>
			<td>
				<a href="{$options[baseURL]}?area=admin&action=cedit&selectedCategory={$value[id]}">{$value['id']}</a>
			</td>
			<td>
				<a href="{$options[baseURL]}?area=admin&action=cedit&selectedCategory={$value[id]}">{$name}</a>
			</td>
			<td>
				<a href="{$options[baseURL]}?area=admin&action=cdelete&selectedCategory={$value[id]}">[{$verbage['delete']}]</a>
			</td>
		</tr>

EOT;

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