<div class="right_col" role="main">
	<div class="">
		<div class="page-title">
			<div class="title_left">
				<table>
					<tr>
						<td width="150px"><h3>Owner list</h3></td>
						<td><a href="index.php?pagecontent=owner"><button type="button" class="btn btn-dark">Add Owner</button></a></td>
					</tr>
				</table>
			</div>
		</div>
		<div class="clearfix"></div>
		<div class="row">
			<div class="col-md-12 col-sm-12 col-xs-12">
				<div class="x_panel">
					<div class="x_content">
						<table id="datatable" class="table table-striped table-bordered">
							<thead>
								<tr>
									<th>Name</th>
									<th>Contact</th>
									<th>Rental</th>
									<th>Account</th>
									<th>Bank</th>
									<th>Date Due</th>
								</tr>
							</thead>
							<tbody>
								<?php
									$result=mysqli_query($conn, "SELECT *FROM owner") or die (mysql_error());
									while($row = mysqli_fetch_array($result))
									{
								?>
								<tr>
									<td width="200"><?php echo $row['o_name'];?></a></td>
									<td><?php echo $row['o_contact'];?></td>
									<td><?php echo $row['o_rental'];?></td>
									<td><?php echo $row['o_account'];?></td>
									<td><?php echo $row['o_bank'];?></td>
									<td><?php echo $row['o_due'];?> th</td>
								</tr>
								<?php
									}
								?>
						</table>
					</div>
				</div>
			</div>
        </div>
    </div>
</div>