001.
<!DOCTYPE html>
002.
<html lang=
"en"
>
003.
<head>
004.
<meta charset=
"utf-8"
>
005.
<meta name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
006.
<title>AdminLTE 3 | Dashboard</title>
007.
008.
<!-- import CSS -->
009.
<?php
include
'pages/import_css.html'
; ?>
010.
011.
</head>
012.
<body
class
=
"hold-transition sidebar-mini layout-fixed"
>
013.
<div
class
=
"wrapper"
>
014.
015.
<!-- Preloader -->
016.
<div
class
=
"preloader flex-column justify-content-center align-items-center"
>
017.
<img
class
=
"animation__shake"
src=
"dist/img/AdminLTELogo.png"
alt=
"AdminLTELogo"
height=
"60"
width=
"60"
>
018.
</div>
019.
020.
<!-- navbar -->
021.
<?php
include
'pages/navbar.html'
?>
022.
023.
<!-- sidebar -->
024.
<?php
include
'pages/sidebar.html'
?>
025.
026.
<!-- Content Wrapper. Contains page content -->
027.
<div
class
=
"content-wrapper"
>
028.
<!-- Content Header (Page header) -->
029.
<div
class
=
"content-header"
>
030.
<div
class
=
"container-fluid"
>
031.
<div
class
=
"row mb-2"
>
032.
<div
class
=
"col-sm-6"
>
033.
<h1
class
=
"m-0"
>Dashboard</h1>
034.
</div><!-- /.col -->
035.
<div
class
=
"col-sm-6"
>
036.
<ol
class
=
"breadcrumb float-sm-right"
>
037.
<li
class
=
"breadcrumb-item"
><a href=
"#"
>Home</a></li>
038.
<li
class
=
"breadcrumb-item active"
>Dashboard v1</li>
039.
</ol>
040.
</div><!-- /.col -->
041.
</div><!-- /.row -->
042.
</div><!-- /.container-fluid -->
043.
</div>
044.
045.
<!-- Main content -->
046.
<section
class
=
"content"
>
047.
<div
class
=
"content-fluid"
>
048.
<form action=
""
>
049.
<!-- Main row -->
050.
<div
class
=
"row"
>
051.
<section
class
=
"col-lg-12 connectedSortable"
>
052.
<div
class
=
"card"
>
053.
<div
class
=
"card-header"
>
054.
<h3
class
=
"card-title"
>
055.
<i
class
=
"fas fa-solid fa-list-ul"
></i>
056.
แผนปฏิบัติราชการประจำปี 2566
057.
</h3>
058.
</div>
059.
<div
class
=
"card-body"
>
060.
<div
class
=
"row"
>
061.
<div
class
=
"form-group col-lg-12"
>
062.
<label
for
=
""
>ส่วนราชการ</label>
063.
<input type=
"text"
class
=
"form-control"
id=
""
placeholder=
"ส่วนราชการ"
>
064.
</div>
065.
</div>
066.
<div
class
=
"row"
>
067.
<div
class
=
"form-group col-lg-6"
>
068.
<label
for
=
""
>รายการ</label>
069.
<input type=
"text"
class
=
"form-control"
id=
""
>
070.
</div>
071.
<div
class
=
"form-group col-lg-6"
>
072.
<label
for
=
""
>งบประมาณ (บาท)</label>
073.
<input type=
"text"
class
=
"form-control"
id=
""
>
074.
</div>
075.
</div>
076.
</div><!-- /.card-body -->
077.
</div>
078.
079.
<div
class
=
"card"
>
080.
<div
class
=
"card-header"
>
081.
<h3
class
=
"card-title"
>
082.
<i
class
=
"fas fa-solid fa-check-double"
></i>
083.
กิจกรรม
084.
</h3>
085.
</div>
086.
<div
class
=
"card-body"
>
087.
<div
class
=
"form-group"
>
088.
<form name=
"plane_01"
id=
"plane_01"
>
089.
<div
class
=
"container-fluid"
id=
"table_01"
>
090.
<table
class
=
"table table-borderless table-hover"
id=
"dynamic_field"
style=
"width:100%"
>
091.
<tr>
092.
<td colspan=
"2"
style=
"width:40%"
>
093.
<label>1. ขั้นตอน</label>
094.
<input type =
"text"
class
=
"form-control"
>
095.
</td>
096.
<td>
097.
<label >ระยะเวลา(วัน) </label>
098.
<input type =
"number"
class
=
"form-control"
>
099.
</td>
100.
<td>
101.
<label >วันที่เริ่มดำเนินการ </label>
102.
<input type=
"text"
class
=
"form-control select_date"
name=
"born"
id=
""
/>
103.
</td>
104.
<td>
105.
<label >วันที่ดำเนินการแล้วเสร็จ </label>
106.
<input type=
"text"
class
=
"form-control select_date"
name=
"born"
id=
""
/>
107.
</td>
108.
</tr>
109.
<tr>
110.
<td colspan=
"2"
>
111.
<label >ผู้รับผิดชอบ </label>
112.
<input type =
"text"
class
=
"form-control"
>
113.
</td>
114.
<td colspan=
"3"
>
115.
<label >ความเสี่ยง </label>
116.
<input type =
"text"
class
=
"form-control"
>
117.
</td>
118.
</tr>
119.
</table>
120.
</div>
121.
<table >
122.
<tr>
123.
<td>
124.
<button type=
"button"
id=
"btn"
class
=
"btn btn-success"
><i
class
=
"fas fa-solid fa-plus"
></i></button>
125.
<button type=
"button"
name=
"removeRow"
id=
"removeRow"
class
=
"btn btn-danger "
><i
class
=
"fas fa-solid fa-minus btn_remove"
></i></button>
126.
</td>
127.
</tr>
128.
</table>
129.
</form>
130.
</div>
131.
</div><!-- /.card-body -->
132.
</div>
133.
</div>
134.
</section>
135.
</div>
136.
</form>
137.
</section>
138.
</div>
139.
</div>
140.
<!-- ./wrapper -->
141.
142.
<!-- import Script -->
143.
<?php
include
'pages/import_script.html'
; ?>
144.
145.
<script src=
"datetimepicker-master/jquery.datetimepicker.full.js"
></script>
146.
<!-- <script src=
"pages/UI/datetimepicker.js"
></script> -->
147.
148.
<script>
149.
$(document).ready(
function
(){
150.
var
a = 1 ;
151.
152.
$(
"#btn"
).click(
function
(){
153.
a++;
154.
if
(a % 2 == 0){
155.
$(
"#table_01"
).append(
'<table class="table table-borderless table01 table-secondary table-hover" id="add_field" style="width:100%"><tr><td colspan="2" style="width:40%"><label>'
+a+
'. ขั้นตอน</label><input type ="text" class="form-control"></td><td><label >ระยะเวลา(วัน) </label><input type ="number" class="form-control"></td><td id="date01"><label>วันที่เริ่มดำเนินการ </label><input type ="text" id ="input_01" class="form-control select_date"></td><td><label >วันที่ดำเนินการแล้วเสร็จ </label><input type ="text" class="form-control select_date"></td></tr><tr><td colspan="2"><label >ผู้รับผิดชอบ </label><input type ="text" class="form-control"></td><td colspan="3"><label >ความเสี่ยง </label><input type ="text" class="form-control"></td></tr></table>'
);
156.
157.
}
else
{
158.
$(
"#table_01"
).append(
'</div><table class="table table-borderless table01 table-hover" id="add_field" style="width:100%"><tr><td colspan="2" style="width:40%"><label>'
+a+
'. ขั้นตอน</label><input type ="text" class="form-control"></td><td><label >ระยะเวลา(วัน) </label><input type ="number" class="form-control"></td><td><label >วันที่เริ่มดำเนินการ </label><input type ="text" class="form-control select_date"></td><td><label >วันที่ดำเนินการแล้วเสร็จ </label><input type ="date" class="form-control select_date"></td></tr><tr><td colspan="2"><label >ผู้รับผิดชอบ </label><input type ="text" class="form-control"></td><td colspan="3"><label >ความเสี่ยง </label><input type ="text" class="form-control"></td></tr></table>'
);
159.
}
160.
});
161.
$(
"#removeRow"
).click(
function
(){
162.
a--;
163.
$(
".table01:last"
).remove();
164.
165.
});
166.
});
167.
168.
169.
$(
function
(){
170.
$.datetimepicker.setLocale(
'th'
);
171.
172.
$(
".select_date"
).datetimepicker({
173.
timepicker:false,
174.
format:
'd-m-Y'
,
175.
lang:
'th'
,
176.
onSelectDate:
function
(dp,
$input
){
177.
var
yearT=
new
Date
(dp).getFullYear()-0;
178.
var
yearTH=yearT+543;
179.
var
fulldate=
$input
.val();
180.
var
fulldateTH=fulldate.replace(yearT,yearTH);
181.
$input
.val(fulldateTH);
182.
},
183.
});
184.
185.
186.
$(
".select_date"
).on(
"mouseenter mouseleave"
,
function
(e){
187.
var
dateValue=$(this).val();
188.
if
(dateValue!=
""
){
189.
var
arr_date=dateValue.split(
"-"
);
190.
191.
192.
if
(e.type==
"mouseenter"
){
193.
var
yearT=arr_date[2]-543;
194.
}
195.
if
(e.type==
"mouseleave"
){
196.
var
yearT=parseInt(arr_date[2])+543;
197.
}
198.
dateValue=dateValue.replace(arr_date[2],yearT);
199.
$(this).val(dateValue);
200.
}
201.
});
202.
});
203.
204.
</script>
205.
206.
</body>
207.
</html>