ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/obnovit-tracking/site-view.php |
<?php include "header.php"; $id=$_GET['id']; $statement = $pdo->prepare("SELECT * FROM tbl_site 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> Site 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> Site 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">Site Name :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="name"><?=$data['site_name']?></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">Site Code :</label> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="lbl" for="fname"><?=$data['site_code']?></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> </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";?>