Skip to content

A live bird collage card for your Home Assistant dashboard.

better links

mcguirepr89872348243830
diff --git a/scripts/overview.php b/scripts/overview.php
index d3276940..e592b0cc 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -88,6 +88,7 @@ while($rows=$mostrecent ->fetch_assoc())
<td><a href="/By_Common_Name/<?php echo $dbname;?>"><?php echo $rows['Com_Name'];?></a></td>
<td><a href="/By_Date/<?php echo $rows['Date'];?>"/><?php echo $rows['Date'];?></a></td>
<td><?php echo $rows['Time'];?></td>
+ <td><a href="https://allaboutbirds.org/guide/<?php echo $dbname;?>" target="top"/>More Info</a></td>
</tr>
</table>
</div>
diff --git a/scripts/stats.php b/scripts/stats.php
index ad482dd4..350dbae8 100644
--- a/scripts/stats.php
+++ b/scripts/stats.php
@@ -221,7 +221,7 @@ while($rows=$stats ->fetch_assoc())
<th>Scientific Name</th>
<th>Occurrences</th>
<th>Highest Confidence Score</th>
- <th>Wikipedia Link</th>
+ <th>Links</th>
</tr>";
while($rows = $specificstats->fetch_assoc()) {
$dbname = preg_replace('/ /', '_', $rows['Com_Name']);
@@ -231,7 +231,7 @@ while($rows = $specificstats->fetch_assoc()) {
<td>";echo "<a href=\"../By_Scientific_Name/$dbsciname\"/>";echo $rows['Sci_Name']; echo "</a></td>
<td>";echo $rows['COUNT(*)'];echo "</td>
<td>";echo $rows['MAX(Confidence)'];echo "</td>
- <td><a href=\"https://wikipedia.org/wiki/$dbname\" target=\"top\"/>link</a></td>
+ <td><a href=\"https://wikipedia.org/wiki/$dbname\" target=\"top\"/>Wikipedia</a>, <a href=\"https://wikipedia.org/wiki/$dbname\" target=\"top\"/>link</a></td>
</tr>";
}}
?>
diff --git a/scripts/viewdb.php b/scripts/viewdb.php
index c1b0f989..18672e07 100644
--- a/scripts/viewdb.php
+++ b/scripts/viewdb.php
@@ -64,6 +64,7 @@ a {
text-decoration:none;
color:black;
}
+.a2 { color:blue;}
</style>
</head>
<body style="background-color: rgb(119, 196, 135);">
@@ -96,7 +97,7 @@ a {
<th>Scientific Name</th>
<th>Common Name</th>
<th>Confidence</th>
- <th>Wikipedia</th>
+ <th>Links</th>
</tr>
<!-- PHP CODE TO FETCH DATA FROM ROWS-->
<?php // LOOP TILL END OF DATA
@@ -113,7 +114,7 @@ while($rows=$mosttable ->fetch_assoc())
<td><a href="/By_Scientific_Name/<?php echo $dbsciname;?>"/><?php echo $rows['Sci_Name'];?></a></td>
<td><a href="/By_Common_Name/<?php echo $dbname;?>"/><?php echo $rows['Com_Name'];?></a></td>
<td><?php echo $Confidence;?></td>
- <td><a href="https://wikipedia.org/wiki/<?php echo $dbname;?>" target="top"><?php echo $rows['Com_Name'];?></td>
+ <td><a class="a2" href="https://allaboutbirds.org/guide/<?php echo $dbname;?>" target="top">All About Birds</a>, <a class="a2" href="https://wikipedia.org/wiki/<?php echo $dbname;?>" target="top">Wikipedia</a></td>
</tr>
<?php
}