]> git.mjollnir.org Git - moodle.git/commitdiff
Integration of upload code with lesson - html form
authormjollnir_ <mjollnir_>
Thu, 16 Sep 2004 04:33:29 +0000 (04:33 +0000)
committermjollnir_ <mjollnir_>
Thu, 16 Sep 2004 04:33:29 +0000 (04:33 +0000)
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-69
    2004-09-16 04:31:47 GMT
    Penny Leach <penny@catalyst.net.nz>
    added the upload class stuff for the upload form for lesson

Full logs:

Revision: moodle--eduforge--1.3.3--patch-69
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:31:47 NZST 2004
Standard-date: 2004-09-16 04:31:47 GMT
Modified-files: mod/lesson/import.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-69
Summary: added the upload class stuff for the upload form for lesson
Keywords:

mod/lesson/import.php

index 6646d312aef7d2eca9c7ed6685d3ecedff66e794..6d584b9178fb13d5ca7c53ca23a6d63f285df115 100644 (file)
     echo "<tr><td align=right>";
     print_string("upload");
     echo ":</td><td>";
-    echo " <input name=\"newfile\" type=\"file\" size=\"50\">";
+    require_once($CFG->dirroot.'/lib/uploadlib.php');
+    upload_print_form_fragment(1,array('newfile'),null,false,null,$course->maxbytes,0,false);
     echo "</tr><tr><td>&nbsp;</td><td>";
     echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\">";
     echo "</td></tr>";