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


PHP html_page_header函数代码示例

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


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

示例1: DisplayHtmlContent

    function DisplayHtmlContent()
    {
        global $config;
        global $db;
        $this->display_disqus = false;
        echo html_page_header(true, '', 'name');
        echo '<h1>' . $this->GetTitle() . '</h1>';
        echo '<h2>' . num_cited_by($this->id) . " citations" . '</h2>';
        echo '<p class="explanation">References in BioStor that cite this reference</p>' . "\n";
        $sql = 'SELECT DISTINCT(rdmp_reference_cites.reference_id) FROM rdmp_reference_citation_string_joiner
INNER JOIN rdmp_reference_cites USING(citation_string_id)
WHERE rdmp_reference_citation_string_joiner.reference_id=' . $this->id;
        $result = $db->Execute($sql);
        if ($result == false) {
            die("failed [" . __FILE__ . ":" . __LINE__ . "]: " . $sql);
        }
        echo '<ul>' . "\n";
        while (!$result->EOF) {
            $reference = db_retrieve_reference($result->fields['reference_id']);
            echo '<li style="border-bottom:1px dotted rgb(128,128,128);padding:4px;">';
            echo '<a href="' . $config['web_root'] . 'reference/' . $result->fields['reference_id'] . '">' . $reference->title . '</a><br/>';
            echo '<span style="color:green;">' . reference_authors_to_text_string($reference);
            if (isset($reference->year)) {
                echo ' (' . $reference->year . ')';
            }
            echo ' ' . reference_to_citation_text_string($reference) . '</span>';
            echo ' ' . reference_to_coins($reference);
            echo '</li>';
            $result->MoveNext();
        }
        echo '</ul>' . "\n";
    }
开发者ID:rdmpage,项目名称:bioguid,代码行数:32,代码来源:display_forwardlinks.php

示例2: DisplayHtmlContent

 function DisplayHtmlContent()
 {
     global $config;
     echo html_page_header(true, '', 'name');
     echo '<h1>' . $this->GetTitle() . '</h1>';
     /*
     //------------------------------------------------------------------------------------------
     // Export options
     echo '<h2>Export</h2>';
     echo '<div>';
     echo '<span><a href="' . $config['web_root'] . 'reference/' . $this->id . '.text" title="Text">Text</a></span>';		
     echo '</div>';
     */
     //------------------------------------------------------------------------------------------
     // Identifiers
     echo '<h2>Identifiers</h2>';
     echo '<ul>';
     if ($this->in_bhl) {
         // BHL reference
         echo '<li><a href="http://www.biodiversitylibrary.org/item/' . $this->id . '" target="_new">BHL ItemID:' . $this->id . '</a></li>';
         $identifiers = bhl_retrieve_identifiers($this->object->TitleID);
         foreach ($identifiers as $k => $v) {
             switch ($k) {
                 case 'oclc':
                     echo '<li><a href="http://www.worldcat.org/oclc/' . $v . '" target="_new">OCLC:' . $v . '</a></li>';
                     break;
                 case 'isbn':
                     echo '<li><a href="http://www.worldcat.org/isbn/' . $v . '" target="_new">ISBN:' . $v . '</a></li>';
                     break;
                 default:
                     break;
             }
         }
     }
     echo '</ul>';
     //------------------------------------------------------------------------------------------
     if ($this->in_bhl) {
         //--------------------------------------------------------------------------------------
         echo '<h2>Viewer</h2>';
         echo '<table width="100%" >';
         echo '<tr  valign="top"><td>';
         echo bhl_item_viewer($this->id, $this->page);
         echo '</td>';
         echo '<td>';
         //echo $this->DisplayEditForm();
         echo '</td></tr>';
         echo '</table>';
         //--------------------------------------------------------------------------------------
         if (count($this->localities) != 0) {
             echo '<h2>Localities</h2>';
             echo '<p class="explanation">Localities extracted from OCR text.</p>';
             echo '<div id="map_canvas" style="width: 600px; height: 300px"></div>';
         }
     }
 }
开发者ID:rdmpage,项目名称:bioguid,代码行数:55,代码来源:display_item.php

