<table width="100%">
	<tr align="center">
		<td width="30%">
			<?php
			
			$_SESSION["statementby"] = $_GET["statementby"];
					$_SESSION["statement_year"] = $_GET["statement_year"];
					$_SESSION["statement_monthyear"] = $_GET["statement_monthyear"];
					$_SESSION["dateFrom"] = $_GET["dateFrom"];
					$_SESSION["dateTo"] = $_GET["dateTo"];
					$_SESSION["statement_ChooseDate"] = $_GET["statement_ChooseDate"];?>
			<!--<select name="statementby" id="statementby" onChange="javascript: submit();" class="form-control">-->
			<select name="statementby" id="statementby" onchange="statementbyFunc()" class="form-control">
				<option value="">Select Statement Option</option>
				<option value="statement_year" <?php echo ($_SESSION["statementby"] ==  'statement_year')  ? "selected" : "" ?>>STATEMENT BY YEAR</option>
				<option value="statement_monthyear" <?php echo ($_SESSION["statementby"] ==  'statement_monthyear')  ? "selected" : "" ?>>STATEMENT BY MONTH AND YEAR</option>
				<option value="statement_date" <?php echo ($_SESSION["statementby"] ==  'statement_date')  ? "selected" : "" ?>>STATEMENT BY DATE (BETWEEN TWO DATES)</option>
				<?php if($page == "report_all_payments.php"){ ?>
				<option value="statement_ChooseDate" <?php echo ($_SESSION["statementby"] ==  'statement_ChooseDate')  ? "selected" : "" ?> >STATEMENT BY DATE (ONE DATE ONLY)</option>
				<?php } else {?>
				<option value="statement_ChooseDate" <?php echo ($_SESSION["statementby"] ==  'statement_ChooseDate')  ? "selected" : "" ?> >STATEMENT BY CUT OFF DATE</option>
				<?php } ?>
			</select>
		</td>
		<td id="statement_ByYear" style='<?php echo $displayYear ?>;'>
			<?php //if($_SESSION["statement_year"])?>
			<select required="" name="statement_year" id="statement_year" class="form-control">
				<option value="">Please Select Year</option>
				<?php while($resultYear = mysqli_fetch_array($runSqlYear)){?>
						<option value="<?php echo $resultYear["year"]?>" <?php echo ($_SESSION["statement_year"] ==  $resultYear["year"])  ? "selected" : "" ?> ><?php echo $resultYear["year"]?></option>
				<?php } ?>
			</select>
		</td>
		<td id="statement_ByMonthYear" style='<?php echo $displayMonthYear  ?>;'>
			<input required="" type="month" class="form-control" name="statement_monthyear" id="statement_monthyear" value="<?php echo $_SESSION["statement_monthyear"]?>" size="20"/>
		</td>
		<td id="statement_ByDate" style='<?php echo $displayDateFromTo ?>;' >
		<b>	From: </b><input required="" id='dateFrom' name='dateFrom' type='date' size='10' value="<?php echo $_SESSION["dateFrom"]?>"> 
		<b>	To:  </b><input  required="" id='dateTo' name='dateTo' type='date' size='10' value="<?php echo $_SESSION["dateTo"]?>">
		</td>
		<td id="statement_ByChooseDate" style='<?php echo $displayChooseDate ?>;' >
			<input required="" id="statement_ChooseDate" name="statement_ChooseDate" class="form-control" type='date' size='10' value="<?php echo $_SESSION["statement_ChooseDate"]?>"> 
		</td>
	</tr>
	<?php if($page != "report_all_payments.php"){?>
	<tr >
		<td>&nbsp;</td>
		<td align="center" id="statement_cutOff" style='<?php  echo $displayCheckBox  ?>;font-size:12px' >
			<div>
				<input type="checkbox" id="cutOffPayment" name="cutOffPayment" <?php echo ($_SESSION["cutOffPayment"]) ? "checked" : "" ?> value="true">
				<label for="cutOffPayment" style="font-size:16px"><b> View Ageing Record based on cut off payments same as selected Month / Year </b></label>
			</div>
		</td>
	</tr>
	<?php } ?>
</table>