ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/old/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/old/employee-edit.php

<?php  include "header.php";
    $ids=$_GET['id'];
    $statement = $pdo->prepare("SELECT * FROM tbl_user e where e.id=".$ids);
    $statement->execute();
    $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC);
    $totalData = $statement->rowCount();


?>
<div class="content-wrapper" style="background:white;">
        <section class="content-header">
            <h4><b>Update Employee Details</b></h4>
            <ol class="breadcrumb">
                <li><a href="index.php"><i class="fa fa-dashboard"></i> Home</a></li>
                <li class="active">Update Employee Details</li>            </ol>
        </section>


        <div class="col-lg-12 alerts"><br>
            <div id="custom-alerts" style="display:none;">
                <div class="alert alert-dismissable">
                    <div class="custom-msg"></div>
                </div>
            </div>
            <?php if ($error)  { ?>
            <div class="alert alert-danger alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-ban"></i> Error</h4>
                <?= $error; ?>
            </div>
            <?php $error=0;} if ($warning) { ?>
            <div class="alert alert-warning alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-warning"></i> warning</h4>
                <?= $warning; ?>
            </div>
            <?php  $warning=0;} if ($message) { ?>
            <div class="alert alert-success alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4>    <i class="icon fa fa-check"></i> Success</h4>
                <?= $message; ?>
            </div>
            <?php $message=0; } ?>
        </div>
        <div class="clearfix"></div>







<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div>
                <div class="box-body">
                    <div class="col-lg-12">

                        <form action="" class="validation" enctype="multipart/form-data" method="post" accept-charset="utf-8">
                            
    <?php foreach($emp_data as $data){ ?>
                                    <input type="hidden" name="ids" value="<?=$emp_data[0]['id']?>" class="form-control tip" id="id"  required="required" />

                        
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="emp_name"> Employee Name</label>                                    
                                    <input type="text" name="emp_name" value="<?=$data['emp_name']?>" placeholder="Enter Your Name" class="form-control tip" id="emp_name"  required="required" />
                                </div>
                            </div>
                            
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="username"> User Name</label>    
                                    <input name="username" placeholder="Enter  User Name"  value="<?=$data['username']?>" class="form-control tip" id="username"  required="required"/>
                                </div>
                            </div>
                            
                        </div>
                        
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="emp_mobile"> Employe Mobile</label>                                    
                                    <input type="number" name="emp_mobile" placeholder="Enter Your No" value="<?=$data['emp_mobile']?>" class="form-control tip" id="emp_mobile"  required="required" />
                                </div>
                            </div>
                            
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="address">Address </label>    
                                    <input type="text" name="address" placeholder="Enter Your Address " class="form-control tip" id="address" value="<?=$data['address']?>"  required="required"/>
                                </div>
                            </div>
                            
                        </div>

                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="gender"> Gender</label>                                <div class="form-group">
                                     <select name="gender" class="form-control select2" id="gender" data-placeholder="Enter your Gender Category" style="width:100%;">

                                    <option value="Male">Male</option>
                                    <option value="Female">Female</option>
                                    <option value="Others">Others</option>
                                                </select>
                                            </div> 
                                </div>
                            </div>
                            
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="dob">Date Of Birth </label>    
                                    <input type="date" name="dob" placeholder="Enter your Date of Birth " class="form-control tip" id="dob" value="<?=$data['dob']?>"  required="required"/>
                                </div>
                            </div>
                            
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="joining_date">Joining Date </label>                                    
                                    <input type="text" name="joining_date" placeholder="Enter your Joining Date " value="<?=$data['joining_date']?>" class="form-control tip" id="joining_date"  required="required" />
                                </div>
                            </div>
                            
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="user_type"> User Type</label>    
                                    <input type="text" name="user_type" placeholder="EnterYour User Type" class="form-control tip" id="address" value="<?=$data['user_type']?>"  required="required"/>
                                </div>
                            </div>
                            
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="uan_pf_no"> User Pf Number</label>                                    
                                    <input type="text" name="uan_pf_no" placeholder="Enter your user PF No " value="<?=$data['uan_pf_no']?>" class="form-control tip" id="uan_pf_no"  required="required" />
                                </div>
                            </div>
                            
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="esi_no">User ESI No </label>    
                                    <input type="number" name="esi_no" placeholder="Enter Your ESI NO " class="form-control tip" id="esi_no" value="<?=$data['esi_no']?>"  required="required"/>
                                </div>
                            </div>
                            
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="department_id"> Departement Id</label>                                    
                                    <input type="number" name="department_id" value="<?=$data['department_id']?>" class="form-control tip" placeholder="Enter your Dapartment Id " id="department_id"  required="required" />
                                </div>
                            </div>
                            
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="designation_id"> Desgnation Id</label>    
                                    <input type="text" name="designation_id" placeholder="Enter Your Designation " class="form-control tip" id="designation_id" value="<?=$data['designation_id']?>"  required="required"/>
                                </div>
                            </div>
                            
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="pf_id"> PF No</label>                                    
                                    <input type="text" name="pf_id" placeholder="Enter your PF No " value="<?=$data['pf_id']?>" class="form-control tip" id="pf_id"  required="required" />
                                </div>
                            </div>
                            
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="created_by"> Created By</label>    
                                    <input type="text" name="created_by" placeholder="Enter Your Created Date " class="form-control tip" id="created_by" value="<?=$data['created_by']?>"  required="required"/>
                                </div>
                            </div>
                             <div class="col-md-6">
                                <div class="form-group">
                                    <label class="required" for="updated_by"> Updated By</label>    
                                    <input type="text" name="updated_by" placeholder="Enter Your Updated Date " class="form-control tip" id="updated_by" value="<?=$data['updated_by']?>"  required="required"/>
                                </div>
                            </div>
                        </div>
                        
                              <?php } ?>       

                        <div class="form-group" style="text-align:center;">
                            <input type="submit" name="Update_Employee_Details" value="Update Employee Details"  class="btn btn-success" />
                        </form>
                        </div>

                    </div>
                        <div class="form-group" style="text-align:center;">
                            <?php echo "<a href=holiday-edit.php?id=".$ids.">
                            <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>


<?php }} include "footer.php";?>

Zerion Mini Shell 1.0