version 1.26, 2010/11/27 22:43:32
|
version 1.27, 2010/11/28 00:04:10
|
Line 1906 sub handler {
|
Line 1906 sub handler {
|
} |
} |
|
|
$r->print(&print_header($uname,$udom,$javascript,\%loadentries,$title, |
$r->print(&print_header($uname,$udom,$javascript,\%loadentries,$title, |
$current_page,\@pages,\%names)); |
$current_page,\@pages,\%names)); |
|
|
if ($env{'form.phase'} eq 'three') { |
if (($env{'form.phase'} eq 'four') || ($env{'form.phase'} eq 'three')) { |
if ($env{'form.action'} eq 'upload_embedded') { |
if ($env{'form.phase'} eq 'four') { |
$r->print(&Apache::lonupload::phasethree($r,$fn,$uname,$udom,'testbank')); |
$r->print(&Apache::lonupload::phasefour($r,$fn,$uname,$udom,'testbank')); |
|
my $current_page = 0; |
|
my $js; |
|
&jscript_zero($webpath,\$js); |
|
$js = '<script type="text/javascript">'."\n$js\n".'</script>'; |
|
$r->print($js); |
|
&display_zero($r,$uname,$fn,$current_page,$webpath); |
|
} elsif ($env{'form.phase'} eq 'three') { |
|
if ($env{'form.action'} eq 'upload_embedded') { |
|
my ($result,$flag) = |
|
&Apache::lonupload::phasethree($r,$fn,$uname,$udom,'testbank'); |
|
$r->print($result); |
|
if ($flag eq 'modify_orightml') { |
|
undef($page_name); |
|
$r->print('<form name="testbankForm" method="post" action="/adm/testbank">'. |
|
&page_footer('',$uname,$fn).'</form>'); |
|
} |
|
} |
} |
} |
if ($badfile) { |
if ($badfile) { |
&file_error($r,$uname,$fn,$current_page,$webpath,$res); |
&file_error($r,$uname,$fn,$current_page,$webpath,$res); |
} else { |
} else { |
&display_zero ($r,$uname,$fn,$current_page,$webpath) if $page_name eq 'Welcome'; |
&display_zero ($r,$uname,$fn,$current_page,$webpath) if $page_name eq 'Welcome'; |
&display_one ($r,$uname,$fn,$current_page,$textref,$header) if $page_name eq 'Blocks'; |
&display_one ($r,$uname,$fn,$current_page,$textref,$header) if $page_name eq 'Blocks'; |
&display_two ($r,$uname,$fn,$current_page,$textref,$header,$qcount) if $page_name eq 'Format'; |
&display_two ($r,$uname,$fn,$current_page,$textref,$header,$qcount) if $page_name eq 'Format'; |
Line 1925 sub handler {
|
Line 1942 sub handler {
|
my ($result,$flag) = &Apache::lonupload::phasetwo($r,$fn,$uname,$udom,'testbank'); |
my ($result,$flag) = &Apache::lonupload::phasetwo($r,$fn,$uname,$udom,'testbank'); |
$r->print($result); |
$r->print($result); |
if ($flag eq 'ok') { |
if ($flag eq 'ok') { |
my $current_page = 0; |
|
my $js; |
my $js; |
&jscript_zero($webpath,\$js); |
&jscript_zero($webpath,\$js); |
$js = '<script type="text/javascript">'."\n$js\n".'</script>'; |
$js = '<script type="text/javascript">'."\n$js\n".'</script>'; |