</table></form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
- <td width="55%" valign="top"><?php print_string("filebrowser","editor");?>:<br>
+ <td width="55%" valign="top"><?php
+ if(isteacher($id)) {
+ print_string("filebrowser","editor");
+ } else {
+ print "";
+ }?><br>
<?php print(isteacher($id))?
"<iframe id=\"ibrowser\" name=\"ibrowser\" src=\"".$CFG->wwwroot."/lib/editor/coursefiles.php?usecheckboxes=true&id=".$course->id."\" style=\"width: 100%; height: 200px;\"></iframe>":
- "<iframe src=\"about:blank\" style=\"width: 100%; height: 200px;\"></iframe>";?>
+ "";?>
</td>
<td width="45%" valign="top"><?php print_string("preview","editor");?>:<br>
<iframe id="ipreview" name="ipreview" src="about:blank" style="width: 100%; height: 200px;"></iframe>
<table width="660" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="380" valign="top"><fieldset>
- <legend><?php print_string("filebrowser","editor");?></legend>
+ <legend><?php
+ if(isteacher($id)) {
+ print_string("filebrowser","editor");
+ } else {
+ print "";
+ }?></legend>
<div class="space"></div>
<?php print(isteacher($id))?
"<iframe id=\"fbrowser\" name=\"fbrowser\" src=\"../coursefiles.php?id=".$course->id."\" width=\"360\" height=\"260\"></iframe>":
- "<iframe src=\"blank.html\" width=\"360\" height=\"260\"></iframe>"; ?>
+ ""; ?>
<p>
</p>
<div class="space"></div>