33@phan-var-force bool $permissiontoedit
34@phan-var-force CommonObject $object
47if ($action ==
'up' && $permissiontoedit) {
51 $outputlangs = $langs;
54 $newlang =
GETPOST(
'lang_id',
'aZ09');
57 $newlang =
$object->thirdparty->default_lang;
59 if (!empty($newlang)) {
61 $outputlangs->setDefaultLang($newlang);
65 $object->generateDocument(
$object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
68 header(
'Location: '.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'#'.
GETPOST(
'rowid'));
72if ($action ==
'down' && $permissiontoedit) {
76 $outputlangs = $langs;
79 $newlang =
GETPOST(
'lang_id',
'aZ09');
82 $newlang =
$object->thirdparty->default_lang;
84 if (!empty($newlang)) {
86 $outputlangs->setDefaultLang($newlang);
89 $object->generateDocument(
$object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
92 header(
'Location: '.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'#'.
GETPOST(
'rowid'));
if(! $sortfield) if(! $sortorder) $object
Class to manage translations.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.