Ejemplo n.º 1
0
<?php

$tutors = search_tutors();
?>

Found <?php 
echo count($tutors);
?>
 tutors:
<table class="border">
    <tr>
        <th>Name</th>
        <th>Username</th>
        <th>Email</th>
        <th>Phone</th>
        <th>Category</th>
        <th>Grade</th>
        <th>Requested Hours</th>
        <th>Active Matches</th>
        <th>Dead Matches</th>
        <th>Signed Confidentiality Agreement</th>
        <th>Notes</th>
    <?php 
foreach ($tutors as $tutor_info) {
    ?>
        <tr>
            <td><?php 
    echo $tutor_info['name'];
    ?>
            <td><?php 
    echo $tutor_info['username'];
Ejemplo n.º 2
0
global $page;
$page = $_REQUEST["page"];
if ($_REQUEST["action"] == 'admin_login') {
    admin_login();
} else {
    if ($_REQUEST["action"] == 'search_students') {
        search_students();
    } else {
        if ($_REQUEST["action"] == 'search_requests') {
            search_requests();
        } else {
            if ($_REQUEST["action"] == 'search_matches') {
                search_matches();
            } else {
                if ($_REQUEST["action"] == 'search_tutors') {
                    search_tutors();
                } else {
                    if ($_REQUEST["action"] == 'edit_student') {
                        edit_student();
                    } else {
                        if ($_REQUEST["action"] == 'edit_tutor') {
                            edit_tutor();
                        } else {
                            if ($_REQUEST["action"] == 'edit_request') {
                                edit_request();
                                $page = 'list_requests';
                                $request_info = request_info($_REQUEST['request_id']);
                                $_REQUEST['student_id'] = $request_info['student_id'];
                            } else {
                                if ($_REQUEST["action"] == 'create_match') {
                                    create_match();