ESH/notice_details_dashboard_card.php

44 lines
1.8 KiB
PHP
Raw Normal View History

2024-10-23 18:28:06 +05:30
<div class="card" onclick="window.location='notice_details.php'">
<div class="card-header border-transparent">
<h4 class="card-title"><a href="notice_details.php" style="cursor: pointer !important;"> Notices of <?php echo date('d-m-Y');?></a></h4>
</div>
<!-- /.card-header -->
<div class="card-body p-0">
<div class="table-responsive">
<table class="table m-0" >
<thead>
<tr style="color:black;">
<th width="4%" style="background-color:white"><strong>Sr.</strong></th>
<th width="60%" style="background-color:white"><strong>Notice Details</strong></th>
<th width="20%" style="background-color:white"><strong>Issued By</strong></th>
<th width="20%" style="background-color:white"><strong>Issued To</strong></th>
<th width="16%" style="background-color:white"><strong>Status</strong></th>
</tr>
</thead>
<tbody>
<?php
date_default_timezone_set('Asia/Kolkata');
$current_date= date('Y-m-d', strtotime('today'));
$sql="SELECT * FROM notice where expiry_date >='".$current_date."' and trigger_date<='".$current_date."' and status IN ('incomplate','pending') ";
// error_log("query: ".$sql);
$result = @mysqli_query($conn,$sql);
?><?php
$i=1;
//echo $sql;
while($row=@mysqli_fetch_array($result)){
?><tr><td><?php echo $i++;?></td><td><?php echo mb_strimwidth($row['notice_details'], 0, 90, '...'); ?></td><td><?php echo $row['issued_by']?></td><td><?php echo $row['issued_to']?></td><td><?php echo $row['status']?></td></tr><?php
if($i>8){
break;
}
}
?>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
</div>