<?php
  	session_start();
  	include("library/conn.php");
?>
<!DOCTYPE html>
<html lang="en">
  	<head>
 		<?php include("library/head.php");?>
	 	<title>Account Statement | <?php echo $_SESSION['systemName']; ?></title>
  	</head>
  	<body class="app sidebar-mini">

		<!-- Navbar-->
		<?php include("library/header.php");?>
		<!-- Sidebar menu-->
		<div class="app-sidebar__overlay" data-toggle="sidebar"></div>
		<?php include("library/sidebar.php");?>
		
		<main class="app-content">
			<div class="app-title">
				<div>
					<h3><i class="fa fa-file-text-o"></i> <b> ACCOUNT STATEMENT</b></h3>
					<p>Account Statement</p>
				</div>
				<ul class="app-breadcrumb breadcrumb">
					<li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
					<li class="breadcrumb-item"><a href="rental-payments-report">Account Statement</a></li>
				</ul>
			</div>
		
			<?php include("models/admin_config.php");?>
			<?php include("models/system_config.php");?>

			<div class="tile">
				<div class="tile-body">
                    <form action="#" method="POST" id="searchAccountStatementForm">
						<div class="row">
							<div class="form-group col-md-4">
								<label class="control-label">Account Name</label>
								<select class="form-control" name="cmbAccountIddSearchAccountStatement" id="cmbAccountIddSearchAccountStatement" style="width: 100%;" required />
                                
								</select>
							</div>
                            <div class="form-group col-md-2">
								<label class="control-label">Date</label>
								<select class="form-control" name="cmbCustomDateSearchAccountStatement" id="cmbCustomDateSearchAccountStatement" style="width: 100%;">
                                    <option value="0">All Date</option>
                                    <option value="1">Today</option>
                                    <option value="2">Yesterday</option>
                                    <option value="3">Last 3 Days</option>
                                    <option value="4">This Week</option>
                                    <option value="5">Last 10 Days</option>
                                    <option value="6">This Month</option>
                                    <option value="7">This Year</option>
                                    <option value="8">Last Year</option>
                                    <option value="9">Custom Date</option>
								</select>
							</div>
                            <div class="form-group col-md-2">
								<label class="control-label">From Date</label>
								<input class="form-control" type="date" name="txtFromDateSearchAccountStatement" id="txtFromDateSearchAccountStatement" />
							</div>
                            <div class="form-group col-md-2">
								<label class="control-label">To Date</label>
								<input class="form-control" type="date" name="txtToDateSearchAccountStatement" id="txtToDateSearchAccountStatement" />
							</div>
							<div class="form-group col-md-2 text-right">
								<label class="control-label">&nbsp;</label><br>
								<button type="submit" class="btn btn-primary col-md-12" name="btnSearchAccountStatement" id="btnSearchAccountStatement"><i class="fa fa-search" style="font-size: 18px; margin-left: 5px; margin-bottom: 3px;"></i> Search</button>
							</div>
						</div>	
					</form>
				</div>
			</div>

			<div class="mt-3" id="accountStatementSection">
				
			</div>
		
		</main>
	
		<!-- Essential javascripts for application to work-->
		<?php include("library/footer.php");?>	    	
		<?php include("library/scripts.php"); ?>
		<script type="text/javascript"> $("#cmbAccountIddSearchAccountStatement, #cmbCustomDateSearchAccountStatement").select2( {tags: false});</script>
		
  </body>
</html>