version 1.42, 2023/07/25 04:58:49
|
version 1.45, 2025/02/07 20:46:01
|
Line 129 ENDCLOSE
|
Line 129 ENDCLOSE
|
my $course_type = &Apache::loncommon::course_type(); |
my $course_type = &Apache::loncommon::course_type(); |
if (($course_type eq 'Placement') && (!$env{'request.role.adv'})) { |
if (($course_type eq 'Placement') && (!$env{'request.role.adv'})) { |
my $furl = &Apache::lonpageflip::first_accessible_resource(); |
my $furl = &Apache::lonpageflip::first_accessible_resource(); |
if ($result eq 'update') { |
if (($result eq 'main') || ($result eq 'both')) { |
&Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); |
&Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); |
$r->print($closure.&Apache::loncommon::end_page()); |
$r->print($closure.&Apache::loncommon::end_page()); |
return OK; |
return OK; |
Line 160 ENDCLOSE
|
Line 160 ENDCLOSE
|
my $navmap = Apache::lonnavmaps::navmap->new(); |
my $navmap = Apache::lonnavmaps::navmap->new(); |
|
|
if (!defined($navmap)) { |
if (!defined($navmap)) { |
if ($result eq 'update') { |
if (($result eq 'main') || ($result eq 'both')) { |
&Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); |
&Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); |
$r->print($closure.&Apache::loncommon::end_page()); |
$r->print($closure.&Apache::loncommon::end_page()); |
} |
} |
Line 170 ENDCLOSE
|
Line 170 ENDCLOSE
|
return HTTP_NOT_ACCEPTABLE; |
return HTTP_NOT_ACCEPTABLE; |
} |
} |
|
|
if ($result eq 'update') { |
if (($result eq 'main') || ($result eq 'both')) { |
$r->rflush(); |
$r->rflush(); |
&Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); |
&Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); |
$r->print($closure); |
$r->print($closure); |
Line 183 ENDCLOSE
|
Line 183 ENDCLOSE
|
} |
} |
|
|
&startContentScreen($r,'navmaps',$course_type); |
&startContentScreen($r,'navmaps',$course_type); |
unless ($result eq 'update') { |
unless (($result eq 'main') || ($result eq 'both')) { |
$r->rflush(); |
$r->rflush(); |
} |
} |
|
|
Line 317 ENDCLOSE
|
Line 317 ENDCLOSE
|
'<form name="sortForm" action=""> |
'<form name="sortForm" action=""> |
<span class="LC_nobreak"> |
<span class="LC_nobreak"> |
<input type="hidden" name="showOnlyHomework" value="'.$env{'form.showOnlyHomework'}.'" /> |
<input type="hidden" name="showOnlyHomework" value="'.$env{'form.showOnlyHomework'}.'" /> |
'.&mt('Sort by:').' |
<label for="LC_navmap_sort">'.&mt('Sort by:').'</label> |
<select name="sort" onchange="document.sortForm.submit()"> |
<select name="sort" id="LC_navmap_sort"> |
<option value="default"'.$selected{'default'}.'>'.&mt('Default').'</option> |
<option value="default"'.$selected{'default'}.'>'.&mt('Default').'</option> |
<option value="title"'.$selected{'title'}.'>'.&mt('Title').'</option> |
<option value="title"'.$selected{'title'}.'>'.&mt('Title').'</option> |
<option value="duedate"'.$selected{'duedate'}.'>'.&mt('Due Date').'</option> |
<option value="duedate"'.$selected{'duedate'}.'>'.&mt('Due Date').'</option> |
<option value="discussion"'.$selected{'discussion'}.'>'.&mt('Has New Discussion').'</option> |
<option value="discussion"'.$selected{'discussion'}.'>'.&mt('Has New Discussion').'</option> |
</select> |
</select> |
|
<input type="submit" value="'.&mt('Go').'" /> |
</span> |
</span> |
</form>'); |
</form>'); |
} |
} |
Line 371 sub startpage {
|
Line 372 sub startpage {
|
no_mt => 1}, |
no_mt => 1}, |
]; |
]; |
my $args = {'bread_crumbs' => $brcrum}; |
my $args = {'bread_crumbs' => $brcrum}; |
my $start_page = &Apache::loncommon::start_page($title,undef,$args); |
$r->print(&Apache::loncommon::start_page($title,undef,$args). |
$r->print($start_page. |
|
'<script type="text/javascript">'."\n". |
'<script type="text/javascript">'."\n". |
'// <![CDATA['."\n". |
'// <![CDATA['."\n". |
'window.focus();'."\n". |
'window.focus();'."\n". |