-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathform-datepicker.html
93 lines (73 loc) · 3.48 KB
/
form-datepicker.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!doctype html>
<html lang="en">
<head>
<link href="assets/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/datepicker.css" rel="stylesheet" type="text/css" />
<?php
$title = "Form Datepicker";
include("./inc/common-head.html");
?>
</head>
<body class="skin-blue sidebar-mini">
<!-- <Start Of Header Section> -->
<div class="main-page">
<?php
$headtitle = "Form Datepicker";
include("./inc/common-header.html");
?>
<!-- Right Section Start -->
<div class="right-area content-wrapper">
<div class="content-header">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card shadow">
<div class="card-header">
<h2 class="mb-0">Normal Date picker without selected</h2>
</div>
<div class="card-body">
<p class="mg-b-20 mg-sm-b-40">The datepicker is tied to a standard form input
field. Click on the input to open an interactive calendar in a small overlay.
If a date is chosen, feedback is shown as the input's value.</p>
<div class="wd-200 mg-b-30">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">
<i class="fa fa-calendar "></i>
</div>
</div>
<input class="form-control" id="date" name="date" placeholder="MM/DD/YYYY"
type="text" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
$beforCustomJS = '';
include("inc/common-footer.html");
?>
</div>
</div>
<!-- Right Section End -->
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/js/bootstrap-datepicker.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.8.0/css/bootstrap-datepicker.css" />
<!-- <End Of Body Section> -->
<script>
$(document).ready(function () {
var date_input = $('input[name="date"]'); //our date input has the name "date"
var container = $('.bootstrap-iso form').length > 0 ? $('.bootstrap-iso form').parent() : "body";
date_input.datepicker({
format: 'mm/dd/yyyy',
container: container,
todayHighlight: true,
autoclose: true,
})
})
</script>
<!-- Javascript End Here -->
</body>
</html>