<?php $school = $db->getRow("select * from schools where id='".$_SESSION["admin"]["school_id"]."' "); 

$path = explode('/', $_SERVER['SCRIPT_NAME']);
$src = $path[1];
?>
<div class="container-fluid">
    <div class="row header-div">
        <div class="col-md-6">
            <h2>
                <a href="/"><img src="<?php echo URL_ROOT; ?>/uploads/logo/<?php echo $school['logo']; ?>" alt="School logo" class="logo" ></a>
                <?php echo $_SESSION["admin"]["school_name"]; ?>
            </h2>
        </div>

        <div class="col-md-6 menu-list">

            <?php if($src == "faculty"){ ?>
                    <ul>
                        <li><a href="staff"><i class="fa fa-navicon"></i> Staff</a></li>
                        <li><a href="#"><i class="fa fa-navicon"></i> Report</a></li>
                        <li><a href="#"><i class="fa fa-navicon"></i> Add Department</a></li>
                    </ul>
            <?php } ?>

        </div>

    </div>
    <div class="row header-top-div">
        <div class="col-md-10 offset-md-1">
            <ul class="left-menu">
                <li><i class="fa fa-home"></i> <a href="/">Home</a></li>
                <li><i class="fa fa-users"></i> Staff : 95</li>
                <li><i class="fa fa-envelope"></i> SMS : 2233</li>
            </ul>

            <a href="logout" class="logout-btn">
                    <i class="fa fa-power-off"></i>
                    Logout
            </a>
        </div>
    </div>
</div>