71 lines
3.3 KiB
PHP
71 lines
3.3 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'); ?>
|
|
<?= form_open(current_url() . '/batchjob', $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
|
|
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="table.mapurl">
|
|
<thead>
|
|
<tr>
|
|
<th nowrap>번호</th>
|
|
<?php foreach ($viewDatas['fields'] as $field): ?>
|
|
<?= getListLabel_MapurlHelper($field, $viewDatas, ["data-rtc-resizable=\"{$field}\""]) ?>
|
|
<?php endforeach ?>
|
|
<th nowrap>작업</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $cnt = 0 ?>
|
|
<?php foreach ($viewDatas['entitys'] as $entity): ?>
|
|
<tr <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?>>
|
|
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
|
<?php $viewDatas['entity'] = $entity; ?>
|
|
<td class="text-center" nowrap>
|
|
<?= getListButton_MapurlHelper('modify', $viewDatas, ["style" => "cursor:pointer"]) ?>
|
|
</td>
|
|
<?php foreach ($viewDatas['fields'] as $field): ?>
|
|
<td><?= getFieldView_MapurlHelper($field, $viewDatas) ?></td>
|
|
<?php endforeach ?>
|
|
<td nowrap>
|
|
<?= getListButton_MapurlHelper('delete', $viewDatas) ?>
|
|
</td>
|
|
</tr>
|
|
<?php $cnt++ ?>
|
|
<?php endforeach ?>
|
|
</tbody>
|
|
</table>
|
|
<div class="index_bottom">
|
|
<ul class="nav justify-content-center">
|
|
<li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li>
|
|
<?php foreach ($viewDatas['batchjob_fields'] as $field): ?>
|
|
<?= getFieldForm_MapurlHelper($field, DEFAULTS['EMPTY'], $viewDatas) ?>
|
|
<?php endforeach ?>
|
|
<li class="nav-item"><?= form_submit("", '일괄처리', ["class" => "btn btn-outline btn-warning"]) ?></li>
|
|
<li class="nav-item"><?= getListButton_MapurlHelper('create', $viewDatas, ["style" => "cursor:pointer"]) ?></li>
|
|
</ul>
|
|
</div>
|
|
<?= form_close() ?>
|
|
<div class=" index_pagination"><?= $viewDatas['pagination'] ?></div>
|
|
<?php if (in_array($viewDatas['action_form'], [FORMS['MODAL'], FORMS['IFRAME']])): ?>
|
|
<?= $this->include('templates/' . $viewDatas['layout'] . '/' . $viewDatas['action_form']); ?>
|
|
<?php endif ?>
|
|
<link href="/css/resizeTable.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript" src="/js/resizeTable.js"></script>
|
|
<script>
|
|
(function (window, ResizableTableColumns, undefined) {
|
|
var store = window.store && window.store.enabled ? window.store : null;
|
|
var els = document.querySelectorAll('table.data');
|
|
for (var index = 0; index < els.length; index++) {
|
|
var table = els[index];
|
|
if (table['rtc_data_object']) {
|
|
continue;
|
|
}
|
|
var options = { store: store };
|
|
if (table.querySelectorAll('thead > tr').length > 1) {
|
|
options.resizeFromBody = false;
|
|
}
|
|
new ResizableTableColumns(els[index], options);
|
|
}
|
|
})(window, window.validide_resizableTableColumns.ResizableTableColumns, void (0));
|
|
</script>
|
|
<?= $this->endSection() ?>
|