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


PHP PrintReady函数代码示例

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


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

示例1: print_family_header

/**
 * print family header
 *
 * @param string $famid family gedcom ID
 */
function print_family_header($famid)
{
    $family = Family::getInstance($famid);
    if ($family) {
        echo '<p class="name_head">', PrintReady($family->getFullName()), '</p>';
    }
}
开发者ID:bitweaver,项目名称:phpgedview,代码行数:12,代码来源:functions_charts.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_gedcom_block

function print_gedcom_block($block = true, $config = "", $side, $index)
{
    global $hitCount, $pgv_lang, $SHOW_COUNTER;
    $id = "gedcom_welcome";
    $title = PrintReady(get_gedcom_setting(PGV_GED_ID, 'title'));
    $content = "<div class=\"center\">";
    $content .= "<br />" . format_timestamp(client_time()) . "<br />\n";
    if ($SHOW_COUNTER) {
        $content .= $pgv_lang["hit_count"] . " " . $hitCount . "<br />\n";
    }
    $content .= "\n<br />";
    if (PGV_USER_GEDCOM_ADMIN) {
        $content .= "<a href=\"javascript:;\" onclick=\"window.open('" . encode_url("index_edit.php?name=" . PGV_GEDCOM . "&ctype=gedcom") . "', '_blank', 'top=50,left=10,width=600,height=500,scrollbars=1,resizable=1'); return false;\">" . $pgv_lang["customize_gedcom_page"] . "</a><br />\n";
    }
    $content .= "</div>";
    global $THEME_DIR;
    require $THEME_DIR . 'templates/block_main_temp.php';
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:18,代码来源:gedcom_block.php

示例4: top10_pageviews

function top10_pageviews($block = true, $config = "", $side, $index)
{
    global $TBLPREFIX, $pgv_lang, $INDEX_DIRECTORY, $PGV_BLOCKS, $ctype, $PGV_IMAGES, $PGV_IMAGE_DIR, $SHOW_COUNTER, $SHOW_SOURCES, $TEXT_DIRECTION;
    if (empty($config)) {
        $config = $PGV_BLOCKS["top10_pageviews"]["config"];
    }
    if (isset($config["count_placement"])) {
        $CountSide = $config["count_placement"];
    } else {
        $CountSide = "left";
    }
    $id = "top10hits";
    $title = print_help_link("index_top10_pageviews_help", "qm", "", false, true);
    if ($PGV_BLOCKS["top10_pageviews"]["canconfig"]) {
        if ($ctype == "gedcom" && PGV_USER_GEDCOM_ADMIN || $ctype == "user" && PGV_USER_ID) {
            if ($ctype == "gedcom") {
                $name = PGV_GEDCOM;
            } else {
                $name = PGV_USER_NAME;
            }
            $title .= "<a href=\"javascript: configure block\" onclick=\"window.open('" . encode_url("index_edit.php?name={$name}&ctype={$ctype}&action=configure&side={$side}&index={$index}") . "', '_blank', 'top=50,left=50,width=600,height=350,scrollbars=1,resizable=1'); return false;\">";
            $title .= "<img class=\"adminicon\" src=\"{$PGV_IMAGE_DIR}/" . $PGV_IMAGES["admin"]["small"] . "\" width=\"15\" height=\"15\" border=\"0\" alt=\"" . $pgv_lang["config_block"] . "\" /></a>";
        }
    }
    $title .= $pgv_lang["top10_pageviews"];
    $content = "";
    // if the counter file does not exist then don't do anything
    if (!$SHOW_COUNTER) {
        if (PGV_USER_IS_ADMIN) {
            $content .= "<span class=\"error\">" . $pgv_lang["top10_pageviews_msg"] . "</span>";
        }
    } else {
        // load the lines from the file
        $top10 = PGV_DB::prepareLimit("SELECT page_parameter, page_count" . " FROM {$TBLPREFIX}hit_counter" . " WHERE gedcom_id=? AND page_name IN ('individual.php','family.php','source.php','repo.php','note.php','mediaviewer.php')" . " ORDER BY page_count DESC", $config['num'])->execute(array(PGV_GED_ID))->FetchAssoc();
        if ($top10) {
            if ($block) {
                $content .= "<table width=\"90%\">";
            } else {
                $content .= "<table>";
            }
            foreach ($top10 as $id => $count) {
                $record = GedcomRecord::getInstance($id);
                if ($record && $record->canDisplayDetails()) {
                    $content .= '<tr valign="top">';
                    if ($CountSide == 'left') {
                        $content .= '<td dir="ltr" align="right">[' . $count . ']</td>';
                    }
                    $content .= '<td class="name2" ><a href="' . encode_url($record->getLinkUrl()) . '">' . PrintReady($record->getFullName()) . '</a></td>';
                    if ($CountSide == 'right') {
                        $content .= '<td dir="ltr" align="right">[' . $count . ']</td>';
                    }
                    $content .= '</tr>';
                }
            }
            $content .= "</table>";
        } else {
            $content .= "<b>" . $pgv_lang["top10_pageviews_nohits"] . "</b>";
        }
    }
    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,代码行数:66,代码来源:top10_pageviews.php

示例5: printFamilyHeader

    /**
     * print family header
     * @param String family id
     * @param String family label
     * @return html table
     */
    function printFamilyHeader($famid, $label)
    {
        global $pgv_lang;
        global $PGV_IMAGE_DIR, $PGV_IMAGES, $SHOW_ID_NUMBERS, $SEARCH_SPIDER;
        ?>
		<table>
			<tr>
				<td><img src="<?php 
        print $PGV_IMAGE_DIR . "/" . $PGV_IMAGES["cfamily"]["small"];
        ?>
" border="0" class="icon" alt="" /></td>
				<td><span class="subheaders"><?php 
        print PrintReady($label);
        ?>
</span>
				<?php 
        if (!$this->isPrintPreview() && empty($SEARCH_SPIDER)) {
            ?>
					- <a href="family.php?famid=<?php 
            print $famid;
            ?>
">[<?php 
            print $pgv_lang["view_family"];
            if ($SHOW_ID_NUMBERS) {
                print " " . getLRM() . "({$famid})" . getLRM();
            }
            ?>
]</a>
				<?php 
        }
        ?>
				</td>
			</tr>
		</table>
	<?php 
    }
开发者ID:bitweaver,项目名称:phpgedview,代码行数:42,代码来源:individual_ctrl.php

示例6: print_add_new_fact

/**
 * Print a new fact box on details pages
 * @param string $id	the id of the person,family,source etc the fact will be added to
 * @param array $usedfacts	an array of facts already used in this record
 * @param string $type	the type of record INDI, FAM, SOUR etc
 */
function print_add_new_fact($id, $usedfacts, $type)
{
    global $factarray, $pgv_lang;
    global $INDI_FACTS_ADD, $FAM_FACTS_ADD, $SOUR_FACTS_ADD, $REPO_FACTS_ADD;
    global $INDI_FACTS_UNIQUE, $FAM_FACTS_UNIQUE, $SOUR_FACTS_UNIQUE, $REPO_FACTS_UNIQUE;
    global $INDI_FACTS_QUICK, $FAM_FACTS_QUICK, $SOUR_FACTS_QUICK, $REPO_FACTS_QUICK;
    switch ($type) {
        case "INDI":
            $addfacts = preg_split("/[, ;:]+/", $INDI_FACTS_ADD, -1, PREG_SPLIT_NO_EMPTY);
            $uniquefacts = preg_split("/[, ;:]+/", $INDI_FACTS_UNIQUE, -1, PREG_SPLIT_NO_EMPTY);
            $quickfacts = preg_split("/[, ;:]+/", $INDI_FACTS_QUICK, -1, PREG_SPLIT_NO_EMPTY);
            break;
        case "FAM":
            $addfacts = preg_split("/[, ;:]+/", $FAM_FACTS_ADD, -1, PREG_SPLIT_NO_EMPTY);
            $uniquefacts = preg_split("/[, ;:]+/", $FAM_FACTS_UNIQUE, -1, PREG_SPLIT_NO_EMPTY);
            $quickfacts = preg_split("/[, ;:]+/", $FAM_FACTS_QUICK, -1, PREG_SPLIT_NO_EMPTY);
            break;
        case "SOUR":
            $addfacts = preg_split("/[, ;:]+/", $SOUR_FACTS_ADD, -1, PREG_SPLIT_NO_EMPTY);
            $uniquefacts = preg_split("/[, ;:]+/", $SOUR_FACTS_UNIQUE, -1, PREG_SPLIT_NO_EMPTY);
            $quickfacts = preg_split("/[, ;:]+/", $SOUR_FACTS_QUICK, -1, PREG_SPLIT_NO_EMPTY);
            break;
        case "REPO":
            $addfacts = preg_split("/[, ;:]+/", $REPO_FACTS_ADD, -1, PREG_SPLIT_NO_EMPTY);
            $uniquefacts = preg_split("/[, ;:]+/", $REPO_FACTS_UNIQUE, -1, PREG_SPLIT_NO_EMPTY);
            $quickfacts = preg_split("/[, ;:]+/", $REPO_FACTS_QUICK, -1, PREG_SPLIT_NO_EMPTY);
            break;
        default:
            return;
    }
    $addfacts = array_merge(CheckFactUnique($uniquefacts, $usedfacts, $type), $addfacts);
    $quickfacts = array_intersect($quickfacts, $addfacts);
    usort($addfacts, "factsort");
    print "<tr><td class=\"descriptionbox\">";
    print_help_link("add_new_facts_help", "qm");
    print $pgv_lang["add_fact"] . "</td>";
    print "<td class=\"optionbox\">";
    print "<form method=\"get\" name=\"newfactform\" action=\"\" onsubmit=\"return false;\">\n";
    print "<select id=\"newfact\" name=\"newfact\">\n";
    foreach ($addfacts as $indexval => $fact) {
        print PrintReady("<option value=\"{$fact}\">" . $factarray[$fact] . " [" . $fact . "]</option>\n");
    }
    if ($type == "INDI" || $type == "FAM") {
        print "<option value=\"EVEN\">" . $pgv_lang["custom_event"] . " [EVEN]</option>\n";
    }
    if (!empty($_SESSION["clipboard"])) {
        foreach ($_SESSION["clipboard"] as $key => $fact) {
            if ($fact["type"] == $type || $fact["type"] == 'all') {
                print "<option value=\"clipboard_{$key}\">" . $pgv_lang["add_from_clipboard"] . " " . $factarray[$fact["fact"]] . "</option>\n";
            }
        }
    }
    print "</select>";
    print "<input type=\"button\" value=\"" . $pgv_lang["add"] . "\" onclick=\"add_record('{$id}', 'newfact');\" />\n";
    foreach ($quickfacts as $k => $v) {
        echo "&nbsp;<small><a href='javascript://{$v}' onclick=\"add_new_record('{$id}', '{$v}');return false;\">" . $factarray["{$v}"] . "</a></small>&nbsp;";
    }
    print "</form>\n";
    print "</td></tr>\n";
}
开发者ID:bitweaver,项目名称:phpgedview,代码行数:66,代码来源:bit_print.php

示例7: print_simple_fact

 /**
  * Print a simple fact version of this event
  *
  * @param boolean $return	whether to print or return
  * @param boolean $anchor	whether to add anchor to date and place
  */
 function print_simple_fact($return = false, $anchor = false)
 {
     global $pgv_lang, $SHOW_PEDIGREE_PLACES, $factarray, $ABBREVIATE_CHART_LABELS;
     if (!$this->canShow()) {
         return "";
     }
     $data = "";
     if ($this->gedcomRecord != "1 DEAT") {
         $data .= "<span class=\"details_label\">" . $this->getLabel($ABBREVIATE_CHART_LABELS) . "</span> ";
     }
     if ($this->canShowDetails()) {
         $emptyfacts = array("BIRT", "CHR", "DEAT", "BURI", "CREM", "ADOP", "BAPM", "BARM", "BASM", "BLES", "CHRA", "CONF", "FCOM", "ORDN", "NATU", "EMIG", "IMMI", "CENS", "PROB", "WILL", "GRAD", "RETI", "BAPL", "CONL", "ENDL", "SLGC", "EVEN", "MARR", "SLGS", "MARL", "ANUL", "CENS", "DIV", "DIVF", "ENGA", "MARB", "MARC", "MARS", "OBJE", "CHAN", "_SEPR", "RESI", "DATA", "MAP");
         if (!in_array($this->tag, $emptyfacts)) {
             $data .= PrintReady($this->detail);
         }
         if (!$this->dest) {
             $data .= format_fact_date($this, $anchor, false, true);
         }
         $data .= format_fact_place($this, $anchor, false, false);
     }
     $data .= "<br />\n";
     if (!$return) {
         print $data;
     } else {
         return $data;
     }
 }
开发者ID:bitweaver,项目名称:phpgedview,代码行数:33,代码来源:class_event.php

示例8: ancestry_array

                    }
                }
            }
        }
        break;
    case 2:
        // Individual list
        $treeid = ancestry_array($controller->rootid, $PEDIGREE_GENERATIONS);
        echo '<div class="center">';
        print_indi_table($treeid, $pgv_lang["ancestry_chart"] . ' : ' . PrintReady($controller->name), 'sosa');
        echo '</div>';
        break;
    case 3:
        // Family list
        $treeid = ancestry_array($controller->rootid, $PEDIGREE_GENERATIONS - 1);
        $famlist = array();
        foreach ($treeid as $pid) {
            $person = Person::getInstance($pid);
            if (is_null($person)) {
                continue;
            }
            foreach ($person->getChildFamilies() as $famc) {
                $famlist[$famc->getXref()] = $famc;
            }
        }
        echo '<div class="center">';
        print_fam_table($famlist, $pgv_lang["ancestry_chart"] . ' : ' . PrintReady($controller->name));
        echo '</div>';
        break;
}
print_footer();
开发者ID:rathervague,项目名称:phpgedview,代码行数:31,代码来源:ancestry.php

