Witam, (IMG:
http://forum.php.pl/style_emoticons/default/biggrin.gif) chciałbym zamieścic w formularzu pole data/godzina, gdzie po naciśnięciu na input wyświetli mi kalendarzyk z godziną..
Znalazłem pewną stronę z takim date pickerem..
http://www.softcomplex.com/products/tigra_...ndar/demo1.html ..ale mam problem z jego zamieszczeniem.. (IMG:
http://forum.php.pl/style_emoticons/default/worriedsmiley.gif) tzn. wklejam kod i... przy formularzu widnieje mała ikonka kalendarza, ale po jej wciśnięciu nic się nie wyświetla (a powinien kalendarz).
Będę wdzięczny za każdą pomoc.. (IMG:
http://forum.php.pl/style_emoticons/default/biggrin.gif)
Oto kod, który wkleiłem na stronę..
Select Date (w. year scrl.):
<br> <input type="Text" name="input1" value=""> <a href="javascript:cal1.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br> Select Date (w/o year scrl.):
<br> <input type="Text" name="input2" value=""> <a href="javascript:cal2.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
Select Timestamp (w. year scrl.):
<br> <input type="Text" name="input3" value=""> <a href="javascript:cal3.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br> Select Timestamp (w/o year scrl.):
<br> <input type="Text" name="input4" value=""> <a href="javascript:cal4.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
<script language="JavaScript"> var cal1 = new calendar1(document.forms['tstest'].elements['input1']);
cal1.year_scroll = true;
cal1.time_comp = false;
var cal2 = new calendar1(document.forms['tstest'].elements['input2']);
cal2.year_scroll = false;
cal2.time_comp = false;
var cal3 = new calendar1(document.forms['tstest'].elements['input3']);
cal3.year_scroll = true;
cal3.time_comp = true;
var cal4 = new calendar1(document.forms['tstest'].elements['input4']);
cal4.year_scroll = false;
cal4.time_comp = true;
var cal5 = new calendar2(document.forms['tstest'].elements['input5']);
cal5.year_scroll = true;
cal5.time_comp = false;
var cal6 = new calendar2(document.forms['tstest'].elements['input6']);
cal6.year_scroll = false;
cal6.time_comp = false;
var cal7 = new calendar2(document.forms['tstest'].elements['input7']);
cal7.year_scroll = true;
cal7.time_comp = true;
var cal8 = new calendar2(document.forms['tstest'].elements['input8']);
cal8.year_scroll = false;
cal8.time_comp = true;
var cal9 = new calendar3(document.forms['tstest'].elements['input9']);
cal9.year_scroll = true;
cal9.time_comp = false;
var cal10 = new calendar3(document.forms['tstest'].elements['input10']);
cal10.year_scroll = false;
cal10.time_comp = false;
var cal11 = new calendar3(document.forms['tstest'].elements['input11']);
cal11.year_scroll = true;
cal11.time_comp = true;
var cal12 = new calendar3(document.forms['tstest'].elements['input12']);
cal12.year_scroll = false;
cal12.time_comp = true;
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript"> var pageTracker = _gat._getTracker("UA-2103267-1");
pageTracker._initData();
pageTracker._trackPageview();
...już dałem rade (IMG:
http://forum.php.pl/style_emoticons/default/smile.gif)
Ten post edytował em-ba 15.05.2008, 15:52:25