<div style="border-bottom:1px solid #999999;width:100%">Afilianci</div>
<?php
	if(!empty($message))
		echo '<p class="info_box">'.$message.'<p>';
?>
<table  id="tablesorter-demo" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
		<thead>
			<tr>
				<th style="width:20px;">ID</th>
				<th>User</th>
				<th>Email</th>
				<th>Akcje</th>
			</tr>
		</thead>
		<tbody>
		<?php
				if(isset($afiliants) and count($afiliants) > 0)
				{
					
					foreach($afiliants as $key=>$value)
					{
						echo '<tr>';
							 echo '<td>'.$value['id'].'</td>';
							 echo '<td>'.$value['nazwa'].'</td>';
							 echo '<td>'.$value['email'].'</td>';
							 echo '<td><a href="/superadmin/edit_afiliant/'.$value['id'].'"><b>POKAŻ</b></a></td>';
						echo '</tr>';
					}
				}
		?>		
		</tbody>
</table>
 