]> git.mjollnir.org Git - moodle.git/commitdiff
Filebrowser off for students :-) at the moment...
authorjulmis <julmis>
Mon, 23 Feb 2004 11:05:36 +0000 (11:05 +0000)
committerjulmis <julmis>
Mon, 23 Feb 2004 11:05:36 +0000 (11:05 +0000)
lib/editor/popups/insert_image.php
lib/editor/popups/link.php

index ac7945186c269db08abe4aa2a6ff302b954bee28..8931b41f3484ab0b04f3e4cbb9061c8e4991cb5c 100644 (file)
@@ -260,10 +260,15 @@ form { margin-bottom: 0px; margin-top: 0px; }
   </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>
index 940cbf4545460faffb093b4cb765e6733d9e0fbf..1ec9daf89e78dc8ecae6386b97dbceb7e2a95557 100644 (file)
@@ -160,12 +160,17 @@ color: black;
   <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>