<?php include('../../ortaklar.php'); ?>
<?php get_header(); ?>
<?php
add_page_info( 'title', 'Personeller' );
add_page_info( 'nav', array('name'=>'Personel', 'url'=>get_site_url('admin/user/index.php')) );
add_page_info( 'nav', array('name'=>'Personeller') );
?>

<?php
	$users = get_users();
?>

<div class="mobile-full">
	<table class="table table-hover table-stripedd table-condensed dataTable">
		<thead class="hidden-xs">
			<tr>
				<th>Ad Soyad</th>
				<th class="hidden-xs-portrait">E-Posta</th>
				<th width="100">Cep Telefonu</th>
				<th width="100" class="hidden-xs-portrait">Yetki</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach($users as $list): ?>
				<tr onclick="window.location = '<?php site_url('admin/user/user.php'); ?>?id=<?php echo $list->id; ?>'; " class="pointer">
					<td><img src="<?php echo get_user_info($list->id, 'avatar'); ?>" class="img-responsive img-32 br-5 inline-block"> <?php echo $list->name; ?> <?php echo $list->surname; ?></td>
					<td class="hidden-xs-portrait"><a href="<?php site_url('admin/user/user.php'); ?>?id=<?php echo $list->id; ?>"><?php echo $list->username; ?></a></td>
					<td><?php echo $list->gsm; ?></td>
					<td class="hidden-xs-portrait"><?php echo get_user_role_text($list->role); ?></td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>





<?php get_footer(); ?>
