ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,44 @@
<?php
/* @var $block Lts\Inventory\Block\Index\Index */
?>
<?php echo $block->getMessagesHtml(); ?>
<div class="block">
<div class="block-content">
<?php
foreach ($block->getInventorySources() as $item):
$source = $item->getSource();
$border = 'border-bottom: 1px solid #ded6d6;';
if ($item->getEntityId()) {
$border = 'border-bottom: 2px solid;';
}
?>
<div class="box" style="<?= $border ?> padding-bottom: 15px;">
<div class="box-content">
<b><?= $source->getName() ?></b>
<p><b>Tel:</b> <?= $source->getPhone() ?></p>
<address>
<?= $source->getStreet() ?>, <?= $source->getCity() ?>, <?= $source->getRegion() ?>, <?= $source->getCountryId() ?> <?= $source->getPostcode() ?>
</address>
</div>
<div class="box-actions" style="text-align: end;">
<?php
if ($item->getEntityId()):
?>
<a class="action" style="background-color: rgb(206, 33, 39);">
<span>My Preferred</span>
</a>
<?php
else:
?>
<a class="action edit" href="<?php echo $block->getUrl('lts_inventory/index/index/', ['code' => $source->getSourceCode()]); ?>">
<span>Prefer</span>
</a>
<?php
endif;
?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>