108 lines
6.9 KiB
PHP
108 lines
6.9 KiB
PHP
<?= $this->extend(LAYOUTS[$viewDatas['layout']]['path']) ?>
|
|
<?= $this->section('content') ?>
|
|
<?php if ($error = session('error')): echo $viewDatas['helper']->alert($error) ?><?php endif ?>
|
|
<div class="layout_top"><?= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/top'); ?></div>
|
|
<!-- Layout Middle Start -->
|
|
<table class="layout_middle">
|
|
<tr>
|
|
<td class="layout_left">
|
|
<!-- Layout Left Start -->
|
|
<?= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/left_menu'); ?>
|
|
<!-- Layout Left End -->
|
|
</td>
|
|
<td class="layout_right">
|
|
<!-- Layout Right Start -->
|
|
<div class="layout_header"><?= $this->include("templates/{$viewDatas['layout']}/index_header"); ?></div>
|
|
<div id="container" class="layout_content">
|
|
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
|
<div class="index_body">
|
|
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
|
<?= 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>
|
|
<th class="index_head_short_column">
|
|
<?= $viewDatas['helper']->getListLabel('site', lang("{$viewDatas['class_path']}.label.site"), $viewDatas) ?>/
|
|
<?= $viewDatas['helper']->getListLabel('location', lang("{$viewDatas['class_path']}.label.location"), $viewDatas) ?>
|
|
</th>
|
|
<th class="index_head_short_column">
|
|
<?= $viewDatas['helper']->getListLabel('clientinfo_uid', lang("{$viewDatas['class_path']}.label.clientinfo_uid"), $viewDatas) ?>/
|
|
<?= $viewDatas['helper']->getListLabel('type', lang("{$viewDatas['class_path']}.label.type"), $viewDatas) ?>
|
|
</th>
|
|
<th class="index_head_short_column">
|
|
<?= $viewDatas['helper']->getListLabel('serverinfo_uid', lang("{$viewDatas['class_path']}.label.serverinfo_uid"), $viewDatas) ?>/
|
|
<?= $viewDatas['helper']->getListLabel('start_at', lang("{$viewDatas['class_path']}.label.start_at"), $viewDatas) ?>
|
|
</th>
|
|
<th class="index_head_short_column">
|
|
<?= $viewDatas['helper']->getListLabel('amount', lang("{$viewDatas['class_path']}.label.amount"), $viewDatas) ?>/
|
|
<?= $viewDatas['helper']->getListLabel('billing_at', lang("{$viewDatas['class_path']}.label.billing_at"), $viewDatas) ?>
|
|
</th>
|
|
<th class="index_head_short_column">
|
|
<?= $viewDatas['helper']->getListLabel('status', lang("{$viewDatas['class_path']}.label.status"), $viewDatas) ?>/
|
|
<?= $viewDatas['helper']->getListLabel('updated_at', lang("{$viewDatas['class_path']}.label.updated_at"), $viewDatas) ?>
|
|
</th>
|
|
<th class="index_head_short_column">부품정보</th>
|
|
<th class="index_head_short_column"><?= $viewDatas['helper']->getListLabel('user_uid', lang("{$viewDatas['class_path']}.label.user_uid"), $viewDatas) ?></th>
|
|
<th class="index_head_short_column">작업</th>
|
|
</thead>
|
|
<tbody>
|
|
<?php $cnt = 0 ?>
|
|
<?php foreach ($viewDatas['entities'] as $entity): ?>
|
|
<?php $viewDatas['entity'] = $entity; ?>
|
|
<tr <?= $entity->getStatus() === $entity::DEFAULT_STATUS ? "" : 'class="table-danger"' ?>>
|
|
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
|
<td nowrap><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
|
|
<td nowrap>
|
|
<div><?= $viewDatas['helper']->getFieldView('site', $entity->site, $viewDatas) ?></div>
|
|
<div><?= $viewDatas['helper']->getFieldView('location', $entity->location, $viewDatas) ?></div>
|
|
</td>
|
|
<td nowrap>
|
|
<div><?= $viewDatas['helper']->getFieldView('clientinfo_uid', $entity->getClientInfoUID(), $viewDatas) ?></div>
|
|
<div><?= $viewDatas['helper']->getFieldView('type', $entity->type, $viewDatas) ?></div>
|
|
</td>
|
|
<td nowrap>
|
|
<div><?= $viewDatas['helper']->getFieldView('serverinfo_uid', $entity->getServerEntity()->getTitle(), $viewDatas) ?></div>
|
|
<div><?= $viewDatas['helper']->getFieldView('start_at', $entity->start_at, $viewDatas) ?></div>
|
|
</td>
|
|
<td nowrap>
|
|
<div><?= $viewDatas['helper']->getFieldView('amount', $entity->amount, $viewDatas) ?></div>
|
|
<div><?= $viewDatas['helper']->getFieldView('billing_at', $entity->billing_at, $viewDatas) ?></div>
|
|
</td>
|
|
<td nowrap>
|
|
<div><?= $viewDatas['helper']->getFieldView('status', $entity->status, $viewDatas) ?></div>
|
|
<div><?= $viewDatas['helper']->getFieldView('updated_at', $entity->updated_at, $viewDatas) ?></div>
|
|
</td>
|
|
<td nowrap>
|
|
<table class="table table-bordered table-striped m-0 p-0">
|
|
<?php foreach (SERVERPART['PARTTYPES'] as $partType): ?>
|
|
<tr class="m-0 p-0">
|
|
<th class="m-0 p-0"><?= $viewDatas['helper']->getListButton($partType, $partType, $viewDatas) ?></th>
|
|
<td class="m-0 p-0"><?= $viewDatas['helper']->getFieldView($partType, "", $viewDatas) ?></td>
|
|
</tr>
|
|
<?php endforeach ?>
|
|
</table>
|
|
</td>
|
|
<td nowrap><?= $viewDatas['helper']->getFieldView('user_uid', $entity->user_uid, $viewDatas) ?></td>
|
|
<td nowrap>
|
|
<?= $viewDatas['helper']->getListButton('view', '', $viewDatas) ?>
|
|
<?= $viewDatas['helper']->getListButton('history', '', $viewDatas) ?>
|
|
<?= $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
|
|
</td>
|
|
</tr>
|
|
<?php $cnt++ ?>
|
|
<?php endforeach ?>
|
|
</tbody>
|
|
</table>
|
|
<?= $this->include("templates/{$viewDatas['layout']}/index_content_bottom"); ?>
|
|
<?= form_close() ?>
|
|
</div>
|
|
</div>
|
|
<div class="layout_footer"><?= $this->include("templates/{$viewDatas['layout']}/index_footer"); ?></div>
|
|
<!-- Layout Right End -->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- Layout Middle End -->
|
|
<div class="layout_bottom"><?= $this->include(LAYOUTS[$viewDatas['layout']]['path'] . '/bottom'); ?></div>
|
|
<?= $this->endSection() ?>
|