lead edit page
This commit is contained in:
@@ -173,7 +173,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="flex flex-col div-custom-margin">
|
||||
<div class="flex flex-col div-custom-margin" style="" >
|
||||
<div class="bg-[#F6F6F6] rounded-xl p-3">
|
||||
<div class="flex flex-row place-content-between" style="border-bottom: 2px solid #7E8299; border-style: dashed; padding-bottom: 3px;">
|
||||
<p style="font-size: 25px; font-weight: bold;">Comments: <span><?php echo$totalRecords; ?></span></p>
|
||||
@@ -286,6 +286,17 @@
|
||||
$stmt->bindParam(':leadid', $_GET['id']);
|
||||
$stmt->execute();
|
||||
$appt_data = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
$appt_rowCount = count($appt_data);
|
||||
|
||||
if($appt_rowCount > 0){
|
||||
foreach($appt_data as $apptID){
|
||||
$apptID = $apptID['id'];
|
||||
}
|
||||
}else{
|
||||
$apptID = 1;
|
||||
}
|
||||
// echo $apptID;
|
||||
|
||||
// Custom function to compare appointment dates
|
||||
function compareAppointmentDates($a, $b) {
|
||||
@@ -311,9 +322,8 @@
|
||||
|
||||
// Sort appointments based on appointment date
|
||||
usort($appt_data, 'compareAppointmentDates');
|
||||
foreach($appt_data as $appt){
|
||||
$apptID = $appt['id'];
|
||||
// echo $appt['name'];
|
||||
foreach($appt_data as $appt){
|
||||
|
||||
$apptDate = explode(" ", $appt['appt_date']);
|
||||
$currentDateTime = new DateTime();
|
||||
$appointmentDateTime = new DateTime($appt['appt_date']);
|
||||
|
||||
Reference in New Issue
Block a user