<?php 
require '../dao/Site_Setting.php';
$get_site_setting = $site_setting->get_site_setting();
if (isset($_GET['load_setting'])) {
	?>
		<thead>

								<tr>
									<th>S/N</th>
									<th data-class="expand">School Name</th>
									<th data-hide="phone,tablet"> School Address</th>
									<th data-hide="phone,tablet"> School Tel</th>
									<th data-hide="phone,tablet"> School Email</th>
									<th data-hide="phone,tablet"> Action</th>
								</tr>
							</thead>
							
							<tbody>
									<?php 
								if ($get_site_setting) {
									$i = 0;
									foreach ($get_site_setting as $key) {
										$i++;
									?>
									<tr>
									<td><?php echo $i; ?></td>
									<td><?php echo $key['school_name'] ?></td>
									<td><?php echo $key['school_addr'] ?></td>
									<td><?php echo $key['school_tel'] ?></td>
									<td><?php echo $key['school_email'] ?></td>
									<td><a href="index.php#ajax/site_setting.php?s::=<?php echo $key['site_settings_id'] ?>" class="btn btn-primary btn-xs"><i class="fa fa-edit"></i></a> <a href="index.php#ajax/site_setting.php?s%%=<?php echo $key['site_settings_id'] ?>" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i></a></td>
								</tr>
									<?php
									}
								}
								 ?>
								
							</tbody>
	<?php
}