<?php
/****************************************************************************************/
/* ACollab */
/****************************************************************************************/
/* Copyright (c) 2002-2004 Adaptive Technology Resource Centre / University of Toronto */
/* */
/* http://atutor.ca/acollab */
/* */
/* This program is free software. You may redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 of the License, */
/* or (at your option) any later version. */
/* */
/* 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 may access the GNU General Public License at: */
/* http://www.opensource.org/licenses/gpl-license.php */
/* */
/* You may contact the Adaptive Technology Resource Centre at */
/* Robarts Library, University of Toronto */
/* 130 St. George Street, Toronto, Ontario, Canada M5S 1A5 */
/* Further contact information is available at http://www.utoronto.ca/atrc/ */
/****************************************************************************************/
/* Programmer: */
/* Joel Kronenberg - ATRC */
/****************************************************************************************/
if (!defined('AC_INCLUDE_PATH')) { exit; }
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="<?php echo $available_languages[$_SESSION['lang']][2]; ?>">
<head>
<title><?php echo SITE_NAME; ?><?php
$num_sections = count($_SECTION);
for($i = 0; $i < $num_sections; $i++) {
echo ' / ';
echo $_SECTION[$i][0];
}
?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $available_languages[$_SESSION['lang']][1]; ?>" />
<base href="<?php echo $_base_href; ?>" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
<?php
if (in_array($_SESSION['lang'], $_rtl_languages)) {
echo '<link rel="stylesheet" href="rtl.css" type="text/css" />';
}
?>
</head>
<body <?php echo $onload; ?>><div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div><script language="JavaScript" src="overlib.js" type="text/javascript"><!-- overLIB (c) Erik Bosrup --></script><a href="<?php echo $_SERVER['REQUEST_URI']; ?>#content"><img src="images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AC('jump_content'); ?>" /></a><?php
echo '<h1>';
if ($_SESSION['course_id']) {
echo '<a href="'.AT_PATH.'bounce.php?course='.$_SESSION['course_id'].'" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.$_SESSION['course_title'].'</a> > ';
} ?><a href="index.php" onfocus="this.className='highlight'" onblur="this.className=''" accesskey="0"><?php echo _AC('groups'); ?></a> > <a href="home.php" onfocus="this.className='highlight'" onblur="this.className=''"><?php
if (isset($_SESSION['group_id']) && $_SESSION['group_id']) {
$my_group = get_group($_SESSION['group_id']);
echo $my_group['title'];
}
echo '</a><small><small> ( <a href="accessibility.php" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'. _AC('accessibility').'</a> ';
if (!$_SESSION['course_id']) {
echo ' | <a href="sign_out.php" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'._AC('sign_out').'</a>';
}
echo ' )</small></small>';
?></h1><img src="images/clr.gif" height="3" width="3" alt="" /><table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" class="box" summary="<?php echo _AC('site_layout'); ?>">
<tr>
<td class="menu"><table border="0" width="100%" cellspacing="0" cellpadding="2" bgcolor="white">
<tr>
<td align="center">
<?php
$delim = ' | ';
if (count($_SECTION) == 1) {
echo '<a href="home.php" class="box" accesskey="1" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('home').' Alt-1">'._AC('home').'</a>';
} else {
echo '<a href="home.php" class="nav" accesskey="1" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('home').' Alt-1">'._AC('home').'</a>';
}
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'forums/')) {
echo '<a href="forums/" class="box" accesskey="2" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('forums').' Alt-2">'._AC('forums').'</a>';
} else {
echo '<a href="forums/" class="nav" accesskey="2" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('forums').' Alt-2">'._AC('forums').'</a>';
}
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'chat/')) {
echo '<a href="chat/" class="box" accesskey="3" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('chat_room').' Alt-3">'._AC('chat_room').'</a>';
} else {
echo '<a href="chat/" class="nav" accesskey="3" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('chat_room').' Alt-3">'._AC('chat_room').'</a>';
}
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'inbox/')) {
echo '<a href="inbox/" class="box" accesskey="4" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('inbox').' Alt-4">'._AC('inbox').'</a>';
} else {
echo '<a href="inbox/" class="nav" accesskey="4" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('inbox').' Alt-4">'._AC('inbox').'</a>';
}
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'events/')) {
echo '<a href="events/" class="box" accesskey="5" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('events_calendar').' Alt-5">'._AC('events_calendar').'</a>';
} else {
echo '<a href="events/" class="nav" accesskey="5" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('events_calendar').' Alt-5">'._AC('events_calendar').'</a>';
}
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'library/')) {
echo '<a href="library/" class="box" accesskey="6" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('library').' Alt-6">'._AC('library').'</a>';
} else {
echo '<a href="library/" class="nav" accesskey="6" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('library').' Alt-6">'._AC('library').'</a>';
}
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'drafting/')) {
echo '<a href="drafting/" class="box" accesskey="7" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('drafting_room').' Alt-7">'._AC('drafting_room').'</a>';
} else {
echo '<a href="drafting/" class="nav" accesskey="7" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('drafting_room').' Alt-7">'._AC('drafting_room').'</a>';
}
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'members/')) {
echo '<a href="members/" class="box" accesskey="8" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('members').' Alt-8">'._AC('members').'</a>';
} else {
echo '<a href="members/" class="nav" accesskey="8" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('members').' Alt-8">'._AC('members').'</a>';
}
if (authenticate(USER_GROUP_ADMIN, USER_RETURN_CHECK)) {
echo $delim;
if (isset($_SECTION[1][1]) && ($_SECTION[1][1] == 'group_admin/')) {
echo '<a href="group_admin/" class="box" onfocus="this.className=\'box highlight\'" onblur="this.className=\'box\'" title="'._AC('administration').'">'._AC('administration').'</a>';
} else {
echo '<a href="group_admin/" class="nav" onfocus="this.className=\'highlight\'" onblur="this.className=\'nav\'" title="'._AC('administration').'">'._AC('administration').'</a>';
}
}
?></td>
</tr>
</table></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #006699; background: #EFEFEF;"><table border="0" width="100%" cellspacing="2" cellpadding="2" class="w">
<tr>
<td class="bread" valign="middle"><?php
$delim = ' ยป ';
for($i = 0; $i < $num_sections-1; $i++) {
echo '<a href="'.$_SECTION[$i][1] . '" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">';
echo $_SECTION[$i][0];
echo '</a>';
echo $delim;
}
echo $_SECTION[$num_sections-1][0];
?></td>
<td class="bread" align="right">
<?php
if ($_SESSION['course_id'] == '') {
$sql = "SELECT * FROM ".TABLE_PREFIX."users_online WHERE group_id=$_SESSION[group_id]";
$result = mysql_query($sql, $db);
} else {
$sql = "SELECT * FROM ".AT_TABLE_PREFIX."users_online WHERE course_id=$_SESSION[course_id]";
$result = mysql_query($sql, $db);
}
if ($result) {
echo '<small><a href="members/index.php?online=online" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">' . mysql_num_rows($result);
if (mysql_num_rows($result) == 1) {
echo ' user online</a><small>';
} else {
echo ' users online</a><small>';
}
}
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td class="content"><a name="content"></a><img src="images/clr.gif" height="5" width="5" alt="" />