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