Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>Date Picker</title>
- <link rel="stylesheet" href="bootstrap-datetimepicker.css">
- <link rel="stylesheet" href="bootstrap.css">
- <script type="text/javascript" src="jquery-1.11.0.min.js"></script>
- <script type="text/javascript" src="moment.js"></script>
- <script type="text/javascript" src="bootstrap-datetimepicker.js"></script>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker8').datetimepicker();
- $('#datetimepicker9').datetimepicker();
- $("#datetimepicker8").on("dp.change",function (e) {
- $('#datetimepicker9').data("DateTimePicker").setMinDate(e.date);
- });
- $("#datetimepicker9").on("dp.change",function (e) {
- $('#datetimepicker8').data("DateTimePicker").setMaxDate(e.date);
- });
- });
- </script>
- </head>
- <body>
- <table>
- <?php for($i=1;$i<=5;$i++) { ?>
- <tr><td>
- <div class="col-sm-3">
- <div class="input-group date" id="datetimepicker8" style="width: 150px;" tabindex="2">
- <input class="form-control" name="from_date" type="text">
- <span class="input-group-addon"><i class="glyphicon-calendar glyphicon"></i></span></div>
- </div></td>
- <td>
- <div class="col-sm-3">
- <div class="input-group date" id="datetimepicker9" style="width: 150px;" tabindex="2">
- <input class="form-control" name="to_date" type="text">
- <span class="input-group-addon"><i class="glyphicon-calendar glyphicon"></i> </span> </div>
- </div></td></tr>
- <?php } ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement