<?php

include 'includes/function_page_access.php';
controlAccess('Student');
//make sure students can only see their own details
if (isset($_SESSION['account_level']) && $_SESSION['account_level'] == "Student") {
    if (!isset($_GET['id'])) {
        header("Location: student_record.php?id=" . $_SESSION['user_id']);
    } elseif ($_GET['id'] != $_SESSION['user_id']) {
        header("Location: student_record.php?id=" . $_SESSION['user_id']);
    }
}
include 'includes/head.php';
?>

<style type="text/css">

.balance {
	border: 1px solid green;
}

.balance td {
	background-color: #CCFFCC!important;
	padding: 10px;
	font-size: 14pt;
	text-align: right;
}

.pop-up-form h2 {
	margin-bottom: 10px;
}
示例#2
0
<?php

include 'includes/function_page_access.php';
controlAccess('Staff');
include 'includes/head.php';
?>

<style type="text/css">
	.pop-up-form label {
		font-size: 1.1em;
	}

	.pop-up-form input[type=text], .pop-up-form input[type=number], .pop-up-form input[type=tel], .pop-up-form input[type=email], .pop-up-form select {
		font-size: 1.1em;
	}
</style>

<?php 
include 'includes/header.htm';
?>

	<section>
		<input type='button' class='fltR' value='Add New Staff' id='add-new-staff'>
		<h1>STAFF</h1>

		<table class='users styled'>
			<tr>
				<th>First Name</th>
				<th>Last Name</th>
				<th>Cell #</th>
				<th>Email</th>