--- loncom/interface/londocs.pm 2009/03/17 17:36:22 1.358 +++ loncom/interface/londocs.pm 2009/03/17 21:41:30 1.359 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.358 2009/03/17 17:36:22 bisitz Exp $ +# $Id: londocs.pm,v 1.359 2009/03/17 21:41:30 tempelho Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2897,7 +2897,7 @@ HIDDENFORM $activeClass = 0; } } - $r->print('
  • '.&mt('Main Course Documents').'
  • '); + $r->print('
  • '.&mt('Main Course Documents').'
  • '); $active = ''; if (!$forcestandard || ($env{'form.folderpath'}=~/^supplemental/)) { if($activeClass == 1){ @@ -2912,7 +2912,7 @@ HIDDENFORM if($activeClass == 0){ $active = 'style="display: block;"'; } - $r->print('
    '); + $r->print('
    '); $r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc', &mt('Editing the Table of Contents for your '.$type))); my $folder=$env{'form.folder'}; @@ -3138,10 +3138,8 @@ my %namehash = ( 'Tools' => $extresourcesform.'
    '.$imspform.'
    '.$recoverform.'
    '.&generate_admin_options($containertag,$uploadtag,\%help,\%env), ); my $tid='1'; -my $content='content'; -my $navigation='navigation'; my $varcd = 'Main Course Documents'; -$r->print(&generate_edit_table($tid,$content,$navigation,$varcd,\%namehash,\%orderhash)); +$r->print(&generate_edit_table($tid,$varcd,\%namehash,\%orderhash)); $hadchanges=0; my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$type); if ($error) { @@ -3264,11 +3262,9 @@ my %supnamehash = ( ); my $tid='2'; -my $content='content'; -my $navigation='navigation'; my $varscd = 'Supplemental Course Documents'; -$r->print(&generate_edit_table($tid,$content,$navigation,$varscd,\%supnamehash,\%suporderhash)); +$r->print(&generate_edit_table($tid,$varscd,\%supnamehash,\%suporderhash)); my $error = &editor($r,$coursenum,$coursedom,$folder,$allowed,'',$type); if ($error) { $r->print('

    '.$error.'

    '); @@ -3327,24 +3323,24 @@ ENDOPTIONFORM sub generate_edit_table { - my ($tid,$content,$navigation,$varcd,$namehash_ref,$orderhash_ref) = @_; + my ($tid,$varcd,$namehash_ref,$orderhash_ref) = @_; my %namehash = %{$namehash_ref}; my %orderhash = %{$orderhash_ref}; my $form; $form = '

    '.&mt($varcd).'

    '; - $form .= '
      '; + $form .= ''; - $form .= '
      '; + $form .= '
      '; foreach my $field (keys(%namehash)){ - $form .= ''; + $form .= ''; } $form .= '
      ';