Esempio n. 1
0
            </li>
            <li>
              <a href="#newBallot" data-toggle="tab">New Ballot</a>
            </li>
            <?php 
}
?>
          </ul>

          <div id="ballotContents" class="tab-content">

            <div class="tab-pane fade in active" id="activeBallots">
              <div class="alert alert-info span10 offset1">
                
                  These are the ballots available for <?php 
echo get_collegeName(get_userDept($_SESSION['studID']));
?>
.

                <?php 
if ($_SESSION['userGroup'] === 'user') {
    ?>
                  <br />
                  <br />
                  If multiple ballots are available, you can cast your votes on each ballot. Just log in again after completing one ballot. Ballot results will be posted once the elections are over. To see the results, just log in again with your account.
                
                <?php 
}
?>
              </div>
              <table class="table table-hover" id="ballots"> 
Esempio n. 2
0
        ?>
														</td>
													</tr>
												</tbody>
											</table>

										<?php 
    }
}
if (isset($_POST['dept'])) {
    $users = list_users($_POST['dept']);
    ?>
									
									<div class="alert alert-info" style="text-align: center;">
										Students registered under the <strong><?php 
    echo get_collegeName($_POST['dept']);
    ?>
</strong>.
									</div>
									
									<table class="table table-hover">
									
										<thead>
											<tr>
												<th>
													Student ID
												</th>
												<th>
													Name
												</th>
												<th>