本文整理汇总了PHP中Utilities::displayPageTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP Utilities::displayPageTitle方法的具体用法?PHP Utilities::displayPageTitle怎么用?PHP Utilities::displayPageTitle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utilities
的用法示例。
在下文中一共展示了Utilities::displayPageTitle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayPharmacyFinderMap
<?php
Utilities::displayHTMLHead();
Utilities::displaySiteHeader();
Utilities::displayBodyHead();
Utilities::displayPageTitle("Pharmacy Finder");
/* Place Page Specific Content Here */
?>
<?php
displayPharmacyFinderModule();
/* End of Page Specific Content */
Utilities::displayBodyTail();
Utilities::displayHTMLTail();
function displayPharmacyFinderMap()
{
?>
<iframe class="pharmacy_finder_map" src="https://www.google.com/maps/embed/v1/search?q=pharmacies%20near%20me&key=AIzaSyByF0PtbUJJD8npqC0vVrPXROP_PzfIMXk" allowfullscreen>
</iframe>
<script>
$('.pharmacySearch').on('input', function() {
var googlemapaddr = "https://www.google.com/maps/embed/v1/search?";
var key = "&key=AIzaSyByF0PtbUJJD8npqC0vVrPXROP_PzfIMXk";
var search = "q=pharmacies%20near%20" + $(this).val(); // get the current value of the input field.
if ($(this).val()) {
$(".pharmacy_finder_map").attr('src', googlemapaddr + search + key);
}
});
</script>
<?php
示例2:
<?php
Utilities::displayHTMLHead();
Utilities::displaySiteHeader();
Utilities::displayBodyHead();
Utilities::displayPageTitle("wuddup");
/* Place Page Specific Content Here */
/* End of Page Specific Content */
Utilities::displayBodyTail();
Utilities::displayHTMLTail();
示例3: ScriptionManager
<?php
Utilities::displayHTMLHead();
Utilities::displaySiteHeader();
Utilities::displayBodyHead();
$db = DbSingleton::getInstance();
$sm = new ScriptionManager($db);
$drug = $sm->fetchDrugById(1);
Utilities::displayPageTitle($drug->getGenericName());
displayProprietaryNames($drug->getProprietaryNamesAsArray());
/* End of Page Specific Content */
Utilities::displayBodyTail();
Utilities::displayHTMLTail();
/**
*
* @param Array<String> $names Name of drugs
*/
function displayProprietaryNames($names)
{
?>
<div>
<div class="label_druginfo">Proprietary Names:</div>
<ul class="propNamesListing_druginfo"> <?php
foreach ($names as $name) {
echo "<li>" . $name . "</li>";
}
?>
</ul>
</div>
<?php
}
示例4:
<?php
Utilities::displayHTMLHead();
Utilities::displaySiteHeader();
Utilities::displayBodyHead();
Utilities::displayPageTitle("\"Sample Title\"");
/* Place Page Content Here */
Utilities::displayBodyTail();
Utilities::displayHTMLTail();