--- loncom/interface/lonmenu.pm 2006/02/21 20:14:49 1.165
+++ loncom/interface/lonmenu.pm 2006/03/29 20:07:00 1.169
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.165 2006/02/21 20:14:49 raeburn Exp $
+# $Id: lonmenu.pm,v 1.169 2006/03/29 20:07:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -279,9 +279,9 @@ $groups
LON-CAPA |
-$form
+$form
@@ -1177,6 +1177,12 @@ function catalog_info() {
function chat_win() {
lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizable=yes,location=no,menubar=no,toolbar=no');
}
+
+function group_chat(group) {
+ var url = '/adm/groupchat?group='+group;
+ var winName = 'LONchat_'+group;
+ grpchat=window.open(url,winName,'height=320,width=280,resizable=yes,location=no,menubar=no,toolbar=no');
+}
ENDUTILITY
}
@@ -1235,7 +1241,6 @@ sub handler {
$env{'browser.interface'} ne 'textual') {
$form=&serverform();
}
- my $bodytag=&Apache::loncommon::bodytag('Main Menu');
my $function='student';
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) {
$function='coordinator';
@@ -1265,40 +1270,32 @@ ENDSCRIPT
$env{'browser.interface'}='faketextual';
$env{'environment.remote'}='off';
}
- my $html=&Apache::lonxml::xmlbegin();
- $r->print(<
-LON-CAPA Main Menu
-$script_tag
-
-$bodytag
-ENDHEADER
+ $r->print(&Apache::loncommon::start_page('Main Menu',$script_tag));
$r->print(''.$form);
- $r->print('