本文整理匯總了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();