Update of /cvsroot/logicampus/logicampus/src/logicreate/services/classroom/templates
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv15461/templates
Modified Files:
viewer_main.html
Log Message:
show plain text files as embedded content, not with the viewer.
Index: viewer_main.html
===================================================================
RCS file: /cvsroot/logicampus/logicampus/src/logicreate/services/classroom/templates/viewer_main.html,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** viewer_main.html 5 Oct 2007 22:37:38 -0000 1.19
--- viewer_main.html 3 Mar 2008 00:12:14 -0000 1.20
***************
*** 45,53 ****
! if ($t['file']['mime'] == 'text/html') {
echo '<h3>'.$t['file']['title'].'</h3>';
echo "<br/>\n";
! echo $t['file']['content'];
}
?>
--- 45,57 ----
! if ($t['file']['mime'] == 'text/html' || $t['file']['mime'] == 'text/plain') {
echo '<h3>'.$t['file']['title'].'</h3>';
echo "<br/>\n";
! if ($t['file']['mime'] == 'text/plain') {
! echo nl2br($t['file']['content']);
! } else {
! echo $t['file']['content'];
! }
}
?>
|