示例3: DisplayHtmlContent

    function DisplayHtmlContent()
    {
        global $config;
        global $db;
        $this->display_disqus = false;
        echo html_page_header(true, '', 'name');
        echo '<h1><a href=' . $config['web_root'] . 'reference/' . $this->id . '">' . $this->GetTitle() . '</a></h1>';
        echo '<h2>' . num_cites($this->id) . " references cited" . '</h2>';
        echo '<p class="explanation">References cited by this reference</p>' . "\n";
        echo '<div>';
        echo '<div style="display:inline;border:1px solid rgb(192,192,192);background-color:#D8F3C9;width:20px;height:20px;">&nbsp;&nbsp;&nbsp;&nbsp;</div>';
        echo '&nbsp;Reference exists in BioStor&nbsp;';
        echo '<div style="display:inline;border:1px solid rgb(192,192,192);background-color:#FCCB08;width:10px;height:10px;">&nbsp;&nbsp;&nbsp;&nbsp;</div>';
        echo '&nbsp;Reference parsed but not found online&nbsp;';
        echo '<div style="display:inline;border:1px solid rgb(192,192,192);background-color:white;width:10px;height:10px;">&nbsp;&nbsp;&nbsp;&nbsp;</div>';
        echo '&nbsp;Reference not parsed&nbsp;';
        echo '</div>';
        echo '<hr />' . "\n";
        $sql = 'SELECT * FROM rdmp_reference_cites
INNER JOIN rdmp_citation_string USING(citation_string_id)
LEFT JOIN rdmp_reference_citation_string_joiner USING(citation_string_id)
WHERE rdmp_reference_cites.reference_id = ' . $this->id . ' ORDER BY rdmp_reference_cites.citation_order';
        $result = $db->Execute($sql);
        if ($result == false) {
            die("failed [" . __FILE__ . ":" . __LINE__ . "]: " . $sql);
        }
        echo '<ul>' . "\n";
        while (!$result->EOF) {
            $style = 'padding:4px;border-bottom:1px solid rgb(192,192,192);';
            if ($result->fields['reference_id'] != '') {
                $style .= 'background-color:#D8F3C9;';
            } elseif ($result->fields['citation_object'] != '') {
                $style .= 'background-color:#FCCB08;';
            }
            echo '<li style="' . $style . '">';
            if ($result->fields['reference_id'] != '') {
                echo '<a href="' . $config['web_root'] . 'reference/' . $result->fields['reference_id'] . '">';
            }
            echo $result->fields['citation_string'];
            if ($result->fields['reference_id'] != '') {
                echo '</a>';
            }
            echo '</li>';
            $result->MoveNext();
        }
        echo '</ul>' . "\n";
    }
开发者ID:rdmpage,项目名称:bioguid,代码行数:47,代码来源:display_backlinks.php

示例4: session_get_user_properties

