Skip to content

Commit

Permalink
Fix: Remove width (total was not 100%)
Browse files Browse the repository at this point in the history
Doxygen
  • Loading branch information
eldy committed Mar 22, 2012
1 parent 0fd372e commit 0321ac1
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions htdocs/core/class/html.formfile.class.php
Expand Up @@ -49,16 +49,17 @@ function FormFile($db)


/**
* Show form to upload a new file
* Show form to upload a new file
*
* @param string $url Url
* @param string $title Title zone (Title or '' or 'none')
* @param int $addcancel 1=Add 'Cancel' button
* @param int $sectionid If upload must be done inside a particular ECM section
* @param int $perm Value of permission to allow upload
* @param int $size Length of input file area
* @param Object $object Object to use (when attachment is done on an element)
* @return int <0 if KO, >0 if OK
* @param string $url Url
* @param string $title Title zone (Title or '' or 'none')
* @param int $addcancel 1=Add 'Cancel' button
* @param int $sectionid If upload must be done inside a particular ECM section
* @param int $perm Value of permission to allow upload
* @param int $size Length of input file area
* @param Object $object Object to use (when attachment is done on an element)
* @param string $options Options
* @return int <0 if KO, >0 if OK
*/
function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm=1, $size=50, $object='', $options='')
{
Expand All @@ -83,13 +84,10 @@ function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm

print '<table width="100%" class="nobordernopadding">';
print '<tr>';

if (! empty($options))
{
print '<td>'.$options.'</td>';
}

print '<td width="50%" valign="top" nowrap="nowrap">';

if (! empty($options)) print '<td>'.$options.'</td>';

print '<td valign="top" nowrap="nowrap">';

$max=$conf->global->MAIN_UPLOAD_DOC; // En Kb
$maxphp=@ini_get('upload_max_filesize'); // En inconnu
Expand Down

0 comments on commit 0321ac1

Please sign in to comment.