<!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3><a href="main.php">Dashboard</a>/<a href=" ">department management</a></h3>
              </div>
            </div>

            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <div class="row">
                        <a href="?mod=category&link=department&action=adddepartment"><button class="btn btn-default <?php if(isset($_GET['action']) && $_GET['action'] == "adddepartment"){ echo "active";} ?>">Add Department</button></a>
                        <a href="?mod=category&link=department&action=viewdepartment"><button class="btn btn-default <?php if(isset($_GET['action']) && $_GET['action'] == "viewdepartment"){ echo "active";} ?>">View Department</button></a>
                        <a href="?mod=category&link=department&action=archive"><button class="btn btn-default <?php if(isset($_GET['action']) && $_GET['action'] == "archive"){ echo "active";} ?>">View Archive</button></a>
                    </div>
                    
                    <div class="clearfix"></div>
                  </div>

<?php
if(isset($_GET['action']) && $_GET['action'] == "adddepartment"){
include('pages/adddepartment.php');
}elseif (isset($_GET['action']) && $_GET['action'] == "viewdepartment") {
include('pages/viewdepartment.php');
}elseif (isset($_GET['action']) && $_GET['action'] == "archive") {
include('pages/darchive.php');
}else{
  include('pages/adddepartment.php');  
}
?>
                            
                    
                  </div>
                </div>
              </div>
            </div>
          </div>
        <!-- /page content -->