| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:39:24 2008 ] | [ PhpGedView 4.0 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * User Welcome Block 4 * 5 * This block will print basic information and links for the user. 6 * 7 * phpGedView: Genealogy Viewer 8 * Copyright (C) 2002 to 2003 John Finlay and Others 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 * 24 * @version $Id: user_welcome.php,v 1.1.2.11 2006/04/13 12:06:37 canajun2eh Exp $ 25 * @package PhpGedView 26 * @subpackage Blocks 27 */ 28 29 $PGV_BLOCKS["print_welcome_block"]["name"] = $pgv_lang["welcome_block"]; 30 $PGV_BLOCKS["print_welcome_block"]["descr"] = "welcome_descr"; 31 $PGV_BLOCKS["print_welcome_block"]["type"] = "user"; 32 $PGV_BLOCKS["print_welcome_block"]["canconfig"] = false; 33 34 //-- function to print the welcome block 35 function print_welcome_block($block=true, $config="", $side, $index) { 36 global $pgv_lang, $day, $month, $year, $PGV_IMAGE_DIR, $PGV_IMAGES, $user, $GEDCOM, $TIME_FORMAT,$command; 37 38 print "<div id=\"user_welcome\" class=\"block\">\n"; 39 print "<table class=\"blockheader\" cellspacing=\"0\" cellpadding=\"0\" style=\"direction:ltr;\"><tr>"; 40 print "<td class=\"blockh1\" > </td>"; 41 print "<td class=\"blockh2\" ><div class=\"blockhc\">"; 42 print "<b>".$pgv_lang["welcome"]." ".$user["firstname"]." ".$user["lastname"]."</b>"; 43 print "</div></td>"; 44 print "<td class=\"blockh3\"> </td></tr>\n"; 45 print "</table>"; 46 print "<table class=\"blockcontent\" cellspacing=\"0\" cellpadding=\"0\" style=\" width: 100%; direction:ltr;\"><tr>"; 47 print "<td class=\"tab_active_bottom\" colspan=\"3\" ></td></tr><tr>"; 48 if ($user["editaccount"]) { 49 print "<td class=\"center details2\" style=\" width: 33%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"edituser.php\"><img src=\"".$PGV_IMAGE_DIR."/".$PGV_IMAGES["mygedview"]["small"]."\" border=\"0\" alt=\"".$pgv_lang["myuserdata"]."\" title=\"".$pgv_lang["myuserdata"]."\" /><br />".$pgv_lang["myuserdata"]."</a></td>"; 50 } 51 if (!empty($user["gedcomid"][$GEDCOM])) { 52 print "<td class=\"center details2\" style=\" width: 34%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"pedigree.php?rootid=".$user["gedcomid"][$GEDCOM]."\"><img src=\"".$PGV_IMAGE_DIR."/".$PGV_IMAGES["pedigree"]["small"]."\" border=\"0\" alt=\"".$pgv_lang["my_pedigree"]."\" title=\"".$pgv_lang["my_pedigree"]."\" /><br />".$pgv_lang["my_pedigree"]."</a></td>"; 53 print "<td class=\"center details2\" style=\" width: 33%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"individual.php?pid=".$user["gedcomid"][$GEDCOM]."\"><img src=\"".$PGV_IMAGE_DIR."/".$PGV_IMAGES["indis"]["small"]."\" border=\"0\" alt=\"".$pgv_lang["my_indi"]."\" title=\"".$pgv_lang["my_indi"]."\" /><br />".$pgv_lang["my_indi"]."</a>\n</td>"; 54 } 55 print "</tr><tr><td class=\"center\" colspan=\"3\">"; 56 print_help_link("mygedview_customize_help", "qm"); 57 print "<a href=\"javascript:;\" onclick=\"window.open('index_edit.php?name=".getUserName()."&command=user', '_blank', 'top=50,left=10,width=600,height=350,scrollbars=1,resizable=1');\">".$pgv_lang["customize_page"]."</a>\n"; 58 print "\n<br />".get_changed_date("$day $month $year")." - ".date($TIME_FORMAT, time()-$_SESSION["timediff"])."\n"; 59 print "</td>\n"; 60 print "</tr></table>"; // blockcontent 61 print "</div>"; // block 62 63 } 64 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |