Beispiel #1
0
        header("HTTP/1.0 500 Internal Server Error");
        echo 'Caught exception: ', $e->getMessage(), "\n";
    } catch (ATCExceptionDBConn $e) {
        header("HTTP/1.0 500 Internal Server Error");
        echo 'Caught exception: ', $e->getMessage(), "\n";
    } catch (ATCException $e) {
        header("HTTP/1.0 400 Bad Request");
        echo 'Caught exception: ', $e->getMessage(), "\n";
    } catch (Exception $e) {
        header("HTTP/1.0 500 Internal Server Error");
        echo 'Caught exception: ', $e->getMessage(), "\n";
    }
    exit;
}
if (isset($_GET['id']) && isset($_GET['action']) && $_GET['action'] == 'attendance') {
    $activity = $ATC->get_activity((int) $_GET["id"]);
    $activity = $activity[0];
    $users = $ATC->get_activity_attendance((int) $_GET['id']);
    if (!is_array($users)) {
        $foo[] = $users;
        $users = $foo;
    }
    ?>
	<form name="editactivity" id="editactivity" method="POST">
		<input type="hidden" name="attendance_register" value="1" />
		<table>
			<thead>
				<tr>
					<th colspan="2"> Name </th>
					<th> <?php 
    echo $activity->title;