Location: PHPKode > projects > ConPortal > conportal/contact.php
<?php
/*
 *  ConPortal - Pomona College ITS scheduling appplication
 *  Copyright (C) 2005-2006  Pomona College
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of version 2 of the GNU General Public License
 *  as published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once('standard.php');
xhtml_header('Contact Information');

$users = sortUsersByName(getAllUserDetails());
$i = 0;
?>
<table id='usersTable' class='sortable'>
    <thead><tr>
        <th>First</th><th>Last</th><th>User</th><th>Consultant Group</th>
        <th>Phone</th><th>Screen Name</th>
    </tr></thead>
<tbody>
<?php
foreach ($users as $user) {
    $group = getGroupDetails($user['primary_group']);
?>
    <tr class='d<?= $i++ % 2 ?>' onmouseover='javascript:highlight(this)'
        onmouseout='javascript:unhighlight(this)'>
        <td><?= $user['first'] ?></td><td><?= $user['last'] ?></td>
        <td><?= $user['username'] ?></td><td><?= $group['description'] ?></td>
        <td><?= $user['phone'] ?>&nbsp;</td>
        <td><?= $user['screen_name'] ?>&nbsp;</td>
    </tr>
<?
}
?>
</tbody>
</table>

<?php
xhtml_footer();
?>
Return current item: ConPortal