Example #1
0
<?php

require_once "../includes/header.php";
if (!$user->hasPermission('tdstaff')) {
    Session::flash('error', 'Invalid permissions');
    Redirect::to(BASE_URL . 'training');
}
?>
<h3 class="text-center">Sliders: Breakdown Options</h3><br>
<div class="row">
	<div class="col-md-12">
		<?php 
$t = new Training();
$r = new Reports();
$programs = $t->getPrograms();
foreach ($programs as $program) {
    ?>
			<div class="row">
				<div class="col-md-10 col-md-offset-1">
					<div class="panel panel-primary">
						<div class="panel-heading">
							<h3 class="panel-title"><?php 
    echo $program->name;
    ?>
</h3>
						</div>
						<div class="panel-body">
							<table class="table table-striped table-condensed table-responsive">
							<?php 
    $sliders = $r->getSliders(1, $program->id);
    if ($sliders !== false) {