csrtechnew.ohctech.in/activity_pdf.php
2025-04-14 13:28:09 +05:30

79 lines
2.1 KiB
PHP

<?php include('pdf_header_reverse.php'); ?>
<html>
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #ccc;
padding: 10px;
text-align: center;
}
th {
background-color: #eeeeee;
text-transform: uppercase;
}
.header-info {
display: flex;
justify-content: space-between;
align-items: center; /* Center vertically */
font-size: 12px;
margin-bottom: 20px;
}
.activity-title {
flex: 1; /* Allow this div to take up space */
text-align: center; /* Center the activity title */
}
</style>
<body>
<?php include('list_pdf_header.php'); ?>
<div class="header-info">
<div class="activity-title" style="font-size: larger; padding-top: 10px"><strong>Activity List</strong></div>
<div>User: <?php echo $username; ?></div>
</div>
<table>
<tr>
<th width="5%">Sr No.</th>
<th width="20%">Activity Name</th>
<th width="20%">Activity Code</th>
<th width="20%">Activity Status</th>
<th width="12%">Beneficiary Category</th>
<th width="12%">Saleing</th>
</tr>
<?php
$i = 1;
$sql = "SELECT * FROM program_master";
error_log("PDF " . $sql);
$result = mysqli_query($conn, $sql);
while ($fetchData = mysqli_fetch_array($result)) {
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $fetchData['program_name']; ?></td>
<td><?php echo $fetchData['program_code']; ?></td>
<td><?php echo $fetchData['program_status']; ?></td>
<td><?php echo $fetchData['beneficiary_category']; ?></td>
<td><?php echo $fetchData['saleing']; ?></td>
</tr>
<?php
$i++;
}
?>
</table>
</body>
</html>
<?php include('pdf_footer.php'); ?>