<?php
    
    include("../include/header.php");


   
?>


<style>
   
   #EnquiryTab ul li:nth-child(2){
        background-color: #eb6a4e;
    }
    
    #EnquiryTab ul li:nth-child(2) a{
       color: #fff;
    }
    #EnquiryTab ul li:nth-child(2) a:hover{
        background-color: #eb6a4e;
    }
    td{
        text-align: left !important;
    }
    #userPermission_dataTable td:nth-child(2){
        width: 16% !important;
    }
    #userPermission_dataTable td:nth-child(3){
        width: 11% !important;
    }
    #userPermission_dataTable td:nth-child(4){
        width: 150px !important;

    }

    #userPermission_dataTable td:nth-child(6){
        width: 50px !important;
    }
    #userPermission_dataTable td:last-child {
    width: 10px;
    }
    small {
    float: left !important;
    color: #eb6a4e !important;
    padding: 1px 5px !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-transform: capitalize !important;
    display: block;
}

</style>
<script>
    window.onload = function() {
        document.getElementById('EnquiryTab').classList.add("active");
        document.getElementById('EnquiryTab1').classList.add("in");
    };

</script>

<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li><a href="<?php echo $admin_baseurl . 'dashboard.php';?>">Dashboard</a></li>
                    <li class="active">
                        <span>Career Enquiry</span>
                    </li>
                </ol>
            </div>
            <h2 class="font-light m-b-xs">
                view Career Enquiry
            </h2>

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




<div class="content">
    <div class="hpanel">
        <div class="panel-heading hbuilt">
            <div class="panel-tools">
                <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                <a class="fullscreen"><i class="fa fa-expand"></i></a>
            </div>
            View Career Enquiry Details
        </div>
        <div class="panel-body">
            <div class="table-responsive">
            <table id="userPermission_dataTable" class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Name</th>
                        <th>Mobile</th>
                         <th>Email</th>
                        <th>Message</th>
                         <th>Resume</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>

                    <?php
        $srno = 0;
        $sqlAssign8 = "SELECT * FROM `user_upload_resume` ORDER BY `user_upload_resume`.`id` DESC";										
        $resultAssign8 = mysqli_query($conn, $sqlAssign8);											
        if (mysqli_num_rows($resultAssign8) > 0) {
            while($rows8 = mysqli_fetch_assoc($resultAssign8)) { 
                
              $c_id = $rows8['id'];  
              $name = $rows8['name'];
              $mob = $rows8['phone'];
              $email = $rows8['email'];
              $resum = $rows8['txtresume'];
              $message = $rows8['message'];
              

              
   
    

?>
                    <tr>
                        <th scope="row"><?php echo $srno += 1;?></th>

                        <td><?php echo $name;?></td>
                        
                        <td><?php echo $mob;?></td>
                       
                        <td><?php echo $email?></td>
                        
                         <td><?php echo $message?></td>
                        
                         <td> &nbsp&nbsp&nbsp<a href="../../user-resume/<?php echo $resum;?>" download>Download</a></td>

                        <td>
                         <div class="action_btns">

                               <!--  <form method="post" action="update-job-details.php?id=<?php echo $c_id;?>">
                                    <button type="submit" class="actionbtn"><i class="fa fa-pencil-square-o text-success" aria-hidden="true"></i></button>
                                </form> -->

                                <form method="post" action="execute.php?id=<?php echo $c_id;?>">
                                    <button type="submit" name="Delete_company_enquiry" class="actionbtn" onclick="return confirm('Do you want to delete this data?')"><i class="fa fa-trash text-danger" aria-hidden="true"></i></button>
                                </form>


                               <!--  <?php if($c_status == 'active'){?>
                                <form method="post" action="execute.php?id=<?php echo $c_id;?>">
                                    <button type="submit" name="status_deactive_company_registration" class="actionbtn"><i class="fa fa-toggle-on text-success" aria-hidden="true"></i></button>
                                </form>
                                <?php }else{?>
                                <form method="post" action="execute.php?id=<?php echo $c_id;?>">
                                    <button type="submit" name="status_active_company_registration" class="actionbtn"><i class="fa fa-toggle-off text-danger" aria-hidden="true"></i></button>
                                </form>
                                <?php }?> -->

                            </div>  
                        </td>
                         

                    </tr>
                    <?php }}?>

                </tbody>
            </table>
            </div>
        </div>

    </div>
</div>

<br>
<?php 
    include('../include/footer.php');
?>
