Add status in events

This commit is contained in:
mac 2026-07-01 09:37:27 +03:00
parent ec2d8a1ee4
commit 1cc2fe3ab4
2 changed files with 13 additions and 0 deletions

View File

@ -1227,6 +1227,13 @@ ORDER BY date_sort ASC";
echo '</div>';
}
?>
<?php
if ($deal_data['status'] == 1) {
echo '<div class="message" style="margin-top:8px;font-size:13px;color:#388e3c;font-weight:500;">✓ Сделка закрыта успешно</div>';
} else if ($deal_data['status'] == 2) {
echo '<div class="message" style="margin-top:8px;font-size:13px;color:#e57373;font-weight:500;">✗ Сделка отменена</div>';
}
?>
<?php if (!$event['cancel']) { ?>
<div style="position:absolute;top:8px;right:8px;" class="d-flex gap-1">
<a href="javascript:{}" class="no-border" onclick="if(window.editDeal){window.editDeal(<?=intval($event['req_id'] ?: 0)?>, <?=$deal_id_for_edit?>)}" title="Редактировать сделку" style="color:#999;font-size:16px;line-height:1;">

View File

@ -1196,6 +1196,12 @@ if ($_SESSION['id'] && $objIdNum) {
}
echo '</div>';
}
<?php
if ($deal_data['status'] == 1) {
echo '<div class="message" style="margin-top:8px;font-size:13px;color:#388e3c;font-weight:500;">✓ Сделка закрыта успешно</div>';
} else if ($deal_data['status'] == 2) {
echo '<div class="message" style="margin-top:8px;font-size:13px;color:#e57373;font-weight:500;">✗ Сделка отменена</div>';
}
?>
<?php } else { ?>
<?php if ($event['sum']) { ?>