當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Utilities::displayPageTitle方法代碼示例

本文整理匯總了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 
開發者ID:Episigma,項目名稱:scription,代碼行數:31,代碼來源:pharmacyfinder.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();
開發者ID:Episigma,項目名稱:scription,代碼行數:10,代碼來源:index.php

示例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 
}
開發者ID:Episigma,項目名稱:scription,代碼行數:31,代碼來源:druginfo.php

示例4:

<?php

Utilities::displayHTMLHead();
Utilities::displaySiteHeader();
Utilities::displayBodyHead();
Utilities::displayPageTitle("\"Sample Title\"");
/* Place Page Content Here */
Utilities::displayBodyTail();
Utilities::displayHTMLTail();
開發者ID:Episigma,項目名稱:scription,代碼行數:9,代碼來源:about.php


注:本文中的Utilities::displayPageTitle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。