31if ($action ==
'up' && $permissiontoedit) {
32 $object->line_up(
GETPOST(
'rowid'));
35 $outputlangs = $langs;
38 $newlang =
GETPOST(
'lang_id',
'aZ09');
41 $newlang = $object->thirdparty->default_lang;
43 if (!empty($newlang)) {
45 $outputlangs->setDefaultLang($newlang);
49 $object->generateDocument($object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
52 header(
'Location: '.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'#'.
GETPOST(
'rowid'));
56if ($action ==
'down' && $permissiontoedit) {
57 $object->line_down(
GETPOST(
'rowid'));
60 $outputlangs = $langs;
63 $newlang =
GETPOST(
'lang_id',
'aZ09');
66 $newlang = $object->thirdparty->default_lang;
68 if (!empty($newlang)) {
70 $outputlangs->setDefaultLang($newlang);
73 $object->generateDocument($object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
76 header(
'Location: '.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'#'.
GETPOST(
'rowid'));
Class to manage translations.
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 dolibarr global constant string value.