Diff for /loncom/interface/lonsimplepage.pm between versions 1.51 and 1.54

version 1.51, 2007/07/13 00:29:21 version 1.54, 2008/01/28 10:32:47
Line 91  sub handler { Line 91  sub handler {
     my %curr_group = ();      my %curr_group = ();
     my %groupinfo = ();      my %groupinfo = ();
     if ($db_name =~ /^grppage_/) {      if ($db_name =~ /^grppage_/) {
         my ($group)=(split(m{/},$r->uri))[4];            $group = (split(m{/},$r->uri))[4];
  $group =~ s/\W//g;   $group =~ s/\W//g;
         my %curr_groups = &Apache::longroup::coursegroups($dom,$crs,$group);          my %curr_groups = &Apache::longroup::coursegroups($dom,$crs,$group);
         if (!%curr_groups) {          if (!%curr_groups) {
Line 286  sub handler { Line 286  sub handler {
       '<h3>Upload a Photo</h3>'.        '<h3>Upload a Photo</h3>'.
       '<input type="file" name="uploaddoc" size="50" />'.        '<input type="file" name="uploaddoc" size="50" />'.
       '<input type="submit" name="storeupl" value="Upload" />'.        '<input type="submit" name="storeupl" value="Upload" />'.
       '</form><form method="post">');        '</form><form method="post">'.
                         '<input type="hidden" name="forceedit" value="edit" />');
  }   }
  foreach my $field (sort(keys(%syllabusfields))) {   foreach my $field (sort(keys(%syllabusfields))) {
     if (($syllabus{$field}) || ($allowed) ||       if (($syllabus{$field}) || ($allowed) || 
Line 298  sub handler { Line 299  sub handler {
  if ($allowed) {   if ($allowed) {
     $message=&Apache::lonspeller::markeduptext($message);      $message=&Apache::lonspeller::markeduptext($message);
  }   }
  $message=&Apache::lontexconvert::msgtexconverted($message);   &Apache::lonnet::logthis("Prior to texconvert: '$message'");
    if ($target ne 'tex') {
       $message=&Apache::lontexconvert::msgtexconverted($message);
    }
    &Apache::lonnet::logthis("After texconvert: '$message'");
                 if ($field eq 'abb_links' && $group ne '') {                  if ($field eq 'abb_links' && $group ne '') {
                     $r->print('<br /><input type="hidden" name="'.$field.                      $r->print('<br /><input type="hidden" name="'.$field.
                                           '" value="'.$syllabus{$field}.'" />');                                            '" value="'.$syllabus{$field}.'" />');
Line 326  sub handler { Line 331  sub handler {
                 } else {                  } else {
     if (($field ne 'bbb_content') || ($allowed)) {      if (($field ne 'bbb_content') || ($allowed)) {
  if ($target ne 'tex') {   if ($target ne 'tex') {
       &Apache::lonnet::logthis("contents in web presentation '$syllabusfields{$field}'");
     $r->print('<h3>'.$syllabusfields{$field}.'</h3>');      $r->print('<h3>'.$syllabusfields{$field}.'</h3>');
  } else {   } else {
       &Apache::lonnet::logthis("contents in tex presentation '$syllabusfields{$field}'");
     my $safeinit;      my $safeinit;
     $r->print(&Apache::lonxml::xmlparse($r,'tex','<h3>'.$syllabusfields{$field}.'</h3>'));      $r->print(&Apache::lonxml::xmlparse($r,'tex','<h3>'.$syllabusfields{$field}.'</h3>'));
  }   }

Removed from v.1.51  
changed lines
  Added in v.1.54


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>