|
|
@@ -8,6 +8,7 @@ |
|
|
|
# @purpose: Searches the Solr index |
|
|
|
|
|
|
|
include '../solr.php'; |
|
|
|
include '../text_functions.php'; |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
@@ -33,6 +34,7 @@ include '../solr.php'; |
|
|
|
|
|
|
|
foreach($search_results as $result): |
|
|
|
|
|
|
|
$result = highlight_search_terms($result, $_POST["search"]); |
|
|
|
?> |
|
|
|
Application ID: |
|
|
|
|
|
|
@@ -115,5 +117,14 @@ include '../solr.php'; |
|
|
|
?> |
|
|
|
|
|
|
|
</div> |
|
|
|
<script> |
|
|
|
let text = "<?php echo $_POST["search"]; ?>"; |
|
|
|
upperText = text.toUpperCase(); |
|
|
|
result = "<span style='color:green'>" + upperText + "</span>"; |
|
|
|
const collection = document.getElementsByClassName("search_term"); |
|
|
|
for (let i = 0; i < collection.length; i++) { |
|
|
|
collection[i].innerHTML = result; |
|
|
|
} |
|
|
|
</script> |
|
|
|
</body> |
|
|
|
</html> |