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

<?php
if (isset($selectedStatus)) {
	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="sedit" />
		{$formFields}
		<input type="hidden" name="adminWriteChanges" value="1" />
		<b>Status: {$bugDatabase->lists[status][$selectedStatus][name]}</b>
		<hr>
			Status Name: <br />
			<input type="text" name="mod[name]" value="{$statusName}" /><br />
			<br>
			{$verbage['status']} {$verbage['description']} (for notification (i.e. "Has been %s"):<br />
			<input type="text" name="mod[descr]" value="{$statusDesc}" size="80" /><br />
		<input type="submit" value="{$verbage['adm_update_status']}">
		</form>
EOT;
	}
	else {
		echo <<<EOT
		[<a href="{$options[baseURL]}?area=admin&action=sedit">{$verbage['continue']}</a>]

EOT;
	}
}
else {
		echo <<<EOT
	{$verbage['adm_stat_edit']}
	<table border="1">
		<tr>
			<th>ID</th>
			<th>{$verbage['status']}</th>
			<th>{$verbage['status']} {$verbage['description']}</th>
			<th>{$verbage['delete']}</th>
		</tr>
EOT;

		while (list($key, $value) = each($bugDatabase->lists['status'])) {
			echo <<<EOT
		<tr>
			<td>
				<a href="{$options['baseURL']}?area=admin&action=sedit&selectedStatus={$value['id']}">{$key}</a>
			</td>
			<td>
				<a href="{$options['baseURL']}?area=admin&action=sedit&selectedStatus={$value['id']}">{$value['name']}</a>
			</td>
			<td>
				<a href="{$options['baseURL']}?area=admin&action=sedit&selectedStatus={$value['id']}">{$value['descr']}</a>
			</td>
			<td>
				<a href="{$options['baseURL']}?area=admin&action=sdelete&selectedStatus={$value['id']}">[{$verbage['delete']}]</a>
			</td>
		</tr>

EOT;

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