From: Metabox Date: Wed, 15 May 2019 01:29:04 +0000 (+1000) Subject: JQuery integration. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=2ebd60c0481ff0acd7a61be01667794506f78406;p=LifeLog.git JQuery integration. --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 3fe5304..d556327 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -92,14 +92,27 @@ if(@arrwh==2){ else{#defaults $imgw = 210; $imgh = 120; -} - +} + + print $cgi->header(-expires=>"0s", -charset=>"UTF-8"); -print $cgi->start_html(-title => "Personal Log", -BGCOLOR=>"#c8fff8", - -script=>{-type => 'text/javascript',-src => 'wsrc/main.js'}, - -style =>{-type => 'text/css', -src => 'wsrc/main.css'}, - -onload => "loadedBody('".$toggle."');" - ); +print $cgi->start_html(-title => "Personal Log", -BGCOLOR=>"#c8fff8", -onload => "loadedBody('".$toggle."');", + -style =>[{-type => 'text/css', -src => 'wsrc/main.css'}, + {-type => 'text/css', -src => 'wsrc/jquery-ui.css'}, + {-type => 'text/css', -src => 'wsrc/jquery-ui.theme.css'}, + {-type => 'text/css', -src => 'wsrc/jquery-ui-timepicker-addon.css'}, + {-type => 'text/css', -src => 'wsrc/tip-skyblue/tip-skyblue.css'}, + {-type => 'text/css', -src => 'wsrc/tip-yellowsimple/tip-yellowsimple.css'}, + ], + -script=>[{-type => 'text/javascript',-src => 'wsrc/main.js'}, + {-type => 'text/javascript',-src => 'wsrc/jquery.js'}, + {-type => 'text/javascript',-src => 'wsrc/jquery-ui.js'}, + {-type => 'text/javascript',-src => 'wsrc/jquery-ui-timepicker-addon.js'}, + {-type => 'text/javascript',-src => 'wsrc/jquery-ui-sliderAccess.js'}, + {-type => 'text/javascript',-src => 'wsrc/jquery.poshytip.js'} + ], + ); + my $rv; my $st; my $lang = Date::Language->new($LANGUAGE); @@ -114,8 +127,11 @@ my $stmt = "SELECT rowid, ID_CAT, DATE, LOG, AMMOUNT FROM LOG ORDER BY rowid $st = $db->prepare( $stmtCat ); $rv = $st->execute() or die or die "

Error->"& $DBI::errstri &"

"; -my $cats = qq( \n); + + my %hshCats; my %desc = {}; my $c_sel = 1; @@ -187,6 +203,9 @@ else{ $stmt = $stmS.$stmD.$stmE; } } + + + ############### &processSubmit; ############### @@ -354,7 +373,7 @@ while(my @row = $st->fetchrow_array()) { $amm $ct - + ); @@ -401,7 +420,7 @@ if($tbl_rc==0){ $tbl .= '   - + @@ -412,23 +431,26 @@ $tbl .= '
- - - +
* LOG ENTRY FORM *

+ - - + + - - - + + - + @@ -456,7 +478,7 @@ my $srh = qq( ); $cats =~ s/selected//g; -$srh .= qq( +$srh .= qq( @@ -484,14 +506,15 @@ print qq(
\n
\n$frm\n
\n
\n
$srh
\n$tbl\n

-
View Statistics

+
View Statistics

Configure Log

LOGOUT
); print qq(
); + + ); print $cgi->end_html; $st->finish; @@ -519,7 +542,7 @@ sub processSubmit { my $date = $cgi->param('date'); my $log = $cgi->param('log'); - my $cat = $cgi->param('cat'); + my $cat = $cgi->param('ec');#Used to be cat v.1.3, tag id and name should be kept same. my $amm = $cgi->param('am'); my $edit_mode = $cgi->param('submit_is_edit'); diff --git a/htdocs/cgi-bin/testJQUERYCode.html b/htdocs/cgi-bin/testJQUERYCode.html new file mode 100644 index 0000000..167add1 --- /dev/null +++ b/htdocs/cgi-bin/testJQUERYCode.html @@ -0,0 +1,47 @@ + + + + Personal Log + + + + + + + + + + + + + + +
+ +

+
+
+ + \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-af.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-af.js new file mode 100644 index 0000000..8dbec3e --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-af.js @@ -0,0 +1,22 @@ +/* Afrikaans translation for the jQuery Timepicker Addon */ +/* Written by Deon Heyns */ +(function($) { + $.timepicker.regional['af'] = { + timeOnlyTitle: 'Kies Tyd', + timeText: 'Tyd ', + hourText: 'Ure ', + minuteText: 'Minute', + secondText: 'Sekondes', + millisecText: 'Millisekondes', + microsecText: 'Mikrosekondes', + timezoneText: 'Tydsone', + currentText: 'Huidige Tyd', + closeText: 'Klaar', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['af']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-am.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-am.js new file mode 100644 index 0000000..676c8b9 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-am.js @@ -0,0 +1,22 @@ +/* Armenian translation for the jQuery Timepicker Addon */ +/* Written by Artavazd Avetisyan artavazda@hotmail.com */ +(function($) { + $.timepicker.regional['am'] = { + timeOnlyTitle: 'Ընտրեք ժամանակը', + timeText: 'Ժամանակը', + hourText: 'Ժամ', + minuteText: 'Րոպե', + secondText: 'Վարկյան', + millisecText: 'Միլիվարկյան', + microsecText: 'Միկրովարկյան', + timezoneText: 'Ժամային գոտին', + currentText: 'Այժմ', + closeText: 'Փակել', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['am']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-bg.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-bg.js new file mode 100644 index 0000000..58f076e --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-bg.js @@ -0,0 +1,22 @@ +/* Bulgarian translation for the jQuery Timepicker Addon */ +/* Written by Plamen Kovandjiev */ +(function($) { + $.timepicker.regional['bg'] = { + timeOnlyTitle: 'Изберете време', + timeText: 'Време', + hourText: 'Час', + minuteText: 'Минути', + secondText: 'Секунди', + millisecText: 'Милисекунди', + microsecText: 'Микросекунди', + timezoneText: 'Часови пояс', + currentText: 'Сега', + closeText: 'Затвори', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['bg']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ca.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ca.js new file mode 100644 index 0000000..84fa00e --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ca.js @@ -0,0 +1,22 @@ +/* Catalan translation for the jQuery Timepicker Addon */ +/* Written by Sergi Faber */ +(function($) { + $.timepicker.regional['ca'] = { + timeOnlyTitle: 'Escollir una hora', + timeText: 'Hora', + hourText: 'Hores', + minuteText: 'Minuts', + secondText: 'Segons', + millisecText: 'Milisegons', + microsecText: 'Microsegons', + timezoneText: 'Fus horari', + currentText: 'Ara', + closeText: 'Tancar', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['ca']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-cs.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-cs.js new file mode 100644 index 0000000..26d6ec7 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-cs.js @@ -0,0 +1,22 @@ +/* Czech translation for the jQuery Timepicker Addon */ +/* Written by Ondřej Vodáček */ +(function($) { + $.timepicker.regional['cs'] = { + timeOnlyTitle: 'Vyberte čas', + timeText: 'Čas', + hourText: 'Hodiny', + minuteText: 'Minuty', + secondText: 'Vteřiny', + millisecText: 'Milisekundy', + microsecText: 'Mikrosekundy', + timezoneText: 'Časové pásmo', + currentText: 'Nyní', + closeText: 'Zavřít', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['dop.', 'AM', 'A'], + pmNames: ['odp.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['cs']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-da.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-da.js new file mode 100644 index 0000000..5d8072b --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-da.js @@ -0,0 +1,22 @@ +/* Danish translation for the jQuery Timepicker Addon */ +/* Written by Lars H. Jensen (http://www.larshj.dk) */ +(function ($) { + $.timepicker.regional['da'] = { + timeOnlyTitle: 'Vælg tid', + timeText: 'Tid', + hourText: 'Time', + minuteText: 'Minut', + secondText: 'Sekund', + millisecText: 'Millisekund', + microsecText: 'Mikrosekund', + timezoneText: 'Tidszone', + currentText: 'Nu', + closeText: 'Luk', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['am', 'AM', 'A'], + pmNames: ['pm', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['da']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-de.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-de.js new file mode 100644 index 0000000..90c33af --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-de.js @@ -0,0 +1,22 @@ +/* German translation for the jQuery Timepicker Addon */ +/* Written by Marvin */ +(function($) { + $.timepicker.regional['de'] = { + timeOnlyTitle: 'Zeit wählen', + timeText: 'Zeit', + hourText: 'Stunde', + minuteText: 'Minute', + secondText: 'Sekunde', + millisecText: 'Millisekunde', + microsecText: 'Mikrosekunde', + timezoneText: 'Zeitzone', + currentText: 'Jetzt', + closeText: 'Fertig', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['vorm.', 'AM', 'A'], + pmNames: ['nachm.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['de']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-el.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-el.js new file mode 100644 index 0000000..72aec6d --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-el.js @@ -0,0 +1,22 @@ +/* Hellenic translation for the jQuery Timepicker Addon */ +/* Written by Christos Pontikis */ +(function($) { + $.timepicker.regional['el'] = { + timeOnlyTitle: 'Επιλογή ώρας', + timeText: 'Ώρα', + hourText: 'Ώρες', + minuteText: 'Λεπτά', + secondText: 'Δευτερόλεπτα', + millisecText: 'Χιλιοστοδευτερόλεπτα', + microsecText: 'Μικροδευτερόλεπτα', + timezoneText: 'Ζώνη ώρας', + currentText: 'Τώρα', + closeText: 'Κλείσιμο', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['π.μ.', 'AM', 'A'], + pmNames: ['μ.μ.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['el']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-es.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-es.js new file mode 100644 index 0000000..b19ba11 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-es.js @@ -0,0 +1,23 @@ +/* Spanish translation for the jQuery Timepicker Addon */ +/* Written by Ianaré Sévi */ +/* Modified by Carlos Martínez */ +(function($) { + $.timepicker.regional['es'] = { + timeOnlyTitle: 'Elegir una hora', + timeText: 'Hora', + hourText: 'Horas', + minuteText: 'Minutos', + secondText: 'Segundos', + millisecText: 'Milisegundos', + microsecText: 'Microsegundos', + timezoneText: 'Uso horario', + currentText: 'Hoy', + closeText: 'Cerrar', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['a.m.', 'AM', 'A'], + pmNames: ['p.m.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['es']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-et.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-et.js new file mode 100644 index 0000000..b2bb766 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-et.js @@ -0,0 +1,22 @@ +/* Estonian translation for the jQuery Timepicker Addon */ +/* Written by Karl Sutt (karl@sutt.ee) */ +(function($) { + $.timepicker.regional['et'] = { + timeOnlyTitle: 'Vali aeg', + timeText: 'Aeg', + hourText: 'Tund', + minuteText: 'Minut', + secondText: 'Sekund', + millisecText: 'Millisekundis', + microsecText: 'Mikrosekundis', + timezoneText: 'Ajavöönd', + currentText: 'Praegu', + closeText: 'Valmis', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['et']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-eu.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-eu.js new file mode 100644 index 0000000..7e0c0f3 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-eu.js @@ -0,0 +1,23 @@ +/* Basque trannslation for JQuery Timepicker Addon */ +/* Translated by Xabi Fer */ +/* Fixed by Asier Iturralde Sarasola - iametza interaktiboa */ +(function($) { + $.timepicker.regional['eu'] = { + timeOnlyTitle: 'Aukeratu ordua', + timeText: 'Ordua', + hourText: 'Orduak', + minuteText: 'Minutuak', + secondText: 'Segundoak', + millisecText: 'Milisegundoak', + microsecText: 'Mikrosegundoak', + timezoneText: 'Ordu-eremua', + currentText: 'Orain', + closeText: 'Itxi', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['a.m.', 'AM', 'A'], + pmNames: ['p.m.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['eu']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fa.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fa.js new file mode 100644 index 0000000..25e2403 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fa.js @@ -0,0 +1,22 @@ +/* Persian translation for the jQuery Timepicker Addon */ +/* Written by Meysam Pour Ganji */ +(function($) { + $.timepicker.regional['fa'] = { + timeOnlyTitle: 'انتخاب زمان', + timeText: 'زمان', + hourText: 'ساعت', + minuteText: 'دقیقه', + secondText: 'ثانیه', + millisecText: 'میلی ثانیه', + microsecText: 'میکرو ثانیه', + timezoneText: 'منطقه زمانی', + currentText: 'الان', + closeText: 'انتخاب', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['قبل ظهر', 'AM', 'A'], + pmNames: ['بعد ظهر', 'PM', 'P'], + isRTL: true + }; + $.timepicker.setDefaults($.timepicker.regional['fa']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fi.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fi.js new file mode 100644 index 0000000..4493d4c --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fi.js @@ -0,0 +1,22 @@ +/* Finnish translation for the jQuery Timepicker Addon */ +/* Written by Juga Paazmaya (http://github.com/paazmaya) */ +(function($) { + $.timepicker.regional['fi'] = { + timeOnlyTitle: 'Valitse aika', + timeText: 'Aika', + hourText: 'Tunti', + minuteText: 'Minuutti', + secondText: 'Sekunti', + millisecText: 'Millisekunnin', + microsecText: 'Mikrosekuntia', + timezoneText: 'Aikavyöhyke', + currentText: 'Nyt', + closeText: 'Sulje', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['ap.', 'AM', 'A'], + pmNames: ['ip.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['fi']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fr.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fr.js new file mode 100644 index 0000000..0002517 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-fr.js @@ -0,0 +1,22 @@ +/* French translation for the jQuery Timepicker Addon */ +/* Written by Thomas Lété */ +(function($) { + $.timepicker.regional['fr'] = { + timeOnlyTitle: 'Choisir une heure', + timeText: 'Heure', + hourText: 'Heures', + minuteText: 'Minutes', + secondText: 'Secondes', + millisecText: 'Millisecondes', + microsecText: 'Microsecondes', + timezoneText: 'Fuseau horaire', + currentText: 'Maintenant', + closeText: 'Terminé', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['fr']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-gl.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-gl.js new file mode 100644 index 0000000..4b9501f --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-gl.js @@ -0,0 +1,22 @@ +/* Galician translation for the jQuery Timepicker Addon */ +/* Written by David Barral */ +(function($) { + $.timepicker.regional['gl'] = { + timeOnlyTitle: 'Elixir unha hora', + timeText: 'Hora', + hourText: 'Horas', + minuteText: 'Minutos', + secondText: 'Segundos', + millisecText: 'Milisegundos', + microsecText: 'Microssegundos', + timezoneText: 'Fuso horario', + currentText: 'Agora', + closeText: 'Pechar', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['a.m.', 'AM', 'A'], + pmNames: ['p.m.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['gl']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-he.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-he.js new file mode 100644 index 0000000..9b78cbd --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-he.js @@ -0,0 +1,22 @@ +/* Hebrew translation for the jQuery Timepicker Addon */ +/* Written by Lior Lapid */ +(function($) { + $.timepicker.regional["he"] = { + timeOnlyTitle: "בחירת זמן", + timeText: "שעה", + hourText: "שעות", + minuteText: "דקות", + secondText: "שניות", + millisecText: "אלפית השנייה", + microsecText: "מיקרו", + timezoneText: "אזור זמן", + currentText: "עכשיו", + closeText:"סגור", + timeFormat: "HH:mm", + timeSuffix: '', + amNames: ['לפנה"צ', 'AM', 'A'], + pmNames: ['אחה"צ', 'PM', 'P'], + isRTL: true + }; + $.timepicker.setDefaults($.timepicker.regional["he"]); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-hr.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-hr.js new file mode 100644 index 0000000..b60f89a --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-hr.js @@ -0,0 +1,22 @@ +/* Croatian translation for the jQuery Timepicker Addon */ +/* Written by Mladen */ +(function($) { + $.timepicker.regional['hr'] = { + timeOnlyTitle: 'Odaberi vrijeme', + timeText: 'Vrijeme', + hourText: 'Sati', + minuteText: 'Minute', + secondText: 'Sekunde', + millisecText: 'Milisekunde', + microsecText: 'Mikrosekunde', + timezoneText: 'Vremenska zona', + currentText: 'Sada', + closeText: 'Gotovo', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['a.m.', 'AM', 'A'], + pmNames: ['p.m.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['hr']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-hu.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-hu.js new file mode 100644 index 0000000..6bdb0f4 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-hu.js @@ -0,0 +1,22 @@ +/* Hungarian translation for the jQuery Timepicker Addon */ +/* Written by Vas Gábor */ +(function($) { + $.timepicker.regional['hu'] = { + timeOnlyTitle: 'Válasszon időpontot', + timeText: 'Idő', + hourText: 'Óra', + minuteText: 'Perc', + secondText: 'Másodperc', + millisecText: 'Milliszekundumos', + microsecText: 'Ezredmásodperc', + timezoneText: 'Időzóna', + currentText: 'Most', + closeText: 'Kész', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['de.', 'AM', 'A'], + pmNames: ['du.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['hu']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-id.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-id.js new file mode 100644 index 0000000..9f21f50 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-id.js @@ -0,0 +1,22 @@ +/* Indonesian translation for the jQuery Timepicker Addon */ +/* Written by Nia */ +(function($) { + $.timepicker.regional['id'] = { + timeOnlyTitle: 'Pilih Waktu', + timeText: 'Waktu', + hourText: 'Pukul', + minuteText: 'Menit', + secondText: 'Detik', + millisecText: 'Milidetik', + microsecText: 'Mikrodetik', + timezoneText: 'Zona Waktu', + currentText: 'Sekarang', + closeText: 'OK', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['id']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-it.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-it.js new file mode 100644 index 0000000..540f41a --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-it.js @@ -0,0 +1,22 @@ +/* Italian translation for the jQuery Timepicker Addon */ +/* Written by Marco "logicoder" Del Tongo */ +(function($) { + $.timepicker.regional['it'] = { + timeOnlyTitle: 'Scegli orario', + timeText: 'Orario', + hourText: 'Ora', + minuteText: 'Minuti', + secondText: 'Secondi', + millisecText: 'Millisecondi', + microsecText: 'Microsecondi', + timezoneText: 'Fuso orario', + currentText: 'Adesso', + closeText: 'Chiudi', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['m.', 'AM', 'A'], + pmNames: ['p.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['it']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ja.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ja.js new file mode 100644 index 0000000..cd3f020 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ja.js @@ -0,0 +1,22 @@ +/* Japanese translation for the jQuery Timepicker Addon */ +/* Written by Jun Omae */ +(function($) { + $.timepicker.regional['ja'] = { + timeOnlyTitle: '時間を選択', + timeText: '時間', + hourText: '時', + minuteText: '分', + secondText: '秒', + millisecText: 'ミリ秒', + microsecText: 'マイクロ秒', + timezoneText: 'タイムゾーン', + currentText: '現時刻', + closeText: '閉じる', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['午前', 'AM', 'A'], + pmNames: ['午後', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['ja']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ko.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ko.js new file mode 100644 index 0000000..ca85b88 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ko.js @@ -0,0 +1,22 @@ +/* Korean translation for the jQuery Timepicker Addon */ +/* Written by Genie */ +(function($) { + $.timepicker.regional['ko'] = { + timeOnlyTitle: '시간 선택', + timeText: '시간', + hourText: '시', + minuteText: '분', + secondText: '초', + millisecText: '밀리초', + microsecText: '마이크로', + timezoneText: '표준 시간대', + currentText: '현재 시각', + closeText: '닫기', + timeFormat: 'tt h:mm', + timeSuffix: '', + amNames: ['오전', 'AM', 'A'], + pmNames: ['오후', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['ko']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-lt.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-lt.js new file mode 100644 index 0000000..97d2b8b --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-lt.js @@ -0,0 +1,22 @@ +/* Lithuanian translation for the jQuery Timepicker Addon */ +/* Written by Irmantas Šiupšinskas */ +(function($) { + $.timepicker.regional['lt'] = { + timeOnlyTitle: 'Pasirinkite laiką', + timeText: 'Laikas', + hourText: 'Valandos', + minuteText: 'Minutės', + secondText: 'Sekundės', + millisecText: 'Milisekundės', + microsecText: 'Mikrosekundės', + timezoneText: 'Laiko zona', + currentText: 'Dabar', + closeText: 'Uždaryti', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['priešpiet', 'AM', 'A'], + pmNames: ['popiet', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['lt']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-lv.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-lv.js new file mode 100644 index 0000000..0cbd6e6 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-lv.js @@ -0,0 +1,22 @@ +/* Latvian translation for the jQuery Timepicker Addon */ +/* Written by Dmitry Bogatykh */ +(function($) { + $.timepicker.regional['lv'] = { + timeOnlyTitle: 'Ievadiet laiku', + timeText: 'Laiks', + hourText: 'Stundas', + minuteText: 'Minūtes', + secondText: 'Sekundes', + millisecText: 'Milisekundes', + microsecText: 'Mikrosekundes', + timezoneText: 'Laika josla', + currentText: 'Tagad', + closeText: 'Aizvērt', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'AM', 'A'], + pmNames: ['PM', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['lv']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-mk.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-mk.js new file mode 100644 index 0000000..9857e01 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-mk.js @@ -0,0 +1,22 @@ +/* Macedonian cyrilic translation for the jQuery Timepicker Addon */ +/* Written by Vlatko Ristovski */ +(function($) { + $.timepicker.regional['mk'] = { + timeOnlyTitle: 'Одберете време', + timeText: 'Време', + hourText: 'Час', + minuteText: 'Минути', + secondText: 'Секунди', + millisecText: 'Милисекунди', + microsecText: 'Микросекунди', + timezoneText: 'Временска зона', + currentText: 'Сега', + closeText: 'Затвори', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['mk']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-nl.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-nl.js new file mode 100644 index 0000000..bc71fc1 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-nl.js @@ -0,0 +1,22 @@ +/* Dutch translation for the jQuery Timepicker Addon */ +/* Written by Martijn van der Lee */ +(function($) { + $.timepicker.regional['nl'] = { + timeOnlyTitle: 'Tijdstip', + timeText: 'Tijd', + hourText: 'Uur', + minuteText: 'Minuut', + secondText: 'Seconde', + millisecText: 'Milliseconde', + microsecText: 'Microseconde', + timezoneText: 'Tijdzone', + currentText: 'Vandaag', + closeText: 'Sluiten', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['nl']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-no.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-no.js new file mode 100644 index 0000000..39f32fd --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-no.js @@ -0,0 +1,22 @@ +/* Norwegian translation for the jQuery Timepicker Addon */ +/* Written by Morten Hauan (http://hauan.me) */ +(function($) { + $.timepicker.regional['no'] = { + timeOnlyTitle: 'Velg tid', + timeText: 'Tid', + hourText: 'Time', + minuteText: 'Minutt', + secondText: 'Sekund', + millisecText: 'Millisekund', + microsecText: 'mikrosekund', + timezoneText: 'Tidssone', + currentText: 'Nå', + closeText: 'Lukk', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['am', 'AM', 'A'], + pmNames: ['pm', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['no']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pl.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pl.js new file mode 100644 index 0000000..0a67a79 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pl.js @@ -0,0 +1,22 @@ +/* Polish translation for the jQuery Timepicker Addon */ +/* Written by Michał Pena */ +(function($) { + $.timepicker.regional['pl'] = { + timeOnlyTitle: 'Wybierz godzinę', + timeText: 'Czas', + hourText: 'Godzina', + minuteText: 'Minuta', + secondText: 'Sekunda', + millisecText: 'Milisekunda', + microsecText: 'Mikrosekunda', + timezoneText: 'Strefa czasowa', + currentText: 'Teraz', + closeText: 'Gotowe', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['pl']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pt-BR.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pt-BR.js new file mode 100644 index 0000000..0ad06a3 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pt-BR.js @@ -0,0 +1,22 @@ +/* Brazilian Portuguese translation for the jQuery Timepicker Addon */ +/* Written by Diogo Damiani (diogodamiani@gmail.com) */ +(function ($) { + $.timepicker.regional['pt-BR'] = { + timeOnlyTitle: 'Escolha o horário', + timeText: 'Horário', + hourText: 'Hora', + minuteText: 'Minutos', + secondText: 'Segundos', + millisecText: 'Milissegundos', + microsecText: 'Microssegundos', + timezoneText: 'Fuso horário', + currentText: 'Agora', + closeText: 'Fechar', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['a.m.', 'AM', 'A'], + pmNames: ['p.m.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['pt-BR']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pt.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pt.js new file mode 100644 index 0000000..0aa792e --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-pt.js @@ -0,0 +1,22 @@ +/* Portuguese translation for the jQuery Timepicker Addon */ +/* Written by Luan Almeida */ +(function($) { + $.timepicker.regional['pt'] = { + timeOnlyTitle: 'Escolha uma hora', + timeText: 'Hora', + hourText: 'Horas', + minuteText: 'Minutos', + secondText: 'Segundos', + millisecText: 'Milissegundos', + microsecText: 'Microssegundos', + timezoneText: 'Fuso horário', + currentText: 'Agora', + closeText: 'Fechar', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['a.m.', 'AM', 'A'], + pmNames: ['p.m.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['pt']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ro.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ro.js new file mode 100644 index 0000000..4f5f386 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ro.js @@ -0,0 +1,22 @@ +/* Romanian translation for the jQuery Timepicker Addon */ +/* Written by Romeo Adrian Cioaba */ +(function($) { + $.timepicker.regional['ro'] = { + timeOnlyTitle: 'Alegeţi o oră', + timeText: 'Timp', + hourText: 'Ore', + minuteText: 'Minute', + secondText: 'Secunde', + millisecText: 'Milisecunde', + microsecText: 'Microsecunde', + timezoneText: 'Fus orar', + currentText: 'Acum', + closeText: 'Închide', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['ro']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ru.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ru.js new file mode 100644 index 0000000..b539a73 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-ru.js @@ -0,0 +1,22 @@ +/* Russian translation for the jQuery Timepicker Addon */ +/* Written by Trent Richardson */ +(function($) { + $.timepicker.regional['ru'] = { + timeOnlyTitle: 'Выберите время', + timeText: 'Время', + hourText: 'Часы', + minuteText: 'Минуты', + secondText: 'Секунды', + millisecText: 'Миллисекунды', + microsecText: 'Микросекунды', + timezoneText: 'Часовой пояс', + currentText: 'Сейчас', + closeText: 'Закрыть', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['ru']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sk.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sk.js new file mode 100644 index 0000000..eee0d0b --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sk.js @@ -0,0 +1,22 @@ +/* Slovak translation for the jQuery Timepicker Addon */ +/* Written by David Vallner */ +(function($) { + $.timepicker.regional['sk'] = { + timeOnlyTitle: 'Zvoľte čas', + timeText: 'Čas', + hourText: 'Hodiny', + minuteText: 'Minúty', + secondText: 'Sekundy', + millisecText: 'Milisekundy', + microsecText: 'Mikrosekundy', + timezoneText: 'Časové pásmo', + currentText: 'Teraz', + closeText: 'Zavrieť', + timeFormat: 'H:m', + timeSuffix: '', + amNames: ['dop.', 'AM', 'A'], + pmNames: ['pop.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['sk']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sl.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sl.js new file mode 100644 index 0000000..0906b10 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sl.js @@ -0,0 +1,22 @@ +/* Slovenian translation for the jQuery Timepicker Addon */ +/* Written by Hadalin (https://github.com/hadalin) */ +(function($) { + $.timepicker.regional['sl'] = { + timeOnlyTitle: 'Izberite čas', + timeText: 'Čas', + hourText: 'Ura', + minuteText: 'Minute', + secondText: 'Sekunde', + millisecText: 'Milisekunde', + microsecText: 'Mikrosekunde', + timezoneText: 'Časovni pas', + currentText: 'Sedaj', + closeText: 'Zapri', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['dop.', 'AM', 'A'], + pmNames: ['pop.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['sl']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sq.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sq.js new file mode 100644 index 0000000..d93d88c --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sq.js @@ -0,0 +1,22 @@ +/* Albanian translation for the jQuery Timepicker Addon */ +/* Written by Olti Buzi */ +(function($) { + $.timepicker.regional['sq'] = { + timeOnlyTitle: 'Zgjidh orarin', + timeText: 'Orari', + hourText: 'Ora', + minuteText: 'Minuta', + secondText: 'Sekonda', + millisecText: 'Minisekonda', + microsecText: 'Mikrosekonda', + timezoneText: 'Zona kohore', + currentText: 'Tani', + closeText: 'Mbyll', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['m.', 'AM', 'A'], + pmNames: ['p.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['sq']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sr-RS.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sr-RS.js new file mode 100644 index 0000000..79a9803 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sr-RS.js @@ -0,0 +1,22 @@ +/* Serbian cyrilic translation for the jQuery Timepicker Addon */ +/* Written by Vladimir Jelovac */ +(function($) { + $.timepicker.regional['sr-RS'] = { + timeOnlyTitle: 'Одаберите време', + timeText: 'Време', + hourText: 'Сати', + minuteText: 'Минути', + secondText: 'Секунде', + millisecText: 'Милисекунде', + microsecText: 'Микросекунде', + timezoneText: 'Временска зона', + currentText: 'Сада', + closeText: 'Затвори', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['sr-RS']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sr-YU.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sr-YU.js new file mode 100644 index 0000000..260881a --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sr-YU.js @@ -0,0 +1,22 @@ +/* Serbian latin translation for the jQuery Timepicker Addon */ +/* Written by Vladimir Jelovac */ +(function($) { + $.timepicker.regional['sr-YU'] = { + timeOnlyTitle: 'Odaberite vreme', + timeText: 'Vreme', + hourText: 'Sati', + minuteText: 'Minuti', + secondText: 'Sekunde', + millisecText: 'Milisekunde', + microsecText: 'Mikrosekunde', + timezoneText: 'Vremenska zona', + currentText: 'Sada', + closeText: 'Zatvori', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['sr-YU']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sv.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sv.js new file mode 100644 index 0000000..7bb0e7e --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-sv.js @@ -0,0 +1,22 @@ +/* Swedish translation for the jQuery Timepicker Addon */ +/* Written by Nevon */ +(function($) { + $.timepicker.regional['sv'] = { + timeOnlyTitle: 'Välj en tid', + timeText: 'Tid', + hourText: 'Timme', + minuteText: 'Minut', + secondText: 'Sekund', + millisecText: 'Millisekund', + microsecText: 'Mikrosekund', + timezoneText: 'Tidszon', + currentText: 'Nu', + closeText: 'Stäng', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['sv']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-th.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-th.js new file mode 100644 index 0000000..4eb93a5 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-th.js @@ -0,0 +1,19 @@ +/* Thai translation for the jQuery Timepicker Addon */ +/* Written by Yote Wachirapornpongsa */ +(function($) { + $.timepicker.regional['th'] = { + timeOnlyTitle: 'เลือกเวลา', + timeText: 'เวลา ', + hourText: 'ชั่วโมง ', + minuteText: 'นาที', + secondText: 'วินาที', + millisecText: 'มิลลิวินาที', + microsecText: 'ไมโคริวินาที', + timezoneText: 'เขตเวลา', + currentText: 'เวลาปัจจุบัน', + closeText: 'ปิด', + timeFormat: 'hh:mm tt', + timeSuffix: '' + }; + $.timepicker.setDefaults($.timepicker.regional['th']); +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-tr.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-tr.js new file mode 100644 index 0000000..f426e70 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-tr.js @@ -0,0 +1,22 @@ +/* Turkish translation for the jQuery Timepicker Addon */ +/* Written by Fehmi Can Saglam, Edited by Goktug Ozturk */ +(function($) { + $.timepicker.regional['tr'] = { + timeOnlyTitle: 'Zaman Seçiniz', + timeText: 'Zaman', + hourText: 'Saat', + minuteText: 'Dakika', + secondText: 'Saniye', + millisecText: 'Milisaniye', + microsecText: 'Mikrosaniye', + timezoneText: 'Zaman Dilimi', + currentText: 'Şu an', + closeText: 'Tamam', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['ÖÖ', 'Ö'], + pmNames: ['ÖS', 'S'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['tr']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-uk.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-uk.js new file mode 100644 index 0000000..285c8ba --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-uk.js @@ -0,0 +1,22 @@ +/* Ukrainian translation for the jQuery Timepicker Addon */ +/* Written by Sergey Noskov */ +(function($) { + $.timepicker.regional['uk'] = { + timeOnlyTitle: 'Виберіть час', + timeText: 'Час', + hourText: 'Години', + minuteText: 'Хвилини', + secondText: 'Секунди', + millisecText: 'Мілісекунди', + microsecText: 'Мікросекунди', + timezoneText: 'Часовий пояс', + currentText: 'Зараз', + closeText: 'Закрити', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['uk']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-vi.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-vi.js new file mode 100644 index 0000000..59fddae --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-vi.js @@ -0,0 +1,22 @@ +/* Vietnamese translation for the jQuery Timepicker Addon */ +/* Written by Nguyen Dinh Trung */ +(function($) { + $.timepicker.regional['vi'] = { + timeOnlyTitle: 'Chọn giờ', + timeText: 'Thời gian', + hourText: 'Giờ', + minuteText: 'Phút', + secondText: 'Giây', + millisecText: 'Mili giây', + microsecText: 'Micrô giây', + timezoneText: 'Múi giờ', + currentText: 'Hiện thời', + closeText: 'Đóng', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['SA', 'S'], + pmNames: ['CH', 'C'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['vi']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-zh-CN.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-zh-CN.js new file mode 100644 index 0000000..a5ca804 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-zh-CN.js @@ -0,0 +1,22 @@ +/* Simplified Chinese translation for the jQuery Timepicker Addon / +/ Written by Will Lu */ +(function($) { + $.timepicker.regional['zh-CN'] = { + timeOnlyTitle: '选择时间', + timeText: '时间', + hourText: '小时', + minuteText: '分钟', + secondText: '秒钟', + millisecText: '毫秒', + microsecText: '微秒', + timezoneText: '时区', + currentText: '现在时间', + closeText: '关闭', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['zh-CN']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-zh-TW.js b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-zh-TW.js new file mode 100644 index 0000000..762797b --- /dev/null +++ b/htdocs/cgi-bin/wsrc/i18n/jquery-ui-timepicker-zh-TW.js @@ -0,0 +1,22 @@ +/* Chinese translation for the jQuery Timepicker Addon */ +/* Written by Alang.lin */ +(function($) { + $.timepicker.regional['zh-TW'] = { + timeOnlyTitle: '選擇時分秒', + timeText: '時間', + hourText: '時', + minuteText: '分', + secondText: '秒', + millisecText: '毫秒', + microsecText: '微秒', + timezoneText: '時區', + currentText: '現在時間', + closeText: '確定', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['上午', 'AM', 'A'], + pmNames: ['下午', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['zh-TW']); +})(jQuery); diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png b/htdocs/cgi-bin/wsrc/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png new file mode 100644 index 0000000..ba0f85c Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_glass_100_e4f1fb_1x400.png b/htdocs/cgi-bin/wsrc/images/ui-bg_glass_100_e4f1fb_1x400.png new file mode 100644 index 0000000..1de00f8 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_glass_100_e4f1fb_1x400.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_glass_50_3baae3_1x400.png b/htdocs/cgi-bin/wsrc/images/ui-bg_glass_50_3baae3_1x400.png new file mode 100644 index 0000000..de01b43 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_glass_50_3baae3_1x400.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_glass_80_d7ebf9_1x400.png b/htdocs/cgi-bin/wsrc/images/ui-bg_glass_80_d7ebf9_1x400.png new file mode 100644 index 0000000..cf5d835 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_glass_80_d7ebf9_1x400.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png new file mode 100644 index 0000000..3deba69 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-hard_70_000000_1x100.png b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-hard_70_000000_1x100.png new file mode 100644 index 0000000..cf47bf9 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-hard_70_000000_1x100.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_100_deedf7_1x100 (copy).png b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_100_deedf7_1x100 (copy).png new file mode 100644 index 0000000..5a36337 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_100_deedf7_1x100 (copy).png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_100_deedf7_1x100.png b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_100_deedf7_1x100.png new file mode 100644 index 0000000..925a568 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_100_deedf7_1x100.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_25_ffef8f_1x100.png b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_25_ffef8f_1x100.png new file mode 100644 index 0000000..6c48948 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-bg_highlight-soft_25_ffef8f_1x100.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-icons_2694e8_256x240.png b/htdocs/cgi-bin/wsrc/images/ui-icons_2694e8_256x240.png new file mode 100644 index 0000000..a3f4509 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-icons_2694e8_256x240.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-icons_2e83ff_256x240.png b/htdocs/cgi-bin/wsrc/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 0000000..1f5f497 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-icons_2e83ff_256x240.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-icons_3d80b3_256x240.png b/htdocs/cgi-bin/wsrc/images/ui-icons_3d80b3_256x240.png new file mode 100644 index 0000000..6ed9d63 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-icons_3d80b3_256x240.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-icons_72a7cf_256x240.png b/htdocs/cgi-bin/wsrc/images/ui-icons_72a7cf_256x240.png new file mode 100644 index 0000000..b7c5812 Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-icons_72a7cf_256x240.png differ diff --git a/htdocs/cgi-bin/wsrc/images/ui-icons_ffffff_256x240.png b/htdocs/cgi-bin/wsrc/images/ui-icons_ffffff_256x240.png new file mode 100644 index 0000000..fe41d2d Binary files /dev/null and b/htdocs/cgi-bin/wsrc/images/ui-icons_ffffff_256x240.png differ diff --git a/htdocs/cgi-bin/wsrc/jquery-ui-sliderAccess.js b/htdocs/cgi-bin/wsrc/jquery-ui-sliderAccess.js new file mode 100644 index 0000000..b075c66 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/jquery-ui-sliderAccess.js @@ -0,0 +1,91 @@ +/* + * jQuery UI Slider Access + * By: Trent Richardson [http://trentrichardson.com] + * Version 0.3 + * Last Modified: 10/20/2012 + * + * Copyright 2011 Trent Richardson + * Dual licensed under the MIT and GPL licenses. + * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt + * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt + * + */ + (function($){ + + $.fn.extend({ + sliderAccess: function(options){ + options = options || {}; + options.touchonly = options.touchonly !== undefined? options.touchonly : true; // by default only show it if touch device + + if(options.touchonly === true && !("ontouchend" in document)){ + return $(this); + } + + return $(this).each(function(i,obj){ + var $t = $(this), + o = $.extend({},{ + where: 'after', + step: $t.slider('option','step'), + upIcon: 'ui-icon-plus', + downIcon: 'ui-icon-minus', + text: false, + upText: '+', + downText: '-', + buttonset: true, + buttonsetTag: 'span', + isRTL: false + }, options), + $buttons = $('<'+ o.buttonsetTag +' class="ui-slider-access">'+ + ''+ + ''+ + ''); + + $buttons.children('button').each(function(j, jobj){ + var $jt = $(this); + $jt.button({ + text: o.text, + icons: { primary: $jt.data('icon') } + }) + .click(function(e){ + var step = $jt.data('step'), + curr = $t.slider('value'), + newval = curr += step*1, + minval = $t.slider('option','min'), + maxval = $t.slider('option','max'), + slidee = $t.slider("option", "slide") || function(){}, + stope = $t.slider("option", "stop") || function(){}; + + e.preventDefault(); + + if(newval < minval || newval > maxval){ + return; + } + + $t.slider('value', newval); + + slidee.call($t, null, { value: newval }); + stope.call($t, null, { value: newval }); + }); + }); + + // before or after + $t[o.where]($buttons); + + if(o.buttonset){ + $buttons.removeClass('ui-corner-right').removeClass('ui-corner-left').buttonset(); + $buttons.eq(0).addClass('ui-corner-left'); + $buttons.eq(1).addClass('ui-corner-right'); + } + + // adjust the width so we don't break the original layout + var bOuterWidth = $buttons.css({ + marginLeft: ((o.where === 'after' && !o.isRTL) || (o.where === 'before' && o.isRTL)? 10:0), + marginRight: ((o.where === 'before' && !o.isRTL) || (o.where === 'after' && o.isRTL)? 10:0) + }).outerWidth(true) + 5; + var tOuterWidth = $t.outerWidth(true); + $t.css('display','inline-block').width(tOuterWidth-bOuterWidth); + }); + } + }); + +})(jQuery); \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/jquery-ui-timepicker-addon.css b/htdocs/cgi-bin/wsrc/jquery-ui-timepicker-addon.css new file mode 100644 index 0000000..586a7f0 --- /dev/null +++ b/htdocs/cgi-bin/wsrc/jquery-ui-timepicker-addon.css @@ -0,0 +1,30 @@ +.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } +.ui-timepicker-div dl { text-align: left; } +.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; } +.ui-timepicker-div dl dd { margin: 0 10px 10px 40%; } +.ui-timepicker-div td { font-size: 90%; } +.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } +.ui-timepicker-div .ui_tpicker_unit_hide{ display: none; } + +.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input { background: none; color: inherit; border: none; outline: none; border-bottom: solid 1px #555; width: 95%; } +.ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus { border-bottom-color: #aaa; } + +.ui-timepicker-rtl{ direction: rtl; } +.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; } +.ui-timepicker-rtl dl dt{ float: right; clear: right; } +.ui-timepicker-rtl dl dd { margin: 0 40% 10px 10px; } + +/* Shortened version style */ +.ui-timepicker-div.ui-timepicker-oneLine { padding-right: 2px; } +.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time, +.ui-timepicker-div.ui-timepicker-oneLine dt { display: none; } +.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_time_label { display: block; padding-top: 2px; } +.ui-timepicker-div.ui-timepicker-oneLine dl { text-align: right; } +.ui-timepicker-div.ui-timepicker-oneLine dl dd, +.ui-timepicker-div.ui-timepicker-oneLine dl dd > div { display:inline-block; margin:0; } +.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_minute:before, +.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_second:before { content:':'; display:inline-block; } +.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_millisec:before, +.ui-timepicker-div.ui-timepicker-oneLine dl dd.ui_tpicker_microsec:before { content:'.'; display:inline-block; } +.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide, +.ui-timepicker-div.ui-timepicker-oneLine .ui_tpicker_unit_hide:before{ display: none; } \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/jquery-ui-timepicker-addon.js b/htdocs/cgi-bin/wsrc/jquery-ui-timepicker-addon.js new file mode 100644 index 0000000..9bbb21f --- /dev/null +++ b/htdocs/cgi-bin/wsrc/jquery-ui-timepicker-addon.js @@ -0,0 +1,2297 @@ +/* + * jQuery Timepicker Addon + * By: Trent Richardson [http://trentrichardson.com] + * + * Copyright 2013 Trent Richardson + * You may use this project under MIT license. + * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt + */ + +(function (factory) { + if (typeof define === 'function' && define.amd) { + define(['jquery', 'jquery-ui'], factory); + } else { + factory(jQuery); + } +}(function ($) { + + /* + * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded" + */ + $.ui.timepicker = $.ui.timepicker || {}; + if ($.ui.timepicker.version) { + return; + } + + /* + * Extend jQueryUI, get it started with our version number + */ + $.extend($.ui, { + timepicker: { + version: "@@version" + } + }); + + /* + * Timepicker manager. + * Use the singleton instance of this class, $.timepicker, to interact with the time picker. + * Settings for (groups of) time pickers are maintained in an instance object, + * allowing multiple different settings on the same page. + */ + var Timepicker = function () { + this.regional = []; // Available regional settings, indexed by language code + this.regional[''] = { // Default regional settings + currentText: 'Now', + closeText: 'Done', + amNames: ['AM', 'A'], + pmNames: ['PM', 'P'], + timeFormat: 'HH:mm', + timeSuffix: '', + timeOnlyTitle: 'Choose Time', + timeText: 'Time', + hourText: 'Hour', + minuteText: 'Minute', + secondText: 'Second', + millisecText: 'Millisecond', + microsecText: 'Microsecond', + timezoneText: 'Time Zone', + isRTL: false + }; + this._defaults = { // Global defaults for all the datetime picker instances + showButtonPanel: true, + timeOnly: false, + timeOnlyShowDate: false, + showHour: null, + showMinute: null, + showSecond: null, + showMillisec: null, + showMicrosec: null, + showTimezone: null, + showTime: true, + stepHour: 1, + stepMinute: 1, + stepSecond: 1, + stepMillisec: 1, + stepMicrosec: 1, + hour: 0, + minute: 0, + second: 0, + millisec: 0, + microsec: 0, + timezone: null, + hourMin: 0, + minuteMin: 0, + secondMin: 0, + millisecMin: 0, + microsecMin: 0, + hourMax: 23, + minuteMax: 59, + secondMax: 59, + millisecMax: 999, + microsecMax: 999, + minDateTime: null, + maxDateTime: null, + maxTime: null, + minTime: null, + onSelect: null, + hourGrid: 0, + minuteGrid: 0, + secondGrid: 0, + millisecGrid: 0, + microsecGrid: 0, + alwaysSetTime: true, + separator: ' ', + altFieldTimeOnly: true, + altTimeFormat: null, + altSeparator: null, + altTimeSuffix: null, + altRedirectFocus: true, + pickerTimeFormat: null, + pickerTimeSuffix: null, + showTimepicker: true, + timezoneList: null, + addSliderAccess: false, + sliderAccessArgs: null, + controlType: 'slider', + oneLine: false, + defaultValue: null, + parse: 'strict', + afterInject: null + }; + $.extend(this._defaults, this.regional['']); + }; + + $.extend(Timepicker.prototype, { + $input: null, + $altInput: null, + $timeObj: null, + inst: null, + hour_slider: null, + minute_slider: null, + second_slider: null, + millisec_slider: null, + microsec_slider: null, + timezone_select: null, + maxTime: null, + minTime: null, + hour: 0, + minute: 0, + second: 0, + millisec: 0, + microsec: 0, + timezone: null, + hourMinOriginal: null, + minuteMinOriginal: null, + secondMinOriginal: null, + millisecMinOriginal: null, + microsecMinOriginal: null, + hourMaxOriginal: null, + minuteMaxOriginal: null, + secondMaxOriginal: null, + millisecMaxOriginal: null, + microsecMaxOriginal: null, + ampm: '', + formattedDate: '', + formattedTime: '', + formattedDateTime: '', + timezoneList: null, + units: ['hour', 'minute', 'second', 'millisec', 'microsec'], + support: {}, + control: null, + + /* + * Override the default settings for all instances of the time picker. + * @param {Object} settings object - the new settings to use as defaults (anonymous object) + * @return {Object} the manager object + */ + setDefaults: function (settings) { + extendRemove(this._defaults, settings || {}); + return this; + }, + + /* + * Create a new Timepicker instance + */ + _newInst: function ($input, opts) { + var tp_inst = new Timepicker(), + inlineSettings = {}, + fns = {}, + overrides, i; + + for (var attrName in this._defaults) { + if (this._defaults.hasOwnProperty(attrName)) { + var attrValue = $input.attr('time:' + attrName); + if (attrValue) { + try { + inlineSettings[attrName] = eval(attrValue); + } catch (err) { + inlineSettings[attrName] = attrValue; + } + } + } + } + + overrides = { + beforeShow: function (input, dp_inst) { + if ($.isFunction(tp_inst._defaults.evnts.beforeShow)) { + return tp_inst._defaults.evnts.beforeShow.call($input[0], input, dp_inst, tp_inst); + } + }, + onChangeMonthYear: function (year, month, dp_inst) { + // Update the time as well : this prevents the time from disappearing from the $input field. + // tp_inst._updateDateTime(dp_inst); + if ($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)) { + tp_inst._defaults.evnts.onChangeMonthYear.call($input[0], year, month, dp_inst, tp_inst); + } + }, + onClose: function (dateText, dp_inst) { + if (tp_inst.timeDefined === true && $input.val() !== '') { + tp_inst._updateDateTime(dp_inst); + } + if ($.isFunction(tp_inst._defaults.evnts.onClose)) { + tp_inst._defaults.evnts.onClose.call($input[0], dateText, dp_inst, tp_inst); + } + } + }; + for (i in overrides) { + if (overrides.hasOwnProperty(i)) { + fns[i] = opts[i] || this._defaults[i] || null; + } + } + + tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, opts, overrides, { + evnts: fns, + timepicker: tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker'); + }); + tp_inst.amNames = $.map(tp_inst._defaults.amNames, function (val) { + return val.toUpperCase(); + }); + tp_inst.pmNames = $.map(tp_inst._defaults.pmNames, function (val) { + return val.toUpperCase(); + }); + + // detect which units are supported + tp_inst.support = detectSupport( + tp_inst._defaults.timeFormat + + (tp_inst._defaults.pickerTimeFormat ? tp_inst._defaults.pickerTimeFormat : '') + + (tp_inst._defaults.altTimeFormat ? tp_inst._defaults.altTimeFormat : '')); + + // controlType is string - key to our this._controls + if (typeof(tp_inst._defaults.controlType) === 'string') { + if (tp_inst._defaults.controlType === 'slider' && typeof($.ui.slider) === 'undefined') { + tp_inst._defaults.controlType = 'select'; + } + tp_inst.control = tp_inst._controls[tp_inst._defaults.controlType]; + } + // controlType is an object and must implement create, options, value methods + else { + tp_inst.control = tp_inst._defaults.controlType; + } + + // prep the timezone options + var timezoneList = [-720, -660, -600, -570, -540, -480, -420, -360, -300, -270, -240, -210, -180, -120, -60, + 0, 60, 120, 180, 210, 240, 270, 300, 330, 345, 360, 390, 420, 480, 525, 540, 570, 600, 630, 660, 690, 720, 765, 780, 840]; + if (tp_inst._defaults.timezoneList !== null) { + timezoneList = tp_inst._defaults.timezoneList; + } + var tzl = timezoneList.length, tzi = 0, tzv = null; + if (tzl > 0 && typeof timezoneList[0] !== 'object') { + for (; tzi < tzl; tzi++) { + tzv = timezoneList[tzi]; + timezoneList[tzi] = { value: tzv, label: $.timepicker.timezoneOffsetString(tzv, tp_inst.support.iso8601) }; + } + } + tp_inst._defaults.timezoneList = timezoneList; + + // set the default units + tp_inst.timezone = tp_inst._defaults.timezone !== null ? $.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone) : + ((new Date()).getTimezoneOffset() * -1); + tp_inst.hour = tp_inst._defaults.hour < tp_inst._defaults.hourMin ? tp_inst._defaults.hourMin : + tp_inst._defaults.hour > tp_inst._defaults.hourMax ? tp_inst._defaults.hourMax : tp_inst._defaults.hour; + tp_inst.minute = tp_inst._defaults.minute < tp_inst._defaults.minuteMin ? tp_inst._defaults.minuteMin : + tp_inst._defaults.minute > tp_inst._defaults.minuteMax ? tp_inst._defaults.minuteMax : tp_inst._defaults.minute; + tp_inst.second = tp_inst._defaults.second < tp_inst._defaults.secondMin ? tp_inst._defaults.secondMin : + tp_inst._defaults.second > tp_inst._defaults.secondMax ? tp_inst._defaults.secondMax : tp_inst._defaults.second; + tp_inst.millisec = tp_inst._defaults.millisec < tp_inst._defaults.millisecMin ? tp_inst._defaults.millisecMin : + tp_inst._defaults.millisec > tp_inst._defaults.millisecMax ? tp_inst._defaults.millisecMax : tp_inst._defaults.millisec; + tp_inst.microsec = tp_inst._defaults.microsec < tp_inst._defaults.microsecMin ? tp_inst._defaults.microsecMin : + tp_inst._defaults.microsec > tp_inst._defaults.microsecMax ? tp_inst._defaults.microsecMax : tp_inst._defaults.microsec; + tp_inst.ampm = ''; + tp_inst.$input = $input; + + if (tp_inst._defaults.altField) { + tp_inst.$altInput = $(tp_inst._defaults.altField); + if (tp_inst._defaults.altRedirectFocus === true) { + tp_inst.$altInput.css({ + cursor: 'pointer' + }).focus(function () { + $input.trigger("focus"); + }); + } + } + + if (tp_inst._defaults.minDate === 0 || tp_inst._defaults.minDateTime === 0) { + tp_inst._defaults.minDate = new Date(); + } + if (tp_inst._defaults.maxDate === 0 || tp_inst._defaults.maxDateTime === 0) { + tp_inst._defaults.maxDate = new Date(); + } + + // datepicker needs minDate/maxDate, timepicker needs minDateTime/maxDateTime.. + if (tp_inst._defaults.minDate !== undefined && tp_inst._defaults.minDate instanceof Date) { + tp_inst._defaults.minDateTime = new Date(tp_inst._defaults.minDate.getTime()); + } + if (tp_inst._defaults.minDateTime !== undefined && tp_inst._defaults.minDateTime instanceof Date) { + tp_inst._defaults.minDate = new Date(tp_inst._defaults.minDateTime.getTime()); + } + if (tp_inst._defaults.maxDate !== undefined && tp_inst._defaults.maxDate instanceof Date) { + tp_inst._defaults.maxDateTime = new Date(tp_inst._defaults.maxDate.getTime()); + } + if (tp_inst._defaults.maxDateTime !== undefined && tp_inst._defaults.maxDateTime instanceof Date) { + tp_inst._defaults.maxDate = new Date(tp_inst._defaults.maxDateTime.getTime()); + } + tp_inst.$input.bind('focus', function () { + tp_inst._onFocus(); + }); + + return tp_inst; + }, + + /* + * add our sliders to the calendar + */ + _addTimePicker: function (dp_inst) { + var currDT = $.trim((this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val()); + + this.timeDefined = this._parseTime(currDT); + this._limitMinMaxDateTime(dp_inst, false); + this._injectTimePicker(); + this._afterInject(); + }, + + /* + * parse the time string from input value or _setTime + */ + _parseTime: function (timeString, withDate) { + if (!this.inst) { + this.inst = $.datepicker._getInst(this.$input[0]); + } + + if (withDate || !this._defaults.timeOnly) { + var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat'); + try { + var parseRes = parseDateTimeInternal(dp_dateFormat, this._defaults.timeFormat, timeString, $.datepicker._getFormatConfig(this.inst), this._defaults); + if (!parseRes.timeObj) { + return false; + } + $.extend(this, parseRes.timeObj); + } catch (err) { + $.timepicker.log("Error parsing the date/time string: " + err + + "\ndate/time string = " + timeString + + "\ntimeFormat = " + this._defaults.timeFormat + + "\ndateFormat = " + dp_dateFormat); + return false; + } + return true; + } else { + var timeObj = $.datepicker.parseTime(this._defaults.timeFormat, timeString, this._defaults); + if (!timeObj) { + return false; + } + $.extend(this, timeObj); + return true; + } + }, + + /* + * Handle callback option after injecting timepicker + */ + _afterInject: function() { + var o = this.inst.settings; + if ($.isFunction(o.afterInject)) { + o.afterInject.call(this); + } + }, + + /* + * generate and inject html for timepicker into ui datepicker + */ + _injectTimePicker: function () { + var $dp = this.inst.dpDiv, + o = this.inst.settings, + tp_inst = this, + litem = '', + uitem = '', + show = null, + max = {}, + gridSize = {}, + size = null, + i = 0, + l = 0; + + // Prevent displaying twice + if ($dp.find("div.ui-timepicker-div").length === 0 && o.showTimepicker) { + var noDisplay = ' ui_tpicker_unit_hide', + html = '
' + '
' + o.timeText + '
' + + '
'; + + // Create the markup + for (i = 0, l = this.units.length; i < l; i++) { + litem = this.units[i]; + uitem = litem.substr(0, 1).toUpperCase() + litem.substr(1); + show = o['show' + uitem] !== null ? o['show' + uitem] : this.support[litem]; + + // Added by Peter Medeiros: + // - Figure out what the hour/minute/second max should be based on the step values. + // - Example: if stepMinute is 15, then minMax is 45. + max[litem] = parseInt((o[litem + 'Max'] - ((o[litem + 'Max'] - o[litem + 'Min']) % o['step' + uitem])), 10); + gridSize[litem] = 0; + + html += '
' + o[litem + 'Text'] + '
' + + '
'; + + if (show && o[litem + 'Grid'] > 0) { + html += '
* LOG ENTRY FORM *
Date:hms . - qq(">  -   + Date:hms.qq("> + +   +  Category: +$cats +

Log: -    Category: $cats
Log: + +
 Ammount:
 Ammount:
View by Category:.$cats.
View by Category:$cats
'; + + if (litem === 'hour') { + for (var h = o[litem + 'Min']; h <= max[litem]; h += parseInt(o[litem + 'Grid'], 10)) { + gridSize[litem]++; + var tmph = $.datepicker.formatTime(this.support.ampm ? 'hht' : 'HH', {hour: h}, o); + html += ''; + } + } + else { + for (var m = o[litem + 'Min']; m <= max[litem]; m += parseInt(o[litem + 'Grid'], 10)) { + gridSize[litem]++; + html += ''; + } + } + + html += '
' + tmph + '' + ((m < 10) ? '0' : '') + m + '
'; + } + html += ''; + } + + // Timezone + var showTz = o.showTimezone !== null ? o.showTimezone : this.support.timezone; + html += '
' + o.timezoneText + '
'; + html += '
'; + + // Create the elements from string + html += ''; + var $tp = $(html); + + // if we only want time picker... + if (o.timeOnly === true) { + $tp.prepend('
' + '
' + o.timeOnlyTitle + '
' + '
'); + $dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide(); + } + + // add sliders, adjust grids, add events + for (i = 0, l = tp_inst.units.length; i < l; i++) { + litem = tp_inst.units[i]; + uitem = litem.substr(0, 1).toUpperCase() + litem.substr(1); + show = o['show' + uitem] !== null ? o['show' + uitem] : this.support[litem]; + + // add the slider + tp_inst[litem + '_slider'] = tp_inst.control.create(tp_inst, $tp.find('.ui_tpicker_' + litem + '_slider'), litem, tp_inst[litem], o[litem + 'Min'], max[litem], o['step' + uitem]); + + // adjust the grid and add click event + if (show && o[litem + 'Grid'] > 0) { + size = 100 * gridSize[litem] * o[litem + 'Grid'] / (max[litem] - o[litem + 'Min']); + $tp.find('.ui_tpicker_' + litem + ' table').css({ + width: size + "%", + marginLeft: o.isRTL ? '0' : ((size / (-2 * gridSize[litem])) + "%"), + marginRight: o.isRTL ? ((size / (-2 * gridSize[litem])) + "%") : '0', + borderCollapse: 'collapse' + }).find("td").click(function (e) { + var $t = $(this), + h = $t.html(), + n = parseInt(h.replace(/[^0-9]/g), 10), + ap = h.replace(/[^apm]/ig), + f = $t.data('for'); // loses scope, so we use data-for + + if (f === 'hour') { + if (ap.indexOf('p') !== -1 && n < 12) { + n += 12; + } + else { + if (ap.indexOf('a') !== -1 && n === 12) { + n = 0; + } + } + } + + tp_inst.control.value(tp_inst, tp_inst[f + '_slider'], litem, n); + + tp_inst._onTimeChange(); + tp_inst._onSelectHandler(); + }).css({ + cursor: 'pointer', + width: (100 / gridSize[litem]) + '%', + textAlign: 'center', + overflow: 'hidden' + }); + } // end if grid > 0 + } // end for loop + + // Add timezone options + this.timezone_select = $tp.find('.ui_tpicker_timezone').append('').find("select"); + $.fn.append.apply(this.timezone_select, + $.map(o.timezoneList, function (val, idx) { + return $("