<?php

/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link       http://www.exapartners.com/
* @since      1.0.0
*
* @package    Esi_Management
* @subpackage Esi_Management/admin/partials
*/
global $wpdb;

$radars = esi_get_all_radar(array('number' => 10000));

?>

<!-- This file should primarily consist of HTML with a little bit of PHP. -->
<table class="form-table">
<tr>
	<th>
		<label for="radars"><?php _e('Radars'); ?></label>
	</th>
	<td>
		<select id="radars" name="radars">
			<option value="0">Select Radars</option>
			<?php foreach ($radars as $radar) : ?>
				<option value="<?= $radar->id ?>"><?= $radar->name ?></option>
			<?php endforeach; ?>
		</select>
		<br><span class="description"><?php _e('Your radars.', 'selectradars'); ?></span>
	</td>
</tr>
</table>
