version 1.371, 2009/06/09 18:42:42
|
version 1.372, 2009/06/17 17:15:00
|
Line 2502 sub changewarning {
|
Line 2502 sub changewarning {
|
$message='Changes will become active for your current session after [_1], or the next time you log in.'; |
$message='Changes will become active for your current session after [_1], or the next time you log in.'; |
} |
} |
$r->print("\n\n". |
$r->print("\n\n". |
'<script type="text/javascript">'. |
'<script type="text/javascript">'."\n". |
'// <![CDATA['. |
'// <![CDATA['."\n". |
'function reinit(tf) { tf.submit();'.$postexec.' }'. |
'function reinit(tf) { tf.submit();'.$postexec.' }'."\n". |
'// ]]>'. |
'// ]]>'."\n". |
'</script>'."\n". |
'</script>'."\n". |
'<form name="reinitform" method="post" action="/adm/roles" target="loncapaclient">'. |
'<form name="reinitform" method="post" action="/adm/coursedocs" target="loncapaclient">'. |
'<input type="hidden" name="orgurl" value="'.$url. |
'<input type="hidden" name="orgurl" value="'.$url. |
'" /><input type="hidden" name="selectrole" value="1" /><h3><span class="LC_warning">'. |
'" /><input type="hidden" name="selectrole" value="1" /><p class="LC_warning">'. |
&mt($message,' <input type="hidden" name="'. |
&mt($message,' <input type="hidden" name="'. |
$env{'request.role'}.'" value="1" /><input type="button" value="'. |
$env{'request.role'}.'" value="1" /><input type="button" value="'. |
&mt('re-initializing '.$course_type).'" onclick="reinit(this.form)" />'). |
&mt('re-initializing '.$course_type).'" onclick="reinit(this.form)" />'). |
$help{'Caching'}.'</span></h3></form>'."\n\n"); |
$help{'Caching'}.'</p></form>'."\n\n"); |
} |
} |
|
|
|
|
Line 2670 sub handler {
|
Line 2670 sub handler {
|
} |
} |
# -------------------------------------------------------------------- Body tag |
# -------------------------------------------------------------------- Body tag |
$script = '<script type="text/javascript">'."\n" |
$script = '<script type="text/javascript">'."\n" |
.'// <![CDATA[' |
.'// <![CDATA['."\n" |
.$script |
.$script."\n" |
.'// ]]>' |
.'// ]]>'."\n" |
."\n".'</script>'; |
.'</script>'."\n"; |
my $brcrum = [{href=>"/adm/createuser",text=>"$type Documents"}]; |
my $brcrum = [{href=>"/adm/createuser",text=>"$type Documents"}]; |
$r->print(&Apache::loncommon::start_page("$type Documents", $script, |
$r->print(&Apache::loncommon::start_page("$type Documents", $script, |
{'force_register' => $showdoc, |
{'force_register' => $showdoc, |
Line 2951 HIDDENFORM
|
Line 2951 HIDDENFORM
|
} |
} |
my $postexec=''; |
my $postexec=''; |
if ($folder eq 'default') { |
if ($folder eq 'default') { |
$r->print('<script type="text/javascript">' |
$r->print('<script type="text/javascript">'."\n" |
.'// <![CDATA[' |
.'// <![CDATA['."\n" |
.'this.window.name="loncapaclient";' |
.'this.window.name="loncapaclient";'."\n" |
.'// ]]>' |
.'// ]]>'."\n" |
.'</script>' |
.'</script>'."\n" |
); |
); |
} else { |
} else { |
#$postexec='self.close();'; |
#$postexec='self.close();'; |