Exemplo n.º 1
0
function main_nav($dbc, $path)
{
    $stmt = $dbc->prepare("SELECT * FROM pages WHERE pageLabel <> '' AND mt_group = 'admin'");
    $stmt->execute();
    while ($nav = $stmt->fetch()) {
        ?>
        <li<?php 
        selected_page($path['call_parts'][0], $nav['slug'], ' class="mt-list-active"');
        ?>
><a href="<?php 
        echo base($path) . '/' . $nav['slug'];
        ?>
" class="mt-sidebar-link btn"><?php 
        echo $nav['pageLabel'];
        ?>
</a></li>
    <?php 
    }
}
Exemplo n.º 2
0
<?php

require_once "../../includes/initialize.php";
selected_page();
?>


<?php 
include_layout_template('admin_header');
?>

	<nav>
		<br>
			<a href="admin.php">&laquo; Main Menu</a>
		<br>
		<?php 
echo navigation($current_subject, $current_page);
?>
	</nav> <!-- end nav -->
		
	<div class = "page">

		<?php 
if (!empty($message)) {
    echo "<div class = \"message\">{$message}</div>";
}
?>

		<?php 
if ($current_subject) {
    ?>