ok
Direktori : /proc/thread-self/root/home2/selectio/www/obnovit-tracking/old/ |
Current File : //proc/thread-self/root/home2/selectio/www/obnovit-tracking/old/employee-view.php |
<?php include "header.php"; $id=$_GET['id']; $statement = $pdo->prepare("SELECT * FROM tbl_user where id ='$id'"); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <div class="content-wrapper" style="background:white;"> <div class="clearfix"></div> <section class="content"> <div class="row"> <div class="col-xs-12"> <div> <div class="box-header"> <h3 class="box-title"><b><i class="fa fa-list"></i> Create Employee: </b></h3> </div> <div class="box-body" style="padding: 0px;"> <div class="col-lg-12" style="padding: 0px;"> <form action="" enctype="multipart/form-data" id="register_form" method="post" accept-charset="utf-8"> <?php foreach($emp_data as $data){ ?> <div class="col-lg-6" > <div style="padding: 10px;border: 1px solid brown;border-style: dashed;"> <center><h5 class="box-title"><b><i class="fa fa-user"></i> Employee Personal Information </b></h5></center> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <img src="images/login-bg.jpg" class="img-thumbnail" alt="" style="width: 100%;height:180px;"> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="name">Name :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="name"><?=$data['emp_name']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="fname">Father Name :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="fname"><?=$data['fname']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="dob">Date of Birth :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="dob"><?=$data['dob']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="category">Gender :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="category"><?=$data['gender']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="mobile">Mobile No :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="mobile"><?=$data['emp_mobile']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="altermolbile">Alternate Mobile Number :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="altermolbile"><?=$data['altermolbile']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="adress">Local Address :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="adress"><?=$data['address']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="permanentadress">Permanent Address :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['permanentadress']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="aadhar">Aadhar No :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="aadhar"><?=$data['aadhar']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="national">Nationality :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="national"><?=$data['nationality']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="status">Married Status :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="status"><?=$data['married_status']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="comment">Comment :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="Comment"><?=$data['comment']?></label> </div> </div> </div> </div> </div> </div> <div style="margin-top:20px;padding: 10px;border: 1px solid brown;border-style: dashed;"> <center><h5 class="box-title"><b><i class="fa fa-user"></i> Document Details </b></h5></center> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Resume :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">Resume</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="offerleter">Offer Letter :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">Offer Letter</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Joining Letter :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">Joining Letter</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Contract & Aggrement :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">Contract & Aggrement</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">10 Certificate :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">10 Certificate</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">12 Certificate :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">12 Certificate</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">UG Certificate :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">UG Certificate</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">PG Certificate :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">PG Certificate</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Address :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">Address</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Pan Card :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">Pan Card</a></p> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Other Proof's :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="https://auroraa.site/infog-hrm/upload/523940612-2022-09-26%2006:00:12-image.JPG" target="_blank">Other Proof's</a></p> </div> </div> </div> </div> </div> </div> </div> <div class="col-lg-6" > <div style="padding: 10px;border: 1px solid brown;border-style: dashed;"> <center><h5 class="box-title"><b><i class="fa fa-user"></i> Account Login Details </b></h5></center> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Role :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['role']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Email Id :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['email']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume">Password :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['password']?></label> </div> </div> </div> </div> </div> </div> <div style="margin-top:20px;padding: 10px;border: 1px solid brown;border-style: dashed;"> <center><h5 class="box-title"><b><i class="fa fa-user"></i> Company Details </b></h5></center> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Department :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <?php $id=$_GET['id']; $sql="SELECT p.*,(select departement from tbl_departement WHERE tbl_departement.id=p.department_id) as departement_name FROM tbl_user p where p.id=$id"; $statement = $pdo->prepare($sql); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); ?> <?php foreach($emp_data as $data){ ?> <label class="lbl" for="permanentadress"><?=$data['departement_name']?></label> <?php } ?> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Designation :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <?php $id=$_GET['id']; $sql="SELECT p.*,(select desgination from tbl_desgination WHERE tbl_desgination.id=p.designation_id) as designation_name FROM tbl_user p where p.id=$id"; $statement = $pdo->prepare($sql); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); ?> <?php foreach($emp_data as $data){ ?> <label class="lbl" for="permanentadress"><?=$data['designation_name']?></label> <?php } ?> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Date of Joining :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['joining_date']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Status :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['status']?></label> </div> </div> </div> </div> </div> </div> <div style="margin-top:20px;padding: 10px;border: 1px solid brown;border-style: dashed;"> <center><h5 class="box-title"><b><i class="fa fa-user"></i> Finacial Details </b></h5></center> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> BF Type :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <?php // $conditions=""; $id=$_GET['id']; $sql="SELECT p.*,(select type_name from tbl_pf_type WHERE tbl_pf_type.id=p.pftype) as pftype_name FROM tbl_user p where p.id=$id"; $statement = $pdo->prepare($sql); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <?php foreach($emp_data as $data){ ?> <label class="lbl" for="permanentadress"><?=$data['pftype_name']?></label> <?php } ?> </div> </div> </div> </div> <div class="col-md-6"> </div> </div> </div> <div style="margin-top:20px;padding: 10px;border: 1px solid brown;border-style: dashed;"> <center><h5 class="box-title"><b><i class="fa fa-user"></i> Bank Account Details Details </b></h5></center> <div class="row"> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Account Holder Name :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['accontername']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Account Number :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['account_number']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Bank Name :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['bankname']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Branch :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['branch']?></label> </div> </div> </div> </div> <div class="col-md-12"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="required" for="resume"> Bank Code :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="permanentadress"><?=$data['bankcode']?></label> </div> </div> </div> </div> </div> </div> <div style="margin-top:20px;padding: 10px;border: 1px solid brown;border-style: dashed;"> <center><h5 class="box-title"><b><i class="fa fa-user"></i> Update Basic Pay Details </b></h5></center> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="basicpay">Basic Pay</label> <!--<input type="number" name="basicpay" placeholder="Enter Basic Pay" class="form-control tip" id="basicpay" />--> </div> </div> <div class="col-md-6"> <div class="form-group"> <?php $id=$_GET['id']; $statement = $pdo->prepare("SELECT * FROM tbl_emp_salary where emp_id ='$id' ORDER BY id DESC LIMIT 1"); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <?php foreach($emp_data as $data3){ ?> <label for="basicpay"><?=$data3['basic_salary']?></label> <?php } ?> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <a href="create-salary-hike.php?id=<?=$id?>" class="btn btn-primary" >Update Hike Details</a> </div> </div> <div class="col-md-6"> <div class="form-group"> <a href="view-hike-history.php?id=<?=$id?>" class="btn btn-warning" > View Hike History</a> <!--<input type="number" name="basicpay" placeholder="Enter Basic Pay" class="form-control tip" id="basicpay" />--> </div> </div> </div> </div> </div> <div class="row"><div class="col-lg-12" style="padding: 0px;"><br> <div class="form-group" style="text-align:center;"> <input type="submit" name="add_employee" value="Add Employee" class="btn btn-success" /> <?php } ?> </form> </div></div></div> </div> <div class="form-group" style="text-align:center;"> <a href="employee-add.php"><button class="btn btn-primary" ><i class="fa fa-refresh"></i> Reset Form</button></a> <a href="employee.php"><button class="btn btn-warning" ><i class="fa fa-chevron-left"></i> Back to List</button></a> </div> <div class="clearfix"></div> </div> </div> </div> </div> </section> <script> $(document).ready(function(){ $('#register_form').on('submit', function(e){ e.preventDefault(); console.log('Form Submitted U can Enable Payment Option...'); var formData = new FormData(this); formData.append('type', 'create_employe'); $.ajax({ url: 'api/create-employee-api.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, enctype: 'multipart/form-data', success: function (response) { console.log(response); /*if(response['code']==200){ $('#register_div').hide(); $('#register_form').trigger("reset"); $('#register_process_div').hide(); $('#success_div').show(); }else{ alert('something went wrong pls try again...'); $('#register_process_div').hide(); $('#register_div').show(); };*/ } }); }); }); </script> <?php include "footer.php";?>