<?php
include"session.php";
?>
<body id="page-top" class="index">

    <!-- Navigation -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            
              <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
        
                <a class="navbar-brand" href="dashboard.php">
                  <?php
    $query=mysql_query("SELECT * FROM setting WHERE id=8") or die (mysql_error());
    $data=mysql_fetch_array($query);
    if ($data['value'] == NULL) 
    {
      $logo = "";
  }else{
      $logo = $data['value'];
  }
    ?>
                <img alt="Brand" width="60px"src="asset/img/<?php echo $logo;?>">
                </a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                
                <ul class="nav navbar-nav navbar-right">
                  <?php
                  if($_SESSION['jabatan'] == "admin")
                  {
                    ?>
                    <li><a href="dashboard.php?cat=web&page=setting"><i class="fa fa-gear"> Pengaturan Aplikasi</i></a></li>
            
                    <?php
                  }
                  ?>
                    
                  <li class="dropdown" role="presentation">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                      <i class="fa fa-user">&nbsp<?php echo $row['nama']; ?> </i><span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu pull-right">
                     <li><a href="dashboard.php?cat=web&page=profil"><i class="fa fa-user"> Biodata</i></a></li>
                     <li><a href="dashboard.php?cat=web&page=ubah_password"><i class="fa fa-key"> Ubah Password</i></a></li>

                     <li class="divider"></li>  
                     <li>
                      <a href="dashboard.php?cat=web&page=logout" onclick="return confirm('Apakah Anda yakin?')"> <i class="fa fa-power-off"> Keluar</i></a></li>

                    </ul>
                  </li>

                </ul>
            </div>
        </div>
    </div>


<div class="col-md-3">
    <div class="panel panel-default">
        <div class="panel-body">
            <center><a href="dashboard.php?cat=web&page=profil"><img src="asset/img/user/<?php echo$row['gambar'];?> " width="150px" class="img-circle"></a>
                <p></p>
                <p style=" text-transform: uppercase;"><?php echo$row['nama'];?>
                <br><span  class="label label-info"><?php echo$row['jabatan'];?></span></p>
            </center>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-body">
<div class="panel-group menu-admin" id="accordion" role="tablist" aria-multiselectable="true">
  <div class="panel panel-info">
    <div class="panel-heading" role="tab" id="headingOne" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
      <h4 class="panel-title">
        <i class="fa fa-home"></i> Dashboard 
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
      <div class="panel-body">
        <div class="list-group">
            <?php
            if($_SESSION['jabatan']=='admin')
            {?>
          <a href="dashboard.php?cat=admin&page=user" class="list-group-item "  onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Daftar User</a>
            
            <a href="dashboard.php?cat=web&page=perusahaan" class="list-group-item "  onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Daftar Perusahaan</a>
            <a href="dashboard.php?cat=web&page=paket" class="list-group-item " onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Daftar Paket Tender</a>
          
            <?php
            }
            ?>
             <?php
            if($_SESSION['jabatan']=='panitia')
            {?>
        
            <a href="dashboard.php?cat=web&page=perusahaan" class="list-group-item "  onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Daftar Perusahaan</a>
            <a href="dashboard.php?cat=web&page=paket" class="list-group-item " onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Daftar Paket Tender</a>
          
            <?php
            }
            ?>


             <?php
            if($_SESSION['jabatan']=='perusahaan')
            {?>
            <a href="dashboard.php?cat=perusahaan&page=paket" class="list-group-item" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Daftar Paket Tender</a>
            <a href="dashboard.php?cat=perusahaan&page=join_paket" class="list-group-item"  onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Join Tender</a>
            
            <?php
            }
            ?>

       </div>
     </div>
    </div>
  </div>

             <?php
            if($_SESSION['jabatan']=='panitia')
            {?>
  <div class="panel panel-info">
    <div class="panel-heading" role="tab" id="headingThree" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
      <h4 class="panel-title">
        <i class="fa fa-edit"></i> Penilaian 
      </h4>
    </div>
    <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
      <div class="panel-body">
        <div class="list-group">
           
           <a href="dashboard.php?cat=web&page=evaluasi" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Input Nilai</a>
        
           


       </div>
     </div>
    </div>
  </div>
   <?php
            }
            ?>


        <?php
            if($_SESSION['jabatan']=='admin' or $_SESSION['jabatan']=='panitia')
            {?>
  <div class="panel panel-info">
    <div class="panel-heading" role="tab" id="headingFour" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
      <h4 class="panel-title">
        <i class="fa fa-file-o"></i> Laporan 
      </h4>
    </div>
    <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
      <div class="panel-body">
        <div class="list-group">
           
           <a href="dashboard.php?cat=web&page=kualifikasi" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Kualifikasi</a>
           <a href="dashboard.php?cat=web&page=administrasi" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Administrasi</a>
           <a href="dashboard.php?cat=web&page=teknis" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Teknis</a>
           <a href="dashboard.php?cat=web&page=harga" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Harga</a>
           <a href="dashboard.php?cat=web&page=aritmatik" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Aritmatik</a>
           <a href="dashboard.php?cat=web&page=pemenang" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Pemenang Tender</a>
           

       </div>
     </div>
    </div>
  </div>
   <?php
            }
            ?>

 <?php
            if($_SESSION['jabatan']=='admin')
            {?>
  <div class="panel panel-info">
    <div class="panel-heading" role="tab" id="headingTwo" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
      <h4 class="panel-title">
        <i class="fa fa-newspaper-o"></i> Berita 
      </h4>
    </div>
    <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
      <div class="panel-body">
        <div class="list-group">
           
           <a href="dashboard.php?cat=web&page=berita" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Berita Aktif</a>
           <a href="dashboard.php?cat=web&page=berita_nonaktif" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Berita Nonaktif</a>

       </div>
     </div>
    </div>
  </div>
   <?php
            }
            ?>

    <?php
            if($_SESSION['jabatan']=='perusahaan')
            {?>
  <div class="panel panel-info">
    <div class="panel-heading" role="tab" id="headingFour" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
      <h4 class="panel-title">
        <i class="fa fa-file-o"></i> Laporan 
      </h4>
    </div>
    <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
      <div class="panel-body">
        <div class="list-group">
           
           <a href="dashboard.php?cat=perusahaan&page=kualifikasi" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Kualifikasi</a>
           <a href="dashboard.php?cat=perusahaan&page=administrasi" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Administrasi</a>
           <a href="dashboard.php?cat=perusahaan&page=teknis" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Teknis</a>
           <a href="dashboard.php?cat=perusahaan&page=harga" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Harga</a>
           <a href="dashboard.php?cat=perusahaan&page=aritmatik" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Aritmatik</a>
           <a href="dashboard.php?cat=perusahaan&page=pemenang" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Laporan Pemenang Tender</a>
           

       </div>
     </div>
    </div>
  </div>
   <?php
            }
            ?>

            <?php
            if($_SESSION['jabatan']=='admin')
            {?>
  <div class="panel panel-info">
    <div class="panel-heading" role="tab" id="headingSix" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix">
      <h4 class="panel-title">
        <i class="fa fa-envelope"></i> Pesan Tamu
      </h4>
    </div>
    <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
      <div class="panel-body">
        <div class="list-group">
           
           <a href="dashboard.php?cat=web&page=hubungi_kami" class="list-group-item grupmenu setsesi" onmouseover="this.style.backgroundColor='#d9edf7';" onmouseout="this.style.backgroundColor='#fff';">Pesan Tamu</a>
          
       </div>
     </div>
    </div>
  </div>
   <?php
            }
            ?>



</div>


        </div>
    </div>

            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>