Exemplo n.º 1
0
<?php

include_once 'db_connection.php';
include_once 'classes/employee.php';
$connection = new db_connection();
if (isset($_GET['team'])) {
    $employee_list = employee::loadListPerTeam($connection, $_GET['team']);
} else {
    $employee_list = employee::loadList($connection);
}
$connection->close();
if ($employee_list === -1) {
    //Data Base Connection Error
    echo "<p class='error_message'>Data base connection error.</p>";
} else {
    ?>

<table cellspacing="0">
<thead>
	<tr>
    	<th class="small_cel"><input type="checkbox" id="check_all" /></th>
        <th class="small_cel"></th>
		<th>Full Name</th>
		<th>Email</th>
		<th>Twitter Account</th>
		<th>Account Type</th>
	</tr>
</thead>
<tbody>
	<?php 
    foreach ($employee_list as $e) {