29@phan-var-force int $colspan
30@phan-var-force FormFile $formfile
31@phan-var-force User $user
35print
'<!-- expensereport_addfile.tpl.php -->'.
"\n";
36print
'<tr class="truploadnewfilenow'.(empty($tredited) ?
' oddeven nohover' :
' '.$tredited).
'"'.(!
getDolGlobalString(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
' style="display: none"' :
'').
'>';
39if ($action ==
'editline') {
44print
'<td colspan="'.($action ==
'editline' ? $colspan - 1 : $colspan).
'">';
46$modulepart =
'expensereport';
47$permission = $user->hasRight(
'expensereport',
'creer');
53 if (in_array($modulepart, array(
'facture_fournisseur',
'commande_fournisseur',
'facture',
'commande',
'propal',
'supplier_proposal',
'ficheinter',
'contract',
'expedition',
'project',
'project_task',
'expensereport',
'tax',
'produit',
'product_batch'))) {
59$formfile->form_attach_new_file(
60 $_SERVER[
"PHP_SELF"].
'?id='.
$object->id,
65 $conf->browser->layout ==
'phone' ? 40 : 60,
if(! $sortfield) if(! $sortorder) $object
dol_sanitizeFileName($str, $newstr='_', $unaccent=1, $includequotes=0, $allowdash=0)
Clean a string to use it as a file name.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.