version 1.99, 2003/11/10 15:15:08
|
version 1.103, 2003/11/21 21:38:50
|
Line 76 sub menubuttons {
|
Line 76 sub menubuttons {
|
if ($ENV{'browser.interface'} eq 'textual') { |
if ($ENV{'browser.interface'} eq 'textual') { |
# Textual display only |
# Textual display only |
my %lt=&initlittle(); |
my %lt=&initlittle(); |
|
$pgbg='#FFFFFF'; |
|
$tabbg='#FFFFFF'; |
|
$font='#000000'; |
if ($ENV{'request.course.id'}) { |
if ($ENV{'request.course.id'}) { |
$navmaps=(<<ENDNAV); |
$navmaps=(<<ENDNAV); |
<a href="/adm/navmaps?postdata=$escurl&postsymb=$escsymb" target="_top">$lt{'nav'}</a> |
<a href="/adm/navmaps?postdata=$escurl&postsymb=$escsymb" target="_top">$lt{'nav'}</a> |
Line 255 sub innerregister {
|
Line 258 sub innerregister {
|
$newmail.='</td></tr></table></font>'; |
$newmail.='</td></tr></table></font>'; |
} |
} |
my $timesync=($textual?'':'swmenu.syncclock(1000*'.time.');'); |
my $timesync=($textual?'':'swmenu.syncclock(1000*'.time.');'); |
my $tablestart=($noremote?'<font face="Arial,Helvetica,sans-serif"><table bgcolor="'.$pgbg.'" border="0" cellspacing="1" cellpadding="1" width="100%">':''); |
my $tablestart=($noremote?'<font face="Arial,Helvetica,sans-serif"><table bgcolor="'.$pgbg.'" border="0" cellspacing="1" cellpadding="1" width="100%">':'').($textinter?'<br /><a href="#content">'.&mt('Skip to Content').'</a><br />':''); |
my $tableend=($noremote?'</table></font>':''); |
my $tableend=($noremote?'</table></font>':'').($textinter?'<a name="content" />':''); |
# ============================================================================= |
# ============================================================================= |
# ============================ This is for URLs that actually can be registered |
# ============================ This is for URLs that actually can be registered |
if (($ENV{'request.noversionuri'}!~/^\/(res\/)*adm\//) || ($forcereg)) { |
if (($ENV{'request.noversionuri'}!~/^\/(res\/)*adm\//) || ($forcereg)) { |
Line 375 ENDREALRES
|
Line 378 ENDREALRES
|
# Registered, textual output |
# Registered, textual output |
my $utility=&utilityfunctions(); |
my $utility=&utilityfunctions(); |
my $form=&serverform(); |
my $form=&serverform(); |
my $inlinebuttons= |
my $inlinebuttons=''; |
|
|
|
if ($ENV{'browser.interface'} eq 'textual') { |
|
$inlinebuttons= |
join('',map { (defined($_)?$_:'') } @inlineremote); |
join('',map { (defined($_)?$_:'') } @inlineremote); |
|
} else { |
|
$inlinebuttons=(<<ENDINLINE); |
|
<tr><td>$inlineremote[21]</td><td> </td><td>$inlineremote[23]</td></tr> |
|
<tr><td>$inlineremote[61]</td><td>$inlineremote[62]</td><td>$inlineremote[63]</td></tr> |
|
<tr><td>$inlineremote[71]</td><td>$inlineremote[72]</td><td>$inlineremote[73]</td></tr> |
|
<tr><td>$inlineremote[81]</td><td>$inlineremote[82]</td><td>$inlineremote[83]</td></tr> |
|
<tr><td>$inlineremote[91]</td><td>$inlineremote[92]</td><td>$inlineremote[93]</td></tr> |
|
ENDINLINE |
|
} |
$result =(<<ENDREGTEXT); |
$result =(<<ENDREGTEXT); |
<script> |
<script> |
// BEGIN LON-CAPA Internal |
// BEGIN LON-CAPA Internal |
Line 646 sub switch {
|
Line 661 sub switch {
|
'<a href="javascript:'.$act.';">'.$text.'</a>'; |
'<a href="javascript:'.$act.';">'.$text.'</a>'; |
} else { |
} else { |
$inlineremote[10*$row+$col]="\n<br />". |
$inlineremote[10*$row+$col]="\n<br />". |
'<a href="javascript:'.$act.';">'.$desc.'</a>'; |
$desc.' <a href="javascript:'.$act.';">'.$text.'</a>'; |
} |
} |
} else { |
} else { |
# Inline Remote |
# Inline Remote |
Line 654 sub switch {
|
Line 669 sub switch {
|
my $text=$top.' '.$bot; |
my $text=$top.' '.$bot; |
$text=~s/\s*\-\s*//gs; |
$text=~s/\s*\-\s*//gs; |
my $pic= |
my $pic= |
'<img border="0" alt="'.$text.'" src="/res/adm/pages/'.$img.'" />'; |
'<img border="0" alt="'.$text.'" src="/res/adm/pages/'.$img.'" align="'. |
if ($nobreak==3) { |
($nobreak==3?'right':'left').'" />'; |
$inlineremote[10*$row+$col]="\n". |
if (($ENV{'browser.interface'} eq 'textual') || ($ENV{'browser.interface'} eq 'faketextual')) { |
'<td width="40%" align="right"><font color="'.$font.'" size="+1">'.$text. |
# Accessibility |
'</font></td><td width="10%" align="right" bgcolor="'.$tabbg.'">'. |
if ($nobreak==3) { |
'<a href="javascript:'.$act.';">'.$pic.'</a></td></tr>'; |
$inlineremote[10*$row+$col]="\n". |
} elsif ($nobreak) { |
'<td width="40%" align="right"><font color="'.$font.'" size="+1">'.$text. |
$inlineremote[10*$row+$col]="\n<tr>". |
'</font></td><td width="10%" align="right" bgcolor="'.$tabbg.'">'. |
'<td width="10%" align="left" bgcolor="'.$tabbg.'">'. |
'<a href="javascript:'.$act.';">'.$pic.'</a></td></tr>'; |
'<a href="javascript:'.$act.';">'.$pic. |
} elsif ($nobreak) { |
'</a></td><td width="40%" align="left"><font color="'.$font.'" size="+1">'.$text.'</font></td>'; |
$inlineremote[10*$row+$col]="\n<tr>". |
|
'<td width="10%" align="left" bgcolor="'.$tabbg.'">'. |
|
'<a href="javascript:'.$act.';">'.$pic. |
|
'</a></td><td width="40%" align="left"><font color="'.$font.'" size="+1">'.$text.'</font></td>'; |
|
} else { |
|
$inlineremote[10*$row+$col]="\n<tr>". |
|
'<td width="10%" align="left" bgcolor="'.$tabbg.'">'. |
|
'<a href="javascript:'.$act.';">'.$pic. |
|
'</a></td><td colspan="3"><font color="'.$font.'">'.$desc. |
|
'</font></td></tr>'; |
|
} |
} else { |
} else { |
$inlineremote[10*$row+$col]="\n<tr>". |
# Inline Menu |
'<td width="10%" align="left" bgcolor="'.$tabbg.'">'. |
$inlineremote[10*$row+$col]= |
'<a href="javascript:'.$act.';">'.$pic. |
'<a href="javascript:'.$act.';">'.$pic. |
'</a></td><td colspan="3"><font color="'.$font.'">'.$desc. |
'</a><font color="'.$font.'" size="2">'.$desc. |
'</font></td></tr>'; |
'</font>'; |
} |
} |
} |
} |
return ''; |
return ''; |
Line 866 function gocmd(url,cmd) {
|
Line 891 function gocmd(url,cmd) {
|
} |
} |
|
|
function catalog_info() { |
function catalog_info() { |
loncatinfo=window.open(window.location.pathname+'.meta',"LONcatInfo",'height=320,width=280,resizeable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
loncatinfo=window.open(window.location.pathname+'.meta',"LONcatInfo",'height=320,width=280,resizable=yes,scrollbars=yes,location=no,menubar=no,toolbar=no'); |
} |
} |
|
|
function chat_win() { |
function chat_win() { |
lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizeable=yes,location=no,menubar=no,toolbar=no'); |
lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizable=yes,location=no,menubar=no,toolbar=no'); |
} |
} |
ENDUTILITY |
ENDUTILITY |
} |
} |
Line 913 sub handler {
|
Line 938 sub handler {
|
$tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain); |
$tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain); |
$font=&Apache::loncommon::designparm($function.'.font',$domain); |
$font=&Apache::loncommon::designparm($function.'.font',$domain); |
# ---- Print the screen, pretent to be in text mode to generate text-based menu |
# ---- Print the screen, pretent to be in text mode to generate text-based menu |
unless ($ENV{'brower.interface'} eq 'textual') { |
unless ($ENV{'browser.interface'} eq 'textual') { |
|
$ENV{'browser.interface'}='faketextual'; |
$ENV{'environment.remote'}='off'; |
$ENV{'environment.remote'}='off'; |
} |
} |
my $utility=&utilityfunctions(); |
my $utility=&utilityfunctions(); |