Chart Formulaic Density By Verse - warwickfoster/qurantools GitHub Wiki
app/ajax/ajax_intertextuality_list.php
File:Purpose
The provided PHP code generates an HTML page that displays a list of intertextual connections for a given reference.
Functionality
- Regenerates the session to ensure data integrity.
- Includes necessary configuration and function files.
- Parses the reference from the GET request parameter.
- Queries the database to retrieve sources that are intertextually linked to the given reference.
- Displays the results in a table with source name, reference, date range, and view passage links.
- Provides links to additional pages for chart visualization and intertextual browser.
HTML Structure
- Heading Displays the title with reference and navigation links.
- Table
- Header row with column titles.
- Data rows for each intertextual source, including source name, reference, date range, and view passage and source links.
PHP Code
// ... Code as provided in the original code ...
Output
The generated HTML page will display a table of intertextual connections for the given reference, including the source name, reference, date range, and view passage links.
Additional Features
- The code uses jQuery's Colorbox plugin to display an intertextual viewer when the "View Passage" button is clicked.
- The table is styled using the "hoverTable" class.
Notes
- The code assumes the existence of database tables named
INTERTEXTUAL LINKS
,INTERTEXTUAL SOURCES
, andINTERTEXTUAL PASSAGES
. - The
db_query()
,db_return_row()
, anddb_rowcount()
functions are assumed to be defined in thelibrary/functions.php
file. - The
config.php
file likely contains database connection parameters.