version 1.348, 2019/08/11 16:19:52
|
version 1.349, 2019/08/11 17:11:00
|
Line 667 sub file_selector {
|
Line 667 sub file_selector {
|
if ($constraints) { |
if ($constraints) { |
$result .= $constraints.'<br />'; |
$result .= $constraints.'<br />'; |
} |
} |
if ($which eq 'uploadonly' || $which eq 'both') { |
if ($which eq 'uploadonly' || $which eq 'both') { |
my $free_space = $maxfilesize * 1048576; |
my $free_space = $maxfilesize * 1048576; |
$result .= &mt('Submit a file: (only one file per submission)'). |
$result .= &mt('Submit a file: (only one file per submission)'). |
' <br /><input type="file" size="50" name="HWFILE'.$jspart.'_'.$id. |
' <br /><input type="file" size="50" name="HWFILE'.$jspart.'_'.$id. |
'" id="HWFILE'.$jspart.'_'.$id.'" class="LC_flUpload LC_hwkfile" />'. |
'" id="HWFILE'.$jspart.'_'.$id.'" class="LC_flUpload LC_hwkfile" />'. |
'<input type="hidden" id="LC_free_space_'.$jspart.'_'.$id.'"'. |
'<input type="hidden" id="LC_free_space_'.$jspart.'_'.$id.'"'. |
' value="'.$free_space.'" /><br />'; |
' value="'.$free_space.'" /><br />'; |
} |
} |
if ( $which eq 'both') { |
if ( $which eq 'both') { |
$result.='<br />'.'<strong>'.&mt('OR:').'</strong><br />'; |
$result.='<br />'.'<strong>'.&mt('OR:').'</strong><br />'; |
} |
} |
Line 695 sub file_selector {
|
Line 695 sub file_selector {
|
&mt('Select Portfolio Files: (one or more files per submission)').'</a><br />'. |
&mt('Select Portfolio Files: (one or more files per submission)').'</a><br />'. |
'<input type="text" size="50" name="HWPORT'.$jspart.'_'.$id.'" value="" />'. |
'<input type="text" size="50" name="HWPORT'.$jspart.'_'.$id.'" value="" />'. |
'<br />'; |
'<br />'; |
|
|
} |
} |
$result.=&Apache::lonhtmlcommon::row_closure(1); |
$result.=&Apache::lonhtmlcommon::row_closure(1); |
return $result; |
return $result; |