<!DOCTYPE html> 
<?php $admin = 'Master'; $nama = 'laporan'; ?>
<html lang="en">
<?php include("layout/meta.php");?>
	<body class="no-skin">
	<?php include("layout/navbar.php");?>
		<div class="main-container ace-save-state" id="main-container">
			<script type="text/javascript">
				try{ace.settings.loadState('main-container')}catch(e){}
			</script>
			<?php include("layout/sidebar.php");?>
			<div class="main-content">
			  <div class="main-content-inner">
				<div class="col-xs-12">
				<?php if(!empty($pesan)){ ?>
				<div class="alert alert-<?php echo $alert;?>" role="alert" style="text-align:center;">
				 <strong><?php echo validation_errors(); echo $pesan ;?></strong>
				</div><?php }?>					
					<h3 class="header smaller lighter blue">Laporan</h3>										
				  <div class="widget-box">
					<div class="widget-body">										
						<div class="table-header">
						<?php echo $admin.' <i class="ace-icon fa fa-angle-double-right"></i> '.$nama; ?>
					</div>     				
					  <div class="widget-main">
						<?php 
						$attribute = array('role' => 'form', 'class' => 'form-horizontal' , 'target' => '_blank');
						echo form_open(base_url().'admin/laporan/tampillaporan', $attribute); 
						?>											
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">Status</label>
							<div class="col-sm-8">
								<select class="form-control"  name="status" class="form-control">
								<option selected="selected" value="" >Pilih Status</option>
								<!--<option  value="2">Ditolak</option>-->
								<option  value="3">Lunas (Bulan & Tahun)</option>
								<option  value="4">Belum Lunas (Bulan & Tahun)</option>
								<option  value="5">Semua Lunas (Tahun)</option>
								<option  value="6">Semua Belum Lunas  (Tahun)</option>
								</select>								 
							</div>
						  </div>	
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">Bulan</label>
							<div class="col-sm-8">
									<select name="bln" id="bulan" class="form-control">
									  <option value="">Pilih Bulan</option>
									  <option value="01">January</option>
									  <option value="02">February</option>
									  <option value="03">March</option>
									  <option value="04">April</option>
									  <option value="05">May</option>
									  <option value="06">June</option>
									  <option value="07">July</option>
									  <option value="08">August</option>
									  <option value="09">September</option>
									  <option value="10">October</option>
									  <option value="11">November</option>
									  <option value="12">December</option>
									</select>	
							</div>
						  </div>	
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">Tahun</label>
							<div class="col-sm-8">
									<?php
									$now=date("Y");
									echo "<select name='thn'  style='width:100%'>
									<option value='2020' selected>2020</option>";
									for($thn=2022; $thn<=$now; $thn++){
									echo "<option value=$thn>$thn</option>";}
									echo "</select>";									
									?>					
							</div>
						  </div>						  
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
							</label>
							<div class="col-sm-8">
							<button type="submit" class="btn btn-primary btn-sm" name="button" value="button"  tabindex="1">tampil</button>
							<button type="submit" class="btn btn-success btn-sm" name="kembali" value="kembali"  tabindex="1" formnovalidate >kembali</button>														
							</div>
						  </div>
						<?php echo form_close();?>
						<hr />
						<?php 
						$attribute = array('role' => 'form', 'class' => 'form-horizontal' , 'target' => '_blank');
						echo form_open(base_url().'admin/laporan/tampillaporan2', $attribute); 
						?>											
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">Status</label>
							<div class="col-sm-8">
								<select class="form-control"  name="status" class="form-control">
								<option selected="selected" value="" >Pilih Status</option>
								<option  value="3">Lunas (Disetujui)</option>
								<option  value="4">Belum Lunas (Disetujui)</option>
								</select>								 
							</div>
						  </div>	
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">Bulan Awal</label>
							<div class="col-sm-8">
									<select name="bln1" id="bulan" class="form-control">
									  <option value="">Pilih Bulan</option>
									  <option value="01">January</option>
									  <option value="02">February</option>
									  <option value="03">March</option>
									  <option value="04">April</option>
									  <option value="05">May</option>
									  <option value="06">June</option>
									  <option value="07">July</option>
									  <option value="08">August</option>
									  <option value="09">September</option>
									  <option value="10">October</option>
									  <option value="11">November</option>
									  <option value="12">December</option>
									</select>	
							</div>
						  </div>	
						  
						  <div class="form-group">
							  <label class="col-sm-1 control-label no-padding-right" for="form-field-1">Bulan Selesai</label>
							<div class="col-sm-8">
									<select name="bln2" id="bulan" class="form-control">
									  <option value="">Pilih Bulan</option>
									  <option value="01">January</option>
									  <option value="02">February</option>
									  <option value="03">March</option>
									  <option value="04">April</option>
									  <option value="05">May</option>
									  <option value="06">June</option>
									  <option value="07">July</option>
									  <option value="08">August</option>
									  <option value="09">September</option>
									  <option value="10">October</option>
									  <option value="11">November</option>
									  <option value="12">December</option>
									</select>	
							</div>
						  </div>							  
						  
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">Tahun</label>
							<div class="col-sm-8">
									<?php
									$now=date("Y");
									echo "<select name='thn'  style='width:100%'>
									<option value='2020' selected>2020</option>";
									for($thn=2022; $thn<=$now; $thn++){
									echo "<option value=$thn>$thn</option>";}
									echo "</select>";									
									?>					
							</div>
						  </div>						  
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
							</label>
							<div class="col-sm-8">
							<button type="submit" class="btn btn-primary btn-sm" name="button" value="button"  tabindex="1">tampil</button>
							<button type="submit" class="btn btn-success btn-sm" name="kembali" value="kembali"  tabindex="1" formnovalidate >kembali</button>														
							</div>
						  </div>
						<?php echo form_close();?>						
					  </div>							
					</div>
				  </div>
				  
				  
				  <div class="widget-box">
					<div class="widget-body">										
					<div class="table-header">
						Grafik
					</div>     				
					  <div class="widget-main">
						<?php 
						$attribute = array('role' => 'form', 'class' => 'form-horizontal' , 'target' => '_blank');
						echo form_open(base_url().'admin/laporan/grafik', $attribute); 
						?>												
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">Tahun</label>
							<div class="col-sm-8">
									<?php
									$now=date("Y");
									echo "<select name='thn'  style='width:100%'>
									<option value='2022' selected>2020</option>";
									for($thn=2022; $thn<=$now; $thn++){
									echo "<option value=$thn>$thn</option>";}
									echo "</select>";									
									?>					
							</div>
						  </div>						  
						  <div class="form-group">
							<label class="col-sm-1 control-label no-padding-right" for="form-field-1">
							</label>
							<div class="col-sm-8">
							<button type="submit" class="btn btn-primary btn-sm" name="button" value="button"  tabindex="1">tampil</button>
							<button type="submit" class="btn btn-success btn-sm" name="kembali" value="kembali"  tabindex="1" formnovalidate >kembali</button>														
							</div>
						  </div>
						<?php echo form_close();?>
					  </div>							
					</div>
				  </div>				  
				</div>
				<!-- /.span -->
			  </div>
			  <!-- /.main-content -->
			</div>
			<?php include("layout/footer.php");?>
			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->
		<!-- basic scripts -->
			<?php include("layout/sc_footer.php");?>
	</body>
</html>