Diff for /loncom/interface/lonbulletin.pm between versions 1.55 and 1.56

version 1.55, 2009/12/08 13:33:12 version 1.56, 2009/12/14 13:42:33
Line 236  sub handler { Line 236  sub handler {
   
 # ---------------------------------------------------------------- Get discussion board  # ---------------------------------------------------------------- Get discussion board
     if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {      if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {
           #Print Topic as Heading
           my $titletext=$syllabus{'aaa_title'};
           if ($target ne 'tex') {
               $r->print('<h2>'.$titletext.'</h2>');
           } else {
               $r->print('\\\\\textbf{'.&Apache::lonxml::xmlparse($r,'tex',$titletext).'}\\\\');
           }
           #Outputbox and Inputbox for Topic
           if ($allowed) {
               $r->print('<form method="post" action="" enctype="multipart/form-data">');
               &Apache::lontemplate::print_template($r, &mt('Title'), $titletext,$allowed,'LC_Box');
               &Apache::lontemplate::print_editbox_template($r, $syllabus{'aaa_title'},'aaa_title');
           }
         if ($syllabus{'uploaded.photourl'}) {          if ($syllabus{'uploaded.photourl'}) {
             &Apache::lonnet::allowuploaded('/adm/syllabus',              &Apache::lonnet::allowuploaded('/adm/syllabus',
                                            $syllabus{'uploaded.photourl'});                                             $syllabus{'uploaded.photourl'});
Line 244  sub handler { Line 257  sub handler {
         if ($allowed) {          if ($allowed) {
             &Apache::lontemplate::print_template($r, &mt('Upload a Photo'), '<img src="'.$syllabus{'uploaded.photourl'}.'" alt="'.&mt('Image').'"/>',$allowed,'LC_Box');              &Apache::lontemplate::print_template($r, &mt('Upload a Photo'), '<img src="'.$syllabus{'uploaded.photourl'}.'" alt="'.&mt('Image').'"/>',$allowed,'LC_Box');
             $r->print(              $r->print(
                 '<form method="post" enctype="multipart/form-data" action="">'.  
                 '<input type="hidden" name="forceedit" value="edit" />'.                  '<input type="hidden" name="forceedit" value="edit" />'.
                 '<input type="file" name="uploaddoc" size="50" />'.                  '<input type="file" name="uploaddoc" size="50" />'.
                 '<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'.                  '<input type="submit" name="storeupl" value="'.&mt('Upload').'" />'.
                 '</form><form method="post" action="">'.  
                 '<input type="hidden" name="forceedit" value="edit" />');                  '<input type="hidden" name="forceedit" value="edit" />');
         }          }
         #Image in Student view.          #Image in Student view.
Line 277  sub handler { Line 288  sub handler {
                     if ($allowed) {                      if ($allowed) {
                          &Apache::lontemplate::print_editbox_template($r, $syllabus{$field}, $field);                           &Apache::lontemplate::print_editbox_template($r, $syllabus{$field}, $field);
                     }                      }
                 } else {                  }   
                     #Print Topic as Heading  
                     if ($target ne 'tex') {  
                         $r->print('<h1>'.$message.'</h1>');  
                     } else {  
                         $r->print('\\\\\textbf{'.&Apache::lonxml::xmlparse($r,'tex',$message).'}\\\\');  
                     }  
                     #Outputbox and Inputbox for Topic  
                     if ($allowed) {  
                              &Apache::lontemplate::print_template($r, $syllabusfields{$field}, $message,$allowed,'LC_Box');  
                              &Apache::lontemplate::print_editbox_template($r, $syllabus{$field}, $field);  
                     }  
                 }  
             }              }
         }          }
         if ($allowed) {          if ($allowed) {

Removed from v.1.55  
changed lines
  Added in v.1.56


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