162 lines
6.6 KiB
PHP
162 lines
6.6 KiB
PHP
<!doctype html>
|
|
<html class="fixed sidebar-left-collapsed">
|
|
<head>
|
|
|
|
<!-- Basic -->
|
|
<meta charset="UTF-8">
|
|
|
|
<title>MENU LAPORAN</title>
|
|
<meta name="keywords" content="HTML5 Admin Template" />
|
|
<meta name="description" content="Porto Admin - Responsive HTML5 Template">
|
|
<meta name="author" content="okler.net">
|
|
|
|
<!-- Mobile Metas -->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
|
|
<!-- Vendor CSS -->
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/vendor/bootstrap/css/bootstrap.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/vendor/font-awesome/css/font-awesome.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/vendor/magnific-popup/magnific-popup.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/vendor/bootstrap-timepicker/css/bootstrap-timepicker.css" />
|
|
|
|
<!-- Specific Page Vendor CSS -->
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/jquery-ui/css/ui-lightness/jquery-ui-1.10.4.custom.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/select2/select2.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/summernote/summernote.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/summernote/summernote-bs3.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/codemirror/lib/codemirror.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/codemirror/theme/monokai.css" />
|
|
|
|
<!-- Theme CSS -->
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/stylesheets/theme.css" />
|
|
|
|
<!-- Skin CSS -->
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/stylesheets/skins/default.css" />
|
|
|
|
<!-- Theme Custom CSS -->
|
|
<link rel="stylesheet" href="<?php echo base_url('')?>assets/stylesheets/theme-custom.css">
|
|
|
|
<!-- Head Libs -->
|
|
<script src="<?php echo base_url('')?>assets/vendor/modernizr/modernizr.js"></script>
|
|
|
|
</head>
|
|
<script src="<?=base_url()?>assets/bower_components/jquery/jquery-3.3.1.min.js"></script>
|
|
<script src="<?=base_url()?>assets/bower_components/sweetalert2/sweetalert2.all.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
let base_url = '<?=base_url()?>';
|
|
</script>
|
|
<body>
|
|
<section class="body">
|
|
|
|
<!-- start: header -->
|
|
<?php $this->load->view('template/header');?>
|
|
<!-- end: header -->
|
|
|
|
<div class="inner-wrapper">
|
|
<!-- start: sidebar -->
|
|
<?php $this->load->view('template/sidebar');?>
|
|
<!-- end: sidebar -->
|
|
|
|
<section role="main" class="content-body">
|
|
|
|
<?php
|
|
$jabatan = $this->session->userdata('jabatan');
|
|
$level = $this->session->userdata('level');
|
|
$nama_panggilan = $this->session->userdata('nama_panggilan');
|
|
$id_karyawan = $this->session->userdata('id_karyawan');
|
|
$username = $this->session->userdata('username');
|
|
$tgl_now = date('d/m/Y');
|
|
|
|
if ($jabatan=="ADMINISTRATOR") {
|
|
|
|
} else {
|
|
$jabatan = "DILARANG";
|
|
}
|
|
?>
|
|
|
|
<header class="page-header">
|
|
<h2><strong>Rekap Absensi</strong></h2>
|
|
|
|
<div class="right-wrapper pull-right">
|
|
<ol class="breadcrumbs">
|
|
<li><span><strong style="color:Gold">Master Data </span></strong></li>
|
|
</ol>
|
|
|
|
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- start: page -->
|
|
<section class="panel panel-featured panel-featured-dark">
|
|
<header class="panel-heading">
|
|
<div class="panel-actions">
|
|
<a href="<?php echo base_url('') ?>index.php" class="text-dark"><strong>Kembali</strong><i class="fa fa-backward"></i></a>
|
|
</div>
|
|
<h2 class="panel-title" style="color:GoldenRod"><b>DATA ABSENSI</b></h2>
|
|
</header>
|
|
<div class="panel-body">
|
|
<div class="form-group">
|
|
<h4><label class="col-md-2 control-label"><b style="color:DarkSlateGray">Periode Absensi</b></label></h4>
|
|
<div class="col-md-5">
|
|
<div class="form-group">
|
|
<select data-plugin-selectTwo name="id_pab" id="id_pab" class="form-control populate">
|
|
<?php if (is_array($pab) || is_object($pab)) {
|
|
foreach ($pab as $key) { $countpab = 0;?>
|
|
<?php if ($countpab==count($key)) { ?>
|
|
<option value="<?= $key['ID_PAB'] ?>" selected><?= $key['AWAL'] ?> s.d <?= $key['AKHIR'] ?> [<?= $key['NAMA_PAB'] ?>]</option>
|
|
<?php $countpab++; } else { ?>
|
|
<option value="<?= $key['ID_PAB'] ?>" ><?= $key['AWAL'] ?> s.d <?= $key['AKHIR'] ?> [<?= $key['NAMA_PAB'] ?>]</option>
|
|
<?php } ?>
|
|
<?php }
|
|
} ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<?= form_open('Menu/LA_Excel_Sub1_A1_DataRekapAbsensi', array('method' => 'post'), array('id' => 'formlaporan')); ?>
|
|
<h4><label class="col-md-2 control-label"><b style="color:DarkSlateGray">Menu</b></label></h4>
|
|
<div class="col-md-10 btn-group">
|
|
<input type="hidden" class="form-control" id="id_pabfill" name="id_pabfill">
|
|
<?php if ($jabatan!="DILARANG") { ?>
|
|
<button type="submit" class="btn btn-default" onclick="isiData()" target="_blank"><b style="color:DarkGreen">Excel <i class="fa fa-file-excel-o"></i></b></button>
|
|
<?php } else { ?>
|
|
<button type="button" class="btn btn-default"><b style="color:Red">Tidak Berhak <i class="fa fa-times"></i></b></button>
|
|
<?php } ?>
|
|
</div>
|
|
<?= form_close(); ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- end: page -->
|
|
</section>
|
|
</div>
|
|
</section>
|
|
|
|
<?php
|
|
$this->load->view('template/sidebar_right');
|
|
$this->load->view('template/script_vendor');
|
|
$this->load->view('template/script_flashdata');
|
|
$this->load->view('template/notification');
|
|
?>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
})
|
|
|
|
function isiData() {
|
|
document.getElementById('id_pabfill').value = document.getElementById('id_pab').value;
|
|
}
|
|
|
|
function reloadData() {
|
|
location.reload();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|