本文整理汇总了PHP中dbConnect::getSectionList方法的典型用法代码示例。如果您正苦于以下问题:PHP dbConnect::getSectionList方法的具体用法?PHP dbConnect::getSectionList怎么用?PHP dbConnect::getSectionList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dbConnect
的用法示例。
在下文中一共展示了dbConnect::getSectionList方法的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';