<div class="content_title">Pracownicy</div>
<?php
	if(!empty($message))
		echo '<p class="info_box">'.$message.'<p>';
?>
<table  id="tablesorter" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
		<thead>
			<tr>
				<th style="width:20px;">ID</th>
				<th>User</th>
				<th>Email</th>
				<th>Utrzymanie [%]</th>
				<th>Rabat</th>
				<th>Aktywny</th>
				<th>Akcje</th>
			</tr>
		</thead>
		<tbody>
		<?php
				if(isset($employees) and count($employees) > 0)
				{
					
					foreach($employees as $key=>$value)
					{
						echo '<tr>';
							 echo '<td>'.$value['id'].'</td>';
							 echo '<td>'.$value['name'].'</td>';
							 echo '<td>'.$value['email'].'</td>';
							 echo '<td>'.$value['utrzymanie'].'</td>';
							 echo '<td>'.$value['rabat'].'</td>';
							 echo '<td>'.(($value['active']==1) ? 'tak' : 'nie').'</td>';
							 echo '<td><a href="/master/employee/'.$value['id'].'"><b>EDYTUJ</b></a></td>';
						echo '</tr>';
					}
				}
		?>		
		</tbody>
</table>
<div class="ticket_menu_item"><a href="/master/add_employee"/>Dodaj</a></div>