2019-09-14 16:19:44 +00:00
|
|
|
<div class="container search">
|
2019-09-04 22:12:45 +00:00
|
|
|
|
2019-09-14 16:19:44 +00:00
|
|
|
<h1>
|
|
|
|
Advanced Search
|
|
|
|
<small class="text-muted"></small>
|
|
|
|
</h1>
|
2019-09-04 22:12:45 +00:00
|
|
|
|
|
|
|
<?php if($this->session->flashdata('message')) { ?>
|
|
|
|
<!-- Display Message -->
|
|
|
|
<div class="alert-message error">
|
|
|
|
<p><?php echo $this->session->flashdata('message'); ?></p>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<!-- Filter options here -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2019-09-14 16:19:44 +00:00
|
|
|
<ul class="nav nav-tabs card-header-tabs">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="<?php echo site_url('search'); ?>">Search</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" href="<?php echo site_url('search/filter'); ?>">Advanced Search</a>
|
2022-10-31 11:25:56 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="<?php echo site_url('search/duplicates'); ?>">Duplicate QSOs</a>
|
2022-10-31 19:09:19 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="<?php echo site_url('search/incorrect_cq_zones'); ?>">Incorrect CQ Zones</a>
|
2023-05-26 08:38:31 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-05-26 13:22:31 +00:00
|
|
|
<a class="nav-link" href="<?php echo site_url('search/lotw_unconfirmed'); ?>">QSOs unconfirmed on LoTW</a>
|
2019-09-14 16:19:44 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2019-09-04 22:12:45 +00:00
|
|
|
</div>
|
2021-09-25 18:06:14 +00:00
|
|
|
<div class="card-body main">
|
2019-09-04 22:42:11 +00:00
|
|
|
|
2019-09-11 23:53:39 +00:00
|
|
|
<div class="card-text" id="builder"></div>
|
2021-09-23 18:18:47 +00:00
|
|
|
|
2019-09-11 23:53:39 +00:00
|
|
|
<p class="card-text">
|
2021-09-25 15:40:15 +00:00
|
|
|
<button class="btn btn-sm btn-primary ld-ext-right searchbutton" id="btn-get">Search<div class="ld ld-ring ld-spin"></div></button>
|
2019-09-04 22:42:11 +00:00
|
|
|
|
2021-09-25 15:40:15 +00:00
|
|
|
<button class="btn btn-sm btn-warning" id="btn-reset">Reset</button>
|
2019-09-11 23:53:39 +00:00
|
|
|
</p>
|
2021-09-25 15:40:15 +00:00
|
|
|
<p>
|
|
|
|
<button style="display:none;" class="btn btn-sm btn-primary" id="btn-save">Save query</button>
|
|
|
|
|
|
|
|
<?php if ($stored_queries) { ?>
|
2021-10-11 17:36:52 +00:00
|
|
|
<button class="btn btn-sm btn-primary" onclick="edit_stored_query_dialog()" id="btn-edit">Edit queries</button></p>
|
2021-09-25 15:40:15 +00:00
|
|
|
|
|
|
|
|
2021-10-11 17:36:52 +00:00
|
|
|
<div class="form-group row querydropdownform">
|
2021-09-25 18:06:14 +00:00
|
|
|
<label class="col-md-2 control-label" for="querydropdown"> Stored queries:</label>
|
|
|
|
<div class="col-md-3">
|
2021-09-25 15:46:08 +00:00
|
|
|
<select id="querydropdown" name="querydropdown" class="form-control custom-select-sm">
|
2021-09-25 15:40:15 +00:00
|
|
|
<?php
|
|
|
|
foreach($stored_queries as $q){
|
|
|
|
echo '<option value="' . $q->id . '">'. $q->description . '</option>'."\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<button class="btn btn-sm btn-primary ld-ext-right runbutton" onclick="run_query()">Run Query<div class="ld ld-ring ld-spin"></div></button>
|
|
|
|
</div>
|
2019-09-04 22:12:45 +00:00
|
|
|
|
2021-09-25 15:40:15 +00:00
|
|
|
<?php
|
2021-10-11 17:36:52 +00:00
|
|
|
} else {
|
|
|
|
echo '</p>';
|
2021-09-25 15:40:15 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div style="display:none;"><span class="badge badge-info">Info</span> You can find out how to use the <a href="https://github.com/magicbug/Cloudlog/wiki/Search----Filter" target="_blank">search filter functions</a> in the wiki.</a></div>
|
2021-10-11 17:36:52 +00:00
|
|
|
|
2019-09-04 22:12:45 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<!-- Search Results here -->
|
2019-09-11 23:53:39 +00:00
|
|
|
<div class="card search-results-box">
|
2019-09-04 22:12:45 +00:00
|
|
|
<div class="card-header">
|
2021-09-25 15:40:15 +00:00
|
|
|
Search Results: <div class="exportbutton"><button class="btn btn-sm btn-primary" id="btn-export">Export to ADIF</button></div>
|
2019-09-04 22:12:45 +00:00
|
|
|
</div>
|
2021-09-25 15:40:15 +00:00
|
|
|
<div class="card-body result">
|
2019-09-11 23:53:39 +00:00
|
|
|
|
2019-09-04 22:12:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-09-22 17:55:30 +00:00
|
|
|
</div>
|