2022-11-15 17:29:33 +00:00
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<h2><?php echo $page_title; ?></h2>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
Request a QSL card
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
|
2023-04-26 04:24:51 +00:00
|
|
|
<div class="stationinfo">
|
2022-11-15 17:29:33 +00:00
|
|
|
|
|
|
|
<?php
|
2023-04-17 18:04:23 +00:00
|
|
|
if ($global_oqrs_text) {
|
|
|
|
echo $global_oqrs_text;
|
2023-04-25 12:00:30 +00:00
|
|
|
echo '<br /><br />';
|
2023-04-17 18:04:23 +00:00
|
|
|
}
|
2023-04-25 12:00:30 +00:00
|
|
|
if ($groupedSearch == 'on') {
|
|
|
|
echo 'This search will search in all station locations where OQRS is active.<br /><br /><form class="form-inline" onsubmit="return false;"><label class="my-1 mr-2" for="oqrssearch">Enter your callsign: </label>
|
|
|
|
<input class="form-control mr-sm-2" id="oqrssearch" type="search" name="callsign" placeholder="Search Callsign" aria-label="Search" required="required">
|
|
|
|
<button onclick="searchOqrsGrouped();" class="btn btn-sm btn-primary" id="stationbuttonsubmit" type="button"><i class="fas fa-search"></i> Search</button>
|
|
|
|
</form>';
|
|
|
|
echo '<div class="searchinfo"></div>';
|
2023-04-26 18:33:45 +00:00
|
|
|
?>
|
|
|
|
<script>// Get the input field
|
|
|
|
var input = document.getElementById("oqrssearch");
|
|
|
|
|
|
|
|
// Execute a function when the user presses a key on the keyboard
|
|
|
|
input.addEventListener("keypress", function(event) {
|
|
|
|
// If the user presses the "Enter" key on the keyboard
|
|
|
|
if (event.key === "Enter") {
|
|
|
|
// Cancel the default action, if needed
|
|
|
|
event.preventDefault();
|
|
|
|
// Trigger the button element with a click
|
|
|
|
document.getElementById("stationbuttonsubmit").click();
|
|
|
|
}
|
|
|
|
});</script>
|
|
|
|
<?php
|
2023-04-25 12:00:30 +00:00
|
|
|
} else {
|
2022-11-15 17:29:33 +00:00
|
|
|
echo '<div class="resulttable">';
|
|
|
|
if ($stations->result() != NULL) { ?>
|
|
|
|
|
|
|
|
<form class="form-inline" enctype="multipart/form-data">
|
|
|
|
<label class="my-1 mr-2" for="station">Select station: </label>
|
|
|
|
<select id="station" class="custom-select my-1 mr-sm-2" name="station">
|
|
|
|
<?php foreach($stations->result() as $station) {
|
2022-12-22 18:59:42 +00:00
|
|
|
echo '<option value="' . $station->station_id . '">' . $station->station_profile_name . ' - ' . $station->station_callsign . '</option>'."\n";
|
2022-11-15 17:29:33 +00:00
|
|
|
} ?>
|
|
|
|
</select>
|
|
|
|
<button id="button1id" type="button" onclick="loadStationInfo();" name="button1id" class="btn btn-sm btn-primary"> Proceed</button>
|
|
|
|
</form>
|
2023-04-26 04:24:51 +00:00
|
|
|
</div>
|
2022-11-15 17:29:33 +00:00
|
|
|
|
|
|
|
<div class="searchinfo"></div>
|
2023-04-25 12:00:30 +00:00
|
|
|
<?php
|
|
|
|
}
|
2022-11-15 17:29:33 +00:00
|
|
|
|
2023-04-25 12:00:30 +00:00
|
|
|
else {
|
|
|
|
echo 'No stations found that are using Cloudlog OQRS.';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
2022-11-15 17:29:33 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-26 04:24:51 +00:00
|
|
|
</div>
|