4 * This is to allow internationalization by OpenEMR of the jquery-datetimepicker.
5 * (with and without a time selector)
7 * Example code in script:
8 * $('.datetimepicker').datetimepicker({
9 * $datetimepicker_timepicker = true; (php variable)
10 * $datetimepicker_formatInput = false; (php variable)
11 * require($GLOBALS['srcdir'] . '/js/xl/jquery-datetimepicker-2-5-4.js.php'); (php command)
12 * can add any additional settings to datetimepicker here; need to prepend first setting with a comma
15 * $datetimepicker_timepicker - this will set whether to use the timepicker
16 * $datetimepicker_formatInput - this will set whether to format the input to
17 * the user selected date format within globals.(TODO: this setting has not
18 * yet been supported, but will be supported after more testing)
21 * Copyright (C) 2017 Brady Miller <brady.g.miller@gmail.com>
23 * LICENSE: This program is free software; you can redistribute it and/or
24 * modify it under the terms of the GNU General Public License
25 * as published by the Free Software Foundation; either version 3
26 * of the License, or (at your option) any later version.
27 * This program is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * GNU General Public License for more details.
31 * You should have received a copy of the GNU General Public License
32 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
35 * @author Brady Miller <brady.g.miller@gmail.com>
36 * @link http://www.open-emr.org
42 "<?php echo xla('January'); ?>", "<?php echo xla('February'); ?>", "<?php echo xla('March'); ?>", "<?php echo xla('April'); ?>", "<?php echo xla('May'); ?>", "<?php echo xla('June'); ?>", "<?php echo xla('July'); ?>", "<?php echo xla('August'); ?>", "<?php echo xla('September'); ?>", "<?php echo xla('October'); ?>", "<?php echo xla('November'); ?>", "<?php echo xla('December'); ?>"
45 "<?php echo xla('Sun'); ?>", "<?php echo xla('Mon'); ?>", "<?php echo xla('Tue'); ?>", "<?php echo xla('Wed'); ?>", "<?php echo xla('Thu'); ?>", "<?php echo xla('Fri'); ?>", "<?php echo xla('Sat'); ?>"
47 dayOfWeek
: ["<?php echo xla('Sunday'); ?>", "<?php echo xla('Monday'); ?>", "<?php echo xla('Tuesday'); ?>", "<?php echo xla('Wednesday'); ?>", "<?php echo xla('Thursday'); ?>", "<?php echo xla('Friday'); ?>", "<?php echo xla('Saturday'); ?>"
52 rtl
: <?php
echo ($_SESSION['language_direction'] == 'rtl') ?
"true" : "false"; ?
>,
53 <?php
if ($datetimepicker_timepicker) { ?
>
54 format
: 'Y-m-d H:i:s',
58 <?php
if ($datetimepicker_formatInput) { ?
>
59 format
: '<?php echo DateFormatRead("jquery-datetimepicker"); ?>',