<style>
/*body {font-family: Arial;}*/

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    margin-top: 15px;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
        background-color: #717070!important;
        color: #ffffff!important;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

/* Style the close button */
.topright {
    float: right;
    cursor: pointer;
    font-size: 28px;
}

.topright:hover {color: red;}
</style>
<?php
  $c='';
  $wpch_import_result = '';
  $wpch_autoblog = '';
  $wpch_schedule_post = '';
  $wpch_settings = '';
  $home = '';

 if (isset($_REQUEST['page'])) 
 {
    $c = $_REQUEST['page'];
       
    if ($c == 'my-import-result') 
    {          
        $wpch_import_result = 'active';
    }
    elseif ($c == 'my-campaign-details') 
    {
        $wpch_autoblog = 'active';
    }
    elseif ($c == 'my-campaign-posts') 
    {  
        $wpch_schedule_post = 'active';
    }
    elseif ($c == 'my-auto-content') 
    {  
        $home = 'active';
    }    
  }

  
?>


<div class="tab">
    <button class="tablinks <?php echo $home; ?>" onclick="location.href = '<?php echo get_admin_url().'admin.php?page=my-auto-content'; ?>'" id = "">Auto Search</button>
    <button class="tablinks <?php echo $wpch_import_result; ?>"  onclick="location.href = '<?php echo get_admin_url().'admin.php?page=my-import-result'; ?>';" id = "">Import Results</button>
    <button class="tablinks <?php echo $wpch_autoblog; ?>"  onclick="location.href = '<?php echo get_admin_url().'admin.php?page=my-campaign-details'; ?>';" id = "">Auto Blogging</button>
    <button class="tablinks <?php echo $wpch_schedule_post; ?>"  onclick="location.href = '<?php echo get_admin_url().'admin.php?page=my-campaign-posts'; ?>';" id = "">Schedule Posts</button>    
</div>