dolibarr
13.0.2
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
File Members
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
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17
*/
18
24
if
(!defined(
'NOREQUIRESOC'
)) define(
'NOREQUIRESOC'
,
'1'
);
25
if
(!defined(
'NOCSRFCHECK'
)) define(
'NOCSRFCHECK'
, 1);
26
if
(!defined(
'NOTOKENRENEWAL'
)) define(
'NOTOKENRENEWAL'
, 1);
27
if
(!defined(
'NOLOGIN'
)) define(
'NOLOGIN'
, 1);
28
if
(!defined(
'NOREQUIREMENU'
)) define(
'NOREQUIREMENU'
, 1);
29
if
(!defined(
'NOREQUIREHTML'
)) define(
'NOREQUIREHTML'
, 1);
30
if
(!defined(
'NOREQUIREAJAX'
)) define(
'NOREQUIREAJAX'
,
'1'
);
31
32
session_cache_limiter(
'public'
);
33
34
require_once
'../../main.inc.php'
;
35
36
// Define javascript type
37
top_httphead
(
'text/javascript; charset=UTF-8'
);
38
// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
39
if
(empty($dolibarr_nocache)) header(
'Cache-Control: max-age=10800, public, must-revalidate'
);
40
else
header(
'Cache-Control: no-cache'
);
41
?>
42
43
// For JQuery Timepicker
44
jQuery(
function
($){
45
$.timepicker.regional[
'<?php echo $langs->defaultlang ?>'
] = {
46
timeOnlyTitle:
'<?php echo $langs->trans("TimeOnly") ?>'
,
47
timeText:
'<?php echo $langs->trans("Time") ?>'
,
48
hourText:
'<?php echo $langs->trans("Hour") ?>'
,
49
minuteText:
'<?php echo $langs->trans("Minute") ?>'
,
50
secondText:
'<?php echo $langs->trans("Second") ?>'
,
51
millisecText:
'<?php echo $langs->trans("Millisecond") ?>'
,
52
timezoneText:
'<?php echo $langs->trans("Timezone") ?>'
,
53
currentText:
'<?php echo $langs->trans("Now") ?>'
,
54
closeText:
'<?php echo $langs->trans("Close2") ?>'
,
55
timeFormat:
'HH:mm'
,
56
amNames: [
'AM'
,
'A'
],
57
pmNames: [
'PM'
,
'P'
],
58
isRTL: <?php echo ($langs->trans(
"DIRECTION"
) ==
'rtl'
?
'true'
:
'false'
); ?>
59
};
60
$.timepicker.setDefaults($.timepicker.regional[
'<?php echo $langs->defaultlang ?>'
]);
61
});
62
63
<?php
64
if
(is_object($db)) $db->close();
top_httphead
if(!defined('NOREQUIREMENU')) if(!function_exists("llxHeader")) top_httphead($contenttype= 'text/html', $forcenocache=0)
Show HTTP header.
Definition:
main.inc.php:1214
Generated on Sat Aug 23 2025 13:17:19 for
dolibarr
by Doxygen 1.8.5