266 lines
11 KiB
PHP
266 lines
11 KiB
PHP
<?php
|
|
if ($this->session->userdata('username') != null) {
|
|
?>
|
|
<!doctype html>
|
|
<html class="fixed">
|
|
|
|
<head>
|
|
|
|
<!-- Basic -->
|
|
<meta charset="UTF-8" http-equiv="refresh" content="600">
|
|
|
|
<title>MANAJEMEN KUARTAL</title>
|
|
<meta name="keywords" content="HTML5 Admin Template" />
|
|
<meta name="description" content="JSOFT Admin - Responsive HTML5 Template">
|
|
<meta name="author" content="JSOFT.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" />
|
|
|
|
<!-- Specific Page Vendor 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-ui/css/ui-lightness/jquery-ui-1.10.4.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/morris/morris.css" />
|
|
<link rel="stylesheet" href="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.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>
|
|
|
|
<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">
|
|
<header class="page-header">
|
|
<h2>Manajemen Kuartal</h2>
|
|
|
|
<div class="right-wrapper pull-right">
|
|
<ol class="breadcrumbs">
|
|
<li><span>Manajemen Kuartal</span></li>
|
|
</ol>
|
|
|
|
<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
<div class="col-md-6 col-lg-12 col-xl-6">
|
|
<div class="row">
|
|
<?php
|
|
foreach ($penjualan as $key) { ?>
|
|
<div class="col-md-6 col-xl-12">
|
|
<?php if ($key['STATUS_KUARTAL']==NULL) {?>
|
|
<section class="panel panel-featured-left panel-featured-quartenary">
|
|
<?php } else if ($key['STATUS_KUARTAL']=="0") {?>
|
|
<section class="panel panel-featured-left panel-featured-success">
|
|
<?php } else if ($key['STATUS_KUARTAL']=="1") { ?>
|
|
<section class="panel panel-featured-left panel-featured-warning">
|
|
<?php } ?>
|
|
<div class="panel-body">
|
|
<a href="<?php echo base_url() ?>index.php/ManagePenjualan/dataManajemenKuartal_ICT_A2/<?php echo $key['ID_KUARTAL'];?>">
|
|
<div class="widget-summary">
|
|
<div class="widget-summary-col widget-summary-col-icon">
|
|
<?php if ($key['STATUS_KUARTAL']==NULL) {?>
|
|
<div class="summary-icon bg-quartenary">
|
|
<?php } else if ($key['STATUS_KUARTAL']=="0") {?>
|
|
<div class="summary-icon bg-success">
|
|
<?php } else if ($key['STATUS_KUARTAL']=="1") { ?>
|
|
<div class="summary-icon bg-warning">
|
|
<?php } ?>
|
|
<i class="fa fa-building-o"></i>
|
|
</div>
|
|
</div>
|
|
<div class="widget-summary-col">
|
|
<div class="summary">
|
|
<h4 class="title"></h4>
|
|
<div class="info">
|
|
<?php if ($key['STATUS_KUARTAL']==NULL) {?>
|
|
<strong class="amount text-quartenary"><?=$key['NAMA_KUARTAL']?></strong>
|
|
<?php } else if ($key['STATUS_KUARTAL']=="0") {?>
|
|
<strong class="amount text-success"><?=$key['NAMA_KUARTAL']?></strong>
|
|
<?php } else if ($key['STATUS_KUARTAL']=="1") { ?>
|
|
<strong class="amount text-warning"><?=$key['NAMA_KUARTAL']?></strong>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<?php if ($key['STATUS_KUARTAL']==NULL) {
|
|
$status="BERJALAN"; ?>
|
|
<div class="text-right"><strong class="text-quartenary"><?=$status?></strong></div>
|
|
<?php } else if ($key['STATUS_KUARTAL']=="0") {
|
|
$status="SELESAI"; ?>
|
|
<div class="text-right"><strong class="text-success"><?=$status?></strong></div>
|
|
<?php } else if ($key['STATUS_KUARTAL']=="1") {
|
|
$status="LALU"; ?>
|
|
<div class="text-right"><strong class="text-warning"><?=$status?></strong></div>
|
|
<?php } ?>
|
|
</footer></a>
|
|
</div>
|
|
|
|
</section>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
<div class="col-md-6 col-xl-12">
|
|
<section class="panel">
|
|
<div class="panel-body bg-primary">
|
|
<a href="<?php echo base_url() ?>index.php">
|
|
<div class="widget-summary">
|
|
<div class="widget-summary-col widget-summary-col-icon">
|
|
<div class="summary-icon bg-quartenary">
|
|
<i class="fa fa-reply"></i>
|
|
</div>
|
|
</div>
|
|
<div class="widget-summary-col">
|
|
<div class="summary">
|
|
<h4 class="title"> </h4>
|
|
<div class="info">
|
|
<strong class="amount">Kembali ke Dashboard</strong>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<div class="text-right"><strong class="text-quartenary"> </strong></div>
|
|
</footer></a>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- end: page -->
|
|
</section>
|
|
</section>
|
|
|
|
<?php $this->load->view('template/sidebar_right'); ?>
|
|
<!-- Vendor -->
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery/jquery.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap/js/bootstrap.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/nanoscroller/nanoscroller.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/magnific-popup/magnific-popup.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/pnotify/pnotify.custom.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/select2/select2.js"></script>
|
|
|
|
<!-- Specific Page Vendor -->
|
|
<script src="<?php echo base_url('') ?>assets/vendor/summernote/summernote.js"></script>
|
|
|
|
<!-- Theme Base, Components and Settings -->
|
|
<script src="<?php echo base_url('') ?>assets/javascripts/theme.js"></script>
|
|
|
|
<!-- Theme Custom -->
|
|
<script src="<?php echo base_url('') ?>assets/javascripts/theme.custom.js"></script>
|
|
|
|
<!-- Theme Initialization Files -->
|
|
<script src="<?php echo base_url('') ?>assets/javascripts/theme.init.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery-ui/js/jquery-ui-1.10.4.custom.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery-ui-touch-punch/jquery.ui.touch-punch.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery-appear/jquery.appear.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/bootstrap-multiselect/bootstrap-multiselect.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery-easypiechart/jquery.easypiechart.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/flot/jquery.flot.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/flot-tooltip/jquery.flot.tooltip.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/flot/jquery.flot.pie.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/flot/jquery.flot.categories.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/flot/jquery.flot.resize.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/jquery-sparkline/jquery.sparkline.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/raphael/raphael.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/morris/morris.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/gauge/gauge.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/snap-svg/snap.svg.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/vendor/liquid-meter/liquid.meter.js"></script>
|
|
<script src="<?php echo base_url('') ?>assets/javascripts/dashboard/examples.dashboard.js"></script>
|
|
<?php $this->load->view('template/notification'); ?>
|
|
<script>
|
|
$(document).ready(function() {
|
|
<?php if ($this->session->flashdata('success')) { ?>
|
|
new PNotify({
|
|
title: 'Pemberitahuan',
|
|
text: 'Data berhasil <?= $this->session->flashdata('success'); ?>.',
|
|
type: 'success',
|
|
shadow: true
|
|
});
|
|
<?php } ?>
|
|
<?php if ($this->session->flashdata('failed')) { ?>
|
|
new PNotify({
|
|
title: 'Pemberitahuan',
|
|
text: 'Data gagal <?= $this->session->flashdata('failed'); ?>, hubungi Administrator.',
|
|
type: 'error',
|
|
shadow: true
|
|
});
|
|
<?php } ?>
|
|
<?php if ($this->session->flashdata('data_lock')) { ?>
|
|
new PNotify({
|
|
title: 'Pemberitahuan',
|
|
text: 'Data berhasil <?= $this->session->flashdata('data_lock'); ?>. Data Neraca berhasil disimpan.',
|
|
type: 'success',
|
|
shadow: true
|
|
});
|
|
<?php } ?>
|
|
|
|
<?php if ($this->session->flashdata('status_change')) { ?>
|
|
new PNotify({
|
|
title: 'Notifikasi',
|
|
text: 'Kuartal sudah dikunci Tanggal <?= $this->session->flashdata('status_change'); ?>, proses dihentikan',
|
|
type: 'error',
|
|
shadow: true
|
|
});
|
|
<?php } ?>
|
|
|
|
<?php if ($this->session->flashdata('kuisioner_success')) { ?>
|
|
new PNotify({
|
|
title: 'Pemberitahuan',
|
|
text: 'Data berhasil disimpan. Terima kasih atas partisipasinya.',
|
|
type: 'success',
|
|
shadow: true
|
|
});
|
|
<?php } ?>
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
<?php
|
|
} else {
|
|
echo "<script>alert('Akses ditolak')</script>";
|
|
}
|
|
?>
|