<div class="title">家長帳號已成功建立</div>
<ul class="table-toolbar"style="text-align: left;"></ul>
<table class="display table datatables dataTable no-footer" cellspacing="0" width="100%" style="width: 100%;">
	<thead>
		<tr role="row">
			<th>登入名稱</th>
			<th>登入密碼</th>
			<th>簽署密碼</th>
			<th>中文姓名</th>
			<th>英文姓名</th>
			<th>電話號碼</th>
			<th>電郵地址</th>
		</tr>
	</thead>
	<tbody>
	<?php
		foreach ($parents as $idx => $parent)
		{
			if (($idx % 2) == 0)
			{
				$rowType = 'even';
			}
			else
			{
				$rowType = 'odd';
			}
	?>
	<tr role="row" class="<?=$rowType;?>">
		<td><?=$parent['username'];?></td>
		<td>(暫定為這位家長的電話號碼)</td>
		<td>(暫定為這位家長的電話號碼)</td>
		<td><?=$parent['chi_name'];?></td>
		<td><?=$parent['eng_name'];?></td>
		<td><?=$parent['mobile'];?></td>
		<td><?=$parent['email'];?></td>
	</tr>
	<?php
		}
	?>
	</tbody>
</table>
<div class="table-buttons" style="position: inherit;">
	<button class="btn btn-footer submit" type="button" id='btnBack'>返回</button>
</div>
<script>
$(document).ready(function () {
	$('#btnBack').on('click', function() {
		window.location.href = '/student';
	});
});
</script>
