dolibarr
21.0.0-beta
Main Page
Related Pages
Topics
Classes
Files
File List
File Members
dolibarr_dev
htdocs
core
js
timepicker.js.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2012 Regis Houssin <regis.houssin@inodbox.com>
3
* Copyright (C) 2012 Laurent Destailleur <eldy@users.sourceforge.net>
4
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18
*/
19
25
if
(!defined(
'NOREQUIRESOC'
)) {
26
define(
'NOREQUIRESOC'
,
'1'
);
27
}
28
if
(!defined(
'NOCSRFCHECK'
)) {
29
define(
'NOCSRFCHECK'
, 1);
30
}
31
if
(!defined(
'NOTOKENRENEWAL'
)) {
32
define(
'NOTOKENRENEWAL'
, 1);
33
}
34
if
(!defined(
'NOLOGIN'
)) {
35
define(
'NOLOGIN'
, 1);
36
}
37
if
(!defined(
'NOREQUIREMENU'
)) {
38
define(
'NOREQUIREMENU'
, 1);
39
}
40
if
(!defined(
'NOREQUIREHTML'
)) {
41
define(
'NOREQUIREHTML'
, 1);
42
}
43
if
(!defined(
'NOREQUIREAJAX'
)) {
44
define(
'NOREQUIREAJAX'
,
'1'
);
45
}
46
47
session_cache_limiter(
'public'
);
48
49
require_once
'../../main.inc.php'
;
56
/*
57
* View
58
*/
59
60
// Define javascript type
61
top_httphead
(
'text/javascript; charset=UTF-8'
);
62
// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
63
if
(empty($dolibarr_nocache)) {
64
header(
'Cache-Control: max-age=10800, public, must-revalidate'
);
65
}
else
{
66
header(
'Cache-Control: no-cache'
);
67
}
68
?>
69
70
// For JQuery Timepicker
71
jQuery(
function
($){
72
$.timepicker.regional[
'<?php echo $langs->defaultlang ?>'
] = {
73
timeOnlyTitle:
'<?php echo $langs->trans("TimeOnly") ?>'
,
74
timeText:
'<?php echo $langs->trans("Time") ?>'
,
75
hourText:
'<?php echo $langs->trans("Hour") ?>'
,
76
minuteText:
'<?php echo $langs->trans("Minute") ?>'
,
77
secondText:
'<?php echo $langs->trans("Second") ?>'
,
78
millisecText:
'<?php echo $langs->trans("Millisecond") ?>'
,
79
timezoneText:
'<?php echo $langs->trans("Timezone") ?>'
,
80
currentText:
'<?php echo $langs->trans("Now") ?>'
,
81
closeText:
'<?php echo $langs->trans("Close2") ?>'
,
82
timeFormat:
'HH:mm'
,
83
amNames: [
'AM'
,
'A'
],
84
pmNames: [
'PM'
,
'P'
],
85
isRTL: <?php echo($langs->trans(
"DIRECTION"
) ==
'rtl'
?
'true'
:
'false'
); ?>
86
};
87
$.timepicker.setDefaults($.timepicker.regional[
'<?php echo $langs->defaultlang ?>'
]);
88
});
89
90
<?php
91
if
(is_object($db)) {
92
$db->close();
93
}
top_httphead
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
Definition
main.inc.php:1725
Generated on Sun Dec 1 2024 01:00:26 for
dolibarr
by Doxygen 1.11.0