57 lines
1.8 KiB
PHP
57 lines
1.8 KiB
PHP
<?php
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
// include('pdf_header.php');
|
|
include('includes/functions.php');
|
|
header('Content-disposition: attachment; filename=excel_auditlog.xls');
|
|
?>
|
|
|
|
<table border="1">
|
|
<?php
|
|
|
|
$sql=base64_decode($filterkey);
|
|
error_log("query: ".$sql);
|
|
$result = @mysqli_query($conn,$sql);
|
|
//echo $result;
|
|
?><tr bgcolor="#eeeeee">
|
|
<th width="2%">Sr.</th>
|
|
<th width="6%">Timestamp</th>
|
|
<th width="12%">Feature Name</th>
|
|
<th width="6%">Feature Action</th>
|
|
<th width="6%">File Name</th>
|
|
<th width="6%">Modified By</th>
|
|
<th width="20%">Request Param</th>
|
|
</tr><?php
|
|
$i=0;
|
|
while($row=@mysqli_fetch_array($result)){
|
|
// $id=$row['id'];
|
|
// $tdate="select DATE(created_time) from audit_log where id='".$id."'";
|
|
// $result_schedule = @mysqli_query($conn,$tdate);
|
|
// while($rows_schedule = mysqli_fetch_assoc($result_schedule)){
|
|
// $created_time=$rows_schedule['DATE(created_time)'];
|
|
// }
|
|
|
|
$user=$row['modified_by'];
|
|
$user_query="SELECT b.role_name FROM tbl_users a left join role_master b on a.role_id=b.role_id left join patient_master e on a.emp_id=e.id where a.user_id='".$user."'";
|
|
$result2=mysqli_query($conn,$user_query);
|
|
while($rows_schedule = mysqli_fetch_assoc($result2)){
|
|
$modified=$rows_schedule['role_name'];
|
|
}
|
|
|
|
$i++;
|
|
|
|
?><tr>
|
|
<td><?php echo $i?></td>
|
|
<td><?php echo date_format(date_create($row['created_time']), "d-M-Y H:i A")?></td>
|
|
<td><?php echo $row['feature_name']?></td>
|
|
<td><?php echo $row['feature_action']?></td>
|
|
<td><?php echo $row['file_name']?></td>
|
|
<td><?php echo $modified?></td>
|
|
<td><?php echo $row['request_param']?></td>
|
|
</tr> <?php
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
// include('pdf_footer.php');
|
|
?>
|