<?php include("parent/callMe.php"); ?>

<?php  include("sessioncheck.php"); ?>

<?php





$default;

    

    if($_GET["month"]!=NULL ){

      $default= $_GET["month"];

    }

    else{

      $default= date("m");

    }





$pageName = basename($_SERVER['PHP_SELF']);



 $m->where("page_name", $pageName);

 $pageNameAccess=$m->get("eduportal_modules_pages_detail");





$m->where("user_id", $_SESSION['user_id']);

$m->where ("branch_id", $_SESSION['branch']);

$m->where("page_id", $pageNameAccess[0]['page_id']);

$access = $m->get("users_privilege_detail");







        $m->where("branch_id", $_SESSION['branch']);

        $branch=$m->get("edu_branch_config");



  if(isset($_REQUEST['emp'])){



     

          $data = array('status' => '1');

          $m->where("branch_id", $_SESSION['branch']);

          $m->where("user_id", $_REQUEST['emp']);



          $result =  $m->update ('edu_user_config', $data);

   

   

      header("location:view_emp.php?".session_id().session_id().session_id());





 }

   

     



     $branch=$_SESSION['branch']; 



   $sql = " select * from  edu_user_config where branch_id='$branch' and status='0' ";



   if($_REQUEST['designation']!=NULL){



   if($_REQUEST['designation']=="All"){

      $sql;

    } else {

    $sql .= " AND designation_id = '" .$_REQUEST['designation']. "' ";



    }



  if($_REQUEST['department']=="All"){

      $sql;



    } else {



    $sql .= " AND department_id = '" .$_REQUEST['department']. "' ";



    }  



  }



  $sql .= " order by user_id asc";



  $WorkAssignListings = $m->query($sql);

 

     ?>





<!DOCTYPE html>

<html lang="en">

  <head>

    

    <title>View Employees | EduPortal</title>

    <?php include('RootMe/css_links.php');?>

 

<style>



.tdStyle{border-bottom:1px solid lightgray;}

