ok
Direktori : /home2/selectio/www/wedding-info-new/admin/ |
Current File : /home2/selectio/www/wedding-info-new/admin/employee-profile-verificaion.php |
<?php include "header.php"; $ids = $_REQUEST['ids']; // $statement = $pdo->prepare("SELECT * FROM tbl_alliances_register where id=".$ids); $statement = $pdo->prepare(" SELECT a.*, b.*,c.* FROM tbl_employee_personaldata a inner JOIN tbl_employee_educationaldata b on b.emp_id = a.id inner JOIN tbl_employee_experiencedata c ON c.emp_id = a.id where a.id =".$ids ); $statement->execute(); $datas = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <style> .image-new{ padding: 0.25rem; background-color: var(--bs-body-bg); border: var(--bs-border-width) solid var(--bs-border-color); border-radius: var(--bs-border-radius); max-width: 100%; height: 150px; } </style> <form id="all_ver_form"> <div class="page-wrapper"> <div class="page-content"> <div class=" card card-body"> <div class="row"> <div class="col-12 col-sm-12 col-md-6 col-lg-6"> <!--<img style="position: absolute;width: 50px;" src="< ?=$text?>" />--> <h5 style="text-align: center;">Employee Info</h5> <table class="table" style="width: 100%;"> <tr> <td scope="row" width="40%">Profile Created For </td> <td style="text-align: center;">:</td> <td><?=$datas[0]['desig']?></td> </tr> <tr> <td scope="row">Name</td> <td style="text-align: center;">:</td> <td><?=$datas[0]['fname']?></td> </tr> <tr> <td scope="row">Gender</td> <td style="text-align: center;">:</td> <td><?=$datas[0]['gender']?></td> </tr> <tr> <td scope="row">Date Of Birth</td> <td style="text-align: center;">:</td> <td><?=$datas[0]['dob']?></td> </tr> <tr> <td scope="row">Age</td> <td style="text-align: center;">:</td> <td><?=$datas[0]['age']?></td> </tr> <tr> <td scope="row">Mobile No.</td> <td style="text-align: center;">:</td> <td><?=$datas[0]['mobile_no']?></td> </tr> <tr> <td scope="row">Alternate Mobile No.</td> <td style="text-align: center;">:</td> <td><?=$datas[0]['phn_alt']?></td> </tr> <tr> <td scope="row"> Address</td> <td style="text-align: center;">:</td> <td><?=$datas[0]['addr']?> </td> </tr> </table> </div> <div class="col-12 col-sm-12 col-md-6 col-lg-6"> <div class="row"> <h4 class="h5" style="text-align: center;">VERIFICATION PROOF</h4> <div class="col-12 col-sm-12 col-md-4 col-lg-4" style="display: flex;justify-content: center;"> <div> <p>Profile Photo </p> <a href=".<?=$datas[0]['photo']?>" target="_blank" > <img style="box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;" src="<?=$datas[0]['photo']?>" class="image-new"> </a> </div> </div> <div class="col-12 col-sm-12 col-md-4 col-lg-4"style="display: flex;justify-content: center;"> <div> <p>Pan Card</p> <a href=".<?=$datas[0]['pancard']?>" target="_blank" > <img style="box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;" src="<?=$datas[0]['pancard']?>" class="image-new"> </a> </div> </div> <div class="col-12 col-sm-12 col-md-4 col-lg-4" style="display: flex;justify-content: center;"> <div> <p>Aadhar Card</p> <a href=".<?=$datas[0]['aadhar']?>" target="_blank" > <img style="box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;" src="<?=$datas[0]['aadhar']?>" class="image-new"> </a> </div> </div> </div> <br> <div class="row"> <div class="col-10 col-sm-10 col-md-10 col-lg-10"> <div class="md-form amber-textarea active-amber-textarea-2" > <label>Aadhar Name</label><br> <input type="text" id="aadhar_name" class="md-textarea form-control" name="aadhar_name" placeholder="Enter Aadhar Number" /> </div> </div> <div class="col-10 col-sm-10 col-md-10 col-lg-10"> <div class="md-form amber-textarea active-amber-textarea-2" > <label>Aadhar card Mobile No.</label><br> <input type="text" id="aadhar_mbl" class="md-textarea form-control" name="aadhar_mbl" placeholder="Enter Aadhar Number" /> </div> </div> <div class="col-10 col-sm-10 col-md-10 col-lg-10"> <div class="md-form amber-textarea active-amber-textarea-2" > <label>Aadhar Card No.</label><br> <input type="text" id="adh_no" class="md-textarea form-control" name="aadhar_no" placeholder="Enter Aadhar Number" /> </div> </div> <div class="col-10 col-sm-10 col-md-10 col-lg-10"> <div class="md-form amber-textarea active-amber-textarea-2" > <label>Gender</label><br> <input type="text" id="gender" class="md-textarea form-control" name="gender" placeholder="" /> </div> </div> <div class="col-10 col-sm-10 col-md-10 col-lg-10"> <div class="md-form amber-textarea active-amber-textarea-2" > <label>Date of Birth</label><br> <input type="text" id="dob" class="md-textarea form-control" name="dob" placeholder="Enter Aadhar Number" /> </div> </div> <div class="col-2 col-sm-2 col-md-2 col-lg-2"> <div class="md-form amber-textarea active-amber-textarea-2" > <label>Verify</label><br> <input type="button" class="btn btn-sm btn-warning" id="add_ver_btn" name="aadhar_no_" Value="Check"/> </div> </div> </div> </div> </div> <div class="row" style="display: flex;justify-content: center;" > <div class="col-12 col-sm-12 col-md-6 col-lg-6"> <div class="md-form amber-textarea active-amber-textarea-2"> <label for="form16">Remarks</label> <textarea name="remarks" id="form16" class="md-textarea form-control" rows="3"></textarea> </div> </div> </div> <div class="row" > <?php foreach ($photos as $photo){ ?> <div class="col-3 col-sm-3 col-md-3" > <img style=" width: 175px;height:175px;" src=" <?=".".$photo['image']?>" /> <!--<lable for="accept">Accepted <input type="checkbox" id="accept" name="accepted[]" value="1" /></lable>--> <div class="form-group"> <label for="accept<?=$photo['id']?>"><input type="radio" id="accept<?=$photo['id']?>" name="pic_ver_<?=$photo['id']?>[]" value="1" class="form-check-input">Accepted</label> <label for="reject<?=$photo['id']?>"><input type="radio" id="reject<?=$photo['id']?>" name="pic_ver_<?=$photo['id']?>[]" value="3" class="form-check-input">Rejected</label> <input type="hidden" name="pic_id[]" value="<?=$photo['id']?>" /> </div> </div> <?php } ?> </div> <div class="row" style="display: flex;justify-content: center;" > <div class="col-12 col-sm-12 col-md-6 col-lg-6" style="display: flex;justify-content: center;"> <div class="form-check form-check-inline " > <input class="form-check-input" type="radio" name="status_ver" value="1" /> <label class="form-check-label" for="verified">Verified</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="status_ver" id="n_verified" value="0" /> <label class="form-check-label" for="n_verified">Rejected</label> </div> </div> </div> <center><button class="btn btn-sm btn-md btn-danger" >Submit</button></center> </div> </div> </div> </form> <script> $(document).ready(function() { $("#verification").hide() $('#all_ver_form').submit(function(e) { e.preventDefault(); var formData = new FormData(this); formData.append('type', 'upload'); var ids = <?=$ids?>; console.log(formData); $.ajax({ url: 'api/seller_verification.php?ids=' + ids, type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, success: function(response) { console.log(response); if (response['status'] == 200) { success(response['message']); // window.location.reload(); } else { warning(response['message']); } } }); }); }); </script> <?php include "footer.php"; ?> <script> $('#add_ver_btn').click(function () { // if ($("#add_ver_btn").is(':click')) { var adh_no = $("#adh_no").val(); var aadhar_mbl = $("#aadhar_mbl").val(); var aadhar_name = $("#aadhar_name").val(); var gender = $("#gender").val(); var dob = $("#dob").val(); var ids = <?=$ids?>; $.ajax({ url: 'api/astrologer_verification.php', type: 'post', dataType: 'json', data: { aadhar_no: adh_no, types:'check',ids:ids,aadhar_mbl:aadhar_mbl,aadhar_name:aadhar_name,gender:gender,dob:dob }, success: function (response) { console.log(response); if (response['status'] == 200) { success(response['message']); $("#verification").show() } else { warning(response['message']); $("#verification").hide() } } }); // } }); </script> <script> $('#rewards_btn').click(function () { var rewards = $("#rewards_btn").val(); var ids = <?=$ids?>; alert(rewards+ids); $.ajax({ url: 'api/seller_verification.php', type: 'post', dataType: 'json', data: { types:'rewards',rewards:rewards,ids:ids }, success: function (response) { console.log(response); if (response['status'] == 200) { success(response['message']); $("#verification").show() } else { warning(response['message']); $("#verification").hide() } } }); }); </script>