Compare commits

..

2 Commits

6 changed files with 7083 additions and 2 deletions

View File

@ -1086,8 +1086,23 @@ ORDER BY date_sort ASC";
</div>
</div>
<div class="chat-content" id="chat_content_<?=$event['id']?>">
<div class="head">
<div class="head" style="display:flex;align-items:center;gap:8px;">
<span>Сделка</span>
<?php
$deal_id_for_edit = null;
if (!empty($event['req_id'])) {
$sql_deal = "SELECT id FROM deals WHERE side_one_requisition_id = " . intval($event['req_id']) . " LIMIT 1";
$rez_deal = mysql_query($sql_deal);
if ($rez_deal && mysql_num_rows($rez_deal) > 0) {
$row_deal = mysql_fetch_assoc($rez_deal);
$deal_id_for_edit = $row_deal['id'];
}
}
if ($deal_id_for_edit) { ?>
<a href="javascript:{}" class="no-border" onclick="if(window.editDeal){window.editDeal(<?=intval($event['req_id'])?>, <?=$deal_id_for_edit?>)}" title="Редактировать сделку" style="color:#9e9e9e;font-size:14px;">
<i class="ti-pencil"></i>
</a>
<?php } ?>
<?php if ($event['partner_id']) : ?><sup style="padding-left:3px; font-weight:normal;color:#dea847;" data-partner-id="<?= $event['partner_id'] ?>">от партнёра</sup><?php endif; ?>
</div>
<div class="message">Запланирована сделка на <?=$d?> <?=getRusMonth($m)?> <?=$y?> в <?=date("H:i", strtotime($event['schedule_date']))?></div>

View File

@ -1,2 +1,2 @@
// Авто-сгенерировано: postbuild.js
import '/deal/assets/index-Bdwo4iO1.js';
import '/deal/assets/index-C02jcnWu.js';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long