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

<?php

if (isset($selectedProject)) {
	if (!isset($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="pedit" />
		{$formFields}
		<b>{$verbage['project']}: {$projectName}</b>
		<hr>
		{$verbage['adm_pro_name']} <br>
		<input type="text" name="mod[name]" value="{$projectName}"><br>
		<br>
		{$verbage['sup_email']}<br>
		<textarea name="mod[email]" WRAP cols="80">{$email}</textarea><br>
		<br>
		{$verbage['adm_pro_desc']}<br>
		<textarea name="mod[proj_desc]" cols="80" rows="20">$projectDesc</textarea><br>
		<br>
		<input type="submit" value="{$verbage['adm_pro_update']}">
		</form>

		<h2>Project Triggers for {$projectName}</h2>
		$triggerTable
	[<a href="{$options['baseURL']}?area=admin&action=trigger_add&context=project&num={$selectedProject}">{$verbage['adm_trig_add']}</a>]<br>
EOT;
	}
	else {
			echo <<<EOT
	[<a href="{$options['baseURL']}?area=admin&action=pedit">{$verbage['continue']}</a>]<br>
EOT;
	}
}
else {
	echo <<<EOT
	{$verbage['adm_pro_edit']}
	<table border=1>
		<tr>
			<td><b>ID</b></td>
			<td><b>{$verbage['project']}</b></td>
			<td><b>{$verbage['delete']}</b></td>
		</tr>
EOT;

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

	}
	echo <<<EOT
	</table>
	[<a href="{$options['baseURL']}?area=admin&action=padd">{$verbage['adm_pro_add']}</a>]<br>
	<h2>Global Project Triggers</h2>
	$triggerTable
	[<a href="{$options['baseURL']}?area=admin&action=trigger_add&context=project&num=0">{$verbage['adm_trig_add']}</a>]<br>
EOT;
}
?>
Return current item: BugIn and Ticketing System