29@phan-var-force int $colspan
33print
'<!-- expensereport_addfile.tpl.php -->'.
"\n";
34print
'<tr class="truploadnewfilenow'.(empty($tredited) ?
' oddeven nohover' :
' '.$tredited).
'"'.(!
getDolGlobalString(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
' style="display: none"' :
'').
'>';
37if ($action ==
'editline') {
42print
'<td colspan="'.($action ==
'editline' ? $colspan - 1 : $colspan).
'">';
44$modulepart =
'expensereport';
45$permission = $user->hasRight(
'expensereport',
'creer');
51 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'))) {
57$formfile->form_attach_new_file(
58 $_SERVER[
"PHP_SELF"].
'?id='.
$object->id,
63 $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.