33 if (empty($langs) || !is_object($langs))
35 print "Error, template page can't be called as URL";
41 if (empty($relativepathwithnofile)) $relativepathwithnofile =
'';
43 if (!isset($permission)) $permission = $permissiontoadd;
44 if (!isset($permtoedit)) $permtoedit = $permissiontoadd;
51 if (in_array($modulepart, array(
'product',
'produit',
'societe',
'user',
'ticket',
'holiday',
'expensereport'))) $disablemove = 0;
59 if ($action ==
'delete')
61 $langs->load(
"companies");
62 print $form->formconfirm(
63 $_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&urlfile='.urlencode(
GETPOST(
"urlfile")).
'&linkid='.
GETPOST(
'linkid',
'int').(empty($param) ?
'' : $param),
64 $langs->trans(
'DeleteFile'),
65 $langs->trans(
'ConfirmDeleteFile'),
79 if (!isset($savingdocmask) || !empty($conf->global->MAIN_DISABLE_SUGGEST_REF_AS_PREFIX)) {
81 if (empty($conf->global->MAIN_DISABLE_SUGGEST_REF_AS_PREFIX)) {
83 if (in_array($modulepart, array(
84 'facture_fournisseur',
85 'commande_fournisseur',
114 $formfile->form_attach_new_file(
115 $_SERVER[
"PHP_SELF"].
'?id='.$object->id.(empty($withproject) ?
'' :
'&withproject=1').(empty($moreparam) ?
'' : $moreparam),
120 $conf->browser->layout ==
'phone' ? 40 : 60,
128 $formfile->list_of_documents(
134 $relativepathwithnofile,
152 $formfile->listOfLinks($object, $permission, $action,
GETPOST(
'linkid',
'int'), $param);
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
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.