<?php
	include("config.php"); 
  	$select 	= "SELECT * FROM `year_mst` WHERE `status` = '0'";
  	$res 		= mysqli_query($conn,$select);
  	$years = array();
  	while ($row = mysqli_fetch_array($res)) {
  		$years[] = $row['short_year'];
  	}
	/*$years 		= generateFinancialYears($row['dor']);*/
	$company_id = $_SESSION['company_id'];
?>

<div class="modal-header">
	<h4 class="modal-title">FINANCIAL YEAR SELECTION</h4>
</div>
<form id="form" method="post" action="index.php?page=dashboard.php">
	<div class="modal-body">
		<?php foreach ($years as $year) { ?>
			<!-- <input type="radio" name="fin_year" value="<?php echo $year; ?>"> <?php echo $year; ?> <br /> -->
			<label class="radio-inline fontradiobuttion">
              	<input type="radio" name="fin_year" value="<?php echo $year; ?>" checked> <span class="label-text"><?php echo $year; ?></span><br />
              	
          	</label>
		<?php } ?>
	</div>
	<div class="modal-footer">
		<button type="submit" class="btn btn-primary" name="login">GO</button>
	</div>
</form>
<script type="text/javascript">
  	$(document).ready(function() {
    	$('input').iCheck({
        	checkboxClass: 'icheckbox_flat',
        	radioClass: 'iradio_flat'
    	});
  	});
</script>