mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Place information before controls on upload forms MDL-7491
This commit is contained in:
parent
2dbd640932
commit
d83d000ee3
4 changed files with 31 additions and 14 deletions
|
@ -38,13 +38,15 @@
|
||||||
if (!empty($CFG->gdversion) and $maxbytes) {
|
if (!empty($CFG->gdversion) and $maxbytes) {
|
||||||
?>
|
?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<td align="right"><?php print_string("newpicture") ?>:</td>
|
<td align="right"><?php print_string("newpicture") ?>:<br />(<?php
|
||||||
|
print_string("maxsize", "", display_size($maxbytes));
|
||||||
|
echo ') ';
|
||||||
|
helpbutton("picture", get_string("helppicture"));
|
||||||
|
?></td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||||
upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
|
upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
|
||||||
helpbutton("picture", get_string("helppicture"));
|
|
||||||
print_string("maxsize", "", display_size($maxbytes));
|
|
||||||
if (isset($err["imagefile"])) formerr($err["imagefile"]);
|
if (isset($err["imagefile"])) formerr($err["imagefile"]);
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -153,14 +153,20 @@ if (isset($errors)) {
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<td align="right"><b><?php print_string("attachment", "glossary") ?>:<br />(<?php print_string("optional") ?>) </b></td>
|
<td align="right"><b><?php print_string("attachment", "glossary") ?>:<br />
|
||||||
|
<?php
|
||||||
|
echo '(';
|
||||||
|
print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
|
||||||
|
echo ')<br />';
|
||||||
|
print_string("optional");
|
||||||
|
echo ' ';
|
||||||
|
helpbutton("attachment", get_string("attachment", "glossary"), "glossary");
|
||||||
|
?></b>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||||
upload_print_form_fragment(1,array('attachment'),null,false,null,$course->maxbytes,0,false);
|
upload_print_form_fragment(1,array('attachment'),null,false,null,$course->maxbytes,0,false);
|
||||||
helpbutton("attachment", get_string("attachment", "glossary"), "glossary");
|
|
||||||
echo ' ';
|
|
||||||
print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
<form method="post" action="import.php" name="form" enctype="multipart/form-data">
|
<form method="post" action="import.php" name="form" enctype="multipart/form-data">
|
||||||
<table border="0" cellpadding="3" cellspacing="3" width="100%">
|
<table border="0" cellpadding="3" cellspacing="3" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right" valign="top" width="30%"><b><?php print_string("filetoimport","glossary") ?>:</b></td>
|
<td align="right" valign="top" width="30%"><b><?php print_string("filetoimport","glossary") ?>:<br />
|
||||||
|
<?php
|
||||||
|
echo '(';
|
||||||
|
print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
|
||||||
|
echo ') ';
|
||||||
|
helpbutton("filetoimport", get_string("filetoimport", "glossary"), "glossary");
|
||||||
|
?>
|
||||||
|
</b></td>
|
||||||
<td width="70%">
|
<td width="70%">
|
||||||
<?php
|
<?php
|
||||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||||
upload_print_form_fragment(1,array('file'),null,false,null,0,0);
|
upload_print_form_fragment(1,array('file'),null,false,null,0,0);
|
||||||
helpbutton("filetoimport", get_string("filetoimport", "glossary"), "glossary");
|
|
||||||
echo ' ';
|
|
||||||
print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -311,13 +311,18 @@ if (has_capability('moodle/user:update', get_context_instance(CONTEXT_SYSTEM, SI
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php print_string("newpicture") ?>:</th>
|
<th><?php print_string("newpicture") ?>:<br />
|
||||||
|
<?php
|
||||||
|
echo '(';
|
||||||
|
print_string("maxsize", "", display_size($maxbytes));
|
||||||
|
echo ') ';
|
||||||
|
helpbutton("picture", get_string("helppicture"));
|
||||||
|
?>
|
||||||
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||||
upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
|
upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
|
||||||
helpbutton("picture", get_string("helppicture"));
|
|
||||||
print_string("maxsize", "", display_size($maxbytes));
|
|
||||||
if (isset($err["imagefile"])) formerr($err["imagefile"]);
|
if (isset($err["imagefile"])) formerr($err["imagefile"]);
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue