version 1.153, 2005/06/06 02:29:46
|
version 1.159, 2005/08/16 16:36:08
|
Line 84 sub menubuttons {
|
Line 84 sub menubuttons {
|
my $docs=''; |
my $docs=''; |
my $escurl=&Apache::lonnet::escape(&Apache::lonenc::check_encrypt($env{'request.noversionuri'})); |
my $escurl=&Apache::lonnet::escape(&Apache::lonenc::check_encrypt($env{'request.noversionuri'})); |
my $escsymb=&Apache::lonnet::escape(&Apache::lonenc::check_encrypt($env{'request.symb'})); |
my $escsymb=&Apache::lonnet::escape(&Apache::lonenc::check_encrypt($env{'request.symb'})); |
|
my $face= 'face="Arial,Helvetica,sans-serif"'; |
if ($env{'request.state'} eq 'construct') { |
if ($env{'request.state'} eq 'construct') { |
if (($env{'request.noversionuri'} eq '') || (!defined($env{'request.noversionuri'}))) { |
if (($env{'request.noversionuri'} eq '') || (!defined($env{'request.noversionuri'}))) { |
my $returnurl = $env{'request.filename'}; |
my $returnurl = $env{'request.filename'}; |
Line 106 ENDNAV
|
Line 107 ENDNAV
|
($env{'request.noversionuri'}!~/^\/adm\/.*\/(smppg|bulletinboard|aboutme)(\?|$)/)) { |
($env{'request.noversionuri'}!~/^\/adm\/.*\/(smppg|bulletinboard|aboutme)(\?|$)/)) { |
my $escreload=&Apache::lonnet::escape('return:'); |
my $escreload=&Apache::lonnet::escape('return:'); |
$reloadlink=(<<ENDRELOAD); |
$reloadlink=(<<ENDRELOAD); |
<a href="/adm/flip?postdata=$escreload" target="_top"><font color="$font">$lt{'ret'}</font></a> |
<a href="/adm/flip?postdata=$escreload" target="_top"><font $face color="$font">$lt{'ret'}</font></a> |
ENDRELOAD |
ENDRELOAD |
} |
} |
if (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) { |
if (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) { |
$docs=(<<ENDDOCS); |
$docs=(<<ENDDOCS); |
<a href="/adm/coursedocs" target="_top"><font color="$font">$lt{'docs'}</font></a> |
<a href="/adm/coursedocs" target="_top"><font $face color="$font">$lt{'docs'}</font></a> |
ENDDOCS |
ENDDOCS |
} |
} |
} |
} |
Line 124 $utility
|
Line 125 $utility
|
</script> |
</script> |
<a href="/adm/menu" target="_top">$lt{'main'}</a> |
<a href="/adm/menu" target="_top">$lt{'main'}</a> |
$reloadlink $navmaps $docs |
$reloadlink $navmaps $docs |
<a href="/adm/roles" target="_top"><font color="$font">$lt{'roles'}</font></a> |
<a href="/adm/roles" target="_top"><font $face color="$font">$lt{'roles'}</font></a> |
<a href="/adm/logout" target="_top"><font color="$font">$lt{'exit'}</font></a> |
<a href="/adm/logout" target="_top"><font $face color="$font">$lt{'exit'}</font></a> |
<br /> |
<br /> |
<script type="text/javascript"> |
<script type="text/javascript"> |
// END LON-CAPA Internal |
// END LON-CAPA Internal |
Line 157 ENDMAINMENU
|
Line 158 ENDMAINMENU
|
my $alink=&Apache::loncommon::designparm($function.'.alink',$domain); |
my $alink=&Apache::loncommon::designparm($function.'.alink',$domain); |
my $vlink=&Apache::loncommon::designparm($function.'.vlink',$domain); |
my $vlink=&Apache::loncommon::designparm($function.'.vlink',$domain); |
my $sidebg=&Apache::loncommon::designparm($function.'.sidebg',$domain); |
my $sidebg=&Apache::loncommon::designparm($function.'.sidebg',$domain); |
|
if ($env{'user.name'} eq 'public' && $env{'user.domain'} eq 'public') { |
|
my $logo=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/minilogo.gif"); |
|
return (<<ENDINLINEMENU); |
|
<font face="Arial,Helvetica,sans-serif"> |
|
<table bgcolor="$pgbg" width="100%" border="0" cellpadding="1" cellspacing="1"> |
|
<tr> |
|
<td bgcolor="$tabbg"> |
|
<a href="/adm/logout" target="_top"><font color="$font">$lt{'exit'}</font></a> |
|
</td> |
|
<td align="right" bgcolor="$tabbg"> |
|
<img align="right" src="$logo" alt="Logo" /> |
|
<b>LON-CAPA</b> |
|
</td> |
|
</tr> |
|
</table> |
|
</font> |
|
ENDINLINEMENU |
|
} |
# Do we have a NAV link? |
# Do we have a NAV link? |
if ($env{'request.course.id'}) { |
if ($env{'request.course.id'}) { |
my $link='/adm/navmaps?postdata='.$escurl.'&postsymb='. |
my $link='/adm/navmaps?postdata='.$escurl.'&postsymb='. |
Line 166 ENDMAINMENU
|
Line 185 ENDMAINMENU
|
} |
} |
$navmaps=(<<ENDNAV); |
$navmaps=(<<ENDNAV); |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<a href="$link"><font color="$font">$lt{'nav'}</font></a></td> |
<a href="$link" target="_top"><font $face color="$font">$lt{'nav'}</font></a></td> |
ENDNAV |
ENDNAV |
if (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) { |
if (&Apache::lonnet::allowed('mdc',$env{'request.course.id'})) { |
$docs=(<<ENDDOCS); |
$docs=(<<ENDDOCS); |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<a href="/adm/coursedocs"><font color="$font">$lt{'docs'}</font></a></td> |
<a href="/adm/coursedocs"><font $face color="$font">$lt{'docs'}</font></a></td> |
ENDDOCS |
ENDDOCS |
} |
} |
if ( |
if ( |
Line 187 ENDDOCS
|
Line 206 ENDDOCS
|
my $escreload=&Apache::lonnet::escape('return:'); |
my $escreload=&Apache::lonnet::escape('return:'); |
$reloadlink=(<<ENDRELOAD); |
$reloadlink=(<<ENDRELOAD); |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<a href="/adm/flip?postdata=$escreload" target="_top"><font color="$font">$lt{'ret'}</font></a></td> |
<a href="/adm/flip?postdata=$escreload" target="_top"><font $face color="$font">$lt{'ret'}</font></a></td> |
ENDRELOAD |
ENDRELOAD |
} |
} |
} |
} |
Line 198 ENDRELOAD
|
Line 217 ENDRELOAD
|
my $form=&serverform(); |
my $form=&serverform(); |
my $utility=&utilityfunctions(); |
my $utility=&utilityfunctions(); |
my $logo=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/minilogo.gif"); |
my $logo=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/minilogo.gif"); |
|
|
return (<<ENDINLINEMENU); |
return (<<ENDINLINEMENU); |
<script type="text/javascript"> |
<script type="text/javascript"> |
// BEGIN LON-CAPA Internal |
// BEGIN LON-CAPA Internal |
Line 205 ENDRELOAD
|
Line 225 ENDRELOAD
|
$utility |
$utility |
// ]]> |
// ]]> |
</script> |
</script> |
<font face="Arial,Helvetica,sans-serif"><table bgcolor="$pgbg" width="100%" border="0" cellpadding="1" cellspacing="1"> |
<table bgcolor="$pgbg" width="100%" border="0" cellpadding="1" cellspacing="1"> |
<tr> |
<tr> |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<a href="/adm/menu" target="_top"><font color="$font">$lt{'main'}</font></a> |
<a href="/adm/menu" target="_top"><font $face color="$font">$lt{'main'}</font></a> |
</td> |
</td> |
$reloadlink |
$reloadlink |
$navmaps |
$navmaps |
$docs |
$docs |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<a href="/adm/remote?action=launch&url=$escurl" target="_top"> |
<a href="/adm/remote?action=launch&url=$escurl" target="_top"> |
<font color="$font">$lt{'launch'}</font></a></td> |
<font $face color="$font">$lt{'launch'}</font></a></td> |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<a href="/adm/roles" target="_top"><font color="$font">$lt{'roles'}</font></a> |
<a href="/adm/roles" target="_top"><font $face color="$font">$lt{'roles'}</font></a> |
</td> |
</td> |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<a href="/adm/logout" target="_top"><font color="$font">$lt{'exit'}</font></a> |
<a href="/adm/logout" target="_top"><font $face color="$font">$lt{'exit'}</font></a> |
</td> |
</td> |
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<img align="right" src="$logo" /> |
<img align="right" src="$logo" alt="Logo" /> |
<b>LON-CAPA</b></td> |
<b>LON-CAPA</b></td> |
$form |
$form |
</tr> |
</tr> |
</table> |
</table> |
</font> |
|
<script type="text/javascript"> |
<script type="text/javascript"> |
// END LON-CAPA Internal |
// END LON-CAPA Internal |
</script> |
</script> |
Line 301 sub innerregister {
|
Line 320 sub innerregister {
|
|
|
my $newmail=''; |
my $newmail=''; |
if ($noremote) { |
if ($noremote) { |
$newmail='<font face="Arial,Helvetica,sans-serif"><table bgcolor="'.$pgbg.'" border="0" cellspacing="1" cellpadding="1" width="100%"><tr><td bgcolor="'.$tabbg.'">'; |
$newmail='<table bgcolor="'.$pgbg.'" border="0" cellspacing="1" cellpadding="1" width="100%"><tr><td bgcolor="'.$tabbg.'"><font face="Arial,Helvetica,sans-serif">'; |
} |
} |
if (($textual) && ($env{'request.symb'}) && ($env{'request.course.id'})) { |
if (($textual) && ($env{'request.symb'}) && ($env{'request.course.id'})) { |
my ($mapurl,$rid,$resurl)= |
my ($mapurl,$rid,$resurl)= |
Line 326 sub innerregister {
|
Line 345 sub innerregister {
|
$newmail = $titletable; |
$newmail = $titletable; |
} else { |
} else { |
if ($noremote) { |
if ($noremote) { |
$newmail.='</td></tr></table></font>'; |
$newmail.='</font></td></tr></table>'; |
} |
} |
} |
} |
my $timesync=($textual?'':'swmenu.syncclock(1000*'.time.');'); |
my $timesync=($textual?'':'swmenu.syncclock(1000*'.time.');'); |
Line 345 sub innerregister {
|
Line 364 sub innerregister {
|
my $hwkadd=''; |
my $hwkadd=''; |
if ($env{'request.symb'} ne '' && |
if ($env{'request.symb'} ne '' && |
$env{'request.filename'}=~/\.(problem|exam|quiz|assess|survey|form)$/) { |
$env{'request.filename'}=~/\.(problem|exam|quiz|assess|survey|form)$/) { |
if (&Apache::lonnet::allowed('vgr',$crs)) { |
|
$hwkadd.=&switch('','',7,1,'subm.gif','view sub-[_1]','missions[_1]', |
|
"gocmd('/adm/grades','submission')", |
|
'View user submissions for this assessment resource'); |
|
} |
|
if (&Apache::lonnet::allowed('mgr',$crs)) { |
if (&Apache::lonnet::allowed('mgr',$crs)) { |
$hwkadd.=&switch('','',7,2,'pgrd.gif','problem[_1]','grades[_3]', |
$hwkadd.=&switch('','',7,2,'pgrd.gif','problem[_1]','grades[_3]', |
"gocmd('/adm/grades','gradingmenu')", |
"gocmd('/adm/grades','gradingmenu')", |
'Modify user grades for this assessment resource'); |
'Modify user grades for this assessment resource'); |
|
} elsif (&Apache::lonnet::allowed('vgr',$crs)) { |
|
$hwkadd.=&switch('','',7,2,'subm.gif','view sub-[_1]','missions[_1]', |
|
"gocmd('/adm/grades','submission')", |
|
'View user submissions for this assessment resource'); |
} |
} |
} |
} |
if ($env{'request.symb'} ne '' && |
if ($env{'request.symb'} ne '' && |
Line 419 sub innerregister {
|
Line 437 sub innerregister {
|
('','',6,1,'cstr.gif','edit[_1]','resource[_2]', |
('','',6,1,'cstr.gif','edit[_1]','resource[_2]', |
"go('".$cfile."');","Edit this resource"); |
"go('".$cfile."');","Edit this resource"); |
} elsif ($editbutton eq '') { |
} elsif ($editbutton eq '') { |
$editbutton=&clear(6,1); |
$editbutton=&switch('','',6,1,'port.gif', |
|
'port-[_1]','folio[_1]', |
|
"go('/adm/portfolio');", |
|
"Enter my portfolio space"); |
} |
} |
} |
} |
### |
### |
Line 545 var swmenu=null;
|
Line 566 var swmenu=null;
|
swmenu.switchbutton |
swmenu.switchbutton |
(3,1,'reload.gif','return','location','go(reloadURL)','Return to the last known location in the course sequence'); |
(3,1,'reload.gif','return','location','go(reloadURL)','Return to the last known location in the course sequence'); |
} |
} |
swmenu.clearbut(7,1); |
|
swmenu.clearbut(7,2); |
swmenu.clearbut(7,2); |
swmenu.clearbut(7,3); |
swmenu.clearbut(7,3); |
swmenu.menucltim=swmenu.setTimeout( |
swmenu.menucltim=swmenu.setTimeout( |
Line 1123 ENDUTILITY
|
Line 1143 ENDUTILITY
|
|
|
sub serverform { |
sub serverform { |
return(<<ENDSERVERFORM); |
return(<<ENDSERVERFORM); |
|
|
<form name="server" action="/adm/logout" method="post" target="_top"> |
<form name="server" action="/adm/logout" method="post" target="_top"> |
<input type="hidden" name="postdata" value="none" /> |
<input type="hidden" name="postdata" value="none" /> |
<input type="hidden" name="command" value="none" /> |
<input type="hidden" name="command" value="none" /> |