4print
'<!-- expensereport_addfile.tpl.php -->'.
"\n";
5print
'<tr class="truploadnewfilenow'.(empty($tredited) ?
' oddeven nohover' :
' '.$tredited).
'"'.(!
getDolGlobalString(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
' style="display: none"' :
'').
'>';
8if ($action ==
'editline') {
13print
'<td colspan="'.($action ==
'editline' ? $colspan - 1 : $colspan).
'">';
15$modulepart =
'expensereport';
16$permission = $user->hasRight(
'expensereport',
'creer');
22 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'))) {
28$formfile->form_attach_new_file(
29 $_SERVER[
"PHP_SELF"].
'?id='.
$object->id,
34 $conf->browser->layout ==
'phone' ? 40 : 60,
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
dol_sanitizeFileName($str, $newstr='_', $unaccent=1)
Clean a string to use it as a file name.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...