/home2/kerimkazan/dvf/magaza/inc/users.php
<?php if(!defined('ADMIN_INCLUDED')) { exit; } ?>
<?php
if(!m_authority(m_admin('authoritys'),'users'))
{
		m_redirect(ADMIN_URL);
}
?>
<div class="card mt-2 mb-3">
		<div class="card-header fw-bold">Yöneticiler</div>
		<div class="card-body">
		<div class="text-end">
			<a href="<?php echo SITE_DOMAIN; ?>/index.php?page=user_add"><span class="btn btn-success btn-sm"><i class="fa fa-plus-circle"></i> Yönetici Ekle</span></a>
		</div>
		<table class="table align-middle table-nowrap table-striped datatable">
			<thead class="table-light">
				<tr>
					<th>İsim</th>
					<th>Email</th>
					<th>Durum</th>
					<th>İşlemler</th>
				</tr>
			</thead>
			<tbody>
			<?php
			$informations = $db->table('users')->order('id','desc')->get();
			foreach($informations['data'] as $info)
			{
				echo 
				'
				<tr>
				<td>'.$info['name'].'</td>
				<td>'.$info['email'].'</td>
				<td>'.m_status($info['status']).'</td>
				<td>
				<a href="'.SITE_DOMAIN.'/index.php?page=user&id='.$info['id'].'"><span class="btn btn-primary btn-sm"><i class="fa fa-pen-square"></i></span></a>
				<a href="'.SITE_DOMAIN.'/index.php?page=delete&table=users&id='.$info['id'].'" class="delete"><span class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></span></a>
				</td>
				</tr>
				';
			}
			?>
			</tbody>
			</table>
		
		
		
		
		</div>
</div>