function getTransferTimes($gw)
{
    $managers = getAllManagers();
    $times = array();
    $i = $gw + 2;
    $times[] = new TransferTime('19:00', $managers[(6 + $i - 2) % 6]);
    $times[] = new TransferTime('19:05', $managers[(6 + $i - 1) % 6]);
    $times[] = new TransferTime('19:10', $managers[(6 + $i) % 6]);
    $times[] = new TransferTime('19:15', $managers[(6 + $i + 1) % 6]);
    $times[] = new TransferTime('19:20', $managers[(6 + $i + 2) % 6]);
    $times[] = new TransferTime('19:25', $managers[(6 + $i + 3) % 6]);
    return $times;
}
Example #2
0
<?php

// initialize
include_once '../../common/init.php';
if (!isLoggedInAdmin()) {
    redirect('');
} else {
    // include needed database functions
    include_once $BASE_PATH . 'database/auth.php';
    $search = strip_tags($_REQUEST['search']);
    if (isset($_REQUEST['pagenr'])) {
        $pagenr = $_REQUEST['pagenr'];
        if ($search) {
            $managers = searchManagersPage($search, $pagenr);
        } else {
            $managers = getAllManagersPage($pagenr);
        }
        echo json_encode(array("numpages" => ceil($managers[0]['count'] / $pagesize), "managers" => $managers));
    } else {
        if (!$search) {
            $managers = getAllManagers();
        }
        echo json_encode(array("managers" => $managers));
    }
}
Example #3
0
                          </tr>  
                        </tbody>
                        </table>
                    </td>
                    </tr>
              <?php 
}
//eofl
?>
            </table> 

     <p></p>
            <hr>
            <p></p>
            <?php 
$registerManagers = getAllManagers();
$totalManagers = count($registerManagers);
// print_r($registerManagers[0]);//testing
?>
              <h2>
                Registered Manager
                <?php 
echo "[{$totalManagers}]";
?>
            </h2>
            <table class="table table-striped">
              <tr>
                <th>ID</th>
                <th></th>
                <th>Username</th> 
                <th>Email</th>