3 print '<!-- expensereport_addfile.tpl.php -->'.
"\n";
4 print '<tr class="truploadnewfilenow'.(empty($tredited) ?
' oddeven nohover' :
' '.$tredited).
'"'.(empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) ?
' style="display: none"' :
'').
'>';
5 print '<td colspan="'.$colspan.
'">';
7 $modulepart =
'expensereport';
8 $permission = $user->rights->expensereport->creer;
12 if (empty($conf->global->MAIN_DISABLE_SUGGEST_REF_AS_PREFIX))
15 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')))
22 $formfile->form_attach_new_file(
23 $_SERVER[
"PHP_SELF"].
'?id='.$object->id,
28 $conf->browser->layout ==
'phone' ? 40 : 60,
dol_sanitizeFileName($str, $newstr= '_', $unaccent=1)
Clean a string to use it as a file name.
print $_SERVER["PHP_SELF"]
Edit parameters.
print
Draft customers invoices.