$s_user_properties = session_get_user_properties();
$user_id = $s_user_properties['user_id'];
$row_style = '';
$order_by = MAN_DOC_TYPE_NAME;
$order_dir = "ASC";
$page_number = 1;
util_set_order_by($order_by, $_GET);
util_set_order_dir($order_dir, $_GET);
util_set_page_number($page_number, $_GET);
util_set_order_by($order_by, $_POST);
util_set_order_dir($order_dir, $_POST);
util_set_page_number($page_number, $_POST);
html_window_title();
html_print_body();
html_page_title(project_get_name($selected_project_id) . " - " . lang_get('manage_project_page'));
html_page_header($db, $project_name);
html_print_menu();
admin_menu_print($page, $project_id, $user_id);
html_project_manage_menu();
html_project_manage_tests_menu();
error_report_check($_GET);
$project_details = project_get_details($selected_project_id);
print "<div align=center>" . NEWLINE;
print "<br>" . NEWLINE;
if (!empty($project_details)) {
    $project_id = $project_details[PROJ_ID];
    $project_name = $project_details[PROJ_NAME];
    $project_status = $project_details[PROJ_STATUS];
    $project_description = $project_details[PROJ_DESCRIPTION];
    ####################################################################################
    # Test Doc Type
开发者ID:nourchene-benslimane,项目名称:rth_backup,代码行数:31,代码来源:project_manage_testdoctype_page.php

示例5: html_print_operation_successful

function html_print_operation_successful($page_title, $redirect_page)
{
    global $db;
    $s_project_properties = session_get_project_properties();
    $project_name = $s_project_properties['project_name'];
    html_window_title();
    html_print_body();
    html_page_title($project_name . " - " . lang_get($page_title));
    html_page_header($db, $project_name);
    html_print_menu();
    print "<div class=operation-successful>" . lang_get('operation_successful') . "</div>";
    html_print_footer();
    html_redirect($redirect_page);
    exit;
}
开发者ID:nourchene-benslimane,项目名称:rth_backup,代码行数:15,代码来源:html_api.php

示例6: DisplayHtmlContent

 function DisplayHtmlContent()
 {
     global $config;
     echo html_page_header(true, '', 'name');
     echo '<div style="float:right;background-color:rgb(230,242,250);padding:6px">' . "\n";
     if ($this->issn != '') {
         echo '<h2>Identifiers</h2>' . "\n";
         echo '<ul class="guid-list">' . "\n";
         echo '<li class="permalink"><a href="' . $config['web_root'] . 'issn/' . $this->issn . '" title="Permalink">' . $config['web_root'] . 'issn/' . $this->issn . '</a></li>' . "\n";
         echo '<li class="worldcat"><a href="http://www.worldcat.org/issn/' . $this->issn . '" title="ISSN">' . $this->issn . '</a></li>' . "\n";
         echo '<h2>Export</h2>' . "\n";
         echo '<ul class="export-list">' . "\n";
         echo '<li class="xml"><a href="' . $config['web_root'] . 'issn/' . $this->issn . '.xml" title="Endnote XML">Endnote XML</a></li>';
         echo '<li class="ris"><a href="' . $config['web_root'] . 'issn/' . $this->issn . '.ris" title="RIS">Reference manager</a></li>';
         echo '<li class="bibtex"><a href="' . $config['web_root'] . 'issn/' . $this->issn . '.bib" title="BibTex">BibTex</a></li>';
         echo '<li class="text"><a href="' . $config['web_root'] . 'issn/' . $this->issn . '.text" title="text">Text</a></li>';
         echo '</ul>' . "\n";
     }
     if ($this->oclc != '') {
         echo '<h2>Identifiers</h2>' . "\n";
         echo '<ul class="guid-list">' . "\n";
         echo '<li class="permalink"><a href="' . $config['web_root'] . 'oclc/' . $this->oclc . '" title="Permalink">' . $config['web_root'] . 'oclc/' . $this->oclc . '</a></li>' . "\n";
         echo '<li class="worldcat"><a href="http://www.worldcat.org/oclc/' . $this->oclc . '" title="OCLC">' . $this->oclc . '</a></li>' . "\n";
         echo '<h2>Export</h2>' . "\n";
         echo '<ul class="export-list">' . "\n";
         echo '<li class="xml"><a href="' . $config['web_root'] . 'oclc/' . $this->oclc . '.xml" title="Endnote XML">Endnote XML</a></li>';
         echo '<li class="ris"><a href="' . $config['web_root'] . 'oclc/' . $this->oclc . '.ris" title="RIS">Reference manager</a></li>';
         echo '<li class="bibtex"><a href="' . $config['web_root'] . 'oclc/' . $this->oclc . '.bib" title="BibTex">BibTex</a></li>';
         echo '<li class="text"><a href="' . $config['web_root'] . 'oclc/' . $this->oclc . '.text" title="text">Text</a></li>';
         echo '</ul>' . "\n";
     }
     echo '</div>' . "\n";
     echo '<h1>' . $this->GetTitle() . '</h1>';
     // Image
     if (isset($this->issn)) {
         echo '<div>';
         echo '<img src="http://bioguid.info/issn/image.php?issn=' . $this->issn . '" alt="cover" style="border:1px solid rgb(228,228,228);height:100px;" />';
         echo '</div>';
     }
     // Stats
     /*		echo '<div>';
     		echo '<img src="' . sparkline_articles_added_for_issn($this->issn) . '" alt="sparkline" />';
     		echo '</div>';*/
     echo '<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="rdmpage" data-related="biostor_org">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>';
     echo '<h2>Coverage</h2>' . "\n";
     echo '<p>';
     if ($this->issn != '') {
         echo bhl_articles_for_issn($this->issn);
     }
     if ($this->oclc != '') {
         echo bhl_articles_for_oclc($this->oclc);
     }
     echo ' articles in database.</p>' . "\n";
     echo '<h3>Distribution of identified articles over time</h3>' . "\n";
     echo '<div>' . "\n";
     echo '   <img src="' . sparkline_references($this->issn, $this->oclc, 360, 100) . '" alt="sparkline" />' . "\n";
     echo '</div>' . "\n";
     $titles = array();
     if ($this->issn != '') {
         $titles = bhl_titles_for_issn($this->issn);
     }
     if ($this->oclc != '') {
         $titles = bhl_titles_for_oclc($this->oclc);
     }
     if (count($titles) > 0) {
         echo '<h3>Distribution of identified articles across BHL items</h3>' . "\n";
         echo '<div>';
         echo '<div style="display:inline;background-color:rgb(230,242,250);width:20px;height:20px;">&nbsp;&nbsp;&nbsp;&nbsp;</div>';
         echo '&nbsp;Scanned pages&nbsp;';
         echo '<div style="display:inline;background-color:rgb(0,119,204);width:10px;height:10px;">&nbsp;&nbsp;&nbsp;&nbsp;</div>';
         echo '&nbsp;Articles&nbsp;';
         echo '</div>';
         echo '<p></p>';
         $items = array();
         $volumes = array();
         items_from_titles($titles, $items, $volumes);
         $html = '<div style="height:400px;border:1px solid rgb(192,192,192);overflow:auto;">' . "\n";
         $html .= '<table>' . "\n";
         $html .= '<tbody style="font-size:10px;">' . "\n";
         foreach ($volumes as $volume) {
             $item = $items[$volume];
             // How many pages in this item?
             $num_pages = bhl_num_pages_in_item($item->ItemID);
             // Coverage
             $coverage = bhl_item_page_coverage($item->ItemID);
             $row_height = 10;
             // Draw as DIV
             $html .= '<tr>' . "\n";
             $html .= '<td>';
             $html .= '<a href="http://www.biodiversitylibrary.org/item/' . $item->ItemID . '" target="_new">';
             $html .= $item->VolumeInfo;
             $html .= '</a>';
             $html .= '</td>' . "\n";
             $html .= '<td>' . "\n";
             $html .= '<div style="position:relative">' . "\n";
             $html .= '   <div style="background-color:rgb(230,242,250);border-bottom:1px solid rgb(192,192,192);border-right:1px solid rgb(192,192,192);position:absolute;left:0px;top:0px;width:' . $num_pages . 'px;height:' . $row_height . 'px;">' . "\n";
             foreach ($coverage as $c) {
                 $html .= '      <div style="background-color:rgb(0,119,204);position:absolute;left:' . $c->start . 'px;top:0px;width:' . ($c->end - $c->start) . 'px;height:' . $row_height . 'px;">' . "\n";
                 $html .= '      </div>' . "\n";
             }
//.........这里部分代码省略.........
开发者ID:rdmpage,项目名称:bioguid,代码行数:101,代码来源:display_journal.php

示例7: DisplayHtmlContent

    function DisplayHtmlContent()
    {
        global $config;
        echo html_page_header(true, '', 'author');
        echo '<h1>' . $this->GetTitle() . '</h1>';
        // Name variations
        $names = db_get_all_author_names($this->id);
        if (count($names) > 1) {
            /*			echo '<h2>Name variants</h2>'; 
            			echo '<ul>';
            			foreach ($names as $name)
            			{
            				echo '<li><a href="' . $config['web_root'] . 'author/' . $name['author_id'] . '">' . $name['name'] . '</a></li>';
            			}
            			echo '</ul>';
            			echo '<h2>Name variants</h2>'; 
            			echo '<ul>';
            */
            $count = 0;
            echo '<p>(';
            foreach ($names as $name) {
                if ($count++ > 0) {
                    echo ', ';
                }
                echo '<a href="' . $config['web_root'] . 'author/' . $name['author_id'] . '">' . $name['name'] . '</a>';
            }
            echo ')</p>';
        }
        echo '<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="rdmpage" data-related="biostor_org">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>';
        echo '<div>';
        echo '<img src="' . sparkline_author_articles($this->id) . '" alt="sparkline" align="top"/>';
        echo '</div>';
        echo '<div>';
        // Ideally make this SVG, but then we have to deal with clicks on nodes going to embedded object,
        // not parent window (see issue with phylomash project)
        if (0) {
            $graph_url = $config['web_root'] . 'cgi-bin/neato.cgi/' . $config['web_root'] . 'coauthor/' . $this->id . '.svg';
            echo '
			<!--[if IE]>
			<embed width="360" height="180" src="' . $graph_url . '">
			</embed>
			<![endif]-->
			<![if !IE]>
			<object id="mysvg" type="image/svg+xml" width="360" height="180" data="' . $graph_url . '">
			<p>Error, browser must support "SVG"</p>
			</object>
			<![endif]>';
        } else {
            /* Turn off
            			$graph_url = $config['web_root'] . 'cgi-bin/neato.cgi/' .  $config['web_root'] . 'coauthor/' . $this->id . '.png';
            			echo '<img src="' . $graph_url . '" alt="graph" align="top"/>';
            			*/
        }
        echo '</div>';
        // My original code
        /*
        // List of papers authored
        echo '<h2>Publications</h2>';
        $refs = db_retrieve_authored_references($this->id);
        echo '<ul>';
        foreach($refs as $reference_id)
        {
        	$reference = db_retrieve_reference ($reference_id);
        	echo '<li><a href="' . $config['web_root'] . 'reference/' . $reference_id . '">' . $reference->title . '</a></li>';
        }
        echo '</ul>';
        
        // Timeline 
        echo '<h2>Publication Timeline</h2>';
        echo '<div>';
        $timeline = db_retrieve_author_timeline($this->id);
        
        $max_count = 0;
        foreach ($timeline as $k => $v)
        {
        	$max_count = max ($max_count, $v);
        }
        
        // CSS display from http://www.alistapart.com/articles/accessibledatavisualization/
        echo '<ul class="timeline">';
        foreach ($timeline as $k => $v)
        {
        	echo '<li>';
        	echo '<a>';
        	echo '<span class="label">' . $k . '</span>';
        	
        	$percentage = round(100 * $v/$max_count, 2);
        	
        	echo '<span class="count" style="height: ' . $percentage . '%">(' . $v . ')</span>';
        	echo '</a>';
        	echo '</li>';
        }
        echo '</ul>';
        echo '</div>';
        //print_r($timeline);
        
        // Coauthorships (LinkedIn-style)
        $coauthors = db_retrieve_coauthors($this->id);
        //print_r($coauthors);
        echo '<h2>Coauthors</h2>';
//.........这里部分代码省略.........
开发者ID:rdmpage,项目名称:bioguid,代码行数:101,代码来源:display_author.php

示例8: dirname

/**
 * @file zotero.php
 *
 * Explain how to use with Zotero
 *
 */
require_once '../config.inc.php';
require_once dirname(__FILE__) . '/html.php';
global $config;
header("Content-type: text/html; charset=utf-8\n\n");
echo html_html_open();
echo html_head_open();
echo html_title('Zotero - ' . $config['site_name']);
echo html_head_close();
echo html_body_open();
echo html_page_header(false);
?>
<div style="float:right;padding:10px;"><img src="static/zotero_z_32px.png" alt="zotero logo"/></div>
<h1>Using BioStor with Zotero</h1>


<p><a href="http://www.zotero.org">Zotero</a> is a Firefox extension for collecting and managing bibliographic references. You can use Zotero to capture citations from BioStor, and you can also link to references in BioStor from within Zotero using OpenURL. Note that the instructions below assume that you are using version 2.0 or Zotero.</p>

<h2>Storing citations</h2>
<p>Zotero can detect when a BioStor page contains bibliograpic information, and you can import that information into you Zotero library in the normal way (see the Zotero page <a href="http://www.zotero.org/support/getting_stuff_into_your_library">Getting stuff into your library</a>).</p>

<h2>Set up OpenURL linking</h2>
<p>To enable OpenURL linking go the <b>Actions</b> button in Zotero and click 
on the <b>Preferences</b> command:</p>

<div style="text-align:center;"><img src="static/zotero_menu.png" width="200" alt="zotero menu"/></div>
开发者ID:rdmpage,项目名称:bioguid,代码行数:31,代码来源:zotero.php

示例9: display_bhl_result_html

function display_bhl_result_html($referent, $hits)
{
    global $config;
    header("Content-type: text/html; charset=utf-8\n\n");
    echo html_html_open();
    echo html_head_open();
    echo html_title('Reference Finder - ' . $config['site_name']);
    echo html_include_css('css/main.css');
    echo html_include_css('css/lightbox.css');
    echo html_include_script('js/fadeup.js');
    echo html_include_script('js/prototype.js');
    echo html_include_script('js/scriptaculous.js?load=effects,builder');
    echo html_include_script('js/lightbox.js');
    // Handle user accepting a hit
    echo '<script type="text/javascript">';
    echo 'function store(form_id, page_id)
{
var form = $(form_id);
//alert($(form).serialize());

// Update database
var success	= function(t){updateSuccess(t);}
var failure	= function(t){updateFailure(t);}

var url = "update.php";
var pars = $(form).serialize() + "&PageID=" + page_id;
var myAjax = new Ajax.Request(url, {method:"post", postBody:pars, onSuccess:success, onFailure:failure});
}

function updateSuccess (t)
{
var s = t.responseText.evalJSON();
//alert(t.responseText);
if (s.is_valid)
{
// we\'ve stored reference, so reload page, which will redirect us to page for reference
window.location.reload(true);
}
else
{
// User did not pass recaptcha so refresh it
Recaptcha.create("' . $config['recaptcha_publickey'] . '",
	"recaptcha_div", {
	theme: "clean",
	callback: Recaptcha.focus_response_field
});
//fadeUp($(recaptcha_div),255,255,153);
}
}

function updateFailure (t)
{
	var s = t.responseText.evalJSON();
	alert("Badness happened:\\n" + t.responseText);
}';
    // Based on http://ne0phyte.com/blog/2008/09/02/javascript-keypress-event/
    // and http://blog.evandavey.com/2008/02/how-to-capture-return-key-from-field.html
    // I want to capture enter key press in recaptcha to avoid submitting the form (user must click
    // on button for that). We listen for keypress and eat it. Note that we attach the listener after
    // the window has loaded.
    echo 'function onMyTextKeypress(event)
{
if (Event.KEY_RETURN == event.keyCode) 
{
// do something usefull
//alert(\'Enter key was pressed.\');		
Event.stop(event);
}
return;
}
Event.observe(window, \'load\', function() {
Event.observe(\'recaptcha_response_field\', \'keypress\', onMyTextKeypress);
});';
    echo '</script>';
    echo html_head_close();
    echo html_body_open();
    echo html_page_header(false);
    echo '<h1>Reference Finder results</h1>';
    if (count($hits) != 0) {
        echo '<form id="metadata_form" action=\'#\'>';
        // referent metadata (hidden). By populating form we can pass metadata to
        // update.php via Ajax call
        echo reference_hidden_form($referent);
        echo '<table border="0" cellpadding="10">';
        foreach ($hits as $hit) {
            echo '<tr>';
            // Thumbnail of page
            echo '<td valign="top">';
            echo '<a href="bhl_image.php?PageID=' . $hit->PageID . '" rel="lightbox">';
            echo '<img style="border:1px solid rgb(128,128,128);" src="bhl_image.php?PageID=' . $hit->PageID . '&amp;thumbnail" alt="page thumbnail"/>';
            echo '</a>';
            echo '</td>';
            // Details of match
            echo '<td valign="top">';
            echo '<div style="margin-bottom:4px;">' . $hit->snippet . '</div>';
            echo "<div><span>Title match score = " . $hit->score . "</span></div>";
            echo '<div><span>BHL PageID </span><a href="http://www.biodiversitylibrary.org/page/' . $hit->PageID . '">' . $hit->PageID . '</a></div>';
            // Action
            echo '<br/><span style="padding:2px;cursor:pointer;background-color:#2D7BB2;color:white;font-size:18px;font-family:Arial;text-align:center" onclick="store(\'metadata_form\', \'' . $hit->PageID . '\');">&nbsp;Click here to accept this match&nbsp;</span>';
            echo '</td>';
//.........这里部分代码省略.........
开发者ID:rdmpage,项目名称:bioguid,代码行数:101,代码来源:openurl.php

示例10: DisplayHtmlContent

 function DisplayHtmlContent()
 {
     global $config;
     echo html_page_header(true, '', 'name');
     echo '<h1>' . $this->GetTitle() . '</h1>';
     if (count($this->object->specimens) == 0) {
         echo '<p>No specimens with this code</p>';
     } else {
         // What articles have this specimen?
         echo '<h2>References in BioStor with this specimen</h2>';
         $refs = specimens_references_with_code($this->code);
         //print_r($refs);
         foreach ($refs as $occurrenceID => $ref_list) {
             if ($occurrenceID != 0) {
                 echo '<p>GBIF occurrence <a class="gbif" href="http://data.gbif.org/occurrences/' . $occurrenceID . '/" target="_new">' . $occurrenceID . '</a>';
                 $datasetID = specimens_dataset_from_occurrence($occurrenceID);
                 $dataset = specimens_dataset($datasetID);
                 echo ' from dataset <a href="gbif_dataset.php?datasetID=' . $dataset->datasetID . '">' . $dataset->dataResourceName . ' (' . $dataset->providerName . ')' . '</a>';
                 echo '</p>';
                 $occurrence = specimens_from_occurrenceID($occurrenceID);
                 echo '<p>' . $occurrence->scientificName . ' (' . join(':', $occurrence->lineage) . ')' . '</p>';
             } else {
                 echo '<p>(specimen not known in GBIF)</p>';
             }
             echo '<table cellspacing="0" cellpadding="2" width="100%">';
             foreach ($ref_list as $reference_id) {
                 $reference = db_retrieve_reference($reference_id);
                 echo '<tr';
                 if (in_array($reference_id, $act_refs)) {
                     echo ' style="background-color:#D8F3C9;"';
                 }
                 echo '>';
                 if ($reference->PageID != 0) {
                     $image = bhl_fetch_page_image($reference->PageID);
                     $imageURL = $image->thumbnail->url;
                 } else {
                     // if it's an article we could use journal image
                     $imageURL = 'http://bioguid.info/issn/image.php?issn=' . $reference->issn;
                 }
                 echo '<td valign="top"><img style="border:1px solid rgb(192,192,192);" src="' . $imageURL . '" width="40" />';
                 echo '</td>';
                 echo '<td valign="top">';
                 echo '<a href="' . $config['web_root'] . 'reference/' . $reference_id . '">' . $reference->title . '</a><br/>';
                 echo '<span>' . reference_authors_to_text_string($reference);
                 if (isset($reference->year)) {
                     echo ' (' . $reference->year . ')';
                 }
                 echo ' ' . reference_to_citation_text_string($reference) . '</span>';
                 echo ' ' . reference_to_coins($reference);
                 if (0) {
                     echo '<div>';
                     echo bhl_pages_with_name_thumbnails($reference_id, $this->object->NameBankID);
                     echo '</div>';
                 }
                 echo '</td>';
                 echo '</tr>';
             }
             echo '</table>';
         }
     }
 }
开发者ID:rdmpage,项目名称:bioguid,代码行数:61,代码来源:display_specimen.php

示例11: main


//.........这里部分代码省略.........
        }
        //------------------------------------------------------------------------------------------
        if ($xsl_filename != '') {
            $xp = new XsltProcessor();
            $xsl = new DomDocument();
            $xsl->load($xsl_filename);
            $xp->importStylesheet($xsl);
            $html = $xp->transformToXML($dom);
        } else {
            $html .= '<p/>';
            $html .= '<div style="padding:10px;background:white;-webkit-border-radius:10px;">';
            $html .= '<pre class="brush:xml">' . htmlentities($dom->saveXML(), ENT_COMPAT, 'UTF-8') . '</pre>';
            $html .= '</div>';
        }
        // Display...
        header("Content-type: text/html; charset=utf-8\n\n");
        echo html_html_open();
        echo html_head_open();
        echo html_title($topic_title);
        echo html_include_css('css/main.css');
        echo html_include_script('js/prototype.js');
        echo html_include_script('js/lookahead.js');
        echo html_include_script('js/browse.js');
        // RDF display
        echo html_include_script('js/shCore.js');
        echo html_include_script('js/shBrushXml.js');
        echo html_include_css('css/shCore.css');
        echo html_include_css('css/shThemeDefault.css');
        echo html_head_close();
        echo html_body_open();
        //echo html_page_header(true, $uri);
        echo '<div id="container">' . "\n";
        echo '   <div id="banner">' . "\n";
        echo html_page_header(true, $uri);
        echo '   </div>' . "\n";
        /*echo '<div id="nav">';
        		echo '   </div>' . "\n";
        		echo '<div id="content">';
        		echo 'xxxxxx';
        		echo '   </div>' . "\n"; */
        /*		echo '<div class="main">';
        		
        		echo '<div class="maincontent">';
        		echo '<div class="maincontent_border">'; */
        if (1) {
            echo $html;
        } else {
            ?>
<div id="nav">
  <div>
    <b>On the Web</b>
    <br>
    <ul type="square">
      <li>
        <a href="http://dx.doi.org/10.1073/pnas.0907926106" target="_new">doi:10.1073/pnas.0907926106</a>
      </li>
    </ul>
    <b>Post to:</b>
    <br>
    <ul type="square">
      <li>Citeulike</li>
      <li>Connotea</li>
      <li>Mendeley</li>
    </ul>
  </div>
</div>
开发者ID:rdmpage,项目名称:bioguid,代码行数:67,代码来源:get.php

示例12: dirname

<?php

// list all GBIF datasets
require_once dirname(dirname(__FILE__)) . '/db.php';
require_once dirname(__FILE__) . '/html.php';
header("Content-type: text/html; charset=utf-8\n\n");
echo html_html_open();
echo html_head_open();
echo html_title('GBIF datasets  - ' . $config['site_name']);
echo html_head_close();
echo html_body_open();
echo html_page_header(true);
echo '<h1>GBIF datasets with occurrences in BioStor</h1>';
echo '<table width="50%" cellpadding="2">';
echo '<tr><th>Dataset</th><th>Count</th></tr>';
$sql = 'select count(occurrenceID) as c, datasetID, dataResourceName, providerName 
from rdmp_reference_specimen_joiner 
inner join rdmp_specimen using (occurrenceID) 
inner join rdmp_gbif_dataset USING(datasetID)
group by datasetID 
order by c DESC';
$sql = 'select count(occurrenceID) as c, datasetID
from rdmp_reference_specimen_joiner 
inner join rdmp_specimen using (occurrenceID) 
group by datasetID 
order by c DESC';
$result = $db->Execute($sql);
if ($result == false) {
    die("failed [" . __FILE__ . ":" . __LINE__ . "]: " . $sql);
}
while (!$result->EOF) {
开发者ID:rdmpage,项目名称:bioguid,代码行数:31,代码来源:gbif_data.php

示例13: html_window_title

$page_number = $s_display_options['page_number'];
$filter_per_page = $s_display_options['filter']['per_page'];
$filter_bug_status = $s_display_options['filter']['status'];
$filter_bug_category = $s_display_options['filter']['category'];
$filter_bug_component = $s_display_options['filter']['component'];
$filter_reported_by = $s_display_options['filter']['reported_by'];
$filter_assigned_to = $s_display_options['filter']['assigned_to'];
$filter_assigned_to_dev = $s_display_options['filter']['assigned_to_developer'];
$filter_found_in_rel = $s_display_options['filter']['found_in_release'];
$filter_assigned_to_rel = $s_display_options['filter']['assigned_to_release'];
$filter_view_closed = $s_display_options['filter']['view_closed'];
$filter_search = $s_display_options['filter']['bug_search'];
html_window_title();
html_print_body();
html_page_title("Exercise");
html_page_header($db, "no project");
html_print_menu();
error_report_check($_GET);
print "<br>";
print "<form method='post' action='{$page}' name='bug_form'>" . NEWLINE;
print "<div align=center>" . NEWLINE;
html_print_bug_filter($project_id, $filter_bug_status, $filter_bug_category, $filter_bug_component, $filter_reported_by, $filter_assigned_to, $filter_assigned_to_dev, $filter_found_in_rel, $filter_assigned_to_rel, $filter_per_page, $filter_view_closed, $filter_search, $filter_jump);
print "<br>" . NEWLINE;
util_set_order_by($order_by, $_GET);
util_set_order_dir($order_dir, $_GET);
util_set_page_number($page_number, $_GET);
util_set_order_by($order_by, $_POST);
util_set_order_dir($order_dir, $_POST);
util_set_page_number($page_number, $_POST);
function exercise($project_id, $page_number = 0, $order_by = BUG_ID, $order_dir = "DESC", $bug_status = "", $category = "", $component = "", $reported_by = "", $assigned_to = "", $assigned_to_developer = "", $found_in_release = "", $assigned_to_release = null, $per_page = null, $view_closed = 'No', $search = "", $jump = "", $csv_name = null)
{
开发者ID:nourchene-benslimane,项目名称:rth_backup,代码行数:31,代码来源:exercise.php

示例14: DisplayHtmlContent

 function DisplayHtmlContent()
 {
     global $config;
     echo html_page_header(true, '', 'name');
     echo '<h1>' . $this->GetTitle() . '</h1>';
     echo '<h2>Identifiers</h2>';
     echo '<ul>';
     if ($this->object->NameBankID != 0) {
         echo '<li>' . 'urn:lsid:ubio.org:namebank:' . $this->object->NameBankID . '</li>';
     }
     echo '</ul>';
     // Taxon name (nomenclators)
     $acts = acts_for_namestring($this->GetTitle());
     $act_refs = references_for_acts_for_namestring($this->GetTitle());
     if (count($acts) > 0) {
         echo '<h2>Taxonomic names</h2>';
         echo '<ul>';
         foreach ($acts as $tn) {
             echo '<li>' . $tn->global_id . '</li>';
         }
         echo '</ul>';
     }
     $col = col_accepted_name_for($this->GetTitle());
     if (isset($col->name)) {
         echo '<h2>Catalogue of Life accepted name</h2>' . "\n";
         echo '<p>';
         echo '<span><a href="' . $config['web_root'] . 'name/' . $col->name . '">' . $col->name . '</a>' . ' ' . $col->author . '</span>';
         echo '</p>' . "\n";
         // Synonyms
         $col_synonyms = col_synonyms_for_namecode($col->name_code);
         if (count($col_synonyms) != 0) {
             echo '<h3>Synonyms</h3>' . "\n";
             echo '<ul>' . "\n";
             foreach ($col_synonyms as $s) {
                 echo '<li><a href="' . $config['web_root'] . 'name/' . $s->name . '">' . $s->name . '</a> ' . $s->author . '</li>' . "\n";
             }
             echo '</ul>' . "\n";
         }
     }
     if (1) {
         /*
         // What pages have this name? (BHL timeline)
         $hits = bhl_name_search($this->object->NameBankID);
         if (count($hits) > 0)
         {
         	echo '<h2>BHL</h2>' . "\n";		
         	echo '<h3>Distribution of name in BHL</h3>';		
         	echo '<div>' . "\n";
         	echo '   <img src="' . sparkline_bhl_name($hits, 360,100) . '" alt="sparkline" />' . "\n";
         	echo '</div>' . "\n";
         }
         else
         {
         	//echo '<p>Name not found in BHL</p>';
         }
         */
         // What articles have this name?
         echo '<hr />';
         echo '<h2>References in BioStor</h2>';
         //		echo '<p><img src="/images/star.png"> indicates reference that publishes a "nomenclatural act", such as publishing the name.</p>';
         echo '<div>';
         echo '<div style="display:inline;border:1px solid rgb(192,192,192);background-color:#D8F3C9;width:20px;height:20px;">&nbsp;&nbsp;&nbsp;&nbsp;</div>';
         echo '&nbsp;Reference contains nomenclatural act, such as publishing the name';
         echo '</div>';
         echo '<p />';
         // Find using BHL bhl_page_name index
         //$refs = bhl_references_with_name($this->object->NameBankID);
         $refs = bhl_references_with_namestring($this->GetTitle());
         // Merge with references from nomenclators
         $refs = array_merge($refs, $act_refs);
         $refs = array_unique($refs);
         //print_r($refs);
         if (count($refs) == 0) {
             echo '<p>[No references]</p>';
         }
         /*		
         		echo '<ul class="reference-list">';
         		foreach($refs as $reference_id)
         		{
         			$reference = db_retrieve_reference ($reference_id);
         			echo '<li ';
         			
         			if (in_array($reference_id, $act_refs))
         			{
         				echo 'class="act"';
         			}
         			else
         			{
         				echo 'class="default"';
         			}
         			echo '>';
         			echo '<a href="' . $config['web_root'] . 'reference/' . $reference_id . '">' . $reference->title . '</a><br/>';
         			echo '<span style="color:green;">' . reference_authors_to_text_string($reference);
         			if (isset($reference->year))
         			{
         				echo ' (' . $reference->year . ')';
         			}
         			echo ' ' . reference_to_citation_text_string($reference) . '</span>';
         			echo ' ' . reference_to_coins($reference);
         			
//.........这里部分代码省略.........
开发者ID:rdmpage,项目名称:bioguid,代码行数:101,代码来源:display_name.php

示例15: html_page_header

<?php

/*
 * Downloads Page for ScummVM
 * by Jeremy Newman <jnewman@dracowulf.com>
 *
 */
// set this for position of this file relative
$file_root = "..";
// load libraries
require $file_root . "/include/" . "incl.php";
// start of html
html_page_header("ScummVM :: Website Revamp contest poll");
//display welcome table
html_content_begin('Website Revamp contest poll');
?>
  <div class="par-item">
    <div class="par-head">
       Website Revamp contest poll
    </div>

    <div class="par-content">
	<h1>Website Revamp contest poll -- closed, draven declared winner</h1>
	
	<p>The three finalists of the website revamp contest can be seen here. The contest was won by draven, you can see the final standings below</p>
	
	<center>
	<table cellpadding="10" cellspacing="10">
	<tr>
	<td align="center"><a href="arturom.jpg" target="_blank"><img src="arturom-thumb.jpg" height="120" width="120" alt="arturom"><br>arturom</a></td>
	<td align="center"><a href="draven.jpg" target="_blank"><img src="draven-thumb.jpg" height="120" width="120" alt="draven"><br>draven</a></td>
开发者ID:rootfather,项目名称:scummvm-web,代码行数:31,代码来源:index.php


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