<!-- 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=" ">Course 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=course&action=addcourse"><button class="btn btn-default <?php if(isset($_GET['action']) && $_GET['action'] == "addcourse"){ echo "active";} ?>">Add course</button></a>
                        <a href="?mod=category&link=course&action=viewcourse"><button class="btn btn-default <?php if(isset($_GET['action']) && $_GET['action'] == "viewcourse"){ echo "active";} ?>">View course</button></a>
                        <a href="?mod=category&link=course&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'] == "addcourse"){
include('pages/addcourse.php');
}elseif (isset($_GET['action']) && $_GET['action'] == "viewcourse") {
include('pages/viewcourse.php');
}elseif (isset($_GET['action']) && $_GET['action'] == "archive") {
include('pages/carchive.php');
}else{
  include('pages/addcourse.php');  
}
?>
                            
                    
                  </div>
                </div>
              </div>
            </div>
          </div>
        <!-- /page content -->