<?php 
error_reporting(0);
ini_set('display_errors', 0);
$nama_aplikasi="Absensi";
$tiga=$this->db->query("SELECT * FROM web_setting WHERE id='1'");
foreach ($tiga->result() as $rt) {
$namsek=$rt->nama;
$logo=$rt->logo;
}
?>
<style type="text/css">
		.namasekolah {
		  -webkit-transition: width 0.3s ease-in-out;
		  -o-transition: width 0.3s ease-in-out;
		  transition: width 0.3s ease-in-out;
		  display: block;
		  float: left;
		  height: 50px;
		  font-size: 20px;
		  line-height: 50px;
		  text-align: center;
		  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
		  padding: 0 15px;
		  font-weight: 300;
		  color: #fff;
		}
		</style>
<header class="main-header">
    <!-- Logo -->
    <a href="#" class="logo">
		<span class="logo-mini"><b>ABSEN</b></span>
		<span class="logo-lg"><b>A</b>bsen<b>O</b>nline</span>
	</a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
		<label class="namasekolah">
		<b><?php echo $namsek;?></b>
		</label>
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="<?php echo base_url('assets/img/avatar5.png'); ?>" class="user-image" alt="User Image"/>
                        <span class="hidden-xs"><?php echo $this->session->userdata('nama'); ?></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header">
                            
							<img src="<?php echo base_url('assets/img/avatar5.png'); ?>" class="img-circle" alt="User Image" />
                            <p>
                                <?php echo $this->session->userdata('nama'); ?> / <?php echo $this->session->userdata('status'); ?>
                            </p>
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="<?php echo site_url('profil'); ?>" class="btn btn-default btn-flat">Profile</a>
                            </div>
                            <div class="pull-right">
                                <a href="<?php echo site_url('dashboard/logout'); ?>" class="btn btn-danger btn-flat"> <span class="fa fa-exchange"></span> Keluar</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>
