本文整理匯總了PHP中dbConnect::getImages方法的典型用法代碼示例。如果您正苦於以下問題:PHP dbConnect::getImages方法的具體用法?PHP dbConnect::getImages怎麽用?PHP dbConnect::getImages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dbConnect
的用法示例。
在下文中一共展示了dbConnect::getImages方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: url
$pageId = $_GET['pid'];
$row1 = $dbc->pageHeaderDetails($pageId);
$pageTitle = $row1["pTitle"];
$imageDir = $row1["iDir"];
$thumbDir = $row1["tDir"];
$bckgrnd = $row1["iName"];
include 'include/checkmail.php';
// Check to see if any mail or comments have sent.
include 'include/header.html';
// Includes page header details to "wrapper".
include 'include/navbar.php';
// Build the navbar from details collected in the index class.
echo '<div class="content">';
echo '<div style="background-image: url(' . $imageDir . $bckgrnd . '); background-size:100% auto">';
echo '<div id="photos">';
echo '<article class="gallery" role="main">';
$sectionList = $dbc->getSectionList($pageId);
foreach ($sectionList as $section) {
echo '<section id="' . $section["sectionTitle"] . '">';
echo '<h2>' . $section["sectionHeader"] . '</h2>';
$sectionId = $section["sectionId"];
$imageDetails = $dbc->getImages($pageId, $sectionId);
foreach ($imageDetails as $images) {
echo '<a rel="lightbox[' . $section["sectionTitle"] . ']" href="' . $imageDir . $images["pIname"] . '" title="' . $images["pTitle"] . '"><img src="' . $thumbDir . $images["tIname"] . '" /></a>';
}
echo '</section>';
}
echo '</article>';
echo '</div> <!-- End Photos -->';
echo '</div> <!-- End background photo -->';
include 'include/footer.php';