Formulaic Density Summary Table - warwickfoster/qurantools GitHub Wiki

File: app/dictionary/jeffery.php

Purpose

The code provided is a PHP script that displays a PDF dictionary of the Qur'an by Arthur Jeffery. It allows users to navigate through the dictionary pages using the arrow keys or by clicking on page numbers.

Features

  • Lightview mode support: The script can be displayed in a lightview pop-up window.
  • Page navigation: Users can navigate through the dictionary pages using the arrow keys, page number links, or the GotoPage() function.
  • PDF rendering: The PDF is loaded and displayed within the HTML document using the PDFView DIV.
  • Menu and footer: The script includes a menu and footer for navigation.

Functionality

  • The script sets the PAGE variable based on the GET request parameter or defaults to 1 if not provided.
  • It includes necessary header files and functions.
  • It checks for Lightview mode and sets the LIGHTVIEW variable accordingly.
  • It creates an HTML document with the necessary JavaScript code for page navigation and PDF rendering.
  • It includes the menu and footer.
  • The PDFView DIV is where the PDF is displayed.

Usage

  • The script can be accessed by navigating to the URL /dictionary/jeffery.php.
  • The PAGE parameter can be used to specify the starting page number.

Notes

  • The PDF file and related resources are located in the /dictionary/Jeffery folder.
  • The ajax_pdf_load.php file is responsible for loading the PDF content.
  • The standard_header.php file includes common header elements.
  • The menu.php and footer.php files provide the menu and footer navigation.