 <?php
 defined('BASEPATH') OR exit('No direct script access allowed');
 ?>

 <div class="col-12 col-sm-12 col-md-12 col-lg-6">
 	<div class="form-group">
 		<div class="input-group input-group-sm">
 			<div class="input-group-prepend">
 				<span class="input-group-text">Tahun</span>
 			</div>
 			<select class="form-control form-control-sm" name="tahun" onchange="load_tabel()">
 				<?php if(empty($select_tahun)){ ?>
 					<option value="<?php echo date('Y') ?>"><?php echo date('Y') ?></option>
 				<?php } else { foreach ($select_tahun as $key){ ?>
 					<option value="<?php echo $key->id ?>"><?php echo $key->value ?></option>
 				<?php } } ?>
 			</select>
 		</div>         
 	</div>
 </div> 
 <div class="col-12 col-sm-12 col-md-12 col-lg-6">
 	<div class="form-group">
 		<div class="input-group input-group-sm">
 			<div class="input-group-prepend">
 				<span class="input-group-text">Bulan</span>
 			</div>
 			<select class="form-control form-control-sm" name="bulan" onchange="load_tabel()">
 				<option value="01" <?php if(date('m') == '01') echo 'selected'; ?>>Januari</option>
 				<option value="02" <?php if(date('m') == '02') echo 'selected'; ?>>Februari</option>
 				<option value="03" <?php if(date('m') == '03') echo 'selected'; ?>>Maret</option>
 				<option value="04" <?php if(date('m') == '04') echo 'selected'; ?>>April</option>
 				<option value="05" <?php if(date('m') == '05') echo 'selected'; ?>>Mei</option>
 				<option value="06" <?php if(date('m') == '06') echo 'selected'; ?>>Juni</option>
 				<option value="07" <?php if(date('m') == '07') echo 'selected'; ?>>Juli</option>
 				<option value="08" <?php if(date('m') == '08') echo 'selected'; ?>>Agustus</option>
 				<option value="09" <?php if(date('m') == '09') echo 'selected'; ?>>September</option>
 				<option value="10" <?php if(date('m') == '10') echo 'selected'; ?>>Oktober</option>
 				<option value="11" <?php if(date('m') == '11') echo 'selected'; ?>>November</option>
 				<option value="12" <?php if(date('m') == '12') echo 'selected'; ?>>Desember</option>
 			</select>
 		</div>         
 	</div>
 </div> 

 <div class="col-12">
 	<div id="content-tabel-1">
 	</div>
 </div>

 <script type="text/javascript">
 	var base_url        = url.protocol+'<?php echo str_replace("http:", "", base_url()); ?>';
 	var controller_url  = base_url+'<?php echo $this->uri->segment(1); ?>';
 </script>

 <script type="text/javascript">

 	<?php $this->load->view(basename(__DIR__).'/_script.js'); ?>

 </script>

 <!-- HightChart -->
 <script src="./_asset/graph/highcharts.js"></script>
 <script src="./_asset/graph/exporting.js"></script>
 <script src="./_asset/graph/export-data.js"></script>
 <script src="./_asset/graph/accessibility.js"></script>