-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajukan_cuti.php
153 lines (146 loc) · 6.89 KB
/
ajukan_cuti.php
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
<link href="admin/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="admin/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="admin/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="admin/build/css/custom.min.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<?php include 'admin/koneksi.php'; ?>
<div class="container body">
<div class="main_container">
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<?php
$id_pegawai=$_SESSION['id_pegawai'];
$q = "SELECT * FROM pegawai WHERE id_pegawai='$id_pegawai'";
$a = mysqli_query($conn, $q) or die (mysqli_error($conn));
while ($t = mysqli_fetch_assoc($a)) {
?>
<div class="x_title">
<h2>Form Pengajuan Cuti | Jatah Cuti Anda Tersisa '<strong><?php echo $t['jatah_cuti']; } ?></strong>' Hari</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
<br />
<form id="demo-form2" action="proses/tambah_cuti.php" method="POST" enctype="multipart/form-data" data-parsley-validate class="form-horizontal form-label-left">
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12">
</div>
</div>
<div class="form-group">
<label for="jenis_cuti" class="control-label col-md-3 col-sm-3 col-xs-12">JENIS CUTI </label>
<div class="col-md-6 col-sm-6 col-xs-12">
<select name="id_jcuti" class="form-control">
<?php
$sql = "SELECT * FROM jenis_cuti";
$s = mysqli_query($conn, $sql) or die (mysqli_error($conn));
while ($tmp = mysqli_fetch_assoc($s)) {
?>
<option value="<?php echo $tmp['id_jcuti']; ?>"><?php echo $tmp['nama_cuti']; ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group">
<!-- <label for="lama_cuti" class="control-label col-md-3 col-sm-3 col-xs-12">LAMA CUTI</label> -->
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" type="hidden" name="selisih">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">TGL MULAI CUTI <span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="date-picker form-control col-md-7 col-xs-12" required="required" type="date" name="tgl_mulai_cuti">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">TGL AKHIR CUTI <span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="date-picker form-control col-md-7 col-xs-12" required="required" type="date" name="tgl_akhir_cuti">
</div>
</div>
<div class="form-group">
<label for="alasan" class="control-label col-md-3 col-sm-3 col-xs-12">ALASAN CUTI</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea class="form-control col-md-7 col-xs-12" name="alasan"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12">
<input class="form-control col-md-7 col-xs-12" type="hidden" name="status" value="Belum dikonfirmasi">
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<a href="index.php">
<button type="button" class="btn btn-primary">Cancel</button>
<button type="submit" class="btn btn-success">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="admin/vendors/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="admin/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="admin/vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- Custom Theme Scripts -->
<script src="admin/build/js/custom.min.js"></script>
<script>
$(document).ready(function() {
$('#birthday').daterangepicker({
singleDatePicker: true,
calender_style: "picker_4"
}, function(start, end, label) {
console.log(start.toISOString(), end.toISOString(), label);
});
});
</script>
<script>
$(document).ready(function() {
$('#birthday1').daterangepicker({
singleDatePicker: true,
calender_style: "picker_4"
}, function(start, end, label) {
console.log(start.toISOString(), end.toISOString(), label);
});
});
</script>
<script>
$(document).ready(function() {
$('#birthday2').daterangepicker({
singleDatePicker: true,
calender_style: "picker_4"
}, function(start, end, label) {
console.log(start.toISOString(), end.toISOString(), label);
});
});
</script>
</body>
</html>