ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/obnovit-tracking/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/obnovit-tracking/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> Employee View: </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-12" >
                                <div style="padding: 10px;border: 1px solid brown;border-style: dashed;">
                                <center><h5 class="box-title"><b><i class="fa fa-user"></i>Employee Information </b></h5></center>
                                <div class="row">
                                   
                           
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                 <label for="name">Name :</label>
                                                 </div>
                                                </div>
                                                <div class="col-md-6">
                                                     <div class="form-group">
                                                <label class="lbl" for="name"><?=$data['uname']?></label>
                                            </div>
                                                </div>
                                                
                                        </div>
                                        
                                    </div>
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                 <label for="fname">Mobile No :</label>
                                                 </div>
                                                </div>
                                                <div class="col-md-6">
                                                     <div class="form-group">
                                                <label class="lbl" for="fname"><?=$data['mobile_no']?></label>
                                            </div>
                                                </div>
                                                
                                        </div>
                                        
                                    </div>
                                    <div class="col-md-12">
                                        <div class="row">
                                            <div class="col-md-6">
                                                <div class="form-group">
                                                 <label  for="dob">Address  :</label>
                                                 </div>
                                                </div>
                                                <div class="col-md-6">
                                                     <div class="form-group">
                                                <label class="lbl" for="dob"><?=$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  for="dob">User Type  :</label>
                                                 </div>
                                                </div>
                                                <div class="col-md-6">
                                                     <div class="form-group">
                                                <label class="lbl" for="dob"><?=$data['user_type']?></label>
                                            </div>
                                                </div>
                                                
                                        </div>
                                        
                                    </div>
                                   
                                </div>
                                </div>
                                
                               
                            </div>
                            <?php
                            }
                            ?>
                        </form>
                        </div></div>

                    </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";?>

Zerion Mini Shell 1.0