.thStyle{background-color:#00AFEF;color:white;}



</style>  



<script type="text/javascript">



function HideDate(str,empIds){



 

  if(str=="Other"+empIds){

    

 //alert("786");

    document.getElementById("col1"+empIds).style.display="block";

   

  }



  else {

    

  // alert("800");

    document.getElementById("col1"+empIds).style.display="none";

   

   

  }

}

</script>

  </head>

  

  <body class="nav-md">

    <div class="container body">

      <div class="main_container">

        <div class="col-md-3 left_col">

     

            <?php include('RootMe/sidebar.php');?>



              <?php include('RootMe/header.php');?>

     

        <!-- page content -->

          <div class="right_col" role="main">



            <a href="<?php echo $_SESSION['dashboard'];?>">Dashboard </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp; 

                   

                 Staff List

         

                 <br><br>



          <div class="" style="background-color: white;">

           

  <section class="add_sub_agent" id="table_sub_agent">

  <div class="container">



 <div class="" style="margin-top:10px;">

 

    </div>

    <br>



     

          

          <?php  if(isset($_SESSION['Updated'])){?>





            <div class="alert alert-success" id="msg">

             <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

              <strong>Success!</strong> Student record is updated successfully...

            </div>





          <?php  unset($_SESSION['Updated']); }?>



      



          

          <?php  if(isset($_SESSION['Added'])){?>





            <div class="alert alert-success" id="msg">

             <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

              <strong>Success!</strong> Record is Added successfully...

            </div>



          <?php  unset($_SESSION['Added']); } ?>





           <?php  if(isset($_SESSION['already'])){?>





            <div class="alert alert-danger" id="msg">

             <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

              <strong>Warning!</strong> You cannot add duplicated record, Please change name or password!

            </div>



          <?php  unset($_SESSION['already']); } ?>



 <a target="_blank" class="btn btn-warning pull-right" title="Print Students List" data-toggle="modal" data-target="#PrintStaffList" style=""><i class="fa fa-print m-right-xs" target="_blank"></i>&nbsp;Print Staff List </a>



 <a href="cv_bank.php" id="subuser" class="btn btn-success" style="float: right;">CV Bank </a>



 <a href="create_biometric_staff_id.php" id="subuser" class="btn btn-success" style="float: right;">Create Staff Biometric ID </a>



 <a href="create_staff_registration_no.php" id="subuser" class="btn btn-success" style="float: right;">Create Staff Registration No</a>



 <a href="listview_employe_signwork.php" id="subuser" class="btn btn-success" style="float: right;">Employee Assgin Work </a>



  <!-- Modal -->

            <div id="PrintStaffList" class="modal fade" role="dialog">

              <div class="modal-dialog">



                <!-- Modal content-->

                <div class="modal-content">



                   

               <form action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" enctype="multipart/form-data">



            <input type="hidden" name="action" value="StaffListPrintParameter">

             

                  <div class="modal-header">

                    <button type="button" class="close" data-dismiss="modal">&times;</button>

                    <h4 class="modal-title"> Choose The Parametters To Display in Print Report </h4>

                  </div>

                  <div class="modal-body">

                  



                  <input type="hidden" name="designation" value="<?php echo $_REQUEST['designation'];?>" />

                  <input type="hidden" name="department" value="<?php echo $_REQUEST['department'];?>" />

                  <input type="hidden" name="session" value="<?php echo $_SESSION['current_session'];?>" />

                 

                  

               

                 <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="name" checked value="1"/>

                    Name

                    <span class="checkmark"></span>

                  </label>

                  

                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="father_name" checked value="1"/>

                    Father/Husband Name

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="gender" checked value="1"/>

                    Gender

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="qualification" checked value="1"/>

                    Qualification

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="cell_no" checked value="1"/>

                    Cell No

                    <span class="checkmark"></span>

                  </label>



                   <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="pic" checked value="1"/>

                    Picture

                    <span class="checkmark"></span>

                  </label>                                   



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="salary" checked value="1"/>

                    Salary

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="home_contact" checked value="1"/>

                    Home Contact

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="email" checked value="1"/>

                    Email

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="cnic" checked value="1"/>

                    CNIC

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="dob" checked value="1"/>

                    DOB

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="DOJ" checked value="1"/>

                    Date of Joining

                    <span class="checkmark"></span>

                  </label>





                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="Department" checked value="1"/>

                    Department

                    <span class="checkmark"></span>

                  </label>





                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="Designation" checked value="1"/>

                    Designation

                    <span class="checkmark"></span>

                  </label>





                  <!-- <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="lastname" checked value="1"/>

                    Father/Husband Name

                    <span class="checkmark"></span>

                  </label> -->





                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="Address" checked value="1"/>

                    Address

                    <span class="checkmark"></span>

                  </label>





                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="bank_account" checked value="1"/>

                    Bank Account Number

                    <span class="checkmark"></span>

                  </label>



                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="paswrd" checked value="1"/>

                    Password

                    <span class="checkmark"></span>

                  </label>





                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="marital_status" checked value="1"/>

                    Marital Status

                    <span class="checkmark"></span>

                  </label>



                  



                                                     



                  </div>

                  <div class="modal-footer" style="text-align: right;">

                    <input type="submit" class="btn btn-primary" checked value="Print" />

                  </div>





                   </form>

                </div>



              </div>

            </div>

            <!-- Modal -->

 

  <h3>List View Employee</h3>





  <form class="form-style-7">

    

             



              <div class="col-md-3 col-sm-12 col-xs-12" style="padding: 8px;">

                <div class="form-group ">

                <label class="required">Designation</label>

                <select style="height:40px;" name="designation" id="designation" class="form-control"  required>



                              <option value="All">All</option>

                        



                        <?php

                  $query="select * from eduportal_designation_config where designation_id!='14' and designation_id!='15'";

                  $WorkAssignList = $m->query($query);

                  foreach($WorkAssignList as $WorkAssignListVal)

                  { ?>



                         <option <?php if($_REQUEST['designation']==$WorkAssignListVal['designation_id']){echo "selected";} ?>  value="<?php echo $WorkAssignListVal['designation_id']; ?>"><?php echo $WorkAssignListVal['designation_name']; ?></option>





                  <?php } ?>



                    </select>

                </div>

              </div>





              <div class="col-md-3 col-sm-12 col-xs-12" style="padding: 8px;">

                <div class="form-group ">

                <label class="required">Department</label>

                <select style="height:40px;" name="department" id="department" class="form-control"  required>



                              <option value="All">All</option>

                        



                        <?php

                  $query="select * from eduportal_hrm_department_config";

                  $Departments = $m->query($query);

                  foreach($Departments as $Department)

                  { ?>



                         <option <?php if($_REQUEST['department']==$Department['department_id']){echo "selected";} ?>  value="<?php echo $Department['department_id']; ?>"><?php echo $Department['department_name']; ?></option>





                  <?php } ?>



                    </select>

                </div>

              </div>

 



              <div class="col-md-2 " style="padding:2px;">



              <button id="send" type="submit" class="btn btn-primary" style="margin-top: 34px;"> 

                Search</button>    

                



              </div>

</form>









<div style="overflow-x:auto;">

<br><br>

<table id="listofstudents" class="table table-striped table-bordered" style="width:100%">

        <thead>

            <tr>



                <th width="5%">S.No</th>

                <th width="20%">Name</th>

                <!-- <th width="12%">Department </th> -->

                <th width="12%">Designation</th>

                <th width="11%">Cell </th>

                <th width="10%">Qualification </th>

                <th width="10%">Access </th>

                <th width="10%">Attendance </th>

                <th width="10%">Experience </th>

                <th width="10%">Action </th>

                <th width="5%"> Profile</th>

                

            </tr>

        </thead>

        <tbody>





   

     

     <?php 



     $count=1;

      foreach($WorkAssignListings as $WorkAssignListVal)

      { 



        $m->where("designation_id", $WorkAssignListVal['designation_id']);

        $designation=$m->get("eduportal_designation_config");

/*

        $m->where("department_id", $WorkAssignListVal['department_id']);

        $department=$m->get("eduportal_hrm_department_config");

*/

      ?>



  <tr>

        

     <td style="text-align:center;"> <?php echo $count; $count++; ?>  </td>



<td>



  <!-- making a link   -->

<a style="padding: 0px 5px; font-size:14px;"  href="emp_details.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&emp=<?php echo $WorkAssignListVal['user_id'];?>" style="cursor:pointer;">



      <?php if($WorkAssignListVal['attach_image']!=NULL){?>



        <img style="border-radius:50%;height:35px;with:35px;" src="<?php echo DOMAIN;?>Production/staff_pics/<?php echo $WorkAssignListVal['attach_image'];?>"  />

      <?php }else {?>



        <img style="border-radius:50%;height:35px;with:35px;" src="images/student.png" />



      <?php }?>

      

       &nbsp;&nbsp; <?php echo $WorkAssignListVal['user_fname'];?>

</a>

                   

                   

</td>



      

      <!-- <td> <?php echo $department[0]['department_name'];?> </td> -->

      <td> <?php echo $designation[0]['designation_name'];?> </td>

      <td style="text-align:center;"> <?php echo $WorkAssignListVal['cell_no'];?> </td>

      <td> <?php echo $WorkAssignListVal['user_qualification'];?> </td>

      

      <td> <?php if ($WorkAssignListVal['designation_id']!='00') { ?>

        <a style="padding: 0px 5px; font-size:14px;"  href="assign_user_access.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&id=<?php echo $WorkAssignListVal['user_id'];?>&desigID=<?php echo $designation[0]['designation_id'];?>" style="cursor:pointer;"  class="btn btn-success">



      Access

        </a>

      <?php } ?>

        </td>

      <td>

        <!-- <a style="padding: 0px 5px; font-size:14px;"  href="print_staff_attendance_history.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&emp=<?php echo $WorkAssignListVal['user_id'];?>" style="cursor:pointer;"  class="btn btn-success">

      History

      </a> -->  



      <a style="padding: 0px 5px; font-size:14px;" data-toggle="modal" data-target="#EmpHistory<?php echo $WorkAssignListVal['user_id'];?>"; class="btn btn-success"> History </a>

      </td>



      <!-- start popup attendance history -->



      <div id="EmpHistory<?php echo $WorkAssignListVal['user_id'];?>" class="modal fade" role="dialog">

        <div class="modal-dialog">



          <!-- Modal content-->

          <div class="modal-content">

            <div class="modal-header" style="border-bottom:none;">

              <button type="button" class="close" data-dismiss="modal">&times;</button>

              <h4 class="modal-title" style="text-align:center;"> Attendance History (<?php echo $WorkAssignListVal['user_fname']." - ".$WorkAssignListVal['user_lname']; ?>)  </h4>

            </div>



            <div class="modal-body">









<form  action="print_staff_attendance_history.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>" method="get">

   

     <input type="hidden" name="emp" value="<?php echo $WorkAssignListVal['user_id'];?>" />

    

           

<div class="col-md-12" style="padding: 8px;">



 <div class="form-group ">



    <label class="required">Month</label>

        <select style="height:40px;" name="month" id="month" class="form-control"  required>



                  <option value="">Select Month</option>

            



            <?php

            $Months = $m->get("eduportal_month_config");

            foreach($Months as $Month)

            { ?>



               <option <?php if($default==$Month['Month_Id']){echo 'selected';}?> value="<?php echo $Month['Month_Id']; ?>"><?php echo $Month['Month_Name']; ?></option>





                    <?php

            } ?>



        </select>

</div>



      <div class="form-group ">



    <label class="">Year</label>

        <select name="year" class="form-control"  style="height:40px;">



                              

                        <?php



                       $match;

                        if(!isset($_REQUEST['session'])){

                          $match=$_SESSION['current_session'];

                        }else { $match=$_REQUEST['session']; }

                       

                                 

                        $years = $m->get("edu_session_config");

                        foreach($years as $year)

                        { 

                          $val=explode("-",$year['session_year']);

                          ?>



                           <option <?php if(date("Y")==$val[0]){echo 'selected';}?> value="<?php echo $val[0]; ?>">

                            <?php echo $val[0];?></option>





                                <?php

                        } ?>



                    </select>

      </div>



      

</div> 

                   

                            

                                     

      

            <div class="modal-footer">



            <button type="submit" class="btn btn-primary" name="submit" >Submit </button>

              





            </div>







                 </form>



          </div>



          </div>



        </div>

      </div>



      <!-- Student Attendance History popup ending -->

      

      <td style="text-align:center;"> <!-- <a style="padding: 0px 5px; font-size:14px;"  href="experience_certificate.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&emp=<?php echo $WorkAssignListVal['user_id'];?>" style="cursor:pointer;"  class="btn btn-success">

      Print

      </a>  -->







      <a data-toggle="modal" data-target="#EmpExperience<?php echo $WorkAssignListVal['user_id'];?>" style="padding: 0px 5px; font-size:14px;" href="#" class="btn btn-warning">



                 <i class="fa fa-print"></i> Print

                  

              </a>







    </td>





    <!-- Employee Experience Popup start -->





      <div id="EmpExperience<?php echo $WorkAssignListVal['user_id'];?>" class="modal fade" role="dialog">

        <div class="modal-dialog">



          <!-- Modal content-->

          <div class="modal-content" style="width: 175%; margin-left: -200px;">

            <div class="modal-header" style="border-bottom:none;">

              <button type="button" class="close" data-dismiss="modal">&times;</button>

              <h4 class="modal-title" style="text-align:center;"> Experience Certificate (<?php echo $WorkAssignListVal['user_fname']." - ".$WorkAssignListVal[0]['user_lname']; ?>)  </h4>

            </div>



            <div class="modal-body">



<form class="form-style-7" action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post"  enctype="multipart/form-data">



           <input type="hidden" name="action" value="ExperienceCertificate"> 

           <input type="hidden" id="date"  name="experience" value="<?php echo $_SESSION['experience']; ?>" />

           <input type="hidden" id="date"  name="employee" value="<?php echo $WorkAssignListVal['user_id']; ?>" />

                  <div class="col-md-4">

                  <label class="container1" style="text-align: left;">

                    <input type="checkbox" name="header" checked value="1"/>

                    Show & Header Footer

                    <span class="checkmark"></span>

                  </label>

                  </div>



                  <div class="col-md-12 col-xs-12" style="padding:8px;"  id="">



                   <div class="form-group ">



                  <label class="required"> Write Your Institute Slogan</label>

                      <input name="slogan"  value="Learning Today For A Better Tomorrow" type="text" placeholder="Write here..." class="form-control"  >

               

                  </div>

                  </div>

               

                 <div class="item form-group">

                  <div class="col-md-12 col-sm-12 col-xs-12">

                     <textarea id="textarea" required="required" name="experience" class="ckeditor"> 



                   <p style="font-size:50px; font-weight:bold;"> <b>To WHOM IT MAY CONCERN</b> </p> <br> This is to certify that <strong><?php if ($WorkAssignListVal['user_gender']=="Male") {
                     echo "Mr";
                   } else { echo "Miss"; }?>. <?php echo $WorkAssignListVal['user_fname'];?> </strong><?php if ($WorkAssignListVal['user_gender']=="Male") {
                     echo "S/O";
                   } else { echo "D/O"; }?>  <strong> <?php echo $WorkAssignListVal['user_lname'];?></strong>, was associate with our <?php echo $_SESSION['branch_name'];?> as a <strong><?php echo $designation[0]['designation_name'];?></strong> from <?php echo date("jS \ F Y", strtotime($WorkAssignListVal['user_joining']));?> to <?php if ($WorkAssignListVal['expel_date']!="") {



                    echo date("jS \ F Y", strtotime($WorkAssignListVal['expel_date']));

                     } else { echo "Due Date"; }?>  

                    . During his term of employment, his performance was found satisfactory while rendering duties such as:

                    <ul style="list-style-type:disc;">

                      <li>Teach one or more subjects to students in public or private secondary schools.</li>

                      <li>Administer tests to evaluate pupil progress, records results, and issues reports to inform parents of progress.</li>

                      <li>Keep attendance records</li>

                      <li>Maintain discipline in classroom.</li>

                      <li>Meet with parents to discuss student progress problems.</li>

                      <li>Participate in faculty professional meetings, educational conferences, and teacher training workshops.</li>

                      <li>Prepare course materials like syllabi, homework assignments, and handouts</li>

                      <li>Plan, evaluate, and revise curricula, course content, and course materials methods of instruction</li>

                    </ul> 

                    

                    <br>

                    We wish the best for his future endeavors



                     <br><br>

                     <br>

                     <b> PRINCIPAL SIGNATURE </b>



                    </textarea>

                  </div>

                 </div>



            <div class="modal-footer">



            <button type="submit" class="btn btn-primary" name="submit" >Submit </button>

              





            </div>







                 </form>



          </div>



          </div>



        </div>

      </div>



      <!-- Employee Experience popup ending -->



  <td>



    <?php if ($access[0]['edit_access']!=NULL) { ?>



            <a style="padding: 0px 5px; font-size:14px;"  href="add_emp.php?<?php echo session_id().session_id().session_id().session_id().session_id();?>&emp=<?php echo $WorkAssignListVal['user_id'];?>" style="cursor:pointer;"  class="btn btn-success">

            <i class="fa fa-pencil" aria-hidden="true"></i>

            </a>

    <?php } ?>





      <!-- <a href="view_emp.php?emp=<?php echo $WorkAssignListVal['user_id']; ?>" onClick='return confirm("Are you sure you want to delete this record ?")' style="padding: 0px 5px; font-size:14px;"  class="btn btn-danger"><i class="fa fa-remove"></i> </a> -->



      <?php if ($access[0]['delete_access']!=NULL) { ?>



       <a style="padding: 0px 5px; font-size:14px;" data-toggle="modal" data-target="#EmpPayroll<?php echo $WorkAssignListVal['user_id'];?>"; class="btn btn-danger"><i class="fa fa-remove"></i> </a>



     <?php } ?>

      

 <a  style="padding: 0px 5px; font-size:14px;" href="print_emp.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&emp=<?php echo $WorkAssignListVal['user_id'];?>" target="_blank" class="btn btn-success"> 

    

  <i class="fa fa-print"></i> 

  </a>

         

                  </td>



  <!-- Student Result popup start -->





      <div id="EmpPayroll<?php echo $WorkAssignListVal['user_id'];?>" class="modal fade" role="dialog">

        <div class="modal-dialog">



          <!-- Modal content-->

          <div class="modal-content">

            <div class="modal-header" style="border-bottom:none;">

              <button type="button" class="close" data-dismiss="modal">&times;</button>

              <h4 class="modal-title" style="text-align:center;"> Reasons of Delete (<?php echo $WorkAssignListVal['user_fname']." - ".$WorkAssignListVal['user_lname']; ?>)  </h4>

            </div>



            <div class="modal-body">





<form  action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post">



           <input type="hidden" name="action" value="delete_employee"> 

           <input type="hidden" id="date"  name="month" value="<?php echo $_GET['month']; ?>" />

           <input type="hidden" name="session" value="<?php echo $student[0]['session_id']; ?>">

           <input type="hidden" name="branch" value="<?php echo $student[0]['branch_id']; ?>">

           <input type="hidden" name="employee" value="<?php echo $WorkAssignListVal['user_id']; ?>">

           

                   <div class="col-md-12" style="padding: 8px;">



                       <div class="form-group ">



                          <label class="required">Reasons</label>

                              <select required name="emp" onChange="HideDate(this.value,<?php echo $WorkAssignListVal['user_id']; ?>);" class="form-control"  >



                                <option value=''>Select</option>

                                <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='Appointment In Government Sector'>Appointment In Government Sector</option>

                                <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='Migrate To Other Campus'>Migrate To Other Campus </option>

                                <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='Miss Behaviour'>Miss Behaviour</option>

                                <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='Went To Abroad'>Went To Abroad</option>



                                 <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='Regular Absents'>Regular Absents</option>



                                 <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='Due to Marriage'>Due to Marriage</option>



                                 <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='UnSatisfaction'>UnSatisfaction</option>



                                 <option <?php if($_GET['emp']=="0"){echo 'selected';}?> value='Wrong Entry'>Wrong Entry</option>

                                                                 

                                <option <?php if($_GET['emp']=="Other"){echo 'selected';}?> value='Other<?php echo $WorkAssignListVal['user_id'];?>'>Other </option>

                                  

                              </select>

                            </div>



                            <div class="form-group ">



                            <label class="">Send SMS</label>

                                <select  name="sendSms" class="form-control"  >



                                  <option value='YES'>YES</option>

                                  <option value='NO'>NO</option>                   



                                </select>

                              </div>



                               <div class="form-group ">



                                  <label class="required">Struck off Date</label>



                                  <input type="date" name="struck_date" class="form-control"

                                  value="<?php echo date("Y-m-d");?>"  />

                                

                                </div>





                    </div> 

                              

                 

                  <div class="col-md-12" style="padding:8px;<?php if($_REQUEST['emp']=='Other'.$WorkAssignListVal['user_id']){ echo 'display:block;';}else {echo 'display:none;';} ?>"  id="col1<?php echo $WorkAssignListVal['user_id'];?>">



                       <div class="form-group ">



                          <label class="required"> Explain</label>

                              <textarea name="expln"  id="from" value="" type="text" class="form-control"></textarea>

                       

                          </div>

                  </div>                      

      

            <div class="modal-footer">



            <button type="submit" class="btn btn-primary" name="submit" >Submit </button>

              





            </div>







                 </form>



          </div>



          </div>



        </div>

      </div>



      <!-- Student result popup ending -->   





    <td>





<a style="padding: 0px 5px; font-size:14px;"  href="emp_details.php?<?php echo session_id().session_id().session_id().session_id().session_id(); ?>&emp=<?php echo $WorkAssignListVal['user_id'];?>" style="cursor:pointer;"  class="btn btn-success">



      PROFILE

</a>









      </td>









              </tr>











              <?php

      } ?>







           

            

           

        </tbody>

        

    </table>



  </div>



  



    <br><br>





  </div>

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

</section>          

    



           

          </div>

        </div>



            </div>

          </div>

        </div>

        <!-- /page content -->

  



    

  <?php include('RootMe/js_linksscript.php');?>



  <script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>

  <script src="https://cdn.ckeditor.com/4.12.1/standard/ckeditor.js"></script>

   <!-- jQuery -->

    <script src="js/ajax_functions.js"></script> 

  </body>

</html>

