Location: PHPKode > projects > SureInvoice > sureinvoice-1.0/project_priorities.php
<?
require_once('includes/common.php');
require_once('includes/SI_ProjectPriority.php');

checkLogin("admin");

$project_priority = new SI_ProjectPriority();
$project_prioirities = SI_ProjectPriority::retrieveSet();
if($project_prioirities === FALSE){
	$error_msg .= "Error getting project priorities!\n";
	debug_message($project_priority->getLastError());
}

$title = "Project Priority Administration";

require('header.php') ?>
<div class="tableContainer">
<a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Project Priorities</a><div>
	<div class="gridToolbar">
		  <a href="project_priority.php?mode=add" style="background-image:url(images/new_invoice.png);">New Project Priority</a>
	</div>
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th><a href="" onclick="return sortTable('bodyId', 0, 1, false)">ID</a></th>
		<th><a href="" onclick="return sortTable('bodyId', 1, 1, false)">Name</a></th>
		<th><a href="" onclick="return sortTable('bodyId', 2, 1, false)">Level</a></th>
		<th>Edit</th>
		<th>Delete</th>		
	</tr>
	<tbody id="bodyId">
<? for($i = 0; $i < count($project_prioirities); $i++){ ?>
	<tr onmouseover="this.style.backgroundColor ='#CCCCCC'" onmouseout="this.style.backgroundColor ='#FFFFFF'">
		<td><?= $project_prioirities[$i]->id ?></td>
		<td><?= $project_prioirities[$i]->name ?></td>
		<td><?= $project_prioirities[$i]->priority_level ?></td>
		<td class="gridActions">
			<a href="project_priority.php?mode=edit&id=<?= $project_prioirities[$i]->id ?>"><img src="images/edit.png" width="16" height="16" alt="Edit" title="Edit" border="0" /></a>
		</td>
		<td class="gridActions">
			<a href="project_priority.php?mode=delete&id=<?= $project_prioirities[$i]->id ?>"><img src="images/delete.png" width="16" height="16" alt="Delete" title="Delete" border="0" /></a>
		</td>		
	</tr>
<? }?>
</tbody>
</table>
	</div>
</div>
<? require('footer.php') ?>
Return current item: SureInvoice