Exemplo n.º 1
0
            }
            echo '</td>';
            $tabindex += count($users);
            $night = strtotime("next " . ATC_SETTING_PARADE_NIGHT, $night);
        }
        echo '</tr>';
    }
}
?>
			</tbody>
		</table>
	</form>
	
<?php 
$date = date('Y-m-d', time());
$nonattendingcadets = $ATC->get_awol(date('Y') . '-01-01', date('Y') . '-12-31');
if (count($nonattendingcadets)) {
    ?>
	<form name="missingcadets" id="missingcadets" method="post" style="margin-top:2em;">
		<table class="tablesorter">
			<caption> Absent cadets </caption>
			<thead>
				<tr>
					<th> Date </th>
					<th> Name </th>
					<th> Contact number </th>
					<th> Next of Kin contact </th>
					<th> Reason for absence </th>
					<td> <?php 
    echo $ATC->user_has_permission(ATC_PERMISSION_ATTENDANCE_EDIT) && !isset($_GET['id']) ? '<button type="submit" class="save">Save absences</button>' : '';
    ?>