version 1.80.8.1, 2012/05/01 22:51:12
|
version 1.80.8.3, 2013/12/13 14:48:05
|
Line 468 sub handler {
|
Line 468 sub handler {
|
'explain' => |
'explain' => |
'You have reached the end of the sequence of materials.', |
'You have reached the end of the sequence of materials.', |
'back' => 'Go Back', |
'back' => 'Go Back', |
'nav' => 'Navigate Course Content', |
'nav' => 'Course Contents', |
'wherenext' => |
'wherenext' => |
'There are several possibilities of where to go next', |
'There are several possibilities of where to go next', |
'pick' => |
'pick' => |
'Please click on the the resource you intend to access', |
'Please click on the the resource you intend to access', |
'titleheader' => 'Title', |
'titleheader' => 'Title', |
'type' => 'Type'); |
'type' => 'Type'); |
|
if (&Apache::loncommon::course_type() eq 'Community') { |
|
$lt{'nav'} = &mt('Community Contents'); |
|
} |
if ($#possibilities>0) { |
if ($#possibilities>0) { |
my $start_page= |
my $start_page= |
&Apache::loncommon::start_page('Multiple Resources'); |
&Apache::loncommon::start_page('Multiple Resources'); |
Line 500 ENDSTART
|
Line 503 ENDSTART
|
} |
} |
$r->print('</table>'); |
$r->print('</table>'); |
} else { |
} else { |
my $start_page= |
$r->print( |
&Apache::loncommon::start_page('No Resource'); |
&Apache::loncommon::start_page('No Resource') |
$r->print(<<ENDNONE); |
.'<h2>'.$lt{'title'}.'</h2>' |
$start_page |
.'<p>'.$lt{'explain'}.'</p>'); |
<h3>$lt{'title'}</h3> |
|
<p>$lt{'explain'}</p> |
|
ENDNONE |
|
} |
} |
$r->print(<<ENDMENU); |
$r->print( |
<ul> |
&Apache::lonhtmlcommon::actionbox( |
<li><a href="/adm/flip?postdata=return:">$lt{'back'}</a></li> |
['<a href="/adm/flip?postdata=return:">'.$lt{'back'}.'</a></li>', |
<li><a href="/adm/navmaps">$lt{'nav'}</a></li> |
'<a href="/adm/navmaps">'.$lt{'nav'}.'</a></li>' |
</ul> |
]) |
ENDMENU |
.&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
|
return OK; |
return OK; |
} |
} |
} else { |
} else { |
Line 525 ENDMENU
|
Line 524 ENDMENU
|
} else { |
} else { |
# ---------------------------------------- No, could not determine where we are |
# ---------------------------------------- No, could not determine where we are |
$r->internal_redirect('/adm/ambiguous'); |
$r->internal_redirect('/adm/ambiguous'); |
|
return OK; |
} |
} |
} else { |
} else { |
# -------------------------- Class was not initialized or page fliped strangely |
# -------------------------- Class was not initialized or page fliped strangely |