40 lines
1.5 KiB
PHP
40 lines
1.5 KiB
PHP
|
<?php
|
||
|
|
||
|
//include('pdf_header.php');
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
include('includes/config/config.php');
|
||
|
header('Content-disposition: attachment; filename=excel_training.xls');
|
||
|
?>
|
||
|
<table width="100%" >
|
||
|
<tr><div style="font-size:12px">
|
||
|
<td width="25%" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td>
|
||
|
<td width="50%" align="center" style="font-size:40px"><strong>Excel Training List</strong></td>
|
||
|
<td width="25%" align="left"> User : <?php echo $username ?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
$sql="select * from training_master";
|
||
|
//echo $sql;
|
||
|
|
||
|
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
|
||
|
//echo $result;
|
||
|
|
||
|
?><tr bgcolor='#eeeeee'><th width=5%>Id</th><th width=15%>Training Name</th><th width=20%>Training Desc</th><th width=20%>Training Duration(in minutes)</th><th width=20%>Training Mode</th>
|
||
|
</tr><?php
|
||
|
while($row_traning=mysqli_fetch_array($result)){
|
||
|
//$checkup_name=$row_checkup['checkup_mgmt_name'];
|
||
|
// $sql1="select * from checkup_type where checkup_type_id=$checkup_name";
|
||
|
// $result1 = mysqli_query($conn,$sql1);
|
||
|
//$row_checkup=mysqli_fetch_array($result1);
|
||
|
//$checkup_type=getTableFieldValue('checkup_type','checkup_type_name','checkup_type_id',$row1['checkup_mgmt_name'],'');
|
||
|
?><tr><td><?php echo $row_traning['checkup_mgmt_id']?></td><td><?php echo $row_traning['training_name']?></td><td><?php echo $row_traning['description']?></td><td><?php echo $row_traning['durations'] ?></td><td><?php echo $row_traning['mode_of_training']?></td>
|
||
|
</tr><?php
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
//include('pdf_footer.php');
|
||
|
?>
|