Function for printing
Various printing functions used by all scripts and included by the functions.php file.
phpGedView: Genealogy Viewer Copyright (C) 2002 to 2007 John Finlay and Others
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Function for printing
Various printing functions used by all scripts and included by the functions.php file.
phpGedView: Genealogy Viewer Copyright (C) 2002 to 2007 John Finlay and Others
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Check for facts that may exist only once for a certain record type.
If the fact already exists in the second array, delete it from the first one.
This function produces a hexadecimal dump of the input string
for debugging purposes
get a quick-glance view of current LDS ordinances
javascript declaration for calendar popup
Prepare text with parenthesis for printing Convert & to & for xhtml compliance
Print a new fact box on details pages
print ASSO RELA information
Ex1:
Ex2:
print links for genealogy and technical contacts
this function will print appropriate links based on the preferred contact methods for the genealogy contact user and the technical support contact user
Prints Exection Statistics
prints out the execution time and the databse queries
print fact DATE TIME
Print all of the notes in this fact record
print fact PLACe TEMPle STATus
prints a link to open the Find Special Character window
print first major fact for an Individual
print a gedcom title linked to the gedcom portal
This function will print the HTML to link the current gedcom title back to the gedcom portal welcome page
print out standard HTML header
This function will print out the HTML, HEAD, and BODY tags and will load in the CSS javascript and other auxiliary files needed to run PGV. It will also include the theme specific header file. This function should be called by every page, except popups, before anything is output.
Popup pages, because of their different format, should invoke function print_simple_header() instead.
prints a JavaScript popup menu
This function will print the DHTML required to create a JavaScript Popup menu. The $menu parameter is an array that looks like this $menu["label"] = "Charts"; $menu["labelpos"] = "down"; // tells where the text should be positioned relative to the picture options are up down left right $menu["icon"] = "images/pedigree.gif"; $menu["hovericon"] = "images/pedigree2.gif"; $menu["link"] = "pedigree.php"; $menu["accesskey"] = "Z"; // optional accesskey $menu["class"] = "menuitem"; $menu["hoverclass"] = "menuitem_hover"; $menu["flyout"] = "down"; // options are up down left right $menu["items"] = array(); // an array of like menu items $menu["onclick"] = "return javascript"; // java script to run on click
print a note record
Print age of parents
print the information for an individual chart box
find and print a given individuals information for a pedigree chart
print a simple form of the fact
function to print the details of a fact in a simple format
print simple HTML header
This function will print out the HTML, HEAD, and BODY tags and will load in the CSS javascript and other auxiliary files needed to run PGV. It does not include any theme specific header files. This function should be called by every page before anything is output on popup pages.
print a language variable
It accepts any kind of language variable. This can be a single variable but also a variable with included variables that needs to be converted. print_text, which used to be called print_help_text, now takes 3 parameters of which only the 1st is mandatory The first parameter is the variable that needs to be processed. At nesting level zero, this is the name of a $pgv_lang array entry. "whatever" refers to $pgv_lang["whatever"]. At nesting levels greater than zero, this is the name of any global variable, but *without* the $ in front. For example, VERSION or pgv_lang["whatever"] or factarray["rowname"]. The second parameter is $level for the nested vars in a sentence. This indicates that the function has been called recursively. The third parameter $noprint is for returning the text instead of printing it This parameter, when set to 2 means, in addition to NOT printing the result, the input string $help is text that needs to be interpreted instead of being the name of a $pgv_lang array entry. This lets you use this function to work on something other than $pgv_lang array entries, but coded according to the same rules. When we want it to return text we need to code: print_text($mytext, 0, 1);
print user links
this function will print login/logout links and other links based on user privileges
Documentation generated on Wed, 28 Mar 2007 09:54:19 -0600 by phpDocumentor 1.3.1