<?php


$database->setBareQuery("SELECT id, name FROM client ORDER BY name");

				$clientid = $database->loadResultArray(0);
		
				$clientname = $database->loadResultArray(1);
				
				?>

<h1>Izaberi klijenta</h1>
<div id="uvbody-content">
	<table id="table" cellspacing="0">
		<thead>
			<tr>
				<th scope="col" class="manage-title">Ime</th>
				<th scope="col" class="manage-action"></th>
			</tr>
		</thead>
		<tbody>
		<?php 
		for($i = 0; $i < count($clientid); $i++):
    		?>
    			<tr id="page-<?=$client?>">
    				<td><a href="admin.php?page=tools&action=project-edit&clientid=<?=$clientid[$i]?>"><?=$clientname[$i]?></a></td>
    				<td></td>
    			</tr>
    		<?php

		endfor;
		?>		
		</tbody>
		<tfoot>
			<tr>
				<th scope="col" class="manage-title">Ime</th>
				<th scope="col" class="manage-action"></th>
			</tr>
		</tfoot>
	</table>
</div>