Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [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
nospor
post
Post #2





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




http://marcgrabanski.com/code/ui-datepicker/


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
redelek
post
Post #3





Grupa: Zarejestrowani
Postów: 658
Pomógł: 37
Dołączył: 4.06.2005
Skąd: Wawa

Ostrzeżenie: (0%)
-----


Cytat(krkkk_ @ 15.02.2008, 12:32:56 ) *
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ć ?

Może to poprzerabiaj i będzie śmigać.
http://js.webhelp.pl/js/prz.php?id=.&#...datepicker.html


Pozdrawiam
Redelek


--------------------
Pozdrawiam
Piotrek R
Go to the top of the page
+Quote Post
-Gość-
post
Post #4





Goście







dzzięki !
Go to the top of the page
+Quote Post
-Gość-
post
Post #5





Goście







Jeszcze raz ja winksmiley.jpg

Otuż, mam problem z tym kalendarzem :

http://js.webhelp.pl/js/prz.php?id=.&#...datepicker.html

- a dokładniej to że np mogę tutaj datę 2100, a chciałbym aby maksymalna była aktualna data.
A minimalną był rok 1900. Jak to można zrobić?
Go to the top of the page
+Quote Post
nospor
post
Post #6





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




Kalendarz co wybrales tego nie oferuje. Jest to prosty kalendarz. Jakbys wybral co ja ci podalem, to bys mogl se naustawiac co bys tylko chcial. smile.gif
A jak i moj ci sie nie podoba, to wejdz na google i wpisz: "js calendar" i poszukaj


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
-Gość-
post
Post #7





Goście







ten twój za bardzo skomplikowany mi się zdaje ;(
za bardzo niewiem jak zrobić
Go to the top of the page
+Quote Post
nospor
post
Post #8





Grupa: Moderatorzy
Postów: 36 557
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....


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 22.08.2025 - 05:26