only show purge excluded recordings
This commit is contained in:
+8
-2
@@ -282,12 +282,15 @@ if(isset($_GET['species'])){ ?>
|
|||||||
<form action="" method="GET">
|
<form action="" method="GET">
|
||||||
<input type="hidden" name="view" value="Recordings">
|
<input type="hidden" name="view" value="Recordings">
|
||||||
<input type="hidden" name="species" value="<?php echo $_GET['species']; ?>">
|
<input type="hidden" name="species" value="<?php echo $_GET['species']; ?>">
|
||||||
<button <?php if(!isset($_GET['sort']) || $_GET['sort'] == "date"){ echo "style='background:#9fe29b !important;'"; }?> class="sortbutton" type="submit" name="sort" value="date">
|
<input type="hidden" name="sort" value="<?php echo $_GET['sort']; ?>">
|
||||||
|
<button <?php if(!isset($_GET['sort']) || $_GET['sort'] == "" || $_GET['sort'] == "date"){ echo "style='background:#9fe29b !important;'"; }?> class="sortbutton" type="submit" name="sort" value="date">
|
||||||
<img width=35px src="images/sort_date.svg" title="Sort by date" alt="Sort by date">
|
<img width=35px src="images/sort_date.svg" title="Sort by date" alt="Sort by date">
|
||||||
</button>
|
</button>
|
||||||
<button <?php if(isset($_GET['sort']) && $_GET['sort'] == "confidence"){ echo "style='background:#9fe29b !important;'"; }?> class="sortbutton" type="submit" name="sort" value="confidence">
|
<button <?php if(isset($_GET['sort']) && $_GET['sort'] == "confidence"){ echo "style='background:#9fe29b !important;'"; }?> class="sortbutton" type="submit" name="sort" value="confidence">
|
||||||
<img src="images/sort_occ.svg" title="Sort by confidence" alt="Sort by confidence">
|
<img src="images/sort_occ.svg" title="Sort by confidence" alt="Sort by confidence">
|
||||||
</button>
|
</button><br>
|
||||||
|
<input style="margin-top:10px" <?php if(isset($_GET['only_excluded'])){ echo "checked"; }?> type="checkbox" name="only_excluded" onChange="submit()">
|
||||||
|
<label for="onlyverified">Only Show Purge Excluded</label>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
@@ -338,6 +341,9 @@ echo "<table>
|
|||||||
if(!file_exists($home."/BirdSongs/Extracted/".$filename)) {
|
if(!file_exists($home."/BirdSongs/Extracted/".$filename)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(!in_array($filename_formatted, $disk_check_exclude_arr) && isset($_GET['only_excluded'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$iter++;
|
$iter++;
|
||||||
|
|
||||||
if($config["FULL_DISK"] == "purge") {
|
if($config["FULL_DISK"] == "purge") {
|
||||||
|
|||||||
Reference in New Issue
Block a user