55 lines
2.9 KiB
PHP
55 lines
2.9 KiB
PHP
<?= $this->extend(LAYOUTS[$viewDatas['control']['layout']]['path']) ?>
|
|
<?= $this->section('content') ?>
|
|
<?php if ($error = session('error')): echo $viewDatas['service']->getHelper()->alertTrait($error) ?><?php endif ?>
|
|
<!-- Layout Right Start -->
|
|
<div id="container" class="layout_content">
|
|
<link href="/css/<?= $viewDatas['control']['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<div class="index_body">
|
|
<?= form_open(current_url(), ["method" => "get"]) ?>
|
|
<nav class="index_top navbar navbar-expand-lg">
|
|
<div class="container-fluid">
|
|
<nav class="condition nav">
|
|
조건:
|
|
<?php foreach ($viewDatas['control']['formFilters'] as $field): ?>
|
|
<?= $viewDatas['service']->getHelper()->getListFilter($field, $viewDatas['control']['index_filters'][$field] ?? old($field), $viewDatas) ?>
|
|
<?php endforeach ?>
|
|
</nav>
|
|
</div>
|
|
</nav>
|
|
<?= form_close() ?>
|
|
<?= form_open(current_url(), ['id' => 'batchjob_form', 'method' => "post"]) ?>
|
|
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="reisze_table">
|
|
<thead>
|
|
<tr>
|
|
<th class="index_head_short_column">번호</th>
|
|
<?php foreach ($viewDatas['control']['formFields'] as $field): ?>
|
|
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['service']->getHelper()->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
|
|
<?php endforeach ?>
|
|
<th class="index_head_short_column">작업</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $cnt = 0 ?>
|
|
<?php foreach ($viewDatas['entities'] as $entity): ?>
|
|
<?php $viewDatas['entity'] = $entity; ?>
|
|
<tr <?= $viewDatas['entity']->getStatus() === $viewDatas['entity']::DEFAULT_STATUS ? "" : 'class="table-danger"' ?>>
|
|
<?php $num = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
|
<td nowrap><?= $viewDatas['service']->getHelper()->getListButton('modify', $num, $viewDatas) ?></td>
|
|
<?php foreach ($viewDatas['control']['formFields'] as $field): ?>
|
|
<td nowrap><?= $viewDatas['service']->getHelper()->getFieldView($field, $entity->$field, $viewDatas) ?></td>
|
|
<?php endforeach ?>
|
|
<td nowrap>
|
|
<?= $viewDatas['service']->getHelper()->getListButton('view', '', $viewDatas) ?>
|
|
<?= $viewDatas['service']->getHelper()->getListButton('delete', '', $viewDatas) ?>
|
|
</td>
|
|
</tr>
|
|
<?php $cnt++ ?>
|
|
<?php endforeach ?>
|
|
</tbody>
|
|
</table>
|
|
<?= $this->include("templates/{$viewDatas['control']['layout']}/index_content_bottom"); ?>
|
|
<?= form_close() ?>
|
|
</div>
|
|
</div>
|
|
<div class="layout_footer"><?= $this->include("templates/{$viewDatas['control']['layout']}/index_footer"); ?></div>
|
|
<?= $this->endSection() ?>
|