Foreign Words Vocabulary Per Sura Chart - warwickfoster/qurantools GitHub Wiki
app/counts/count_nouns.php
File:Purpose
The provided code snippet generates a HTML table displaying data related to noun occurrences in the Quran. The table includes the following columns:
- Sura number
- Total noun count
- Counts for each noun case (nominative, accusative, genitive, etc.)
- Counts for each noun number (singular, dual, plural)
Functionality
- The code connects to a database and retrieves data from the
SURA-DATA
table. - It filters the data based on the
GROUP BY
clause, grouping it by theSURA
field. - The
ORDER BY
clause sorts the results in ascending order of theSURA
field. - The data is then displayed in a table with interactive tooltips.
Key Features
- Interactive Tooltips The
Tipped.create()
function adds tooltips to each cell in the table, providing additional information when hovered over. - Data Sums The table includes a row with the total counts for each noun category.
- Back to Top Button The code includes a "Back to Top" button that scrolls the user back to the top of the page.
Additional Notes
- The code assumes the existence of a database and the necessary tables and functions.
- The
library/footer.php
file likely contains the code for the page footer. - The
move_back_to_top_button()
function may be a custom function defined elsewhere in the code.
Purpose
The purpose of this code is to provide an overview of noun occurrences in the Quran, categorized by suras and noun cases/numbers. It allows users to easily navigate and explore the data.