FamilyTree Temple.php - jcobban/Genealogy GitHub Wiki

Up: Family Tree Implementation

Source Code

This script displays the main page for a Temple of the Church of Jesus Christ of Latter Day Saints.

When invoked by method='get' it supports the following parameters.

parameter description
'code' unique 5 character identifier
'idtr' unique numeric internal use only identifier of the Temple
'lang' the language selection

To see an example of this page in action go to the demonstration site.

The title of the page contains the name of the Temple, which is typically the city where the Temple is located.

Appearance of the Temple Dialog

The body of the page is a form with fields for each of the supported attributes of the Temple. If the current user is a registered contributor the values of these fields may be changed.

If the current user is a registered contributor an Update Temple button is present which applies any changes made to the description of the Temple to the database.

A Show Map button is provided that pops up a Google© map of the location of the Temple. If the address field has been entered this will be centered on the address of the Temple, otherwise it is centered on the downtown of the city identified by the name of the Temple.

A Pictures button is provided to permit authorized contributors to add an image of the Temple to the page.

Next: Temples.js