Example #1
0
<?php

require_once 'init.php';
session_start();
if (!isset($_SESSION['user_id'])) {
    header('location: ' . $BASEURL . 'user/login');
    exit;
}
$state = isset($_GET['state']) ? $_GET['state'] : 'all';
$dal = new DataAccessLayer();
$users = $dal->GetListofUsers($state);
$rowstyleeven = 0;
include "{$BASEDIR}/templates/header_review.php";
?>
	<form method="post" action="<?php 
echo $BASEURL;
?>
review/grid">
	<h1>Applications</h1>
<?php 
include "{$BASEDIR}/templates/admin_nav.php";
?>
	<table style="width: 100%">
		<tr>
			<th>id</th>
			<th>username</th>
			<th>email</th>
			<?php 
if ($state == "reviewer") {
    ?>
<th>remaining</th><?php