version 1.10, 2004/08/14 01:14:58
|
version 1.14, 2004/11/08 22:47:43
|
Line 76 sub display_help_banner {
|
Line 76 sub display_help_banner {
|
my $vlinkcolor = &Apache::loncommon::designparm($function.'.vlink'); |
my $vlinkcolor = &Apache::loncommon::designparm($function.'.vlink'); |
my $pagecolor = &Apache::loncommon::designparm($function.'.pgbg'); |
my $pagecolor = &Apache::loncommon::designparm($function.'.pgbg'); |
my $tablecolor = &Apache::loncommon::designparm($function.'.tabbg'); |
my $tablecolor = &Apache::loncommon::designparm($function.'.tabbg'); |
|
my $location=&Apache::loncommon::lonhttpdurl("/adm"); |
if (($tablecolor eq '') || ($tablecolor eq '#FFFFFF')) { |
if (($tablecolor eq '') || ($tablecolor eq '#FFFFFF')) { |
$tablecolor = '#CCCCFF'; |
$tablecolor = '#CCCCFF'; |
} |
} |
Line 105 END
|
Line 105 END
|
<tr height="50"> |
<tr height="50"> |
<td width='5'> </td> |
<td width='5'> </td> |
<td> |
<td> |
<fieldset><legend><img src="/adm/lonIcons/minilogo.gif" height='20' width='29' valign='bottom' /> <b><font size="+1">LON-CAPA help/support</font></b></legend> |
<fieldset><legend><img src="$location/lonIcons/minilogo.gif" height='20' width='29' valign='bottom' /> <b><font size="+1">LON-CAPA help/support</font></b></legend> |
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> |
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000"> |
<tr> |
<tr> |
<td> |
<td> |
Line 123 END
|
Line 123 END
|
$r->print(" |
$r->print(" |
<td align=\"center\"> <b><a href=\"$component_url\" target=\"bodyframe\">"); |
<td align=\"center\"> <b><a href=\"$component_url\" target=\"bodyframe\">"); |
} elsif ($ENV{'user.adv'}) { |
} elsif ($ENV{'user.adv'}) { |
$r->print('<td align="center"> <b><a href="/adm/help/nohelptopic.html" target="bodyframe">'); |
$r->print('<td align="center"> <b><a href="$location/help/nohelptopic.html" target="bodyframe">'); |
} |
} |
$r->print(' |
$r->print(' |
<image src="/adm/help/gif/smallHelp.gif" border="0" alt="(Topic help)" valign="middle" /> Topic help</a></b> </td>'); |
<img src="$location/help/gif/smallHelp.gif" border="0" alt="(Topic help)" valign="middle" /> Topic help</a></b> </td>'); |
} |
} |
if ($requestmail) { |
if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) { |
$r->print(' |
$r->print(' |
<td align="center"> <b><a href="/adm/support?origurl='.&Apache::lonnet::escape($origurl).'&function='.$function.'" target="bodyframe"><image src="/adm/lonIcons/helpdesk.gif" border="0" alt="(Ask helpdesk)" valign="middle" /> Ask helpdesk</a></b> </td>'); |
<td align="center"> <b><a href="/adm/support?origurl='.&Apache::lonnet::escape($origurl).'&function='.$function.'" target="bodyframe"><img src="$location/lonIcons/helpdesk.gif" border="0" alt="(Ask helpdesk)" valign="middle" /> Ask helpdesk</a></b> </td>'); |
} |
} |
if ($faq && $ENV{'user.adv'}) { |
if ($faq && $ENV{'user.adv'}) { |
$r->print(<<END) |
$r->print(<<END) |
<td align="center"> |
<td align="center"> |
<b><a href="$faqbaseurl/fom/cache/$faq.html" target="bodyframe"><image src="/adm/lonMisc/smallFAQ.gif" border="0" alt="(FAQ)" valign="middle" /> FAQ</a></b> |
<b><a href="$faqbaseurl/fom/cache/$faq.html" target="bodyframe"><img src="$location/lonMisc/smallFAQ.gif" border="0" alt="(FAQ)" valign="middle" /> FAQ</a></b> |
</td> |
</td> |
END |
END |
} |
} |
if ($ENV{'user.adv'}) { |
if ($ENV{'user.adv'}) { |
$r->print(<<END) |
$r->print(<<END) |
<td align="center"> <b><a href="$bugurl" target="bodyframe"><image src="/adm/lonMisc/smallBug.gif" border="0" alt="(Report a bug)" valign="middle" /> Report a bug</a> </b></td> |
<td align="center"> <b><a href="$bugurl" target="bodyframe"><img src="$location/lonMisc/smallBug.gif" border="0" alt="(Report a bug)" valign="middle" /> Report a bug</a> </b></td> |
END |
END |
} |
} |
if ($stayOnPage) { |
if ($stayOnPage) { |
$r->print(<<END); |
$r->print(<<END); |
<td align="center"> <b><a href="$origurl" target="_top"><image src="/adm/lonIcons/move_up.gif" border="0" alt="(Return to last location)" valign="middle" /> Return to last location</a></b> </td> |
<td align="center"> <b><a href="$origurl" target="_top"><img src="$location/lonIcons/move_up.gif" border="0" alt="(Return to last location)" valign="middle" /> Return to last location</a></b> </td> |
END |
END |
} else { |
} else { |
$r->print(<<END); |
$r->print(<<END); |
<td align="center"> <b><a href="javascript:window.close()" target="_top"><image src="/adm/lonIcons/closepage.gif" border="0" alt="(Close window)" valign="bottom" /> Close</a></b> </td> |
<td align="center"> <b><a href="javascript:window.close()" target="_top"><img src="$location/lonIcons/closepage.gif" border="0" alt="(Close window)" valign="bottom" /> Close</a></b> </td> |
END |
END |
} |
} |
$r->print(<<END); |
$r->print(<<END); |
Line 209 sub display_help_mainpage {
|
Line 209 sub display_help_mainpage {
|
$bodytag |
$bodytag |
END |
END |
$r->print($lt{'chen'}); |
$r->print($lt{'chen'}); |
if ($requestmail) { |
if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) { |
$r->print(', '.$lt{'orto'}); |
$r->print(', '.$lt{'orto'}); |
} else { |
} else { |
$r->print("."); |
$r->print("."); |
Line 231 END
|
Line 231 END
|
} |
} |
} |
} |
} |
} |
if ($requestmail) { |
if ($requestmail =~ m/^[^\@]+\@[^\@]+$/) { |
$r->print(" |
$r->print(" |
<ul> |
<ul> |
<li><a href=\"/adm/support?origurl=".&Apache::lonnet::escape($origurl)."&function=$function\">$lt{'cont'}</a></li> |
<li><a href=\"/adm/support?origurl=".&Apache::lonnet::escape($origurl)."&function=$function\">$lt{'cont'}</a></li> |
</ul> |
</ul> |
<p>$lt{'suhr'}</p> |
<p>$lt{'suhr'}</p> |
<ul> |
|
"); |
"); |
} |
} |
if ($faqbaseurl && $ENV{'user.adv'}) { |
if ($faqbaseurl && $ENV{'user.adv'}) { |
Line 245 END
|
Line 244 END
|
$faq = '1'; |
$faq = '1'; |
} |
} |
$r->print(" |
$r->print(" |
|
<ul> |
<li><a href=\"$faqbaseurl/fom/cache/$faq.html\">$lt{'faqo'}</a></li> |
<li><a href=\"$faqbaseurl/fom/cache/$faq.html\">$lt{'faqo'}</a></li> |
</ul> |
</ul> |
<p>$lt{'tfaq'}</p> |
<p>$lt{'tfaq'}</p> |