Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php/ajax] kalendarz?
-krkkk_-
post
Post #1





Goście







Witam, mógłby mi ktoś , niewiem jak zrobić np. kalendarz przy rejestracji i trzeba na niego kliknąć by wybrać datę urodzenia i automatycznie wtedy wypełni input - istnieje może coś takiego gotowego ? - a jeśli nie to tak to zrobić ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 559
Pomógł: 6315
Dołączył: 27.12.2004




Kurcze, przeciez masz tam wszystko opisane, jak wol.
Cytat
You can restrict the functionality of the date picker in various ways. The first example sets the first day of the week to Monday and prevents it from being changed, as well as preventing the month and year from being selected directly.

Restricted functionality: Calendar


$('#restrictControls').attachDatepicker({firstDay: 1, changeFirstDay: false,
changeMonth: false, changeYear: false});

You can also limit the range of dates selectable within the date picker. Here it's between 26-Jan-05 and 26-Jan-07.

Limited dates: Calendar


$('#restrictDates').attachDatepicker({minDate: new Date(2005, 1 - 1, 26),
maxDate: new Date(2007, 1 - 1, 26)});

Or set a range relative to today by specifying a number rather than an exact date, in this case in the coming year.

Limited dates (relative): Calendar


$('#relativeDates').attachDatepicker({minDate: 0, maxDate: 365});

The relative dates can also be specified as a number and a period - 'd' for days, 'w' for weeks, 'm' for months, or 'y' for years.

Limited dates (extended): Calendar


$('#extendedDates').attachDatepicker({minDate: '-1d', maxDate: '6y'});

Note that the range of selectable months and years changes appropriately. Also, note that the Today link is no longer available as today is not in the range. By default, the Prev and Next links are disabled if they are not applicable. You can override this to remove them instead, with the hideIfNoPrevNext setting.

Polataj po zakladkach co tam masz na stronie. Tam jest dokladny opis. Dostajesz wszystko jak na dloni i jeszcze marudzisz....
Go to the top of the page
+Quote Post

Posty w temacie
- krkkk_   [php/ajax] kalendarz?   15.02.2008, 12:32:56
- - nospor   http://marcgrabanski.com/code/ui-datepicker/   15.02.2008, 12:38:18
- - redelek   Cytat(krkkk_ @ 15.02.2008, 12:32:56 )...   15.02.2008, 12:44:50
- - Gość   dzzięki !   15.02.2008, 12:45:14
- - Gość   Jeszcze raz ja Otuż, mam problem z tym kalendarz...   15.02.2008, 13:53:11
- - nospor   Kalendarz co wybrales tego nie oferuje. Jest to pr...   15.02.2008, 14:34:44
- - Gość   ten twój za bardzo skomplikowany mi się zdaje ;( z...   15.02.2008, 14:47:20
- - nospor   Kurcze, przeciez masz tam wszystko opisane, jak wo...   15.02.2008, 14:51:12


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 00:37