-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpegawai.php
363 lines (321 loc) · 15.3 KB
/
pegawai.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
<?php
include('config/cekpegawai.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Halaman Pegawai</title>
<!-- Favicon-->
<link rel="icon" href="mts.png" type="image/x-icon" />
<!--<link rel="icon" href="favicon.ico" type="image/x-icon"> -->
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<!-- Bootstrap Core Css -->
<link href="asset/plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Bootstrap Material Datetime Picker Css -->
<link href="asset/plugins/bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker.css" rel="stylesheet" />
<!-- Bootstrap Select Css -->
<link href="asset/plugins/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
<!-- Waves Effect Css -->
<link href="asset/plugins/node-waves/waves.css" rel="stylesheet" />
<!-- Animation Css -->
<link href="asset/plugins/animate-css/animate.css" rel="stylesheet" />
<!-- Range Slider Css -->
<link href="asset/plugins/ion-rangeslider/css/ion.rangeSlider.css" rel="stylesheet" />
<link href="asset/plugins/ion-rangeslider/css/ion.rangeSlider.skinFlat.css" rel="stylesheet" />
<!-- SWEAT ALERT-->
<script src="asset/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="asset/dist/sweetalert.css">
<!-- END-->
<!-- JQuery DataTable Css -->
<link href="asset/plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css" rel="stylesheet">
<!-- Custom Css -->
<link href="asset/css/style.css" rel="stylesheet">
<!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
<link href="asset/css/themes/all-themes.css" rel="stylesheet" />
<link rel="icon" href="mts.png" type="image/x-icon" />
</head>
<body class="theme-red">
<!-- Overlay For Sidebars -->
<div class="overlay"></div>
<!-- #END# Overlay For Sidebars -->
<!-- Search Bar -->
<div class="search-bar">
<div class="search-icon">
<i class="material-icons">search</i>
</div>
<input type="text" placeholder="START TYPING...">
<div class="close-search">
<i class="material-icons">close</i>
</div>
</div>
<!-- #END# Search Bar -->
<!-- Top Bar -->
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<a href="javascript:void(0);" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false"></a>
<a href="javascript:void(0);" class="bars"></a>
<!-- <a class="navbar-brand" href=""><img src="asset/images/logo.png" class="img-responsive"></a> -->
<a class="navbar-brand" href="" style="font-family: FZShuTi;"> <b style="font-family: FZShuTi; font-size: 39px;">SIPEG </b><b>SMK EI Bukittinggi</b> </a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<!-- Call Search -->
<li><a href="javascript:void(0);" class="js-search" data-close="true"><i class="material-icons">search</i></a></li>
<!-- #END# Call Search -->
<li class="pull-right"><a href="#"> <b> <?php echo date (" d F Y") ?></b></a></li>
</ul>
</div>
</div>
</nav>
<!-- #Top Bar -->
<section>
<!-- Left Sidebar -->
<aside id="leftsidebar" class="sidebar">
<!-- User Info -->
<div class="user-info">
<div class="image">
<br>
<?php
$img = $_SESSION['img'];
?>
<img src="asset/images/user/<?php echo $_SESSION['img']; ?>" width="68" height="68" alt="user" style="
border: 3px solid silver;
border-radius: 100%;">
<?php echo "<b style='color:white; font-size:19px; font-family:FZShuTi;'>". $_SESSION['nama']."</b>"; ?>
</div>
<i class="material-icons" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="color: white;" data-toggle="tooltip" data-placement="top" title="Klik Disini Untuk Keluar !! ">keyboard_arrow_down</i>
<ul class="dropdown-menu pull-right">
<li><a href="javascript:void(0);"><i class="material-icons">person</i>Profile</a></li>
<li role="seperator" class="divider"></li>
<li><a onclick="return confirm('Yakin ingin Keluar ??')" href="logout.php"><i class="material-icons">input</i>Sign Out</a></li>
</ul> <br>
<?php echo "<b style='color:white; font-family:FZShuTi;'>". $_SESSION['level']."</b>"; ?><br>
<!-- <div class="email"><b style="color: white;">Administrator</b></div>-->
</div>
<!-- #User Info -->
<!-- Menu -->
<div class="menu">
<ul class="list">
<li class="header">MENU UTAMA</li>
<li class="active">
<a href="pegawai.php">
<i class="material-icons">dashboard</i>
<span>DASHBOARD</span>
</a>
</li>
<a class="menu-toggle" style="color: black">
<i class="material-icons" style="color: black">assignment</i>
<span style="color: black">Data Master</span>
</a>
<ul class="ml-menu">
<li>
<a href="?page=admin&action=addpeg">
<i class="material-icons">note_add</i><span>Input Pegawai</span></a>
</li>
</li>
</ul>
<li>
<a class="menu-toggle" style="color: white">
<i class="material-icons" style="color: black">people</i>
<span style="color: black">Kepegawaian</span>
</a>
<ul class="ml-menu">
<li>
<a href="?page=admin&action=pegawai">
<i class="material-icons">book</i><span>Data Pegawai</span></a>
</li>
<li>
<a href="?page=admin&action=ppdk">
<i class="material-icons">school</i><span>Data Pendidikan </span></a>
</li>
<li>
<a href="?page=admin&action=diklat">
<i class="material-icons">assistant</i><span>Data Diklat </span></a>
</li>
</ul>
</li>
<li>
<a class="menu-toggle" style="color: white">
<i class="material-icons" style="color: black">insert_chart</i>
<span style="color: black">Grafik</span>
</a>
<ul class="ml-menu">
<li>
<a href="?page=guru&action=grafik"><i class="material-icons">pie_chart</i><span> Pegawai</span></a>
</li>
<li>
<a href="?page=guru&action=grafik_guru"> <i class="material-icons"> insert_chart</i><span> Guru</span></a>
</li>
<li>
<a href="?page=guru&action=grafik1"> <i class="material-icons">bubble_chart</i><span> Jabatan</span></a>
</li>
</ul>
</li>
<li>
<a class="menu-toggle" style="color: white">
<i class="material-icons" style="color: black">print</i>
<span style="color: black">Laporan</span>
</a>
<ul class="ml-menu">
<li>
<a style="color: black" href="?page=admin&action=lapeg"><i class="material-icons">content_copy</i><span>Laporan Pegawai</span></a>
</li>
</ul>
</li>
</ul>
</div>
<!-- #Menu -->
<!-- Footer -->
<div class="legal">
<div class="copyright">
© 2017 <a href="yaminbae.blogspot.com">AbduL Yamin | 2513001</a>.
</div>
<div class="version">
<b>SIPEG SMK EI Bukittinggi </b>
</div>
</div>
<!-- #Footer -->
</aside>
<!-- #END# Left Sidebar -->
</section>
<section class="content">
<div class="container-fluid">
<?php
$page = @$_GET['page'];
$action = @$_GET['action'];
if ($page == "admin") {
if ($action=="") {
include "page/user/input_user.php";
}elseif ($action=="pegawai") {
include "page/Pegawai/+pegawai.php";
}elseif ($action=="hapus_peg") {
include "page/Pegawai/del_peg.php";
}elseif ($action=="addpeg") {
include "page/Pegawai/addpegawai.php";
}elseif ($action=="lembaga") {
include "page/Pegawai/+lembaga.php";
}elseif ($action=="edit_peg") {
include "page/Pegawai/edit_peg.php";
}elseif ($action=="lapeg") {
include 'Laporan/laporan_pegawai.php';
}elseif ($action==".detail"){
include 'page/Pegawai/.detail_pegawai.php';
}elseif ($action=="ppdk") {
include 'page/Pegawai/+pendidikan.php';
}elseif ($action=="diklat") {
include 'page/Pegawai/+pelatihan.php';
}
} elseif ($page == "guru"){
if ($action==""){
include"page/Guru/view_guru.php";
}else if ($action=="grafik") {
include 'page/Grafik/pegawai.php';
}else if ($action=="grafik1") {
include 'page/Grafik/grafik1.php';
}else if ($action=="grafik_guru") {
include 'page/Grafik/guru.php';
}
} elseif ($page == "") {
include"page/peg_dashboard.php";
} else{
include '404.php';
}
?>
</div>
</section>
<!-- Jquery Core Js -->
<script src="asset/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap Core Js -->
<script src="asset/plugins/bootstrap/js/bootstrap.js"></script>
<!-- Select Plugin Js -->
<script src="asset/plugins/bootstrap-select/js/bootstrap-select.js"></script>
<!-- Slimscroll Plugin Js -->
<script src="asset/plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
<!-- Waves Effect Plugin Js -->
<script src="asset/plugins/node-waves/waves.js"></script>
<!-- Jquery DataTable Plugin Js -->
<script src="asset/plugins/jquery-datatable/jquery.dataTables.js"></script>
<script src="asset/plugins/jquery-datatable/skin/bootstrap/js/dataTables.bootstrap.js"></script>
<script src="asset/plugins/jquery-datatable/extensions/export/dataTables.buttons.min.js"></script>
<script src="asset/plugins/jquery-datatable/extensions/export/buttons.flash.min.js"></script>
<script src="asset/plugins/jquery-datatable/extensions/export/jszip.min.js"></script>
<script src="asset/plugins/jquery-datatable/extensions/export/pdfmake.min.js"></script>
<script src="asset/plugins/jquery-datatable/extensions/export/vfs_fonts.js"></script>
<script src="asset/plugins/jquery-datatable/extensions/export/buttons.html5.min.js"></script>
<script src="asset/plugins/jquery-datatable/extensions/export/buttons.print.min.js"></script>
<!-- Waves Effect Plugin Js -->
<script src="asset/plugins/node-waves/waves.js"></script>
<!-- Autosize Plugin Js -->
<script src="asset/plugins/autosize/autosize.js"></script>
<!-- JQuery Steps Plugin Js -->
<script src="asset/plugins/jquery-steps/jquery.steps.js"></script>
<!-- Moment Plugin Js -->
<script src="asset/plugins/momentjs/moment.js"></script>
<!-- Bootstrap Material Datetime Picker Plugin Js -->
<script src="asset/plugins/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js"></script>
<!-- Select Plugin Js -->
<script src="asset/plugins/bootstrap-select/js/bootstrap-select.js"></script>
<!-- RangeSlider Plugin Js -->
<script src="asset/plugins/ion-rangeslider/js/ion.rangeSlider.js"></script>
<!-- Custom Js -->
<script src="asset/js/admin.js"></script>
<script src="asset/js/pages/ui/range-sliders.js"></script>
<script src="asset/js/pages/tables/jquery-datatable.js"></script>
<script src="asset/js/pages/ui/tooltips-popovers.js"></script>
<!-- Demo Js -->
<script src="asset/js/demo.js"></script>
<script type="text/javascript">
$(function () {
$("#yamin_01").ionRangeSlider();
$("#yamin_02").ionRangeSlider();
});
</script>
<script type="text/javascript">
$(document).ready(function()
{
$('#date').bootstrapMaterialDatePicker
({
time: false,
clearButton: true
});
$('#time').bootstrapMaterialDatePicker
({
date: false,
shortTime: false,
format: 'HH:mm'
});
$('#date-format').bootstrapMaterialDatePicker
({
format: 'dddd DD MMMM YYYY - HH:mm'
});
$('#date-fr').bootstrapMaterialDatePicker
({
format: 'DD/MM/YYYY HH:mm',
lang: 'fr',
weekStart: 1,
cancelText : 'ANNULER',
nowButton : true,
switchOnClick : true
});
$('#date-end').bootstrapMaterialDatePicker
({
weekStart: 0, format: 'DD/MM/YYYY HH:mm'
});
$('#date-start').bootstrapMaterialDatePicker
({
weekStart: 0, format: 'DD/MM/YYYY HH:mm', shortTime : true
}).on('change', function(e, date)
{
$('#date-end').bootstrapMaterialDatePicker('setMinDate', date);
});
$('#min-date').bootstrapMaterialDatePicker({ format : 'DD/MM/YYYY HH:mm', minDate : new Date() });
$.material.init()
});
</script>
</body>
</html>