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


PHP caNavLink函数代码示例

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


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

示例1: caExportAddDownloadLink

function caExportAddDownloadLink($po_request)
{
    print "<script type='text/javascript'>";
    print "jQuery('#exportDownloadLink').html(\"" . caNavLink($po_request, _t("Set up export download"), null, 'manage', 'MetadataExport', 'SetupBatchExport', null, array('style' => 'font-size: 14px;')) . "\");";
    print "</script>";
    caFlushOutput();
}
开发者ID:idiscussforum,项目名称:providence,代码行数:7,代码来源:export_results_html.php

示例2: caExportAddDownloadLink

function caExportAddDownloadLink($po_request, $vs_filename)
{
    print "<script type='text/javascript'>";
    print "jQuery('#exportDownloadLink').html(\"" . caNavLink($po_request, _t("Download export"), null, 'manage', 'MetadataExport', 'DownloadExport', array('file' => $vs_filename), array('style' => 'font-size: 14px;')) . "\");";
    print "</script>";
    caFlushOutput();
}
开发者ID:guaykuru,项目名称:pawtucket,代码行数:7,代码来源:export_results_html.php

示例3: switch

            ?>
</div>
<?php 
        } else {
            if (!is_array($va_facet_info['content']) || !sizeof($va_facet_info['content'])) {
                continue;
            }
            print "<H5>" . $va_facet_info['label_singular'] . "</H5>";
            switch ($va_facet_info["group_mode"]) {
                case "alphabetical":
                case "list":
                default:
                    $vn_facet_size = sizeof($va_facet_info['content']);
                    $vn_c = 0;
                    foreach ($va_facet_info['content'] as $va_item) {
                        print "<div>" . caNavLink($this->request, $va_item['label'], '', '*', '*', '*', array('key' => $vs_key, 'facet' => $vs_facet_name, 'id' => $va_item['id'], 'view' => $vs_view)) . "</div>";
                        $vn_c++;
                        if ($vn_c == $vn_facet_display_length_initial && $vn_facet_size > $vn_facet_display_length_initial && $vn_facet_size <= $vn_facet_display_length_maximum) {
                            print "<div id='{$vs_facet_name}_more' style='display: none;'>";
                        } else {
                            if ($vn_c == $vn_facet_display_length_initial && $vn_facet_size > $vn_facet_display_length_maximum) {
                                break;
                            }
                        }
                    }
                    if ($vn_facet_size > $vn_facet_display_length_initial && $vn_facet_size <= $vn_facet_display_length_maximum) {
                        print "</div>\n";
                        $vs_link_open_text = _t("and %1 more", $vn_facet_size - $vn_facet_display_length_initial);
                        $vs_link_close_text = _t("close", $vn_facet_size - $vn_facet_display_length_initial);
                        print "<div><a href='#' class='more' id='{$vs_facet_name}_more_link' onclick='jQuery(\"#{$vs_facet_name}_more\").slideToggle(250, function() { jQuery(this).is(\":visible\") ? jQuery(\"#{$vs_facet_name}_more_link\").text(\"" . addslashes($vs_link_close_text) . "\") : jQuery(\"#{$vs_facet_name}_more_link\").text(\"" . addslashes($vs_link_open_text) . "\")}); return false;'><em>{$vs_link_open_text}</em></a></div>";
                    } elseif ($vn_facet_size > $vn_facet_display_length_initial && $vn_facet_size > $vn_facet_display_length_maximum) {
开发者ID:ffarago,项目名称:pawtucket2,代码行数:31,代码来源:browse_refine_subview_html.php

示例4: caNavLink

?>
	
	
	<div id="newsList" style="width:200px; margin-top:30px;">
		<div class="item detail">
<?php 
#		print $this->render('Splash/splash_intro_text_html.php');
?>
 

		</div>			


			
		<div class="item detail"><div class="description" style="margin-top:20px;"><?php 
print caNavLink($this->request, '<img src="' . $this->request->getThemeUrlPath(true) . '/graphics/feed.gif" border="0" title="' . _t('Get alerted to newly added items by RSS') . '" width="14" height="14"/> ' . _t('Get alerted to newly added items by RSS'), '', '', 'Feed', 'recentlyAdded');
?>
</div></div>
	</div>
	

<?php 
TooltipManager::add('#splashRandomObject', $this->getVar("random_object_medium") . "<br/><div class='tooltipCaption'>" . $this->getVar('random_object_title') . "</div>");
TooltipManager::add('#splashRecentlyViewed', $this->getVar("recently_viewed_medium") . "<br/><div class='tooltipCaption'>" . $this->getVar('recently_viewed_title') . "</div>");
TooltipManager::add('#splashRecentlyAdded', $this->getVar("recently_added_medium") . "<br/><div class='tooltipCaption'>" . $this->getVar('recently_added_title') . "</div>");
?>
<!--<script type="text/javascript">
$(document).ready(function() {
   $('#hpFeatured').cycle({
               fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
               speed:  1000,
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:splash_html.php

示例5: array

 *
 * ----------------------------------------------------------------------
 */
$vo_result = $this->getVar('result');
$vn_items_per_page = $this->getVar('current_items_per_page');
if ($vo_result) {
    print '<div id="placeResults">';
    $vn_item_count = $vn_items_output = 0;
    $va_tooltips = array();
    $t_list = new ca_lists();
    while ($vn_items_output < $vn_items_per_page && $vo_result->nextHit()) {
        $vs_idno = $vo_result->get('ca_places.idno');
        $vs_class = "";
        $vn_item_count++;
        $vn_items_output++;
        if ($vn_item_count == 2) {
            $vs_class = "resultBg";
            $vn_item_count = 0;
        }
        $vn_place_id = $vo_result->get('ca_places.place_id');
        $va_labels = $vo_result->getDisplayLabels($this->request);
        print "<div" . ($vs_class ? " class='{$vs_class}'" : "") . ">";
        print caNavLink($this->request, join($va_labels, "; "), '', 'Detail', 'Place', 'Show', array('place_id' => $vn_place_id));
        if ($vs_idno) {
            print ", " . $vs_idno;
        }
        print "</div>\n";
        $vn_item_count++;
    }
    print "</div>\n";
}
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_places_results_full_html.php

示例6: _t

# --- make column on right with all sets
if (sizeof($va_set_list) > 1) {
    ?>
	<div id="allSets"><H3><?php 
    print _t("More Galleries");
    ?>
</H3>
<?php 
    foreach ($va_set_list as $vn_set_id => $va_set_info) {
        if ($vn_set_id == $t_set->get("set_id")) {
            continue;
        }
        print "<div class='setInfo'>";
        $va_item = $va_first_items_from_sets[$vn_set_id][array_shift(array_keys($va_first_items_from_sets[$vn_set_id]))];
        print "<div class='setImage'>" . caNavLink($this->request, $va_item["representation_tag"], '', 'simpleGallery', 'Show', 'displaySet', array('set_id' => $vn_set_id)) . "</div><!-- end setImage -->";
        print "<div class='setTitle'>" . caNavLink($this->request, strlen($va_set_info["name"]) > 120 ? substr($va_set_info["name"], 0, 120) . "..." : $va_set_info["name"], '', 'simpleGallery', 'Show', 'displaySet', array('set_id' => $vn_set_id)) . "</div>";
        print "<div style='clear:left; height:1px;'><!-- empty --></div><!-- end clear --></div><!-- end setInfo -->";
    }
    ?>
	</div><!-- end allSets -->
<?php 
}
# --- selected set info - descriptiona dn grid of items with links to open panel with more info
?>
	<H1><?php 
print $this->getVar('set_title');
?>
</H1>
<?php 
print "<div id='setItemsGrid'>";
if ($vs_set_description = $this->getVar('set_description')) {
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:set_info_html.php

示例7: OccurrenceSearch

						{{{_fulltext%width=220px&height=100px}}}
					</div>

					<br style="clear: both;"/>

					<div style="float: right; margin-left: 20px;">{{{reset%label=Reset}}}</div>
					<div style="float: right;">{{{submit%label=Search}}}</div>
				{{{/form}}}
				<div class='clearfix'></div>
			</div>
		</div><!--end col-sm-8-->
		<div class="col-sm-6">
			<div class="exhibitions">
				<h1>Glenstone Exhibitions</h1>
<?php 
$o_exhibition_search = new OccurrenceSearch();
$o_exhibition_search->setTypeRestrictions(array('exhibition'));
$qr_exhibitions = $o_exhibition_search->search("*", array('checkAccess' => $va_access_values, 'sort' => 'ca_occurrences.exh_dates', 'sort_direction' => 'desc'));
if ($qr_exhibitions->numHits()) {
    while ($qr_exhibitions->nextHit()) {
        print "<div class='exhibition'>" . caNavLink($this->request, $qr_exhibitions->get('ca_occurrences.preferred_labels'), '', '', 'Detail', 'occurrences/' . $qr_exhibitions->get('ca_occurrences.occurrence_id')) . "</div>";
    }
}
?>
			
			</div>
		</div> <!--end col-sm-4-->	
	</div><!--end row-->
</div> <!--end container-->

开发者ID:ffarago,项目名称:pawtucket2,代码行数:29,代码来源:ca_objects_advanced_search_artworks_html.php

示例8: caClientServicesFormatMessageSummary

/**
 * Formats communication for display in messages list
 *
 * @param RequestHTTP $po_request
 * @param array $pa_data
 * @param array $pa_options
 *		viewContentDivID = 
 *		additionalMessages =
 *		isAdditionalMessage =
 *
 * @return string 
 */
function caClientServicesFormatMessageSummary($po_request, $pa_data, $pa_options = null)
{
    $vb_is_additional_message = (bool) (isset($pa_options['isAdditionalMessage']) && $pa_options['isAdditionalMessage']);
    $vb_is_unread = !(bool) $pa_data['read_on'];
    $vs_unread_class = $vb_is_unread ? "caClientCommunicationsMessageSummaryUnread" : "";
    if ($pa_data['source'] == __CA_COMMERCE_COMMUNICATION_SOURCE_INSTITUTION__) {
        $vb_is_unread = false;
        $vs_unread_class = '';
    }
    // institution-sent messages are never unread in Providence
    if ($vb_is_additional_message) {
        $vs_class = $vb_is_unread ? "caClientCommunicationsAdditionalMessageSummary caClientCommunicationsMessageSummaryUnread" : "caClientCommunicationsAdditionalMessageSummary";
        $vs_buf = "<div class='{$vs_class}' id='caClientCommunicationsMessage_" . $pa_data['communication_id'] . "'>";
    } else {
        $vs_class = $vb_is_unread ? "caClientCommunicationsMessageSummary caClientCommunicationsMessageSummaryUnread" : "caClientCommunicationsMessageSummary";
        $vs_buf = "<div class='{$vs_class}'>";
    }
    $vs_buf .= "<div class='caClientCommunicationsMessageSummaryContainer' id='caClientCommunicationsMessage_" . $pa_data['communication_id'] . "'>";
    $vs_buf .= "<div class='caClientCommunicationsViewMessageIcon'>+</div>";
    TooltipManager::add(".caClientCommunicationsViewMessageIcon", _t("View entire message and associated media"));
    $vs_buf .= "<div class='caClientCommunicationsMessageSummaryFrom {$vs_unread_class}'><span class='caClientCommunicationsMessageSummaryHeading'>" . _t("From") . ":</span> " . caClientServicesGetSenderName($pa_data);
    $vs_buf .= $vb_is_unread ? " <img src='" . $po_request->getThemeUrlPath() . "/graphics/icons/envelope.gif' border='0'>" : "";
    $vs_buf .= "</div>";
    $vs_buf .= "<div class='caClientCommunicationsMessageSummaryDate {$vs_unread_class}'><span class='caClientCommunicationsMessageSummaryHeading'>" . _t("Date") . ":</span> " . caGetLocalizedDate($pa_data['created_on'], array('dateFormat' => 'delimited')) . "</div>";
    $vs_buf .= "<div class='caClientCommunicationsMessageSummarySubject {$vs_unread_class}'><span class='caClientCommunicationsMessageSummaryHeading'>" . _t("Subject") . ":</span> " . $pa_data['subject'] . "</div>";
    $vs_buf .= "<div class='caClientCommunicationsMessageSummaryText'>" . (mb_strlen($pa_data['message']) > 100 ? mb_substr($pa_data['message'], 0, 100) . "..." : $pa_data['message']) . "</div>";
    $vn_num_additional_messages = is_array($pa_options['additionalMessages']) ? sizeof($pa_options['additionalMessages']) : 0;
    // are there orders linked to this thread?
    if ($vn_num_orders = sizeof($va_order_ids = ca_commerce_orders::getOrderIDsForTransaction($pa_data['transaction_id']))) {
        $vs_buf .= "<div class='caClientCommunicationsMessageSummaryThreadButton'>" . caNavLink($po_request, ($vn_num_orders == 1 ? _t('%1 order', $vn_num_orders) : _t('%1 orders', $vn_num_orders)) . " &rsaquo;", 'button', 'client', 'Orders', 'Index', array('transaction_id' => $pa_data['transaction_id'])) . "</div>\n";
    }
    if ($vn_num_additional_messages) {
        $vs_buf .= "<div class='caClientCommunicationsMessageSummaryThreadButton' id='caClientCommunicationsMessageAdditionalCount" . $pa_data['communication_id'] . "'><a href='#' onclick='jQuery(\"#caClientCommunicationsMessageAdditional" . $pa_data['communication_id'] . "\").slideToggle(250, function(){ if(jQuery(\"#caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "\").html() == \"" . _t("view thread") . " &rsaquo;\") {jQuery(\"#caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "\").html(\"" . _t("hide thread") . " &rsaquo;\")}else{jQuery(\"#caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "\").html(\"" . _t("view thread") . " &rsaquo;\")}}); return false;' id='caClientCommunicationsMessageViewThread" . $pa_data['communication_id'] . "' class='button'>" . _t("view thread") . " &rsaquo;</a></div>\n";
    }
    $vs_buf .= "</div>";
    if ($vn_num_additional_messages) {
        $vs_buf .= "<div class='caClientCommunicationsMessageAdditional' id='caClientCommunicationsMessageAdditional" . $pa_data['communication_id'] . "'>";
        $pa_additional_options = $pa_options;
        unset($pa_additional_options['additionalMessages']);
        $pa_additional_options['isAdditionalMessage'] = true;
        foreach ($pa_options['additionalMessages'] as $va_additional_message) {
            $vs_buf .= caClientServicesFormatMessageSummary($po_request, $va_additional_message, $pa_additional_options);
        }
        $vs_buf .= "</div>";
    }
    $vs_buf .= "</div>\n";
    return $vs_buf;
}
开发者ID:idiscussforum,项目名称:providence,代码行数:60,代码来源:clientServicesHelpers.php

示例9: _t

					</div><!-- end unit -->
<?php 
        TooltipManager::add("#subject", "<div class='infoTooltip'>Term(s) identifying what the work or collection is about.</div>");
    }
    # --- places
    $va_geoferences = $t_occurrence->getAttributesByElement('georeference');
    if (is_array($va_geoferences) && sizeof($va_geoferences) > 0) {
        print "\n<div class='unit'><div class='infoButton' id='place'><img src='" . $this->request->getThemeUrlPath() . "/graphics/nhf/b_info.gif' width='14' height='14' border='0' style='vertical-align:sub;'></div><div class='heading'>" . _t("Place(s)") . "</div>";
        $o_map = new GeographicMap(390, 300, 'map');
        $o_map->mapFrom($t_occurrence, 'georeference');
        print "<div class='collectionMap'>" . $o_map->render('HTML') . "</div>";
        print "<div class='collectionMapLabel'>";
        foreach ($va_geoferences as $o_georeference) {
            foreach ($o_georeference->getValues() as $o_value) {
                $va_coord = $o_value->getDisplayValue(array('coordinates' => true));
                print caNavLink($this->request, trim($va_coord['label']), '', '', 'Browse', 'clearAndAddCriteria', array('target' => 'ca_collections', 'facet' => 'geoloc_facet', 'id' => trim($va_coord['label'])));
            }
            print "<br/>";
        }
        print "</div>";
        print "</div><!-- end unit -->";
    }
    # --- rights
    if ($vs_tmp = $t_occurrence->get("ca_occurrences.RightsSummaryNHF.NHFRightsSummaryPub", array('convertCodesToDisplayText' => true))) {
        print "\n<div class='unit'><div class='infoButton' id='rights'><img src='" . $this->request->getThemeUrlPath() . "/graphics/nhf/b_info.gif' width='14' height='14' border='0' style='vertical-align:sub;'></div><div class='heading'>" . _t("Rights") . "</div><div>{$vs_tmp}</div></div><!-- end unit -->";
        TooltipManager::add("#rights", "<div class='infoTooltip'>Rights description.</div>");
    }
    # --- dislay list of items associated to this occ - film
    ?>
		<div id="resultBox">
<?php 
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:ca_occurrences_detail_html.php

示例10: _t

<div id="title"><?php 
print _t("Years");
?>
</div>
<div class="browseSelectPanelContentArea">
	<div class="browseSelectPanelList">
		<table class='browseSelectPanelListTable'>

<?php 
$i = 1;
for ($vn_year = 1904; $vn_year <= 1988; $vn_year++) {
    if ($i == 1) {
        print "<tr>";
    }
    print "<td>" . caNavLink($this->request, $vn_year, 'browseSelectPanelLink', 'Chronology', 'Detail', '', array('year' => $vn_year)) . "</td>";
    if ($i == 5) {
        print "</tr>";
        $i = 0;
    }
    $i++;
}
if ($i > 1) {
    while ($i <= 5) {
        print "<td>x</td>";
        $i++;
    }
    print "</tr>";
}
?>
	
	</table></div><!-- end browseSelectPanelList -->
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:years_list_html.php

示例11: caBatchMetadataExportInspector

/**
 * Generates standard-format inspector panels for exporters
 *
 * @param View $po_view Inspector view object
 *
 * @return string HTML implementing the inspector
 */
function caBatchMetadataExportInspector($po_view)
{
    $vs_color = "444444";
    $vs_buf .= "<h3 class='nextPrevious'>" . caNavLink($po_view->request, _t('Back to list'), '', 'manage', 'MetadataExport', 'Index', $pa_other_params = null, $pa_attributes = null) . "</h3>";
    $vs_buf .= "<h4><div id='caColorbox' style='border: 6px solid #{$vs_color}; padding-bottom:15px;'>\n";
    $vs_buf .= "<strong>" . _t("Batch export metadata") . "</strong>\n";
    $t_item = $po_view->getVar("t_item");
    $vs_buf .= "<p>" . _t("Selected exporter") . ":<br />" . $t_item->getLabelForDisplay() . "</p>";
    $vs_buf .= "</div></h4>\n";
    return $vs_buf;
}
开发者ID:ffarago,项目名称:pawtucket2,代码行数:18,代码来源:displayHelpers.php

示例12: caNavLink

<?php

if (!$this->request->isAjax()) {
    ?>
		<div style="clear:both; height:1px;"><!-- empty --></div></div><!-- end pageArea -->
		<div id="footer"><div class="width">
			<a href="http://www.hsp.org">&copy 2012 Historial Society of Pennsylvania</a>|<a href="http://www.hsp.org/default.aspx?id=135">Licensing Information</a>|<?php 
    print caNavLink($this->request, _t("Contact Us"), "", "", "About", "contact");
    if (!$this->request->config->get('dont_allow_registration_and_login')) {
        if ($this->request->isLoggedIn()) {
            print "|" . caNavLink($this->request, _t("Logout"), "", "", "LoginReg", "logout");
        }
    }
    ?>
		</div><!-- width --></div><!-- end footer -->
<?php 
}
print TooltipManager::getLoadHTML();
?>
	<div id="caMediaPanel"> 
		<div id="close"><a href="#" onclick="caMediaPanel.hidePanel(); return false;">&nbsp;&nbsp;&nbsp;</a></div>
		<div id="caMediaPanelContentArea">
		
		</div>
	</div>
	<script type="text/javascript">
	/*
		Set up the "caMediaPanel" panel that will be triggered by links in object detail
		Note that the actual <div>'s implementing the panel are located here in views/pageFormat/pageFooter.php
	*/
	var caMediaPanel;
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:pageFooter.php

示例13: foreach

    foreach ($va_raw_date as $id => $raw_date) {
        $va_the_date = $raw_date['date']['start'];
        print caNavLink($this->request, caGetLocalizedHistoricDateRange($raw_date['date']['start'], $raw_date['date']['end']), '', '', 'Search', 'objects/search/ca_objects.date:' . substr($va_the_date, 0, 4)) . "<br/>";
    }
}
?>
			
				{{{<ifdef code="ca_objects.isbn"><H6>ISBN:</H6>^ca_objects.isbn<br/></ifdef>}}}			
				{{{<ifdef code="ca_objects.copies"><H6>Copies:</H6>^ca_objects.copies<br/></ifdef>}}}							
				{{{<ifdef code="ca_objects.printing"><H6>Printing:</H6>^ca_objects.printing<br/></ifdef>}}}							
				{{{<ifdef code="ca_objects.length"><H6>Length:</H6>^ca_objects.length<br/></ifdef>}}}							
<?php 
if ($va_languages = $t_object->get('ca_objects.language', array('returnAsArray' => true, 'convertCodesToDisplayText' => true))) {
    print "<H6>Language:</H6>";
    foreach ($va_languages as $va_id => $va_language) {
        print caNavLink($this->request, $va_language['language'], '', '', 'Search', 'objects/search/ca_objects.language:' . $va_language['language']) . "<br/>";
    }
}
?>
				
													
				{{{<ifcount min="1" code="ca_objects.website"><H6>Website:</H6><unit delimiter="<br/>"><a href='^ca_objects.website' target='_blank'>^ca_objects.website</a></unit></ifdef>}}}			
		
					
				{{{<ifdef code="ca_objects.number_of_copies"><H6>Number of Copies:</H6>^ca_objects.number_of_copies<br/></ifdef>}}}			
				
				{{{<ifdef code="ca_objects.description">
					<span class="trimText">^ca_objects.description</span>
				</ifdef>}}}
				{{{<ifdef code="ca_objects.series"><H6>Series:</H6>^ca_objects.series<br/></ifdef>}}}
				
开发者ID:kai-iak,项目名称:pawtucket2,代码行数:30,代码来源:ca_objects_default_html.php

示例14: _t

            }
            ?>
					</div><!-- end refineBrowse -->
<?php 
        }
        $vn_x = 0;
        print "<div id='browseCriteria'><span class='criteriaHeading'>" . _t("You browsed for: ") . "</span>";
        foreach ($va_criteria as $vs_facet_name => $va_row_ids) {
            $vn_x++;
            $vn_row_c = 0;
            foreach ($va_row_ids as $vn_row_id => $vs_label) {
                print "{$vs_label}" . caNavLink($this->request, 'x', 'close', $this->request->getModulePath(), $this->request->getController(), 'removeCriteria', array('facet' => $vs_facet_name, 'id' => urlencode($vn_row_id))) . "\n";
                $vn_row_c++;
            }
        }
        print caNavLink($this->request, _t('start new search') . " &rsaquo;", 'startOver', $this->request->getModulePath(), $this->request->getController(), 'clearCriteria', array());
        print "</div><!-- end browseCriteria -->\n";
        print "</div><!-- end browseControls -->";
    } else {
        if (sizeof($va_facets)) {
            print "<div class='startBrowsingBy'>" . _t("Start browsing by:") . "</div>";
            print "<div id='facetList'>";
            $va_available_facets = $this->getVar('available_facets');
            $i = 0;
            foreach ($va_available_facets as $vs_facet_code => $va_facet_info) {
                $i++;
                $vs_style = "";
                if ($i == 4) {
                    $vs_style = "style='clear:left;'";
                    $i = 1;
                }
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:browse_controls_html.php

示例15: ResultContext

<?php 
    // get last search ('basic_search' is the find type used by the SearchController)
    $o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search');
    $vs_search = $o_result_context->getSearchExpression();
    ?>
			
				
<?php 
    print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_home.gif'  border='0'>", "", "", "", "") . "<div class='navDivide'></div>";
    print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_browse.gif'  border='0'>", "", "", "Browse", "clearCriteria") . "<div class='navDivide'></div>";
    print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_view.gif'  border='0'>", "", "", "Sets", "index") . "<div class='navDivide'></div>";
    if (!$this->request->config->get('dont_allow_registration_and_login')) {
        if ($this->request->isLoggedIn()) {
            print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_logout.gif'  border='0'>", "", "", "LoginReg", "logout");
        } else {
            print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/nav_login.gif'  border='0'>", "", "", "LoginReg", "form");
        }
    }
    ?>
			<div id="search"><form name="header_search" action="<?php 
    print caNavUrl($this->request, '', 'Search', 'Index');
    ?>
" method="get">
						<a href="#" name="searchButtonSubmit" onclick="document.forms.header_search.submit(); return false;"> > </a>
						<input type="text" name="search" value="<?php 
    print $vs_search ? $vs_search : '';
    ?>
" onclick='jQuery("#quickSearch").select();' id="quickSearch"  autocomplete="off" size="100"/>
				</form>&copy; The Noguchi Museum</div>
				
			</div><!-- end nav -->
开发者ID:guaykuru,项目名称:pawtucket,代码行数:31,代码来源:pageHeader.php


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