<?php if($this->session->userdata('level')=='1'){ ?>
	<div class="row">
		<div class="col-xl-12 col-lg-12">
			<!-- Area Chart -->
			<div class="card shadow mb-4">
				<div class="card-header py-3">
					<div class="row">
						<div class="m-0 font-weight-bold text-primary col-md-10">
							<b style="font-size: 25px;">AREA CHART</b>
						</div>
						<div class="m-0 font-weight-bold text-primary col-md-2">
							<form method="get">
								<select name="tahun" class="form-control" onchange="this.form.submit()">
									<?php $thn_skr = date('Y');
										for ($x = $thn_skr; $x >= 2016; $x--) {
										?>
										<?php
											if ($tahun == $x) {
												echo "<option value='" . $x . "' selected>" . $x . "</option>";
												} else {
												echo "<option value='" . $x . "'>" . $x . "</option>";
											}
										?>
									<?php } ?>
								</select>
							</form>
						</div>
					</div>
				</div>
				<div class="card-body">
					<div class="chart-area">
						<canvas id="myAreaChart"></canvas>
					</div>
				</div>
			</div>
		</div>	
	</div>
	<?php }else{?>
	<div class="row">
		<div class="col-md-7">
			<table class="table" style="font-size:18px;">
				<tr>
					<td width="200px">Nama Satuan Kerja</td>
					<td width="5px;">:</td>
					<td><?=$user->namasatker;?></td>
				</tr>
				<tr>
					<td>Kode Satuan Kerja</td>
					<td>:</td>
					<td><?=$user->kodesatker;?></td>
				</tr>
				<tr>
					<td>Alamat</td>
					<td>:</td>
					<td><?=$user->alamat;?></td>
				</tr>
				<tr>
					<td>Kodepos</td>
					<td>:</td>
					<td><?=$user->kodepos;?></td>
				</tr>
				<tr>
					<td>Kota/Kabupaten</td>
					<td>:</td>
					<td><?=$user->kota;?></td>
				</tr>
				<tr>
					<td>Propinsi</td>
					<td>:</td>
					<td><?=$user->provinsi;?></td>
				</tr>
			</table>
		</div>
		<div class="col-md-5">
			<img src="<?=base_url('sb/img/siappaduka.gif');?>" class="img img-fluid">
		</div>
	</div>
<?php } ?>	