Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Kalendarz, odświeżanie
Forum PHP.pl > Forum > Przedszkole
pandaci
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. ?>
plurr
a moze trzymac to 'cos' w sesji ? smile.gif
JaRoPHP
@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.
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.