<!DOCTYPE html> <html> <head> <title>BC - Collections</title> <?php include "common.php"; head("."); $abbr = abbr(); $collections = collections(); ?> </head> <body> <?php $query = "SELECT DISTINCT physician FROM {$CURRENT_REV}"; $result = mysqli_query($mysqli_connection, $query); $row = mysqli_fetch_array($result, MYSQLI_NUM); ?> <div id="uw-container"> <div id="uw-container-inner"> <?php echo banner("."); ?> <div class="container uw-body"> <div class="row"> <div class="col-md-12 uw-content"> <h1 class="nomargin">Collections</h1> <?php $i = 0;
function banner($dir) { $department = file($dir . "/categories.txt", FILE_IGNORE_NEW_LINES); $non_department = file($dir . "/nondepartment.txt", FILE_IGNORE_NEW_LINES); ?> <header class="uw-thinstrip"> <div> <nav class="uw-thin-strip-nav align-right"> <ul class="uw-thin-links"> <li> <a href="<?php echo $dir . "/"; ?> " title= "Bodemer Collection">Bodemer Collection</a> </li> <li> <a href="<?php echo $dir . "/about"; ?> " title= "About Us">About Us</a> </li> </ul> </nav> <div class="container"> <img class="bodemer_logo" src="<?php echo $dir . "/images/banner_purple_croped.png"; ?> " alt="logo" /> </div> </header> <nav id="dawgdrops"> <div class="dawgdrops-inner container"> <ul class="dawgdrops-nav" id="menu-brand-menu"> <li class="dawgdrops-item"> <a href="<?php echo $dir . "/"; ?> " title="Home">Home</a> </li> <li class="dawgdrops-item"> <a class="dropdown-toggle" href="<?php echo $dir . "/categories.php?c=dept"; ?> " title="Visual">Departments</a> <ul class="dawgdrops-menu"> <div> <?php if ($department) { foreach ($department as $category) { ?> <li> <a href="<?php echo $dir . "/category.php?c=" . $category; ?> " title="<?php echo $category; ?> "><?php echo $category; ?> </a> </li> <?php } } ?> </div> </ul> </li> <?php if ($non_department) { ?> <li class="dawgdrops-item"> <a class="dropdown-toggle" href="<?php echo $dir . "/categories.php?c=non"; ?> " title="Visual">Non-Departmental</a> <ul class="dawgdrops-menu"> <div> <?php foreach ($non_department as $category) { ?> <li> <a href="<?php echo $dir . "/category.php?c=" . $category; ?> " title="<?php echo $category; ?> "><?php echo $category; ?> </a> </li> <?php } ?> </div> </ul> </li> <?php } ?> <li class="dawgdrops-item"> <a class="dropdown-toggle" href="<?php echo $dir . "/collections.php"; ?> " title="Collections">Collections</a> <ul class="dawgdrops-menu"> <div> <?php $abbr = abbr(); $collections = collections(); for ($i = 0; $i < count($abbr); $i++) { ?> <li> <a href="<?php echo $dir . "/collection.php?c=" . $abbr[$i]; ?> " title="<?php echo $collections[$i]; ?> "><?php echo $collections[$i]; ?> </a> </li> <?php } ?> </div> </ul> </li> <li class="dawgdrops-item"> <a href="<?php echo $dir . "/gallery.php"; ?> " title="Gallery">Gallery</a> </li> </ul> </div> </nav> <nav aria-label="relative" class="frontpage bighero" id="mobile-relative" role="navigation"> <div id="spacer"></div> <button class="uw-mobile-menu-toggle">Menu</button> <ul class="uw-mobile-menu first-level" style="display: none;"> <div class="menu-dropdowns-container"> <ul class="" id="menu-dropdowns-1"> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"> <a href="<?php echo $dir . "/index.php"; ?> ">Home</a> </li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"> <a href="<?php echo $dir . "/categories.php?c=dept"; ?> ">Departments</a> </li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"> <a href="<?php echo $dir . "/categories.php?c=non"; ?> ">Non-Departmental</a> </li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"> <a href="<?php echo $dir . "/collections.php"; ?> ">Collections</a> </li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"> <a href="<?php echo $dir . "/gallery.php"; ?> ">Gallery</a> </li> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children"> <a href="<?php echo $dir . "/about"; ?> ">About Us</a> </li> </ul> </div> </ul> </nav> <?php }