From 0b624b859a4345ace573200211e8fdfc7477b017 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 14 Sep 2011 22:20:09 +0000 Subject: [PATCH] Fix: Solve phpcodesniffer errors and warning --- .../cashdesk/include/jscalendar/calendar.php | 3 + htdocs/cashdesk/include/jscalendar/test.php | 111 +++++++++--------- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/htdocs/cashdesk/include/jscalendar/calendar.php b/htdocs/cashdesk/include/jscalendar/calendar.php index 5b9120d67c3..ecdc020d894 100644 --- a/htdocs/cashdesk/include/jscalendar/calendar.php +++ b/htdocs/cashdesk/include/jscalendar/calendar.php @@ -12,6 +12,9 @@ define('NEWLINE', "\n"); +/** + * Class DHTML_Calendar + */ class DHTML_Calendar { var $calendar_lib_path; diff --git a/htdocs/cashdesk/include/jscalendar/test.php b/htdocs/cashdesk/include/jscalendar/test.php index c9c2e288da1..fc27a1318f7 100644 --- a/htdocs/cashdesk/include/jscalendar/test.php +++ b/htdocs/cashdesk/include/jscalendar/test.php @@ -2,10 +2,10 @@ $lang = $_GET['lang']; if (!$lang) { - $lang = $_REQUEST['lang']; + $lang = $_REQUEST['lang']; } if (!$lang) { - $lang = 'en'; + $lang = 'en'; } setcookie('lang', $lang); @@ -13,9 +13,7 @@ setcookie('lang', $lang); - -Test for calendar.php - +Test for calendar.php load_files();

Form submitted

$val) { - echo htmlspecialchars($key) . ' = ' . htmlspecialchars($val) . '
'; + echo htmlspecialchars($key) . ' = ' . htmlspecialchars($val) . '
'; } ?>

Calendar.php test

-
- Select language: -
- NOTE: as of this release, 0.9.6, only "EN" and "RO", which I - maintain, function correctly. Other language files do not work - because they need to be updated. If you update some language file, - please consider sending it back to me so that I can include it in the - calendar distribution. -
-
+
Select language: +
NOTE: as of this release, +0.9.6, only "EN" and "RO", which I maintain, function correctly. Other +language files do not work because they need to be updated. If you +update some language file, please consider sending it back to me so that +I can include it in the calendar distribution.
+
-
- + - - - - - -
- Date 1: - - make_input_field( - // calendar options go here; see the documentation and/or calendar-setup.js - array('firstDay' => 1, // show Monday first - 'showsTime' => true, - 'showOthers' => true, - 'ifFormat' => '%Y-%m-%d %I:%M %P', - 'timeFormat' => '12'), - // field attributes go here - array('style' => 'width: 15em; color: #840; background-color: #ff8; border: 1px solid #000; text-align: center', - 'name' => 'date1', - 'value' => strftime('%Y-%m-%d %I:%M %P', strtotime('now')))); ?> -
+ + + + + +
Date 1:make_input_field( + // calendar options go here; see the documentation and/or calendar-setup.js + array( + 'firstDay' => 1, // show Monday first + 'showsTime' => true, + 'showOthers' => true, + 'ifFormat' => '%Y-%m-%d %I:%M %P', + 'timeFormat' => '12' + ), + // field attributes go here + array( + 'style' => 'width: 15em; color: #840; background-color: #ff8; border: 1px solid #000; text-align: center', + 'name' => 'date1', + 'value' => strftime('%Y-%m-%d %I:%M %P', strtotime('now')) + ) +); ?>
-
- +
+ -
+ - +