Families

[insert_php]

/* Author: Gerry Haran
* Original Program name: families.php
* Bastardised version for WordPress: families
* Sub menu in WordPress : Families
* Menu structure in WordPress : World War 1 \ Families
* Description: Program builds a selection list from the database of all the family surnames
* Linked pages: Each family name links to page family-trees which shows the family tree/trees for that family name
*
* Functions called: getFamilyGroupNames()
*
* Backed up as Families.wp 21 April 2016
*
* Date of original program : 25 September 2014
* Date of WordPress program : 19 March 2016
*
*
* Rev 1.1
* On 19 October 2017, the last tranche of data was added to the database. No changes to this page were made but for
* the sake of completeness it was backed up on 19 October 2017 as Families_19Oct2017.wp
*
* Rev 1.2
* 28 October 2017
* The family Hodges is unique in the database in that the father had two wives with one son by the first wife and four
* sons by the second wife. Likewise one of the sons by second wife had two wives with one offspring by the first wife.
* Given the structure of the database and the subsequent web pages were well established by the data that the first two
* researchers determined, the structure of the data for this one family determined by the third and last researcher is
* very complex. It would involve major database changes and complicated programming to incorporate these data into the present
* web site. So it is decided to treat this family as a one-of and simply produce a unique page that documents the family tree
* in a dedicated way with no attempt to modify the existing family-tree web page/programming – the amount of effort is simply too
* great to justify for one family. So the web page Hodges has been written which does nothing but display the Hodges family tree
* with href links for the sons. Thus this page here is modified so that the Hodges family returned from the database is given
* a href link to the Hodges page while leaving the href links for all the other families as before.
* Rev 1.2 backed up on 28 October 2017 as Families_28Oct2017.wp
* Backed up again for the sake of completeness as Families_12Dec2017.wp on 12 December 2017
*
* The user is presented with a list of all the family surnames in the database
* Click a name to view the family trees for all the families of that surname.
*/

echo “

“;
echo “Welcome to the East Bridgford World War 1 families”;
echo “

“;
echo “

“;
echo “Click on a name for family information”;
echo “

“;

$familyGroupInfo = getFamilyGroupNames();

echo (“

\n”);
for ($i=1;$i<=sizeof($familyGroupInfo);$i++) { $GroupName=$familyGroupInfo[$i]['famName']; $groupIndex=$familyGroupInfo[$i]['familyID']; /* echo ("

“);

echo (“\n”);
*/

if ($GroupName==’Hodges’)
{
echo (“\n”);
}
else
{
echo (“\n”);
}

}

echo (“

“);

[/insert_php]