Advertisement
Guest User

code1

a guest
May 30th, 2014
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Date Picker</title>
  6. <link rel="stylesheet" href="bootstrap-datetimepicker.css">
  7. <link rel="stylesheet" href="bootstrap.css">
  8. <script type="text/javascript" src="jquery-1.11.0.min.js"></script>
  9. <script type="text/javascript" src="moment.js"></script>
  10. <script type="text/javascript" src="bootstrap-datetimepicker.js"></script>
  11. <script type="text/javascript">
  12. $(function () {
  13. $('#datetimepicker8').datetimepicker();
  14. $('#datetimepicker9').datetimepicker();
  15. $("#datetimepicker8").on("dp.change",function (e) {
  16. $('#datetimepicker9').data("DateTimePicker").setMinDate(e.date);
  17. });
  18. $("#datetimepicker9").on("dp.change",function (e) {
  19. $('#datetimepicker8').data("DateTimePicker").setMaxDate(e.date);
  20. });
  21. });
  22. </script>
  23. </head>
  24. <body>
  25. <table>
  26. <?php for($i=1;$i<=5;$i++) { ?>
  27. <tr><td>
  28. <div class="col-sm-3">
  29. <div class="input-group date" id="datetimepicker8" style="width: 150px;" tabindex="2">
  30. <input class="form-control" name="from_date" type="text">
  31. <span class="input-group-addon"><i class="glyphicon-calendar glyphicon"></i></span></div>
  32. </div></td>
  33. <td>
  34. <div class="col-sm-3">
  35. <div class="input-group date" id="datetimepicker9" style="width: 150px;" tabindex="2">
  36. <input class="form-control" name="to_date" type="text">
  37. <span class="input-group-addon"><i class="glyphicon-calendar glyphicon"></i> </span> </div>
  38. </div></td></tr>
  39. <?php } ?>
  40. </table>
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement