Beispiel #1
0
<?php

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

<table cellspacing="0">
<thead>
	<tr>
    	<?php 
    if ($type == 1) {
        ?>
<th class="small_cel"><input type="checkbox" id="check_all" /></th>
        <th class="small_cel"></th> <?php 
    }
    ?>