fix add_edit_amendments.php
[openemr.git] / library / js / xl / jquery-datetimepicker-2-5-4.js.php
blob10e49c6f6e983d8589b03484ff2024312e50e075
1 <?php
2 /**
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
13 * });
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>;.
34 * @package OpenEMR
35 * @author Brady Miller <brady.g.miller@gmail.com>
36 * @link http://www.open-emr.org
39 i18n:{
40 en: {
41 months: [
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'); ?>"
44 dayOfWeekShort: [
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'); ?>"
51 yearStart: '1900',
52 rtl: <?php echo ($_SESSION['language_direction'] == 'rtl') ? "true" : "false"; ?>,
53 <?php if ($datetimepicker_timepicker) { ?>
54 format: 'Y-m-d H:i:s',
55 timepicker:true,
56 step: '30'
57 <?php } else { ?>
58 <?php if ($datetimepicker_formatInput) { ?>
59 format: '<?php echo DateFormatRead("jquery-datetimepicker"); ?>',
60 <?php } else { ?>
61 format: 'Y-m-d',
62 <?php } ?>
63 timepicker:false
64 <?php } ?>