42 lines
1.5 KiB
PHP
42 lines
1.5 KiB
PHP
|
<?php
|
||
|
include('pdf_header.php');
|
||
|
//include('includes/config/config.php');
|
||
|
//include('includes/functions.php');
|
||
|
include('log_entry.php');
|
||
|
//include('pop_up_top.php');
|
||
|
?>
|
||
|
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
|
||
|
<style>
|
||
|
|
||
|
</style>
|
||
|
<table width="100%" border="1px solid black">
|
||
|
<?php
|
||
|
$sql="select * from covid_wah_questions";
|
||
|
//echo $sql;
|
||
|
error_log("query: ".$sql);
|
||
|
$result = @mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
?><tr bgcolor="#eeeeee"><th width="3%">SR NO.</th><th width="15%">QUESTIONS IN ENGLISH</th><th width="15%">QUESTIONS IN HINDI</th><th width="5%">TYPE</th><th width="5%">SEQUENCE</th></tr><?php
|
||
|
$i=0;
|
||
|
while($row=@mysqli_fetch_array($result)){
|
||
|
$i++;
|
||
|
// calculate age by dob
|
||
|
// $age = date_diff(date_create($row['dob']), date_create('now'))->y;
|
||
|
// $date_added=date_create($row['date_added']);
|
||
|
// $date_added=date_format($date_added,"d-m-Y");
|
||
|
// $resumed_duties_from=date_create($row['resumed_duties_from']);
|
||
|
// $resumed_duties_from=date_format($resumed_duties_from,"d-m-Y");
|
||
|
// $tested_positive_on=date('d-m-Y h:i A', strtotime($row['tested_positive_on']));
|
||
|
// $discharge_on=date('d-m-Y h:i A', strtotime($row['discharge_on']));
|
||
|
|
||
|
?><tr><td><?php echo $i?></td><td><?php echo $row['question']?></td><td><?php echo $row['question_hindi']?></td><td><?php echo $row['type']?></td><td><?php echo $row['sequence']?></td></tr><?php
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
include('pdf_footer.php');
|
||
|
?>
|
||
|
<script>
|
||
|
|
||
|
|
||
|
</script>
|