Esempio n. 1
0
/**
 * Header content
 * 
 * @return string
 * @author Jared Lang
 **/
function header_($tabs = 2)
{
    opengraph_setup();
    remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
    remove_action('wp_head', 'index_rel_link');
    remove_action('wp_head', 'rel_canonical');
    remove_action('wp_head', 'wp_generator');
    remove_action('wp_head', 'wlwmanifest_link');
    remove_action('wp_head', 'rsd_link');
    ob_start();
    print header_meta() . "\n";
    wp_head();
    print header_links() . "\n";
    print header_title() . "\n";
    return indent(ob_get_clean(), $tabs);
}
function header_title()
{
    foreach ($_POST['depart'] as $value) {
        $header = $value;
    }
    return $header;
}
//set up the first query
foreach ($_POST['depart'] as $dept) {
    $query = "SELECT ID, entertainerauthor, title, media, feature FROM products WHERE department = '{$dept}' ORDER BY entertainerauthor;";
}
$result = mysqli_query($link, $query);
?>
<h1>Bob's Entertainment Universe</h1>
<h2><?php 
echo header_title();
?>
 Department</h2>

<p>Here is the list of items available in this department.</p>
<p>To learn more information about the items you are interested in, simply select the item and submit.</p>

<table>
<tr>
    <th>ID Number</th>
    <th>Entertainer/Author</th>
    <th>Title</th>
    <th>Media</th>
    <th>Feature</th>
</tr>