Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML][PHP][CSS]Problem z bootstrap/datepicker
Forum PHP.pl > Forum > Przedszkole
krzesik
mam taki nagłówek:
  1. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  2. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  3. <meta name="viewport" content="width=device-width; initial-scale=1.0" />
  4. <link type="text/css" rel="Stylesheet"href="js/jquery-ui.css" />
  5. <link rel="stylesheet" href="css/style_e.css">
  6. <link rel="stylesheet" href="css/style_e_bootstrap.css">
  7. <link rel="stylesheet" href="css/jquery-ui.css">
  8. <script type="text/javascript" src="js/jquery.min.js"></script>
  9. <script type="text/javascript" src="js/jquery-ui.min.js"></script>
  10. <script type="text/javascript" src="js/jquery.js"></script>
  11. <script type="text/javascript" src="datepicker.js"></script>
  12. <script src="js/bootstrap.min.js"></script>
  13. <script src="js/jquery-1.10.2.js"></script>
  14. <script src="js/jquery-ui.js"></script>
  15. <!--[if lt IE 9]>
  16. <script src="js/html5shiv.js"></script>
  17. <script src="js/respond.min.js"></script>
  18. <![endif]-->
  19. </head>


w dalszej części skryptu po spełnieniu warunku pokazuję przez
  1. include ' plik.php';

tabelkę z jakimiś danymi
plik ma nagłówek:
  1. <head>
  2. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4. <link rel="shortcut icon" href="../images/favicon.ico">
  5.  
  6. <!-- Bootstrap core CSS -->
  7. <link href="css/style_e.css" rel="stylesheet">
  8.  
  9. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  10. <!--[if lt IE 9]>
  11. <script src="js/html5shiv.js"></script>
  12. <script src="js/respond.min.js"></script>
  13. <![endif]-->
  14. </head>


w dalszej części mam inputa do wyświetlania daty datepicker.js - wszystko jest ok kalendarz mi się ładnie pokazuje, ale.....
jeśli spełniony zostanie warunek i pokażę tabelkę to kalendarz się już nie pokazuje /data jest w inpucie, ale po kliknięcie nie uaktywnia się kalendarz/

gdzie mam szukać problemu?
Salur
Na początek,

Nie tak:

  1. include ' plik.php';


lecz tak:

  1. include('plik.php');


A po drugie pokaz kod.
krzesik
Kod tabelki która się pojawia po spełnieniu warunku i wycina mi datepicker.js

  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="description" content="">
  7. <meta name="author" content="">
  8. <link rel="shortcut icon" href="../images/favicon.ico">
  9. <title></title>
  10.  
  11. <!-- Bootstrap core CSS -->
  12. <link href="css/style_e.css" rel="stylesheet">
  13.  
  14. <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  15. <!--[if lt IE 9]>
  16. <script src="js/html5shiv.js"></script>
  17. <script src="js/respond.min.js"></script>
  18. <![endif]-->
  19. </head>
  20. <body background="img/bg.jpg">
  21. <div class="modal fade" id="modal-facebook" tabindex="-1" role="dialog" aria-labelledby="modal-label" aria-hidden="true">
  22. <div class="modal-zbior" style="margin:0 auto; width:650px;">
  23. <div class="modal-content">
  24. <div class="modal-header">
  25. <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
  26. <h4 class="modal-title" id="modal-label" align="left"><IMG src="../images/logo.png" width="30px" height="30px" /></h4>
  27. </div>
  28. <div class="modal-body">
  29. <style>
  30. table
  31. {
  32. font: normal 12px helvetica, verdana, arial, sans-serif;
  33. background-color: #E4EEF1;
  34. border-spacing: 1px;
  35. }
  36. caption
  37. {
  38. font: normal 12px helvetica, verdana, arial, sans-serif;
  39. background: transparent;
  40. }
  41. th {
  42. padding: 1em;
  43. color: #000000;
  44. background: #ADB79E;
  45. text-align:center
  46. }
  47. thead th, tfoot th {
  48. font: bold 11px helvetica, verdana, arial, sans-serif;
  49. background: #000000;
  50. color: #00FF0C;
  51. padding-top:4px;
  52. }
  53. tbody td a {
  54. background: transparent;
  55. text-decoration: none;
  56. color: #9F9F9F;
  57. }
  58.  
  59. tbody th a:hover
  60. {
  61. background: transparent;
  62. color: #00FF0C;
  63. }
  64. tbody th, tbody td
  65. {
  66. vertical-align: top;
  67. }
  68. tbody tr:hover
  69. {
  70. background: #FCFFBF;
  71. }
  72. tbody tr:hover th,
  73. tbody tr.odd:hover th
  74. {
  75. background: #ADB79E;
  76. }
  77. </style>
  78.  
  79. <?php
  80.  
  81. //zapytania MySQL
  82.  
  83.  
  84. if(@mysql_num_rows($result2) > 0)
  85. {
  86.  
  87. //nagłówki tabeli
  88. $k = 0; //liczba porządkowa
  89.  
  90. while($r = mysql_fetch_array($result2))
  91. {
  92. $k++; //liczba porządkowa
  93. echo "<tr>";
  94. .......................... // linie rekordów tabeli
  95.  
  96. }
  97. echo "</table>";
  98. }
  99. ?>
  100. </form>
  101.  
  102. </div>
  103. </div><!-- /.modal-content -->
  104. </div><!-- /.modal-dialog -->
  105. </div><!-- /.modal -->
  106. <script src="js/jquery.js"></script>
  107. <script src="js/bootstrap.min.js"></script>
  108. <script src="js/jquery.cookie.js"></script>
  109. <script src="js/main.js"></script>
  110.  
  111. </body>
  112. </html>
viking
A jakieś błedy w konsoli? Widzę ze 2 jquery osadzasz.

@salur. inlude jest strukturą kontrolną nie funkcją.
krzesik
mam cztery błędy, ale dotyczą one jakiś grafik .png innych nie widzę
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.