Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Kalendarz, odświeżanie
pandaci
post 20.12.2007, 13:13:47
Post #1





Grupa: Zarejestrowani
Postów: 66
Pomógł: 0
Dołączył: 13.04.2007

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


Witam

Mam takie problemy.

Gdy z logowania przechodzę do kolejnej strony i mam wpisane w logowaniu xxx.php?a=cos wejdzie,
ale nie wyśwetli tego cosia chyba ze zrobię odśwież. Dlaczego??

Mam plik z kalendarzem który includuje w dwóch innych plikach. W jednym działa bez problemu w drugim nie co jest nie tak??

Kalendzarz
  1. <?php
  2. <html>
  3. <head>
  4. <META http-equiv=Content-type content="text/html; charset=iso-8859-2">
  5. <META http-equiv=Content-Language content=pl>
  6. </head>';
  7. <!-- calendar stylesheet -->
  8. <link rel='stylesheet' type='text/css' media='all' href='calendar-win2k-cold-1.css' title='win2k-cold-1' />
  9.  
  10. <!-- main calendar program -->
  11. <script type='text/javascript' src='calendar.js'></script>
  12.  
  13. <!-- language for the calendar -->
  14. <script type='text/javascript' src='calendar-en.js'></script>
  15.  
  16. <!-- the following script defines the Calendar.setup helper function, which makes
  17.  adding a calendar a matter of 1 or 2 lines of code. -->
  18. <script type='text/javascript' src='calendar-setup.js'></script>
  19. <body>
  20. <script type='text/javascript'>
  21. function catcalc(cal) {
  22. var date = cal.date;
  23. var time = date.getTime()
  24. // use the _other_ field
  25. var field = document.getElementById('f_calcdate');
  26. if (field == cal.params.inputField) {
  27. field = document.getElementById('f_date_a');
  28. time -= Date.WEEK; // substract one week
  29. } else {
  30. time += Date.WEEK; // add one week
  31. }
  32. var date2 = new Date(time);
  33. field.value = date2.print('%Y-%m-%d %H:%M');
  34. }
  35. </script>
  36. <form action='#' method='get'>
  37. <table cellspacing='0' cellpadding='0' style='border-collapse: collapse'><tr>
  38.  <td><input type='text' name='date' id='f_date_c' readonly='1' /></td>
  39.  <td><img src='strona/img.gif' id='f_trigger_c' style='cursor: pointer; border: 1px solid red;' title='Wybierz date'
  40. onmouseover='this.style.background='red';' onmouseout='this.style.background=''' /></td>
  41. </table>
  42. </form>
  43. <script type='text/javascript'>
  44. Calendar.setup({
  45. inputField  : 'f_date_c',  // id of the input field
  46. ifFormat  : '%Y-%B-%e', // format of the input field
  47. button  : 'f_trigger_c', // trigger for the calendar (button ID)
  48. align : 'Tl',  // alignment (defaults to Bl)
  49. singleClick : true
  50. });
  51. </script>
  52. </body>
  53. </html>";
  54. ?>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
plurr
post 20.12.2007, 17:44:21
Post #2





Grupa: Zarejestrowani
Postów: 175
Pomógł: 12
Dołączył: 28.06.2007
Skąd: Bytom

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


a moze trzymac to 'cos' w sesji ? smile.gif

Ten post edytował plurr 20.12.2007, 17:44:37


--------------------
Wyobraźnia bez wiedzy może stworzyć rzeczy piękne.
Wiedza bez wyobraźni najwyżej doskonałe.

Albert Einstein
Go to the top of the page
+Quote Post
JaRoPHP
post 20.12.2007, 20:54:52
Post #3





Grupa: Zarejestrowani
Postów: 675
Pomógł: 15
Dołączył: 7.11.2004
Skąd: Katowice

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


@pandaci jesteś już troszkę na forum, powinieneś zapoznać się z tematyką i zasadami panującymi na forum Przedszkole.

Napisz PW - opisz błąd, który zrobiłeś.
Do tego czasu - ZAMYKAM.


--------------------
Kto pyta, nie błądzi...
Kto zbłądził, ten pyta...
Go to the top of the page
+Quote Post

Closed TopicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 06:19