FIX_Bug review

This commit is contained in:
VE10-Sanjeev 2024-09-20 13:03:42 +00:00
parent baa0d4a068
commit 9106648333
2 changed files with 9 additions and 5 deletions

View File

@ -147,6 +147,7 @@
</thead> </thead>
<tbody> <tbody>
<?php $tempinx = 0; <?php $tempinx = 0;
// print_r($expiring_membership);
if(!empty($expiring_membership)): if(!empty($expiring_membership)):
foreach ($expiring_membership as $e) : foreach ($expiring_membership as $e) :
$daysincount = (int)$e['countdays']; $daysincount = (int)$e['countdays'];
@ -162,8 +163,11 @@
<td><span class="badge badge-success badge-pill"><?= $daysincountstring; ?></span> <span class="font-13"><br><?= $e['to_subscription_date_format']; ?></span></td> <td><span class="badge badge-success badge-pill"><?= $daysincountstring; ?></span> <span class="font-13"><br><?= $e['to_subscription_date_format']; ?></span></td>
<td> <td>
<?php <?php
$startDateTime = isset($e['notifications'][0]['start_date_time']) ? $e['notifications'][0]['start_date_time'] : ''; $notifications = $e['notifications'];
echo $startDateTime ? date('d-m-Y', strtotime($startDateTime)) : ''; $lastNotification = end($notifications);
$lastStartDateTime = $lastNotification['start_date_time'];
$startDateTime = isset($lastStartDateTime) ? $lastStartDateTime : '';
echo $startDateTime ? date('d/m/Y', strtotime($startDateTime)) : '';
?> ?>
</td> </td>
</tr> </tr>

View File

@ -176,12 +176,12 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label class="form-check-label">Select Action:</label> <label class="form-check-label">Select Action:</label>
<div class="form-check"> <div style="display:none" class="form-check">
<input class="form-check-input" type="radio" name="action" value="1" checked> <input class="form-check-input" type="radio" name="action" value="1">
<label class="form-check-label">1</label> <label class="form-check-label">1</label>
</div> </div>
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="radio" name="action" value="2"> <input class="form-check-input" type="radio" name="action" value="2" checked>
<label class="form-check-label">2 x 4(A4)</label> <label class="form-check-label">2 x 4(A4)</label>
</div> </div>
</div> </div>