Esempio n. 1
0
$batchsIds = array();
if (count($batchsInSchool) > 0) {
    foreach ($batchsInSchool as $batchuser) {
        array_push($batchsIds, $batchuser->batchid);
    }
}
if (isset($_GET['sectionid'])) {
    $theusers = SectionUser::getUsersInSection($_GET['sectionid']);
} else {
    if (isset($_GET['batchid'])) {
        $theusers = BatchUser::getUsersInBatch($_GET['batchid']);
    } else {
        if (isset($_GET['schoolid'])) {
            $theusers = SchoolUser::getUsersInSchool($_GET['schoolid']);
        } else {
            $theusers = SchoolUser::getUsersInSchool(CSNTRID);
        }
    }
}
?>

<div class="container-fixed" >
  <div class="span12 offset1">
    <div class="btn-group" style="margin-bottom: 20px">
      <div class="btn-group">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
          <?php 
if (count($batchsInSchool) == 0) {
    echo "Nothing Yet";
} else {
    echo "View By";