Пример #1
0
		<!-- Displays the navigational options -->
		<?php 
if (!(!$noInput && $valid)) {
    ?>
			<div class="search sixteen columns">
				<?php 
    getSearchNav();
    ?>
			</div>
		<?php 
}
?>

		<div class="pagination sixteen columns">
			<?php 
getPageNav($totalTracks, $MAX_ITEMS_PER_PAGE);
?>
		</div>

		<div class="sort sixteen columns">
			<?php 
getSortNav();
?>
		</div>

    </div>
        <?php 
$i = 0;
// Loops all tracks found in query if any tracks were found //
if ($totalTracks) {
    while ($trackReturn = $trackResult->fetch_array(MYSQLI_BOTH)) {
<?php

include 'mainHeader.php';
$testfoo = strrchr($rInfo['origin'], '/');
$measuretestfoo = strlen($testfoo);
$killfoo = substr($testfoo, 1, $measuretestfoo);
if ($testfoo == '') {
    $forward = urlencode($rInfo['origin']);
} else {
    $forward = urlencode($killfoo);
}
echo getPageNav($rInfo['base_url'], $rInfo['list_meta']['nonemptyQuestions'], $rInfo['count'], $rInfo['page'], $rInfo['criteria_array']);
// A little code to define the table layout...
$tableCols = array('Edit' => array('<a href="questionEditForm.do?questionId=', 'question_id', '&amp;origin=', $forward, '">', 'question_id', '</a>'), 'Patron Type' => 'patron_type', 'Question Type' => array('question_type', '<br /> ', 'time_spent'), 'Question Format' => 'question_format', 'Location' => array('library_short_name', '<br />', 'location_name'), 'Question / Answer<br><label id = "allQuestionsControl"><input type = "checkbox" id = "qShow" /> Show Empty Questions</label>' => array('<div class = "question">', 'Q: ', 'question', '</div>', '<div class = "answer">', 'A: ', 'answer', '</div>'), 'Date' => 'question_date', 'Initials<br><label id = "initialsControl"><input type = "checkbox" id = "iShow" /> Show</label>' => array('<span class="initials">', 'initials', '</span>'));
// There are lots of magic hacks in this function
echo getQuestionTable('questionTable', $tableCols, $rInfo['questionList'], $rInfo['searchWords']);
echo 'Found ' . '<strong>' . $rInfo['list_meta']['totalQuestions'] . '</strong>' . ' total questions (' . ($rInfo['list_meta']['totalQuestions'] - $rInfo['list_meta']['nonemptyQuestions']) . ' empty).';
echo getPageNav($rInfo['base_url'], $rInfo['list_meta']['nonemptyQuestions'], $rInfo['count'], $rInfo['page'], $rInfo['criteria_array']);
include 'footer.php';
Пример #3
0
</script>
<?php 
}
?>
</div>

<?php 
echo getPageNav('questionAddForm.do', $rInfo['nonemptyQuestionCount'], $rInfo['count'], $rInfo['page']);
$forward = urlencode($rInfo['origin']);
// A little code to define the table layout...
$tableCols = array('Edit' => array('<a href="questionEditForm.do?questionId=', 'question_id', '&amp;origin=', $forward, '">', 'question_id', '</a>'), 'Patron Type' => 'patron_type', 'Question Type' => array('question_type', '<br /> ', 'time_spent'), 'Question Format' => 'question_format', 'Location' => array('location_name'), 'Question / Answer<br><label id = "allQuestionsControl"><input type = "checkbox" id = "qShow" /> Show Empty Questions</label>' => array('<div class = "question">', 'Q: ', 'question', '</div>', '<div class = "answer">', 'A: ', 'answer', '</div>'), 'Date' => 'question_date', 'Initials<br><label id = "initialsControl"><input type = "checkbox" id = "iShow" /> Show</label>' => array('<span class="initials">', 'initials', '</span>'));
// Lots of hacks in this function to get display just right
echo getQuestionTable('questionTable', $tableCols, $rInfo['questionList']);
echo 'Found <strong>' . $rInfo['questionCount'] . '</strong> questions (' . ($rInfo['list_meta']['totalQuestions'] - $rInfo['list_meta']['nonemptyQuestions']) . ' empty).';
?>

<?php 
echo getPageNav('questionAddForm.do', $rInfo['nonemptyQuestionCount'], $rInfo['count'], $rInfo['page']);
?>

<form action = "questionAddForm.do" method = "get" id = "layoutForm">
<div>
Layout: 
<?php 
echo getLayoutPulldown($rInfo['layout']);
?>
<input type = "submit" value ="Go">
</div>
</form>
<?php 
include 'footer.php';
Пример #4
0
function PageNav()
{
    $page = Page::getInstance();
    $menu = $page->getMenu();
    $html = "";
    $html .= "<nav class='pageWrapper-nav'>";
    $html .= "<div id='pageNav' class='pageNav'>";
    $html .= getPageNav();
    $html .= "</div>";
    $html .= "</nav>";
    return $html;
}
Пример #5
0
    echo '<div id="nav-menu">';
    // gets search and page navigation info //
    if ($noInput) {
        ?>
        <div class="search sixteen columns">
            <?php 
        getSearchNav();
        ?>
        </div>
        <?php 
    }
    ?>

    <div class="pagination sixteen columns">
        <?php 
    getPageNav($totalCount, $MAX_ITEMS_PER_PAGE);
    ?>
    </div>

    <div class="sort sixteen columns">
        <?php 
    getSortNav();
    ?>
    </div>
    
    </div><!-- #nav-menu -->
    
    <?php 
    $i = 0;
    // loops and displays all tracks //
    if ($totalCount) {