当前位置: 首页>>代码示例>>PHP>>正文


PHP print_help_link函数代码示例

本文整理汇总了PHP中print_help_link函数的典型用法代码示例。如果您正苦于以下问题:PHP print_help_link函数的具体用法?PHP print_help_link怎么用?PHP print_help_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_help_link函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_welcome_block

function print_welcome_block($block = true, $config = "", $side, $index)
{
    global $pgv_lang, $PGV_IMAGE_DIR, $PGV_IMAGES;
    $id = "user_welcome";
    $title = $pgv_lang["welcome"] . " " . getUserFullName(PGV_USER_ID);
    $content = "<table class=\"blockcontent\" cellspacing=\"0\" cellpadding=\"0\" style=\" width: 100%; direction:ltr;\"><tr>";
    $content .= "<td class=\"tab_active_bottom\" colspan=\"3\" ></td></tr><tr>";
    if (get_user_setting(PGV_USER_ID, 'editaccount') == 'Y') {
        $content .= "<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>";
    }
    if (PGV_USER_GEDCOM_ID) {
        $content .= "<td class=\"center details2\" style=\" width: 34%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"" . encode_url("pedigree.php?rootid=" . PGV_USER_GEDCOM_ID) . "\"><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>";
        $content .= "<td class=\"center details2\" style=\" width: 33%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"" . encode_url("individual.php?pid=" . PGV_USER_GEDCOM_ID) . "\"><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></td>";
    }
    $content .= "</tr><tr><td class=\"center\" colspan=\"3\">";
    $content .= print_help_link("mygedview_customize_help", "qm", "", false, true);
    $content .= "<a href=\"javascript:;\" onclick=\"window.open('" . encode_url("index_edit.php?name=" . PGV_USER_NAME . "&ctype=user") . "', '_blank', 'top=50,left=10,width=600,height=350,scrollbars=1,resizable=1');\">" . $pgv_lang["customize_page"] . "</a>";
    $content .= "<br />" . format_timestamp(client_time());
    $content .= "</td>";
    $content .= "</tr></table>";
    global $THEME_DIR;
    if ($block) {
        require $THEME_DIR . 'templates/block_small_temp.php';
    } else {
        require $THEME_DIR . 'templates/block_main_temp.php';
    }
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:27,代码来源:user_welcome.php

示例2: print_user_news

/**
 * Prints a user news/journal
 *
 */
function print_user_news($block = true, $config = "", $side, $index)
{
    global $pgv_lang, $PGV_IMAGE_DIR, $PGV_IMAGES, $TEXT_DIRECTION, $ctype;
    $usernews = getUserNews(PGV_USER_ID);
    $id = "user_news";
    $title = print_help_link("mygedview_myjournal_help", "qm", "", false, true);
    $title .= $pgv_lang["my_journal"];
    $content = "";
    if (count($usernews) == 0) {
        $content .= $pgv_lang["no_journal"] . ' ';
    }
    foreach ($usernews as $key => $news) {
        $day = date("j", $news["date"]);
        $mon = date("M", $news["date"]);
        $year = date("Y", $news["date"]);
        $content .= "<div class=\"person_box\">";
        $ct = preg_match("/#(.+)#/", $news["title"], $match);
        if ($ct > 0) {
            if (isset($pgv_lang[$match[1]])) {
                $news["title"] = str_replace($match[0], $pgv_lang[$match[1]], $news["title"]);
            }
        }
        $content .= "<span class=\"news_title\">" . PrintReady($news["title"]) . "</span><br />";
        $content .= "<span class=\"news_date\">" . format_timestamp($news["date"]) . "</span><br /><br />";
        if (preg_match("/#(.+)#/", $news["text"], $match)) {
            if (isset($pgv_lang[$match[1]])) {
                $news["text"] = str_replace($match[0], $pgv_lang[$match[1]], $news["text"]);
            }
        }
        if (preg_match("/#(.+)#/", $news["text"], $match)) {
            if (isset($pgv_lang[$match[1]])) {
                $news["text"] = str_replace($match[0], $pgv_lang[$match[1]], $news["text"]);
            }
            if (isset(${$match}[1])) {
                $news["text"] = str_replace($match[0], ${$match}[1], $news["text"]);
            }
        }
        $trans = get_html_translation_table(HTML_SPECIALCHARS);
        $trans = array_flip($trans);
        $news["text"] = strtr($news["text"], $trans);
        $news["text"] = nl2br($news["text"]);
        $content .= PrintReady($news["text"]) . "<br /><br />";
        $content .= "<a href=\"javascript:;\" onclick=\"editnews('{$key}'); return false;\">" . $pgv_lang["edit"] . "</a> | ";
        $content .= "<a href=\"" . encode_url("index.php?action=deletenews&news_id={$key}&ctype={$ctype}") . "\" onclick=\"return confirm('" . $pgv_lang["confirm_journal_delete"] . "');\">" . $pgv_lang["delete"] . "</a><br />";
        $content .= "</div><br />";
    }
    if (PGV_USER_ID) {
        $content .= "<br /><a href=\"javascript:;\" onclick=\"addnews('" . PGV_USER_ID . "'); return false;\">" . $pgv_lang["add_journal"] . "</a>";
    }
    global $THEME_DIR;
    if ($block) {
        require $THEME_DIR . 'templates/block_small_temp.php';
    } else {
        require $THEME_DIR . 'templates/block_main_temp.php';
    }
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:60,代码来源:user_blog.php

示例3: print_block_theme_select

function print_block_theme_select($style = 0, $config = "", $side, $index)
{
    global $pgv_lang;
    global $ALLOW_THEME_DROPDOWN, $ALLOW_USER_THEMES, $THEME_DIR, $pgv_lang, $themeformcount;
    $id = "theme_select";
    $title = $pgv_lang["change_theme"];
    $title .= print_help_link("change_theme", "qm", "", false, true);
    $theme_menu = MenuBar::getThemeMenu();
    $content = '<div class="center theme_form"><br />' . $theme_menu->getMenuAsDropdown() . '<br /<br /></div>';
    global $THEME_DIR;
    if ($style) {
        require $THEME_DIR . 'templates/block_small_temp.php';
    } else {
        require $THEME_DIR . 'templates/block_main_temp.php';
    }
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:16,代码来源:theme_select.php

示例4: print_RSS_block

/**
 * Print RSS Block
 *
 * Prints a block allowing the user to login to the site directly from the portal
 */
function print_RSS_block($block = true, $config = "", $side, $index)
{
    global $LANGUAGE, $pgv_lang;
    $id = "rss_block";
    $title = print_help_link("rss_feed_help", "qm", "", false, true);
    $title .= $pgv_lang["rss_feeds"];
    $content = "<div class=\"center\">";
    $content .= "<form method=\"post\" action=\"\" name=\"rssform\">";
    $content .= "<br />";
    $content .= "<select name=\"rssStyle\" class=\"header_select\" onchange=\"javascript:document.getElementById('rss_button').href = '" . encode_url("rss.php?ged=" . PGV_GEDCOM . "&lang={$LANGUAGE}") . "' + (document.rssform.module.value==''? '' : '&module=' + document.rssform.module.value) + (document.rssform.rssStyle.value==''? '' : '&rssStyle=' + document.rssform.rssStyle.value) + (document.rssform.auth.value==''? '' : '&auth=' + document.rssform.auth.value);\">";
    $content .= "<option value=\"ATOM\" selected=\"selected\">ATOM 1.0</option>";
    $content .= "<option value=\"RSS2.0\">RSS 2.0</option>";
    $content .= "<option value=\"RSS1.0\">RSS 1.0</option>";
    $content .= "<option value=\"ATOM0.3\">ATOM 0.3</option>";
    $content .= "<option value=\"RSS0.91\">RSS 0.91</option>";
    $content .= "<option value=\"HTML\">HTML</option>";
    $content .= "<option value=\"JS\">JavaScript</option>";
    $content .= "</select>";
    $content .= "<select name=\"module\" class=\"header_select\" onchange=\"javascript:document.getElementById('rss_button').href = '" . encode_url("rss.php?ged=" . PGV_GEDCOM . "&lang={$LANGUAGE}") . "' + (document.rssform.module.value==''? '' : '&module=' + document.rssform.module.value) + (document.rssform.rssStyle.value==''? '' : '&rssStyle=' + document.rssform.rssStyle.value) + (document.rssform.auth.value==''? '' : '&auth=' + document.rssform.auth.value);\">";
    $content .= "<option value=\"\">" . $pgv_lang["all"] . "</option>";
    $content .= "<option value=\"today\">" . $pgv_lang["on_this_day"] . " </option>";
    $content .= "<option value=\"upcoming\">" . $pgv_lang["upcoming_events"] . "</option>";
    $content .= "<option value=\"gedcomStats\">" . $pgv_lang["gedcom_stats"] . "</option>";
    $content .= "<option value=\"gedcomNews\">" . $pgv_lang["gedcom_news"] . "</option>";
    $content .= "<option value=\"top10Surnames\">" . $pgv_lang["block_top10"] . "</option>";
    $content .= "<option value=\"recentChanges\">" . $pgv_lang["recent_changes"] . "</option>";
    $content .= "<option value=\"randomMedia\">" . $pgv_lang["random_picture"] . "</option>";
    $content .= "</select>";
    $content .= " <a id=\"rss_button\" href=\"" . encode_url("rss.php?ged=" . PGV_GEDCOM . "&lang={$LANGUAGE}") . "\"><img class=\"icon\" src=\"images/feed-icon16x16.png\" alt=\"RSS\" title=\"RSS\" /></a>";
    $content .= "</form></div>";
    $content .= "<div class=\"center\">";
    $content .= "</div>";
    global $THEME_DIR;
    if ($block) {
        require $THEME_DIR . 'templates/block_small_temp.php';
    } else {
        require $THEME_DIR . 'templates/block_main_temp.php';
    }
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:44,代码来源:rss_block.php

示例5: print_user_favorites

function print_user_favorites($block = true, $config = "", $side, $index)
{
    global $pgv_lang, $PGV_IMAGE_DIR, $PGV_IMAGES, $GEDCOM, $TEXT_DIRECTION, $INDEX_DIRECTORY, $MEDIA_DIRECTORY, $MULTI_MEDIA, $MEDIA_DIRECTORY_LEVELS, $ctype;
    global $show_full, $PEDIGREE_FULL_DETAILS, $BROWSERTYPE, $ENABLE_AUTOCOMPLETE;
    // Override GEDCOM configuration temporarily
    if (isset($show_full)) {
        $saveShowFull = $show_full;
    }
    $savePedigreeFullDetails = $PEDIGREE_FULL_DETAILS;
    $show_full = 1;
    $PEDIGREE_FULL_DETAILS = 1;
    $userfavs = getUserFavorites(PGV_USER_NAME);
    if (!is_array($userfavs)) {
        $userfavs = array();
    }
    $id = "user_favorites";
    $title = print_help_link("mygedview_favorites_help", "qm", "", false, true);
    $title .= $pgv_lang["my_favorites"] . "&nbsp;&nbsp;";
    if ($TEXT_DIRECTION == "rtl") {
        $title .= getRLM();
    }
    $title .= "(" . count($userfavs) . ")";
    if ($TEXT_DIRECTION == "rtl") {
        $title .= getRLM();
    }
    if ($ENABLE_AUTOCOMPLETE) {
        $content = '<script type="text/javascript" src="js/jquery/jquery.min.js"></script>
		<script type="text/javascript" src="js/jquery/jquery.autocomplete.js"></script>
		<script type="text/javascript" src="js/jquery/jquery.ajaxQueue.js"></script>
		<script type="text/javascript">
		jQuery.noConflict(); // @see http://docs.jquery.com/Using_jQuery_with_Other_Libraries/
		jQuery(document).ready(function($){
			$("input[name^=gid]").autocomplete("autocomplete.php", {
				extraParams: {field:"IFSRO"},
				formatItem: function(row, i) {
					return row[0] + " (" + row[1] + ")";
				},
				formatResult: function(row) {
					return row[1];
				},
				width: 400,
				minChars: 2
			});
		});
		</script>';
    } else {
        $content = '';
    }
    if ($block) {
        $style = 2;
        // 1 means "regular box", 2 means "wide box"
        $tableWidth = $BROWSERTYPE == "msie" ? "95%" : "99%";
        // IE needs to have room for vertical scroll bar inside the box
        $cellSpacing = "1px";
    } else {
        $style = 2;
        $tableWidth = "99%";
        $cellSpacing = "3px";
    }
    if (count($userfavs) == 0) {
        $content .= print_text("no_favorites", 0, 1);
    } else {
        $mygedcom = $GEDCOM;
        $current_gedcom = $GEDCOM;
        $content .= "<table width=\"{$tableWidth}\" style=\"border:none\" cellspacing=\"{$cellSpacing}\" class=\"center {$TEXT_DIRECTION}\">";
        foreach ($userfavs as $key => $favorite) {
            if (isset($favorite["id"])) {
                $key = $favorite["id"];
            }
            $removeFavourite = "<a class=\"font9\" href=\"" . encode_url("index.php?ctype={$ctype}&action=deletefav&fv_id={$key}") . "\" onclick=\"return confirm('" . $pgv_lang["confirm_fav_remove"] . "');\">" . $pgv_lang["remove"] . "</a><br />";
            $current_gedcom = $GEDCOM;
            $GEDCOM = $favorite["file"];
            $content .= "<tr><td>";
            if ($favorite["type"] == "URL") {
                $content .= "<div id=\"boxurl" . $key . ".0\" class=\"person_box\">";
                if ($ctype == "user" || PGV_USER_IS_ADMIN) {
                    $content .= $removeFavourite;
                }
                $content .= "<a href=\"" . $favorite["url"] . "\">" . PrintReady($favorite["title"]) . "</a>";
                $content .= "<br />" . PrintReady($favorite["note"]);
            } else {
                require $INDEX_DIRECTORY . $GEDCOM . '_conf.php';
                $indirec = find_gedcom_record($favorite["gid"], PGV_GED_ID);
                if ($favorite["type"] == "INDI") {
                    $content .= "<div id=\"box" . $favorite["gid"] . ".0\" class=\"person_box";
                    if (strpos($indirec, "\n1 SEX F") !== false) {
                        $content .= "F";
                    } elseif (strpos($indirec, "\n1 SEX M") !== false) {
                        $content .= "";
                    } else {
                        $content .= "NN";
                    }
                    $content .= "\">";
                    if ($ctype == "user" || PGV_USER_IS_ADMIN) {
                        $content .= $removeFavourite;
                    }
                    ob_start();
                    print_pedigree_person($favorite["gid"], $style, 1, $key);
                    $content .= ob_get_clean();
                    $content .= PrintReady($favorite["note"]);
//.........这里部分代码省略.........
开发者ID:rathervague,项目名称:phpgedview,代码行数:101,代码来源:user_favorites.php

示例6: print_relatives_tab

    function print_relatives_tab()
    {
        global $pgv_lang, $factarray, $SHOW_ID_NUMBERS, $PGV_IMAGE_DIR, $PGV_IMAGES, $SHOW_AGE_DIFF;
        global $pgv_changes, $GEDCOM, $ABBREVIATE_CHART_LABELS;
        global $show_full, $personcount;
        if (isset($show_full)) {
            $saved_show_full = $show_full;
        }
        // We always want to see full details here
        $show_full = 1;
        $saved_ABBREVIATE_CHART_LABELS = $ABBREVIATE_CHART_LABELS;
        $ABBREVIATE_CHART_LABELS = false;
        // Override GEDCOM configuration
        // Show or Hide Navigator -----------
        if (isset($_COOKIE['famnav'])) {
            $Fam_Navigator = $_COOKIE['famnav'];
        } else {
            $Fam_Navigator = "YES";
        }
        if ($Fam_Navigator == "HIDE") {
            print "<table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td valign=\"top\" width=\"100%\" >";
        }
        //if (isset($_COOKIE['elderdate'])) $SHOW_AGE_DIFF = ($_COOKIE['elderdate']);
        if (!$this->isPrintPreview()) {
            ?>
		<table class="facts_table"><tr><td style="width:20%; padding:4px"></td><td class="descriptionbox rela">
		<input id="checkbox_elder" type="checkbox" onclick="toggleByClassName('DIV', 'elderdate');" <?php 
            if ($SHOW_AGE_DIFF) {
                echo "checked=\"checked\"";
            }
            ?>
/>
		<label for="checkbox_elder"><?php 
            print_help_link("age_differences_help", "qm");
            print $pgv_lang['age_differences'];
            ?>
</label>
		</td></tr></table>
		<?php 
        }
        $personcount = 0;
        $families = $this->indi->getChildFamilies();
        if (count($families) == 0) {
            print "<span class=\"subheaders\">" . $pgv_lang["relatives"] . "</span>";
            if (PGV_USER_CAN_EDIT && $this->indi->canDisplayDetails()) {
                ?>
				<table class="facts_table">
					<tr>
						<td class="facts_value"><?php 
                print_help_link("edit_add_parent_help", "qm");
                ?>
<a href="javascript:;" onclick="return addnewparent('<?php 
                print $this->pid;
                ?>
', 'HUSB');"><?php 
                print $pgv_lang["add_father"];
                ?>
</a></td>
					</tr>
					<tr>
						<td class="facts_value"><?php 
                print_help_link("edit_add_parent_help", "qm");
                ?>
<a href="javascript:;" onclick="return addnewparent('<?php 
                print $this->pid;
                ?>
', 'WIFE');"><?php 
                print $pgv_lang["add_mother"];
                ?>
</a></td>
					</tr>
				</table>
				<?php 
            }
        }
        //-- parent families
        foreach ($families as $famid => $family) {
            $people = $this->buildFamilyList($family, "parents");
            $this->printFamilyHeader($famid, $this->indi->getChildFamilyLabel($family));
            ?>
			<table class="facts_table">
				<?php 
            $this->printParentsRows($family, $people, "parents");
            $this->printChildrenRows($family, $people, "parents");
            ?>
			</table>
		<?php 
        }
        //-- step families
        foreach ($this->indi->getStepFamilies() as $famid => $family) {
            $people = $this->buildFamilyList($family, "step");
            $this->printFamilyHeader($famid, $this->indi->getStepFamilyLabel($family));
            ?>
			<table class="facts_table">
				<?php 
            $this->printParentsRows($family, $people, "step");
            $this->printChildrenRows($family, $people, "step");
            ?>
			</table>
		<?php 
//.........这里部分代码省略.........
开发者ID:bitweaver,项目名称:phpgedview,代码行数:101,代码来源:individual_ctrl.php

示例7: top10_pageviews_config

function top10_pageviews_config($config)
{
    global $pgv_lang, $ctype, $PGV_BLOCKS;
    if (empty($config)) {
        $config = $PGV_BLOCKS["top10_pageviews"]["config"];
    }
    if (!isset($config["cache"])) {
        $config["cache"] = $PGV_BLOCKS["top10_pageviews"]["config"]["cache"];
    }
    // Number of items to show
    print "<tr><td class=\"descriptionbox wrap width33\">";
    // print_help_link("num_to_show_help", "qm");
    print $pgv_lang["num_to_show"];
    print "</td><td class=\"optionbox\">";
    print "<input type=\"text\" name=\"num\" size=\"2\" value=\"" . $config["num"] . "\" />";
    print "</td></tr>";
    // Count position
    print "<tr><td class=\"descriptionbox wrap width33\">";
    // print_help_link("before_or_after_help", "qm");
    print $pgv_lang["before_or_after"];
    print "</td><td class=\"optionbox\">";
    print "<select name=\"count_placement\">";
    print "<option value=\"left\"";
    if ($config["count_placement"] == "left") {
        print " selected=\"selected\"";
    }
    print ">" . $pgv_lang["before"] . "</option>";
    print "<option value=\"right\"";
    if ($config["count_placement"] == "right") {
        print " selected=\"selected\"";
    }
    print ">" . $pgv_lang["after"] . "</option>";
    print "</select>";
    print "</td></tr>";
    // Cache file life
    if ($ctype == "gedcom") {
        print "<tr><td class=\"descriptionbox wrap width33\">";
        print_help_link("cache_life_help", "qm");
        print $pgv_lang["cache_life"];
        print "</td><td class=\"optionbox\">";
        print "<input type=\"text\" name=\"cache\" size=\"2\" value=\"" . $config["cache"] . "\" />";
        print "</td></tr>";
    }
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:44,代码来源:top10_pageviews.php

示例8: print_gedcom_stats_config


//.........这里部分代码省略.........
    if ($config['stat_avg_life'] == 'yes') {
        echo ' checked="checked"';
    }
    ?>
 />
		<?php 
    echo $pgv_lang['stat_avg_age_at_death'];
    ?>
</td>
	</tr>
	<tr>
		<td><input type="checkbox" value="yes" name="stat_events"
		<?php 
    if ($config['stat_events'] == 'yes') {
        echo ' checked="checked"';
    }
    ?>
 />
		<?php 
    echo $pgv_lang['stat_events'];
    ?>
</td>
		<td><input type="checkbox" value="yes" name="stat_most_chil"
		<?php 
    if ($config['stat_most_chil'] == 'yes') {
        echo ' checked="checked"';
    }
    ?>
 />
		<?php 
    echo $pgv_lang['stat_most_children'];
    ?>
</td>
	</tr>
	<tr>
		<td><input type="checkbox" value="yes" name="stat_users"
		<?php 
    if ($config['stat_users'] == 'yes') {
        echo ' checked="checked"';
    }
    ?>
 />
		<?php 
    echo $pgv_lang['stat_users'];
    ?>
</td>
		<td><input type="checkbox" value="yes" name="stat_avg_chil"
		<?php 
    if ($config['stat_avg_chil'] == 'yes') {
        echo ' checked="checked"';
    }
    ?>
 />
		<?php 
    echo $pgv_lang['stat_average_children'];
    ?>
</td>
	</tr>
</table>
</td>
</tr>
<tr>
	<td class="descriptionbox wrap width33"> <?php 
    echo $pgv_lang['print_stat_link'];
    ?>
</td>
	<td class="optionbox">
		<select name="stat_link">
			<option value="yes" <?php 
    if ($config['stat_link'] == 'yes') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    echo $pgv_lang['yes'];
    ?>
</option>
			<option value="no" <?php 
    if ($config['stat_link'] == 'no') {
        echo ' selected="selected"';
    }
    ?>
><?php 
    echo $pgv_lang['no'];
    ?>
</option>
		</select>
	</td>
</tr>
<?php 
    // Cache file life
    if ($ctype == 'gedcom') {
        echo '<tr><td class="descriptionbox wrap width33">';
        print_help_link('cache_life_help', 'qm');
        echo $pgv_lang['cache_life'];
        echo '</td><td class="optionbox">';
        echo '<input type="text" name="cache" size="2" value="', $config['cache'], '" />';
        echo '</td></tr>';
    }
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:101,代码来源:gedcom_stats.php

示例9: print_login_block

/**
 * Print Login Block
 *
 * Prints a block allowing the user to login to the site directly from the portal
 */
function print_login_block($block = true, $config = "", $side, $index)
{
    global $pgv_lang, $QUERY_STRING, $USE_REGISTRATION_MODULE, $LOGIN_URL;
    global $TEXT_DIRECTION;
    if (PGV_USER_ID) {
        $id = "logout_block";
        $title = $pgv_lang["logout"];
        $i = 0;
        // Initialize tab index
        $content = '<div class="center"><form method="post" action="index.php?logout=1" name="logoutform" onsubmit="return true;">';
        $content .= '<br /><a href="edituser.php" class="name2">' . $pgv_lang["logged_in_as"] . ' (' . PGV_USER_NAME . ')</a><br /><br />';
        $i++;
        $content .= "<input type=\"submit\" tabindex=\"{$i}\" value=\"" . $pgv_lang["logout"] . "\" />";
        $content .= "<br /><br /></form></div>";
    } else {
        $id = "login_block";
        $title = "";
        $i = 0;
        // Initialize tab index
        if ($USE_REGISTRATION_MODULE) {
            $title .= print_help_link("index_login_register_help", "qm", "", false, true);
        } else {
            $title .= print_help_link("index_login_help", "qm", "", false, true);
        }
        $title .= $pgv_lang["login"];
        $content = "<div class=\"center\"><form method=\"post\" action=\"{$LOGIN_URL}\" name=\"loginform\" onsubmit=\"t = new Date(); document.loginform.usertime.value=t.getFullYear()+'-'+(t.getMonth()+1)+'-'+t.getDate()+' '+t.getHours()+':'+t.getMinutes()+':'+t.getSeconds(); return true;\">";
        $content .= "<input type=\"hidden\" name=\"url\" value=\"index.php\" />";
        $content .= "<input type=\"hidden\" name=\"ged\" value=\"";
        $content .= PGV_GEDCOM;
        $content .= "\" />";
        $content .= "<input type=\"hidden\" name=\"pid\" value=\"";
        if (isset($pid)) {
            $content .= $pid;
        }
        $content .= "\" />";
        $content .= "<input type=\"hidden\" name=\"usertime\" value=\"\" />";
        $content .= "<input type=\"hidden\" name=\"action\" value=\"login\" />";
        $content .= "<table class=\"center tabs_table\">";
        // Row 1: Userid
        $i++;
        $content .= "<tr><td ";
        $content .= write_align_with_textdir_check("right", true);
        $content .= " class=\"{$TEXT_DIRECTION} wrap width50\">";
        $content .= print_help_link("username_help", "qm", "username", false, true);
        $content .= $pgv_lang["username"] . "</td>";
        $content .= "<td ";
        $content .= write_align_with_textdir_check("left", true);
        $content .= " class=\"{$TEXT_DIRECTION}\"><input type=\"text\" tabindex=\"{$i}\" name=\"username\"  size=\"20\" class=\"formField\" />";
        $content .= "</td></tr>";
        // Row 2: Password
        $i++;
        $content .= "<tr><td ";
        $content .= write_align_with_textdir_check("right", true);
        $content .= " class=\"{$TEXT_DIRECTION} wrap width50\">";
        $content .= print_help_link("password_help", "qm", "password", false, true);
        $content .= $pgv_lang["password"] . "</td>";
        $content .= "<td ";
        $content .= write_align_with_textdir_check("left", true);
        $content .= " class=\"{$TEXT_DIRECTION}\"><input type=\"password\" tabindex=\"{$i}\" name=\"password\"  size=\"20\" class=\"formField\" />";
        $content .= "</td></tr>";
        // Row 3: "Login" link
        $i++;
        $content .= "<tr><td colspan=\"2\" class=\"center\">";
        $content .= "<input type=\"submit\" tabindex=\"{$i}\" value=\"" . $pgv_lang["login"] . "\" />&nbsp;";
        $content .= "</td></tr>";
        if ($USE_REGISTRATION_MODULE) {
            // Row 4: "Request Account" link
            $i++;
            $content .= "<tr><td ";
            $content .= write_align_with_textdir_check("right", true);
            $content .= " class=\"{$TEXT_DIRECTION} wrap width50\"><br />";
            $content .= print_help_link("new_user_help", "qm", "", false, true);
            $content .= $pgv_lang["no_account_yet"] . "</td>";
            $content .= "<td ";
            $content .= write_align_with_textdir_check("left", true);
            $content .= " class=\"{$TEXT_DIRECTION}\"><br />";
            $content .= "<a href=\"login_register.php?action=register\" tabindex=\"{$i}\">";
            $content .= $pgv_lang["requestaccount"];
            $content .= "</a>";
            $content .= "</td></tr>";
            // Row 5: "Lost Password" link
            $i++;
            $content .= "<tr><td ";
            $content .= write_align_with_textdir_check("right", true);
            $content .= " class=\"{$TEXT_DIRECTION} wrap width50\">";
            $content .= print_help_link("new_password_help", "qm", "", false, true);
            $content .= $pgv_lang["lost_password"] . "</td>";
            $content .= "<td ";
            $content .= write_align_with_textdir_check("left", true);
            $content .= " class=\"{$TEXT_DIRECTION}\">";
            $content .= "<a href=\"login_register.php?action=pwlost\" tabindex=\"{$i}\">";
            $content .= $pgv_lang["requestpassword"];
            $content .= "</a>";
            $content .= "</td></tr>";
        }
//.........这里部分代码省略.........
开发者ID:rathervague,项目名称:phpgedview,代码行数:101,代码来源:login_block.php

示例10: print_charts_block_config


//.........这里部分代码省略.........
        print " selected=\"selected\"";
    }
    ?>
><?php 
    print $pgv_lang["index_header"];
    ?>
</option>
			<option value="descendants"<?php 
    if ($config["type"] == "descendants") {
        print " selected=\"selected\"";
    }
    ?>
><?php 
    print $pgv_lang["descend_chart"];
    ?>
</option>
			<option value="hourglass"<?php 
    if ($config["type"] == "hourglass") {
        print " selected=\"selected\"";
    }
    ?>
><?php 
    print $pgv_lang["hourglass_chart"];
    ?>
</option>
			<?php 
    if (file_exists(PGV_ROOT . 'includes/classes/class_treenav.php')) {
        ?>
			<option value="treenav"<?php 
        if ($config["type"] == "treenav") {
            print " selected=\"selected\"";
        }
        ?>
><?php 
        print $pgv_lang["interactive_tree"];
        ?>
</option>
			<?php 
    }
    ?>
		</select>
	</td></tr>
	<tr>
		<td class="descriptionbox wrap width33"><?php 
    print $pgv_lang["show_details"];
    ?>
</td>
	<td class="optionbox">
		<select name="details">
				<option value="no" <?php 
    if ($config["details"] == "no") {
        print " selected=\"selected\"";
    }
    ?>
><?php 
    print $pgv_lang['no'];
    ?>
</option>
				<option value="yes" <?php 
    if ($config["details"] == "yes") {
        print " selected=\"selected\"";
    }
    ?>
><?php 
    print $pgv_lang['yes'];
    ?>
</option>
		</select>
		</td>
	</tr>
	<tr>
		<td class="descriptionbox wrap width33"><?php 
    print $pgv_lang["root_person"];
    ?>
</td>
		<td class="optionbox">
			<input type="text" name="pid" id="pid" value="<?php 
    print $config['pid'];
    ?>
" size="5" />
			<?php 
    print_findindi_link('pid', '');
    $root = Person::getInstance($config['pid']);
    if ($root) {
        echo ' <span class="list_item">', $root->getFullName(), $root->format_first_major_fact(PGV_EVENTS_BIRT, 1), '</span>';
    }
    ?>
		</td>
	</tr>
  	<?php 
    // Cache file life
    if ($ctype == "gedcom") {
        print "<tr><td class=\"descriptionbox wrap width33\">";
        print_help_link("cache_life_help", "qm");
        print $pgv_lang["cache_life"];
        print "</td><td class=\"optionbox\">";
        print "<input type=\"text\" name=\"cache\" size=\"2\" value=\"" . $config["cache"] . "\" />";
        print "</td></tr>";
    }
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:101,代码来源:charts.php

示例11: print_help_link

    ?>
<a href="editconfig.php"><?php 
    print $pgv_lang["configuration"];
    ?>
</a></td>
		<td class="optionbox width50"><?php 
    print_help_link("help_faq.php", "qm");
    ?>
<a href="faq.php"><?php 
    print $pgv_lang["faq_list"];
    ?>
</a></td>
   </tr>
   <tr>
	<td class="optionbox width50"><?php 
    print_help_link("help_managesites", "qm");
    ?>
<a href="manageservers.php"><?php 
    print $pgv_lang["link_manage_servers"];
    ?>
</a></td>
		</td>
			<td class="optionbox width50"><?php 
    print $d_logfile_str;
    ?>
</td>
	</tr>
   <?php 
}
?>
	</table>
开发者ID:bitweaver,项目名称:phpgedview,代码行数:31,代码来源:admin.php

示例12: print_help_link

    print "<td class=\"optionbox\">";
    print "<select name=\"PEDIGREE_GENERATIONS\">";
    // Can only show 9 generations (256 ancestors) as graphics library has integer degree resolution
    for ($i = 2; $i <= min(9, $MAX_PEDIGREE_GENERATIONS); $i++) {
        print "<option value=\"" . $i . "\"";
        if ($i == $PEDIGREE_GENERATIONS) {
            print "selected=\"selected\" ";
        }
        print ">" . $i . "</option>";
    }
    print "</select>";
    print "</td>";
    print "</tr><tr>";
    // NOTE: fan width
    print "<td class=\"descriptionbox\">";
    print_help_link("fan_width_help", "qm");
    print $pgv_lang["fan_width"] . "</td>";
    print "<td class=\"optionbox\">";
    print "<input type=\"text\" size=\"3\" name=\"fan_width\" value=\"{$fan_width}\" /> <b>%</b> ";
    print "</td>";
    print "</tr></table>";
    print "</form><br />";
} else {
    print "<script language='JavaScript' type='text/javascript'>";
    print "if (IE) document.write('<span class=\"warning\">" . str_replace("'", "\\'", $pgv_lang["fanchart_IE"]) . "</span>');";
    print "</script>";
}
print "</td></tr></table>";
$treeid = ancestry_array($rootid);
print_fan_chart($treeid, 640 * $fan_width / 100, $fan_style * 90);
print_footer();
开发者ID:bitweaver,项目名称:phpgedview,代码行数:31,代码来源:fanchart.php

示例13: print_help_link

					<tr>
						<td class="descriptionbox width20" id="tdId"><?php 
    print_help_link('link_person_id_help', 'qm');
    ?>
 Local Person ID</td>
						<td class="optionbox"><input type="text" id="pid" name="pid" size="14"/></td>
						<td class="optionbox" rowspan="2"><br/>
							<input type="submit" value="<?php 
    echo $pgv_lang['label_add_remote_link'];
    ?>
" id="btnSubmit" name="btnSubmit" value="add"/>
						</td>
					</tr>
					<tr>
						<td class="descriptionbox width20"><?php 
    print_help_link('link_remote_rel_help', 'qm');
    ?>
 <?php 
    echo $pgv_lang["label_rel_to_current"];
    ?>
</td>
						<td class="optionbox">
							<select id="cbRelationship" name="cbRelationship">
								<option value="self" selected><?php 
    echo $pgv_lang["current_person"];
    ?>
</option>
								<option value="mother"><?php 
    echo $pgv_lang["mother"];
    ?>
</option>
开发者ID:rathervague,项目名称:phpgedview,代码行数:31,代码来源:addsearchlink.php

示例14: print_family_facts

/**
 * print the facts table for a family
 *
 * @param string $famid family gedcom ID
 * @param int $sosa optional child sosa number
 */
function print_family_facts(&$family, $sosa = 0)
{
    global $pgv_lang, $pbwidth, $pbheight, $view;
    global $nonfacts, $factarray;
    global $TEXT_DIRECTION, $GEDCOM, $SHOW_ID_NUMBERS;
    global $show_changes, $pgv_changes;
    global $linkToID;
    $famid = $family->getXref();
    // -- if both parents are displayable then print the marriage facts
    if ($family->canDisplayDetails()) {
        $linkToID = $famid;
        // -- Tell addmedia.php what to link to
        // -- array of GEDCOM elements that will be found but should not be displayed
        $nonfacts = array("FAMS", "FAMC", "MAY", "BLOB", "HUSB", "WIFE", "CHIL", "");
        // -- find all the fact information
        $indifacts = $family->getFacts();
        if (count($indifacts) > 0) {
            sort_facts($indifacts);
            print "\n\t<span class=\"subheaders\">" . $pgv_lang["family_group_info"];
            if ($SHOW_ID_NUMBERS and $famid != "") {
                print "&nbsp;&nbsp;&nbsp;({$famid})";
            }
            print "</span><br />\n\t<table class=\"facts_table\">";
            /* @var $value Event */
            foreach ($indifacts as $key => $value) {
                if ($value->getTag() != "SOUR" && $value->getTag() != "OBJE" && $value->getTag() != "NOTE") {
                    print_fact($value);
                }
            }
            // do not print otheritems for sosa
            if ($sosa == 0) {
                foreach ($indifacts as $key => $value) {
                    $fact = $value->getTag();
                    // -- handle special source fact case
                    if ($fact == "SOUR") {
                        print_main_sources($value->getGedComRecord(), 1, $famid, $value->getLineNumber());
                    } else {
                        if ($fact == "NOTE") {
                            print_main_notes($value->getGedComRecord(), 1, $famid, $value->getLineNumber());
                        }
                    }
                }
                // NOTE: Print the media
                print_main_media($famid);
            }
        } else {
            if ($sosa == 0) {
                print "\n\t<span class=\"subheaders\">" . $pgv_lang["family_group_info"];
                if ($SHOW_ID_NUMBERS and $famid != "") {
                    print "&nbsp;&nbsp;&nbsp;({$famid})";
                }
                print "</span><br />\n\t";
            }
            print "<table class=\"facts_table\">";
            if ($sosa == 0) {
                print "<tr><td class=\"messagebox\" colspan=\"2\">";
                print $pgv_lang["no_family_facts"];
                print "</td></tr>\n";
            }
        }
        // -- new fact link
        if ($view != "preview" && $sosa == 0 && PGV_USER_CAN_EDIT) {
            print_add_new_fact($famid, $indifacts, "FAM");
            // -- new note
            print "<tr><td class=\"descriptionbox\">";
            print_help_link("add_note_help", "qm", "add_note_lbl");
            print $pgv_lang["add_note_lbl"] . "</td>";
            print "<td class=\"optionbox\">";
            print "<a href=\"javascript:;\" onclick=\"return add_new_record('{$famid}','NOTE');\">" . $pgv_lang["add_note"] . "</a>";
            print "<br />\n";
            print "</td></tr>\n";
            // -- new shared note
            print "<tr><td class=\"descriptionbox\">";
            print_help_link("add_shared_note_help", "qm", "add_shared_note_lbl");
            print $pgv_lang["add_shared_note_lbl"] . "</td>";
            print "<td class=\"optionbox\">";
            print "<a href=\"javascript:;\" onclick=\"return add_new_record('{$famid}','SHARED_NOTE');\">" . $pgv_lang["add_shared_note"] . "</a>";
            print "<br />\n";
            print "</td></tr>\n";
            // -- new media
            print "<tr><td class=\"descriptionbox\">";
            print_help_link("add_media_help", "qm", "add_media_lbl");
            print $pgv_lang["add_media_lbl"] . "</td>";
            print "<td class=\"optionbox\">";
            print "<a href=\"javascript: " . $pgv_lang["add_media_lbl"] . "\" onclick=\"window.open('addmedia.php?action=showmediaform&linktoid={$famid}', '_blank', 'top=50,left=50,width=600,height=500,resizable=1,scrollbars=1'); return false;\">" . $pgv_lang["add_media"] . "</a>";
            print "<br />\n";
            print "<a href=\"javascript:;\" onclick=\"window.open('inverselink.php?linktoid={$famid}&linkto=family', '_blank', 'top=50,left=50,width=400,height=300,resizable=1,scrollbars=1'); return false;\">" . $pgv_lang["link_to_existing_media"] . "</a>";
            print "</td></tr>\n";
            // -- new source citation
            print "<tr><td class=\"descriptionbox\">";
            print_help_link("add_source_help", "qm", "add_source_lbl");
            print $pgv_lang["add_source_lbl"] . "</td>";
            print "<td class=\"optionbox\">";
            print "<a href=\"javascript:;\" onclick=\"return add_new_record('{$famid}','SOUR');\">" . $pgv_lang["add_source"] . "</a>";
//.........这里部分代码省略.........
开发者ID:bitweaver,项目名称:phpgedview,代码行数:101,代码来源:functions_charts.php

示例15: print_help_link

    ?>
	</td>
	<td class="optionbox"><input type="text" size="3" name="box_width" value="<?php 
    print $box_width;
    ?>
" />
	<b>%</b>
	</td>

	<!-- // NOTE: Empty field -->
	<td class="descriptionbox">&nbsp;</td><td class="optionbox">&nbsp;</td></tr>

	<!-- // NOTE: Descent steps -->
	<tr><td class="descriptionbox">
	<?php 
    print_help_link("fambook_descent_help", "qm");
    print $pgv_lang["descent_steps"];
    ?>
	</td>
	<td class="optionbox"><input type="text" size="3" name="descent" value="<?php 
    print $descent;
    ?>
" />
	</td>

	<!-- // NOTE: Empty field -->
	<td class="descriptionbox">&nbsp;</td><td class="optionbox">&nbsp;</td></tr>

	<!-- // NOTE: End table and form -->
	</table></form>
开发者ID:rathervague,项目名称:phpgedview,代码行数:30,代码来源:familybook.php


注:本文中的print_help_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。