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"' :
'').
'>';
7 if ($action ==
'editline') {
12 print
'<td colspan="'.($action ==
'editline' ? $colspan - 1 : $colspan).
'">';
14 $modulepart =
'expensereport';
15 $permission = $user->rights->expensereport->creer;
19 if (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.