Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/list.inc.php
<?php
$lcSes = session_id();
echo <<<EOT
<script language="javascript">
<!--
function changeOrder() {
	if (document.list.reverse_sort.checked) {
    document.list.reverse_sort.value = 1;
	}
  else
	{
    document.list.reverse_sort.value = 0;
  }

	location="{$options['baseURL']}?area=list&view={$_SESSION['view']}&sg={$_SESSION['sg']}&listCol={$_SESSION['listCol']}&listOrderBy=" + document.list.order.options[document.list.order.selectedIndex].value + "&reverse_sort=" + document.list.reverse_sort.value;
}

function changeProj() {
	location="{$options['baseURL']}?area=list&view={$_SESSION['view']}&sg={$_SESSION['sg']}&listCol={$_SESSION['listCol']}&project=" + document.forms['list'].proj.options[document.forms['list'].proj.selectedIndex].value;
}
//-->
</script>

<form name="list">
<table width="100%" class="list" align="center">
	<tr>
		<td colspan="8" bgcolor="{$options['colorTableHeaderBg']}" align="center"><font color="{$options['colorTableHeaderText']}">{$headLine}</font></td>
	</tr>
	<tr bgcolor="{$options['colorTableHeaderBg']}">
		<td colspan="8" align="center">
			<i>{$options['ticketName']}{$verbage['lst_list']}</i>{$verbage['lst_for']}<b>
			<select onChange="changeProj()" name="proj">
				{$projects}
			</select>
			{$verbage['lst_sorted_by']}
			<select onChange="changeOrder()" name="order">
				<option value="id"{$lob['id']}>ID</option>
				<option value="priority"{$lob['priority']}>{$verbage['priority']}</option>
				<option value="status"{$lob['status']}>{$verbage['status']}</option>
				<option value="owner"{$lob['owner']}>{$verbage['owner']}</option>
				<option value="creator"{$lob['creator']}>{$verbage['creator']}</option>
				<option value="projects"{$lob['project']}>{$verbage['project']}</option>
				<option value="date_modified"{$lob['date_modified']}>{$verbage['last_modified']}</option>
				<option value="date_added"{$lob['date_added']}>{$verbage['date']} {$verbage['added']}</option>
			</select>
			<input type="checkbox" name="reverse_sort" onChange="changeOrder()" $reverse_sort/><small>reverse</small>
		({$bugDatabase->totalRecords['count(*)']}{$verbage['lst_found']}{$printPages})</center></form>
		</td>
	</tr>
	<tr>
		<th>ID</th>
		<th>{$verbage['date']}</b></th>
		<th>{$verbage['description']}</b></th>
		<th>{$verbage['priority']}</b></th>
		<th>{$verbage['status']}</b></th>
		<th>{$verbage['creator']}</b></th>
		<th>{$verbage['owner']}</b></th>
		<th>{$verbage['project']}</b></th>
	</tr>

EOT;

if (is_array($tickets)) {
	while (list($key, $value) = each($tickets)) {
		listTicketPrint($value);
	}
}

echo <<<EOT


</table>

EOT;
?>				
Return current item: BugIn and Ticketing System