示例9: print_descendency


//.........这里部分代码省略.........
             $famids = $person->getSpouseFamilies();
             //-- make sure there is more than 1 child in the family with parents
             $cfamids = $person->getChildFamilies();
             $num = 0;
             foreach ($cfamids as $famid => $family) {
                 if (!is_null($family)) {
                     $num += $family->getNumberOfChildren();
                 }
             }
             // NOTE: If statement OK
             if ($num > 0) {
                 print "\n\t\t<div class=\"center\" id=\"childarrow\" dir=\"" . $TEXT_DIRECTION . "\"";
                 print " style=\"position:absolute; width:" . $bwidth . "px; \">";
                 if ($this->view != "preview") {
                     print "<a href=\"javascript: " . $pgv_lang["show"] . "\" onclick=\"togglechildrenbox(); return false;\" onmouseover=\"swap_image('larrow',3);\" onmouseout=\"swap_image('larrow',3);\">";
                     print "<img id=\"larrow\" src=\"" . $PGV_IMAGE_DIR . "/" . $PGV_IMAGES["darrow"]["other"] . "\" border=\"0\" alt=\"\" />";
                     print "</a><br />";
                 }
                 print "\n\t\t<div id=\"childbox\" dir=\"" . $TEXT_DIRECTION . "\" style=\"width:" . $bwidth . "px; height:" . $bheight . "px; visibility: hidden;\">";
                 print "\n\t\t\t<table class=\"person_box\"><tr><td>";
                 foreach ($famids as $famid => $family) {
                     if (!is_null($family)) {
                         $spouse = $family->getSpouse($person);
                         if (!empty($spouse)) {
                             $spid = $spouse->getXref();
                             print "\n\t\t\t\t<a href=\"" . encode_url("hourglass.php?pid={$spid}&show_spouse={$this->show_spouse}&show_full={$this->show_full}&generations={$this->generations}&box_width={$this->box_width}") . "\"><span ";
                             $name = $spouse->getFullName();
                             $name = rtrim($name);
                             if (hasRTLText($name)) {
                                 print "class=\"name2\">";
                             } else {
                                 print "class=\"name1\">";
                             }
                             print PrintReady($name);
                             print "<br /></span></a>";
                         }
                         $children = $family->getChildren();
                         foreach ($children as $id => $child) {
                             $cid = $child->getXref();
                             print "\n\t\t\t\t&nbsp;&nbsp;<a href=\"" . encode_url("hourglass.php?pid={$cid}&show_spouse={$this->show_spouse}&show_full={$this->show_full}&generations={$this->generations}&box_width={$this->box_width}") . "\"><span ";
                             $name = $child->getFullName();
                             $name = rtrim($name);
                             if (hasRTLText($name)) {
                                 print "class=\"name2\">&lt; ";
                             } else {
                                 print "class=\"name1\">&lt; ";
                             }
                             print PrintReady($name);
                             print "<br /></span></a>";
                         }
                     }
                 }
                 //-- do we need to print this arrow?
                 print "<img src=\"" . $PGV_IMAGE_DIR . "/" . $PGV_IMAGES["rarrow"]["other"] . "\" border=\"0\" alt=\"\" /> ";
                 //-- print the siblings
                 foreach ($cfamids as $famid => $family) {
                     if (!is_null($family)) {
                         if (!is_null($family->getHusband()) || !is_null($family->getWife())) {
                             print "<span class=\"name1\"><br />" . $pgv_lang["parents"] . "<br /></span>";
                             $husb = $family->getHusband();
                             if (!empty($husb)) {
                                 $spid = $husb->getXref();
                                 print "\n\t\t\t\t&nbsp;&nbsp;<a href=\"" . encode_url("hourglass.php?pid={$spid}&show_spouse={$this->show_spouse}&show_full={$this->show_full}&generations={$this->generations}&box_width={$this->box_width}") . "\"><span ";
                                 $name = $husb->getFullName();
                                 $name = rtrim($name);
                                 if (hasRTLText($name)) {
开发者ID:bitweaver,项目名称:phpgedview,代码行数:67,代码来源:hourglass_ctrl.php

示例10: print_time_fact


//.........这里部分代码省略.........
         print format_fact_date($event);
     }
     if (get_class($indi) == "Family") {
         print $gdate->Display(false);
         $family = $indi;
         $husbid = $family->getHusbId();
         $wifeid = $family->getWifeId();
         //-- Retrieve husband and wife age
         for ($p = 0; $p < count($this->pids); $p++) {
             if ($this->pids[$p] == $husbid) {
                 $husb = $family->getHusband();
                 if (is_null($husb)) {
                     $husb = new Person('');
                 }
                 $hdate = $husb->getBirthDate();
                 if ($hdate->isOK()) {
                     $ageh = get_age_at_event(GedcomDate::GetAgeGedcom($hdate, $gdate), false);
                 }
             } else {
                 if ($this->pids[$p] == $wifeid) {
                     $wife = $family->getWife();
                     if (is_null($wife)) {
                         $wife = new Person('');
                     }
                     $wdate = $wife->getBirthDate();
                     if ($wdate->isOK()) {
                         $agew = get_age_at_event(GedcomDate::GetAgeGedcom($wdate, $gdate), false);
                     }
                 }
             }
         }
         if (!empty($ageh) && $ageh > 0) {
             if (empty($agew)) {
                 print '<span class="age"> ' . PrintReady("({$pgv_lang["age"]} {$ageh})") . '</span>';
             } else {
                 print '<span class="age"> ' . PrintReady("({$pgv_lang["husb_age"]} {$ageh},") . ' ';
             }
         }
         if (!empty($agew) && $agew > 0) {
             if (empty($ageh)) {
                 print '<span class="age"> ' . PrintReady("({$pgv_lang["age"]} {$agew})") . '</span>';
             } else {
                 print PrintReady("{$pgv_lang["wife_age"]} {$agew})") . '</span>';
             }
         }
     }
     print " " . PrintReady($desc);
     if ($SHOW_PEDIGREE_PLACES > 0) {
         $place = $event->getPlace();
         if ($place != null) {
             if ($desc != null) {
                 print " - ";
             }
             $plevels = explode(',', $place);
             for ($plevel = 0; $plevel < $SHOW_PEDIGREE_PLACES; $plevel++) {
                 if (!empty($plevels[$plevel])) {
                     if ($plevel > 0) {
                         print ", ";
                     }
                     print PrintReady($plevels[$plevel]);
                 }
             }
         }
     }
     //-- print spouse name for marriage events
     $spouse = Person::getInstance($event->getSpouseId());
开发者ID:bitweaver,项目名称:phpgedview,代码行数:67,代码来源:timeline_ctrl.php

示例11: print_help_link

    ?>
" onfocus="getHelp('gedcom_path_help');" />
		</td>
	</tr>
	<?php 
}
if ($source != "replace_form") {
    ?>
	<tr>
		<td class="descriptionbox wrap width20"><?php 
    print_help_link("gedcom_title_help", "qm", "gedcom_title", true);
    print print_text("gedcom_title");
    ?>
</td>
		<td class="optionbox"><input type="text" name="gedcom_title" dir="ltr" value="<?php 
    print preg_replace("/\"/", "&quot;", PrintReady($gedcom_title));
    ?>
" size="40" tabindex="<?php 
    $i++;
    print $i;
    ?>
" onfocus="getHelp('gedcom_title_help');" /></td>
	</tr>
	<tr>
		<td class="descriptionbox wrap width20">
		<?php 
    print_help_link("LANGUAGE_help", "qm", "LANGUAGE");
    print $pgv_lang["LANGUAGE"];
    ?>
</td>
		<td class="optionbox"><input type="hidden" name="changelanguage" value="yes" />
开发者ID:bitweaver,项目名称:phpgedview,代码行数:31,代码来源:editconfig_gedcom.php

示例12: getPageTitle

 function getPageTitle()
 {
     global $pgv_lang;
     if ($this->family) {
         return PrintReady($this->title);
     } else {
         return $pgv_lang["unable_to_find_record"];
     }
 }
开发者ID:bitweaver,项目名称:phpgedview,代码行数:9,代码来源:family_ctrl.php

示例13: define

define('PGV_SCRIPT_NAME', 'hourglass.php');
require './config.php';
require_once PGV_ROOT . 'includes/controllers/hourglass_ctrl.php';
$controller = new HourglassController();
$controller->init();
// -- print html header information
print_header(PrintReady($controller->name) . " " . $pgv_lang["hourglass_chart"]);
if ($ENABLE_AUTOCOMPLETE) {
    require PGV_ROOT . 'js/autocomplete.js.htm';
}
if ($controller->view == "preview") {
    print "<h2 style=\"text-align: center\">" . $pgv_lang["hourglass_chart"] . ":&nbsp;&nbsp;&nbsp;" . PrintReady($controller->name) . "</h2>";
} else {
    print "<!-- // NOTE: Start table header -->";
    print "<table><tr><td valign=\"top\">";
    print "<h2>" . $pgv_lang["hourglass_chart"] . ":<br />" . PrintReady($controller->name) . "</h2>";
}
$controller->setupJavascript();
// LBox =====================================================================================
if (PGV_USE_LIGHTBOX) {
    require PGV_ROOT . 'modules/lightbox/lb_defaultconfig.php';
    require PGV_ROOT . 'modules/lightbox/functions/lb_call_js.php';
}
// ==========================================================================================
$gencount = 0;
if ($view != "preview") {
    ?>
<!--	// NOTE: Start form and table -->
	</td><td width="50px">&nbsp;</td><td><form method="get" name="people" action="?">
	<input type="hidden" name="show_full" value="<?php 
    print $controller->show_full;
开发者ID:rathervague,项目名称:phpgedview,代码行数:31,代码来源:hourglass.php

示例14: foreach

<input type="hidden" name="F<?php 
        echo $i;
        ?>
CDEL" value="" /></td>
	</tr>
	<?php 
        foreach ($chil as $c => $child) {
            $person = Person::getInstance($child);
            echo "<tr><td class=\"optionbox\">";
            $name = $person->getFullName();
            if ($SHOW_ID_NUMBERS) {
                $name .= " (" . $child . ")";
            }
            $name .= " [" . $pgv_lang["edit"] . "]";
            echo "<a href=\"#\" onclick=\"return quickEdit('", $child, "', '', '", PGV_GEDCOM, "');\">";
            echo PrintReady(stripLRMRLM($name));
            echo "</a>";
            echo "</td>\n<td class=\"optionbox center\">";
            $sex = $person->getSex();
            if ($sex == 'M') {
                echo Person::sexImage('M', 'small'), $pgv_lang['male'];
            } elseif ($sex == 'F') {
                echo Person::sexImage('F', 'small'), $pgv_lang['female'];
            } else {
                echo Person::sexImage('U', 'small'), $pgv_lang['unknown'];
            }
            echo "</td>\n<td class=\"optionbox\">";
            echo $person->format_first_major_fact(PGV_EVENTS_BIRT, 2);
            echo "</td>\n";
            ?>
			<td class="optionbox center">
开发者ID:rathervague,项目名称:phpgedview,代码行数:31,代码来源:edit_quickupdate.php

示例15: print_charts_block

function print_charts_block($block = true, $config = "", $side, $index)
{
    global $PGV_BLOCKS, $pgv_lang, $ctype, $PGV_IMAGE_DIR, $PGV_IMAGES, $PEDIGREE_ROOT_ID, $PEDIGREE_FULL_DETAILS;
    global $show_full, $bwidth, $bheight;
    if (empty($config)) {
        $config = $PGV_BLOCKS["print_charts_block"]["config"];
    }
    if (empty($config['details'])) {
        $config['details'] = 'no';
    }
    if (empty($config["pid"])) {
        if (!PGV_USER_ID) {
            $config["pid"] = $PEDIGREE_ROOT_ID;
        } else {
            if (PGV_USER_GEDCOM_ID) {
                $config["pid"] = PGV_USER_GEDCOM_ID;
            } else {
                $config["pid"] = $PEDIGREE_ROOT_ID;
            }
        }
    }
    // Override GEDCOM configuration temporarily
    if (isset($show_full)) {
        $saveShowFull = $show_full;
    }
    $savePedigreeFullDetails = $PEDIGREE_FULL_DETAILS;
    if ($config["details"] == "no") {
        $show_full = 0;
        // Here we could adjust the block width & height to accommodate larger displays
    } else {
        $show_full = 1;
        // Here we could adjust the block width & height to accommodate larger displays
    }
    $PEDIGREE_FULL_DETAILS = $show_full;
    if ($config['type'] != 'treenav') {
        $controller = new HourglassController();
        $controller->init($config["pid"], 0, 3);
        $controller->setupJavascript();
    } else {
        $nav = new TreeNav($config['pid'], 'blocknav', -1);
        $nav->generations = 2;
    }
    $person = Person::getInstance($config["pid"]);
    if ($person == null) {
        $config["pid"] = $PEDIGREE_ROOT_ID;
        $person = Person::getInstance($PEDIGREE_ROOT_ID);
    }
    $id = "charts_block";
    $title = print_help_link("index_charts_help", "qm", "", false, true);
    if ($PGV_BLOCKS["print_charts_block"]["canconfig"]) {
        if ($ctype == "gedcom" && PGV_USER_GEDCOM_ADMIN || $ctype == "user" && PGV_USER_ID) {
            if ($ctype == "gedcom") {
                $name = PGV_GEDCOM;
            } else {
                $name = PGV_USER_NAME;
            }
            $title .= "<a href=\"javascript: configure block\" onclick=\"window.open('" . encode_url("index_edit.php?name={$name}&ctype={$ctype}&action=configure&side={$side}&index={$index}") . "', '_blank', 'top=50,left=50,width=700,height=400,scrollbars=1,resizable=1'); return false;\">";
            $title .= "<img class=\"adminicon\" src=\"{$PGV_IMAGE_DIR}/" . $PGV_IMAGES["admin"]["small"] . "\" width=\"15\" height=\"15\" border=\"0\" alt=\"" . $pgv_lang["config_block"] . "\" /></a>";
        }
    }
    if ($person) {
        $name = PrintReady($person->getFullName());
        switch ($config['type']) {
            case 'pedigree':
                $title .= $name . " " . $pgv_lang["index_header"];
                break;
            case 'descendants':
                $title .= $name . " " . $pgv_lang["descend_chart"];
                break;
            case 'hourglass':
                $title .= $name . " " . $pgv_lang["hourglass_chart"];
                break;
            case 'treenav':
                $title .= $name . " " . $pgv_lang["tree"];
                break;
        }
        $content = "";
        $content .= "<script src=\"js/phpgedview.js\" language=\"JavaScript\" type=\"text/javascript\"></script>";
        if ($show_full == 0) {
            $content .= '<center><span class="details2">' . $pgv_lang['charts_click_box'] . '</span></center><br />';
        }
        $content .= '<table cellspacing="0" cellpadding="0" border="0"><tr>';
        if ($config['type'] == 'descendants' || $config['type'] == 'hourglass') {
            $content .= "<td valign=\"middle\">";
            ob_start();
            $controller->print_descendency($person->getXref(), 1, false);
            $content .= ob_get_clean();
            $content .= "</td>";
        }
        if ($config['type'] == 'pedigree' || $config['type'] == 'hourglass') {
            //-- print out the root person
            if ($config['type'] != 'hourglass') {
                $content .= "<td valign=\"middle\">";
                ob_start();
                print_pedigree_person($person->getXref());
                $content .= ob_get_clean();
                $content .= "</td>";
            }
            $content .= "<td valign=\"middle\">";
            ob_start();
//.........这里部分代码省略.........
开发者ID:rathervague,项目名称:phpgedview,代码行数:101,代码来源:charts.php


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