Minor look enhancement
This commit is contained in:
parent
cf5b810a6e
commit
66c5df26b8
@ -54,13 +54,14 @@ class FormFile
|
|||||||
* @param addcancel 1=Add 'Cancel' button
|
* @param addcancel 1=Add 'Cancel' button
|
||||||
* @param sectionid If upload must be done inside a particular ECM section
|
* @param sectionid If upload must be done inside a particular ECM section
|
||||||
* @param perm Value of permission to allow upload
|
* @param perm Value of permission to allow upload
|
||||||
|
* @param size Length of input file area
|
||||||
* @return int <0 ij KO, >0 if OK
|
* @return int <0 ij KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm=1)
|
function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm=1, $size=60)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$maxlength=62;
|
$maxlength=$size;
|
||||||
|
|
||||||
print "\n\n<!-- Start form attach new file -->\n";
|
print "\n\n<!-- Start form attach new file -->\n";
|
||||||
|
|
||||||
|
|||||||
@ -799,7 +799,7 @@ if ($conf->use_javascript_ajax)
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="ecm-layout-center" class="pane">
|
<div id="ecm-layout-center" class="pane layout-with-no-border">
|
||||||
|
|
||||||
<div class="pane-in ecm-in-layout-center">
|
<div class="pane-in ecm-in-layout-center">
|
||||||
<?php
|
<?php
|
||||||
@ -829,7 +829,7 @@ if ($conf->use_javascript_ajax)
|
|||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="pane-in ecm-in-layout-south">
|
<div class="pane-in ecm-in-layout-south layout-padding">
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -845,7 +845,7 @@ else
|
|||||||
|
|
||||||
if (! empty($section))
|
if (! empty($section))
|
||||||
{
|
{
|
||||||
$formfile->form_attach_new_file(DOL_URL_ROOT.'/ecm/index.php','none',0,$section,$user->rights->ecm->upload);
|
$formfile->form_attach_new_file(DOL_URL_ROOT.'/ecm/index.php', 'none', 0, $section,$user->rights->ecm->upload, 48);
|
||||||
}
|
}
|
||||||
else print ' ';
|
else print ' ';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user