"; gen_top_surname_list($surn_per_page); echo ""; break; case "surname_index": include("topbar.php"); include("leftside.php"); echo "
"; gen_surname_list($HTTP_GET_VARS["start"], $surn_per_page); echo "
"; break; case "search": $surn = get_PostGet_var("surname"); $givn = get_PostGet_var("given"); $birth = get_PostGet_var("birth_year"); $birth_r = get_PostGet_var("birth_year_range"); $death = get_PostGet_var("death_year"); $death_r = get_PostGet_var("death_year_range"); include("topbar.php"); include("leftside.php"); echo "
"; if($givn == "" && $surn == "") { echo "SEARCH ERROR: No names given
"; } else if(isset($birth) && $birth != '' && !is_numeric($birth)) { echo "SEARCH ERROR: Invalid birth year given, $birth
"; } else if(isset($death) && $death != '' && !is_numeric($death)) { echo "SEARCH ERROR: Invalid death year given, $death
"; } // gen_surname_list(0, $surn_per_page); else { search_by_name($surn, $givn, $birth, $birth_r, $death, $death_r); } echo "
"; break; case "atree": include("topbar.php"); include("leftside.php"); echo "
"; //echo "Ancester Tree"; gen_anc_tree($HTTP_GET_VARS["id"]); echo "
"; break; case "indiv": include("topbar.php"); include("leftside.php"); echo "
"; gen_indiv_detail($HTTP_GET_VARS["id"]); echo "
"; break; case "descoutline": include("topbar.php"); include("leftside.php"); echo "
"; genDescOutline2($HTTP_GET_VARS["id"],$HTTP_GET_VARS["depth"]); echo "
"; break; case "family": include("topbar.php"); include("leftside.php"); echo "Family Data"; break; case "note": gen_note_page($HTTP_GET_VARS[id], $HTTP_GET_VARS[title]); break; case "source": include("topbar.php"); include("leftside.php"); echo "
"; gen_source_page($HTTP_GET_VARS[id]); echo "
"; break; case "changes": include("topbar.php"); include("leftside.php"); echo "
"; echo "

Recently Changed Families

\n"; $list = get_recent_changed_fam(10); gen_new_fam_list($list); echo "

Recently Changed Individuals

\n"; $list = get_recent_changed_indi(10); gen_found_list($list,0); echo "
"; break; default: echo "Error, unknown operation"; break; } } else { include("topbar.php"); include("leftside.php"); echo "
"; include("frontpage.php"); // echo "Welcome!"; // //gen_top_surname_list($surn_per_page); // // gen_surname_list(0, $surn_per_page); // $list = get_recent_changed_indi(10); // gen_found_list($list,0); // $list = get_recent_changed_fam(10); // gen_new_fam_list($list); // //echo sizeof($list); echo "
"; } include("gen_footer.php"); ?>