$url .= "&order={$filter['order']}";
    if (!empty($_REQUEST['by'])) {
        $filter['by'] = $_REQUEST['by'];
        $url .= "&by={$filter['by']}";
    }
}
// limit+page
if (!empty($_REQUEST['limit'])) {
    $filter['limit'] = (int) $_REQUEST['limit'];
    $itemPerPage = $filter['limit'];
} else {
    $itemPerPage = 10;
}
$url .= "&limit-{$itemPerPage}";
$applications = Application::all(null, $filter);
$senaraiSekolah = School::senaraiSekolah();
?>

<div>
	<div>
		<h1>Permohonan Pelajar</h1>
		<hr />
	</div>
	
	<form action="index.php?module=admin" method="get">
		<div class="row">
			<div class="col-md-6 col-sm-6 col-xs-12">
				<div class="form-group">
					<div class="input-group">
						<label for="nama_pelajar" class="input-group-addon">Nama Pelajar</label>
						<input type="text" id="nama_pelajar" name="nama_pelajar" placeholder="Nama Pelajar" class="form-control" value="<?php