Diff for /loncom/interface/lonsimplepage.pm between versions 1.67 and 1.68

version 1.67, 2009/02/19 17:32:39 version 1.68, 2009/02/20 15:09:28
Line 305  sub handler { Line 305  sub handler {
       '<form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" />' );        '<form method="post"><input type="submit" name="delupl" value="'.&mt('Delete Photo').'" />' );
  }   }
  if($allowed){   if($allowed){
                 $r->print($image.'<div class="clear">&nbsp;</div>');                 $r->print($image.'<div class="clear">&nbsp;</div>');
        }         }
   # if(!$allowed){
   # $r-print($image);
   # }
   
  foreach my $field (sort(keys(%syllabusfields))) {   foreach my $field (sort(keys(%syllabusfields))) {
     if (($syllabus{$field}) || ($allowed) ||       if (($syllabus{$field}) || ($allowed) || 
Line 332  sub handler { Line 335  sub handler {
  if($allowed){   if($allowed){
  $r->print('<p>');   $r->print('<p>');
  }   }
                         $r->print('<h1>'.$message.'</h1>');                          $r->print('<h2>'.$message.'</h2>');
                     } else {                      } else {
                         my $safeinit;                          my $safeinit;
                         $r->print(&Apache::lonxml::xmlparse($r,'tex','<h1>'.$message.'</h1>'));                          $r->print(&Apache::lonxml::xmlparse($r,'tex','<h1>'.$message.'</h1>'));
                     }                      }
                     if ($allowed) {                      if ($allowed) {
                         if ($env{'form.grade_target'} ne 'tex') {                          if ($env{'form.grade_target'} ne 'tex') {
                             $r->print('<br /><h3>'.&mt('Title').'</h3>');                              #$r->print('<br /><h3>'.&mt('Title').'</h3>');
       &Apache::lontemplate::print_template($r, &mt('Title'), $message, $allowed, 'LC_ContentBoxSpecial'); 
     &Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field);      &Apache::lontemplate::print_editbox_template($r,$syllabus{$field},$field);
     $r->print('</p>');      $r->print('</p>');
                         } else {                          } else {
                             my $safeinit;                              my $safeinit;
                             $r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit));                              $r->print(&Apache::lonxml::xmlparse($r,'tex',$syllabus{$field},$safeinit));
                         }                          }
                     }                      } 
   #    if ($allowed) { $r->print($image . '<div class="clear">&nbsp; </div>'); }
       if(!$allowed) {$r->print($image); } 
                 } else {                  } else {
     if ($target ne 'tex') {      if ($target ne 'tex') {
  if($allowed){   if($allowed){
Line 370  sub handler { Line 376  sub handler {
  }   }
     }      }
  }   }
    #MUEA: Stand hier if???
  if(!$allowed){  # if(!$allowed){ 
  $r->print($image);  # $r->print($image);
  }  # }
  if ($allowed && ($env{'form.grade_target'} ne 'tex')) {   if ($allowed && ($env{'form.grade_target'} ne 'tex')) {
     $r->print(&Apache::lonhtmlcommon::htmlareaselectactive      $r->print(&Apache::lonhtmlcommon::htmlareaselectactive
       ('bbb_content').'</form>');        ('bbb_content').'</form>');

Removed from v.1.67  
changed lines
  Added in v.1.68


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