32 lines
1.5 KiB
PHP
32 lines
1.5 KiB
PHP
<?= $this->extend("layouts/{$viewDatas['layout']}") ?>
|
|
<?= $this->section('content') ?>
|
|
<link href="/css/<?= $viewDatas['layout'] ?>/content.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript" src="/js/<?= $viewDatas['layout'] ?>/content.js"></script>
|
|
<?= $this->include('templates/' . $viewDatas['layout'] . '/index_top'); ?>
|
|
<table class="index_table table table-bordered table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>번호</th>
|
|
<?php foreach ($viewDatas['fields'] as $field): ?>
|
|
<?= getListColumns_AccountHelper($field, $viewDatas) ?>
|
|
<?php endforeach ?>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $cnt = 0 ?>
|
|
<?php $old_auth = '' ?>
|
|
<?php foreach ($viewDatas['entitys'] as $entity): ?>
|
|
<tr id="<?= $entity->getPK() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?>>
|
|
<td class="text-center text-wrap">
|
|
<?= anchor(current_url() . '/sync/' . $entity->getPK(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
|
</td>
|
|
<?php foreach ($viewDatas['fields'] as $field): ?>
|
|
<td><?= getFieldView_AccountHelper($field, $entity, $viewDatas, ['old_auth' => $old_auth]) ?></td>
|
|
<?php endforeach ?>
|
|
</tr>
|
|
<?php $cnt++ ?>
|
|
<?php $old_auth = $entity->getParent(); ?>
|
|
<?php endforeach ?>
|
|
</tbody>
|
|
</table>
|
|
<?= $this->endSection() ?>
|