version 1.15, 2006/07/17 16:10:57
|
version 1.18, 2009/02/25 16:39:54
|
Line 32 use strict;
|
Line 32 use strict;
|
use Apache::Constants qw(:common :http); |
use Apache::Constants qw(:common :http); |
use Apache::loncommon; |
use Apache::loncommon; |
use Apache::lonnet; |
use Apache::lonnet; |
|
use Apache::lonlocal; |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 61 sub handler {
|
Line 62 sub handler {
|
&Apache::lonnet::chatsend(&Apache::lonfeedback::clear_out_html($env{'form.newchat'}),$env{'form.anonymous'},$group); |
&Apache::lonnet::chatsend(&Apache::lonfeedback::clear_out_html($env{'form.newchat'}),$env{'form.anonymous'},$group); |
} |
} |
# --------------------------------------------------- Print login screen header |
# --------------------------------------------------- Print login screen header |
my $latexHelp = Apache::loncommon::helpLatexCheatsheet(); |
my $latexHelp = Apache::loncommon::helpLatexCheatsheet(undef,undef,1); |
my %loaditems = (onload => 'this.document.chatentry.newchat.focus();'); |
my %loaditems = (onload => 'this.document.chatentry.newchat.focus();'); |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Chat',undef, |
&Apache::loncommon::start_page('Chat Room',undef, |
{'only_body' => 1, |
{'only_body' => 1, |
'add_entries' => \%loaditems,}); |
'add_entries' => \%loaditems,}); |
my $end_page = &Apache::loncommon::end_page(); |
my $end_page = &Apache::loncommon::end_page(); |
|
my %lt = &Apache::lonlocal::texthash( |
|
anon => 'Post Anonymous', |
|
post => 'Post', |
|
); |
$r->print(<<ENDDOCUMENT); |
$r->print(<<ENDDOCUMENT); |
$start_page |
$start_page |
<form method="post" name="chatentry"> |
<form method="post" name="chatentry"> |
$latexHelp |
$latexHelp |
<input type="text" size="60" name="newchat"> |
<input type="text" size="60" name="newchat"> |
<input value="Post Anonymous" name="anonymous" type="submit"> |
<input value="$lt{'anon'}" name="anonymous" type="submit"> |
<input value="Post" name="newentry" type="submit"> |
<input value="$lt{'post'}" name="newentry" type="submit"> |
$group_elem |
$group_elem |
</form> |
</form> |
$end_page |
$end_page |