23 lines
1.3 KiB
PHP
23 lines
1.3 KiB
PHP
<?php $htmls = $texts = [] ?>
|
|
<?php foreach ($serverPartCellDatas['types'] as $type): ?>
|
|
<?php $htmls[$type] = [] ?>
|
|
<?php $texts[$type] = []; ?>
|
|
<?php foreach ($serverPartCellDatas['entities'][$type] as $entities): ?>
|
|
<?php foreach ($entities as $entity): ?>
|
|
<?php $serverPartCellDatas['entity'] = $entity ?>
|
|
<?php $htmls[$type][] = $serverPartCellDatas['service']->getHelper()->getFieldView($type, $entity->getPK(), $serverPartCellDatas) ?>
|
|
<?php $texts[$type][] = $serverPartCellDatas['service']->getHelper()->getFieldView($type, $entity->getPK(), $serverPartCellDatas, ['return' => 'onlyText']) ?>
|
|
<?php endforeach ?>
|
|
<?php endforeach ?>
|
|
<?php endforeach ?>
|
|
<?php $view_htmls = [] ?>
|
|
<?php foreach ($htmls as $type => $datas): ?>
|
|
<?php $view_htmls[] = $serverPartCellDatas['service']->getHelper()->getListButton($type, '', $serverPartCellDatas) . implode(",", $datas) ?>
|
|
<?php endforeach ?>
|
|
<?= implode(" / ", $view_htmls) ?>
|
|
<?php $view_texts = [] ?>
|
|
<?php foreach ($htmls as $type => $datas): ?>
|
|
<?php $view_texts[] = implode(',', $texts[$type]) ?>
|
|
<?php endforeach ?>
|
|
<?php $text = implode(" / ", $view_texts) ?>
|
|
<div class="serverparts float-end rounded border border-primary" style="cursor:pointer;" onClick="copyServerPartToClipboard('<?= $text ?>')" text-data="<?= $text ?>">COPY</div>
|