[LON-CAPA-cvs] cvs: loncom /interface londocs.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 08 Jun 2005 21:38:46 -0000


albertel		Wed Jun  8 17:38:46 2005 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - BUG#4086 possibly?
     - there was an unc,osed <form> in londocs which seemed to be playing havoc with some functions in DOCS
  - some xhtml cleanups
  - added names to forms that didn't have names
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.181 loncom/interface/londocs.pm:1.182
--- loncom/interface/londocs.pm:1.181	Wed Jun  8 16:44:54 2005
+++ loncom/interface/londocs.pm	Wed Jun  8 17:38:44 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.181 2005/06/08 20:44:54 www Exp $
+# $Id: londocs.pm,v 1.182 2005/06/08 21:38:44 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1867,7 +1867,7 @@
     }
     $r->print(
 '<script>function reinit(tf) { tf.submit();'.$postexec.' }</script>'. 
-'<form method="post" action="/adm/roles" target="loncapaclient">'.
+'<form name="reinit" method="post" action="/adm/roles" target="loncapaclient">'.
 '<input type="hidden" name="orgurl" value="'.$url.
 '" /><input type="hidden" name="selectrole" value="1" /><h3><font color="red">'.
 &mt($message,' <input type="hidden" name="'.
@@ -2266,7 +2266,7 @@
 </tr>
 <tr><td bgcolor="#DDDDDD">
 $lt{'file'}:<br />
-<form action="/adm/coursedocs" method="post" enctype="multipart/form-data">
+<form name="uploaddocument" action="/adm/coursedocs" method="post" enctype="multipart/form-data">
 <input type="file" name="uploaddoc" size="40">
 <br />
 $lt{'title'}:<br />
@@ -2406,6 +2406,7 @@
 <input name="newaboutsomeone" type="button" value="$lt{'abou'}" 
 onClick="javascript:makeabout();" />
 </nobr>
+</form>
 ENDFORM
        }
        if ($env{'form.pagepath'}) {
@@ -2426,8 +2427,8 @@
 onClick="javascript:makeexamupload();" />
 $help{'Score_Upload_Form'}
 </nobr>
+</form>
 ENDBLOCK
-           $r->print('</form>');
        }
        $r->print('</td></tr>'."\n".
 '</table>');
@@ -2516,7 +2517,7 @@
        }
     }
     if ($allowed) {
-	$r->print('<form name="extimport"><input type="hidden" name="title"><input type="hidden" name="url"><input type="hidden" name="useform"></form>');
+	$r->print('<form method="POST" name="extimport" action="/adm/coursedocs"><input type="hidden" name="title" /><input type="hidden" name="url" /><input type="hidden" name="useform" /></form>');
     }
     $r->print('</table>');
   } else {