<?php 
 include 'saveproj.php'
?>

<?php if(isset($msg)){?>
    <div class="alert alert-success alert-dismissible fade show" role="alert" style="border-radius: 4px;">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <i class="fa fa-fa-check-circle"></i>Well Done!  <?php echo htmlentities($msg); ?>
    </div>
<?php                         
}elseif(isset($msge)){
?>
<div class="alert alert-danger alert-dismissible fade show" role="alert" style="border-radius: 4px;">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <i class="fa fa-fa-check-circle"></i>OOOH SNAP!  <?php echo htmlentities($msge); ?>
</div>
<?php 
    } 
?>

<div class="card mb-g border shadow-0">
    <div class="card-header bg-white p-0 header">
        <div class="p-3 d-flex flex-row">
            <div class="d-block ml-2">
                <span class="h6 font-weight-bold text-uppercase d-block m-0">
                    Manage Project
                </span>
                <div class="clearfix"></div>  
            </div>
        </div>
    </div>

    <div class="card-body">

    <ul class="nav nav-pills" role="tablist">
        <li class="nav-item"><a class="nav-link active" data-toggle="pill" href="#listp"><i class="fa fa-list mr-1"></i> List</a></li>
        <?php 
        if($role_id==2){
        ?>
        <li class="nav-item"><a class="nav-link" data-toggle="pill" href="#newp"><i class="fa fa-plus-circle mr-1"></i> New Project</a></li>
        <?php }?>
        
    </ul>
    <div class="tab-content py-3">
        <div class="tab-pane fade show active" id="listp" role="tabpanel">
            <?php 
                include 'projList.php';
            ?>
        </div>

        <?php 
        if($role_id==2){
        ?>
        <div class="tab-pane fade" id="newp" role="tabpanel">
        <?php include 'newproj.php';?>
        </div>
        <?php }?>

    </div>            
    
    </div>

</div>
           
    <!-- End row -->
       