Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [php/ajax] kalendarz?
Forum PHP.pl > Forum > Przedszkole
krkkk_
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ć ?
nospor
http://marcgrabanski.com/code/ui-datepicker/
redelek
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
Gość
dzzięki !
Gość
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ć?
nospor
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
Gość
ten twój za bardzo skomplikowany mi się zdaje ;(
za bardzo niewiem jak zrobić
nospor
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....
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.