dbms_init...1

This commit is contained in:
choi.jh 2025-07-04 10:32:30 +09:00
parent 869ed66b1e
commit b5986c740d
20 changed files with 67 additions and 67 deletions

View File

@ -197,13 +197,13 @@ class CommonHelper
return $ips; return $ips;
} }
public function getFieldLabel(string $field, array $viewDatas, array $extras = []): string public function getFieldLabel(string $field, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($field) { switch ($field) {
default: default:
// required가 있으면 class 추가 // required가 있으면 class 추가
$extras = (strpos($viewDatas['control']['field_rules'][$field], 'required') !== false) ? ["class" => "text-danger", "required" => "", ...$extras] : $extras; $extras = (strpos($viewDatas['control']['field_rules'][$field], 'required') !== false) ? ["class" => "text-danger", "required" => "", ...$extras] : $extras;
$label = form_label(array_key_exists('label', $extras) ? $extras['label'] : lang("{$viewDatas['class_path']}.label.{$field}"), $field, $extras); $label = form_label($label, $field, $extras);
break; break;
} }
return $label; return $label;
@ -332,11 +332,11 @@ class CommonHelper
return $entity->isMatched($field, $value) ? "" : 'class="table-danger"'; return $entity->isMatched($field, $value) ? "" : 'class="table-danger"';
} }
public function getListLabel(string $field, array $viewDatas, array $extras = []): string public function getListLabel(string $field, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($field) { switch ($field) {
default: default:
$label = $this->getFieldLabel($field, $viewDatas, $extras); $label = $this->getFieldLabel($field, $label, $viewDatas, $extras);
if (isset($viewDatas['order_field']) && $viewDatas['order_field'] == $field) { if (isset($viewDatas['order_field']) && $viewDatas['order_field'] == $field) {
$label .= $viewDatas['order_value'] == 'ASC' ? ICONS["UP"] : ICONS["DOWN"]; $label .= $viewDatas['order_value'] == 'ASC' ? ICONS["UP"] : ICONS["DOWN"];
} }
@ -350,14 +350,14 @@ class CommonHelper
return $label; return $label;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'create': case 'create':
// echo current_url() . '/' . $action . '?' . $viewDatas['uri']->getQuery(); // echo current_url() . '/' . $action . '?' . $viewDatas['uri']->getQuery();
$extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras]; $extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras];
$action = form_label( $action = form_label(
array_key_exists('label', $extras) ? $extras['label'] : ICONS['ADD'], $label ? $label : ICONS['ADD'],
$action, $action,
[ [
"data-src" => current_url() . '/' . $action . '?' . $viewDatas['uri']->getQuery(), "data-src" => current_url() . '/' . $action . '?' . $viewDatas['uri']->getQuery(),
@ -378,7 +378,7 @@ class CommonHelper
"checked" => in_array($viewDatas['entity']->getPK(), $oldBatchJobUids) "checked" => in_array($viewDatas['entity']->getPK(), $oldBatchJobUids)
]); ]);
$action = $checkbox . form_label( $action = $checkbox . form_label(
$viewDatas['cnt'], $label ? $label : $viewDatas['cnt'],
$action, $action,
[ [
"data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK() . '?' . $viewDatas['uri']->getQuery(), "data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK() . '?' . $viewDatas['uri']->getQuery(),
@ -391,7 +391,7 @@ class CommonHelper
case 'view': case 'view':
$extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras]; $extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras];
$action = form_label( $action = form_label(
array_key_exists('label', $extras) ? $extras['label'] : ICONS['SEARCH'], $label ? $label : ICONS['SEARCH'],
$action, $action,
[ [
"data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK(), "data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK(),
@ -405,19 +405,19 @@ class CommonHelper
$extras = ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self", ...$extras]; $extras = ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self", ...$extras];
$action = anchor( $action = anchor(
current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK(), current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK(),
array_key_exists('label', $extras) ? $extras['label'] : ICONS['DELETE'], $label ? $label : ICONS['DELETE'],
$extras $extras
); );
break; break;
case 'batchjob': case 'batchjob':
$action = form_submit("batchjob_submit", '일괄처리', [ $action = form_submit("batchjob_submit", $label ? $label : '일괄처리', [
"formaction" => current_url() . '/batchjob', "formaction" => current_url() . '/batchjob',
"class" => "btn btn-outline btn-warning", "class" => "btn btn-outline btn-warning",
// "onclick" => "return submitBatchJob()" // "onclick" => "return submitBatchJob()"
]); ]);
break; break;
case 'batchjob_delete': case 'batchjob_delete':
$action = form_submit("batchjob_submit", '일괄삭제', [ $action = form_submit("batchjob_submit", $label ? $label : '일괄삭제', [
"formaction" => current_url() . '/batchjob_delete', "formaction" => current_url() . '/batchjob_delete',
"class" => "btn btn-outline btn-danger", "class" => "btn btn-outline btn-danger",
// "onclick" => "return submitBatchJobDelete()" // "onclick" => "return submitBatchJobDelete()"

View File

@ -26,7 +26,7 @@ class AccountHelper extends CustomerHelper
} }
return $value; return $value;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'modify': case 'modify':
@ -36,7 +36,7 @@ class AccountHelper extends CustomerHelper
$action = ""; $action = "";
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -67,16 +67,16 @@ class ClientHelper extends CustomerHelper
} }
return $value; return $value;
} // } //
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'modify': case 'modify':
$action = !$this->getMyAuth()->isAccessRole(['security']) ? $viewDatas['cnt'] : parent::getListButton($action, $viewDatas, $extras); $action = !$this->getMyAuth()->isAccessRole(['security']) ? $viewDatas['cnt'] : parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
case 'delete': case 'delete':
case 'batchjob': case 'batchjob':
case 'batchjob_delete': case 'batchjob_delete':
$action = !$this->getMyAuth()->isAccessRole(['security']) ? "" : parent::getListButton($action, $viewDatas, $extras); $action = !$this->getMyAuth()->isAccessRole(['security']) ? "" : parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
case 'history': case 'history':
$extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras]; $extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras];
@ -92,7 +92,7 @@ class ClientHelper extends CustomerHelper
); );
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -26,7 +26,7 @@ class CouponHelper extends CustomerHelper
} }
return $value; return $value;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'modify': case 'modify':
@ -36,7 +36,7 @@ class CouponHelper extends CustomerHelper
$action = ""; $action = "";
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -27,7 +27,7 @@ class PointHelper extends CustomerHelper
} }
return $value; return $value;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'modify': case 'modify':
@ -37,7 +37,7 @@ class PointHelper extends CustomerHelper
$action = ""; $action = "";
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -13,7 +13,7 @@ class ServiceHelper extends CustomerHelper
parent::__construct(); parent::__construct();
$this->setTitleField(field: ServiceModel::TITLE); $this->setTitleField(field: ServiceModel::TITLE);
} }
public function getFieldLabel(string $field, array $viewDatas, array $extras = []): string public function getFieldLabel(string $field, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($field) { switch ($field) {
case "LINE": case "LINE":
@ -39,7 +39,7 @@ class ServiceHelper extends CustomerHelper
); );
break; break;
default: default:
$label = parent::getFieldLabel($field, $viewDatas, $extras); $label = parent::getFieldLabel($field, $label, $viewDatas, $extras);
break; break;
} }
return $label; return $label;
@ -159,13 +159,13 @@ class ServiceHelper extends CustomerHelper
return $value; return $value;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'history': case 'history':
$extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras]; $extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras];
$action = form_label( $action = form_label(
ICONS['HISTORY'], $label ? $label : ICONS['HISTORY'],
$action, $action,
[ [
"data-src" => "/admin/customer/servicehistory?serviceinfo_uid={$viewDatas['entity']->getPK()}", "data-src" => "/admin/customer/servicehistory?serviceinfo_uid={$viewDatas['entity']->getPK()}",
@ -176,7 +176,7 @@ class ServiceHelper extends CustomerHelper
); );
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -35,7 +35,7 @@ class ServicePaymentHelper extends CustomerHelper
} }
return $value; return $value;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'invoice': case 'invoice':
@ -49,11 +49,11 @@ class ServicePaymentHelper extends CustomerHelper
if ($viewDatas['entity']->getStatus() !== DEFAULTS['STATUS']) { if ($viewDatas['entity']->getStatus() !== DEFAULTS['STATUS']) {
$action = ""; $action = "";
} else { } else {
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
} }
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -63,13 +63,13 @@ class HomeHelper extends CommonHelper
} }
return $value; return $value;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'new_service_view': case 'new_service_view':
$extras = ["class" => "btn btn-outline btn-light btn-circle", "target" => "_self", ...$extras]; $extras = ["class" => "btn btn-outline btn-light btn-circle", "target" => "_self", ...$extras];
$action = form_label( $action = form_label(
array_key_exists('label', $extras) ? $extras['label'] : ICONS['SEARCH'], $label ? $label : ICONS['SEARCH'],
$action, $action,
[ [
"data-src" => '/admin/customer/service/view/' . $viewDatas['entity']->getPK(), "data-src" => '/admin/customer/service/view/' . $viewDatas['entity']->getPK(),
@ -80,7 +80,7 @@ class HomeHelper extends CommonHelper
); );
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -33,7 +33,7 @@ class MyLogHelper extends CommonHelper
} }
return $value; return $value;
} }
public function getListButton(string $action, array $viewDatas, array $extras = []): string public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
{ {
switch ($action) { switch ($action) {
case 'create': case 'create':
@ -52,7 +52,7 @@ class MyLogHelper extends CommonHelper
$action = ""; $action = "";
break; break;
default: default:
$action = parent::getListButton($action, $viewDatas, $extras); $action = parent::getListButton($action, $label, $viewDatas, $extras);
break; break;
} }
return $action; return $action;

View File

@ -23,7 +23,7 @@
<tr> <tr>
<th class="index_head_short_column">번호</th> <th class="index_head_short_column">번호</th>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, $viewDatas) ?></th> <th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<?php endforeach ?> <?php endforeach ?>
<th class="index_head_short_column">작업</th> <th class="index_head_short_column">작업</th>
</tr> </tr>
@ -34,14 +34,14 @@
<?php $viewDatas['entity'] = $entity; ?> <?php $viewDatas['entity'] = $entity; ?>
<tr <?= $viewDatas['helper']->getListRowColor($entity) ?>> <tr <?= $viewDatas['helper']->getListRowColor($entity) ?>>
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?> <?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
<td><?= $viewDatas['helper']->getListButton('modify', $viewDatas) ?></td> <td><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
<?php endforeach ?> <?php endforeach ?>
<td nowrap> <td nowrap>
<?= $viewDatas['helper']->getListButton('view', $viewDatas) ?>&nbsp; <?= $viewDatas['helper']->getListButton('view', $viewDatas) ?>&nbsp;
<?= $viewDatas['helper']->getListButton('history', $viewDatas) ?>&nbsp; <?= $viewDatas['helper']->getListButton('history', '', $viewDatas) ?>&nbsp;
<?= $viewDatas['helper']->getListButton('delete', $viewDatas) ?> <?= $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
</td> </td>
</tr> </tr>
<?php $cnt++ ?> <?php $cnt++ ?>

View File

@ -8,7 +8,7 @@
<table class="table table-bordered"> <table class="table table-bordered">
<?php foreach ($viewDatas['control']['form_fields'] as $field): ?> <?php foreach ($viewDatas['control']['form_fields'] as $field): ?>
<tr> <tr>
<th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th> <th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<td nowrap class="text-start"> <td nowrap class="text-start">
<?= $viewDatas['helper']->getFieldForm($field, old($field) ?? ($viewDatas[$field] ?? null), $viewDatas) ?> <?= $viewDatas['helper']->getFieldForm($field, old($field) ?? ($viewDatas[$field] ?? null), $viewDatas) ?>
<span><?= validation_show_error($field); ?></span> <span><?= validation_show_error($field); ?></span>

View File

@ -23,7 +23,7 @@
<tr> <tr>
<th class="index_head_short_column">번호</th> <th class="index_head_short_column">번호</th>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, $viewDatas) ?></th> <th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<?php endforeach ?> <?php endforeach ?>
<th class="index_head_short_column">작업</th> <th class="index_head_short_column">작업</th>
</tr> </tr>
@ -34,13 +34,13 @@
<?php $viewDatas['entity'] = $entity; ?> <?php $viewDatas['entity'] = $entity; ?>
<tr <?= $viewDatas['helper']->getListRowColor($entity) ?>> <tr <?= $viewDatas['helper']->getListRowColor($entity) ?>>
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?> <?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
<td><?= $viewDatas['helper']->getListButton('modify', $viewDatas) ?></td> <td><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
<?php endforeach ?> <?php endforeach ?>
<td nowrap> <td nowrap>
<?= $viewDatas['helper']->getListButton('view', $viewDatas) ?>&nbsp; <?= $viewDatas['helper']->getListButton('view', '', $viewDatas) ?>&nbsp;
<?= $viewDatas['helper']->getListButton('delete', $viewDatas) ?> <?= $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
</td> </td>
</tr> </tr>
<?php $cnt++ ?> <?php $cnt++ ?>

View File

@ -8,7 +8,7 @@
<table class="table table-bordered"> <table class="table table-bordered">
<?php foreach ($viewDatas['control']['form_fields'] as $field): ?> <?php foreach ($viewDatas['control']['form_fields'] as $field): ?>
<tr> <tr>
<th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th> <th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<td nowrap class="text-start"> <td nowrap class="text-start">
<?= $viewDatas['helper']->getFieldForm($field, old($field) ?? $viewDatas['entity']->$field ?? null, $viewDatas) ?> <?= $viewDatas['helper']->getFieldForm($field, old($field) ?? $viewDatas['entity']->$field ?? null, $viewDatas) ?>
<div><?= validation_show_error($field); ?></div> <div><?= validation_show_error($field); ?></div>

View File

@ -23,7 +23,7 @@
<tr> <tr>
<th class="index_head_short_column">번호</th> <th class="index_head_short_column">번호</th>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, $viewDatas) ?></th> <th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<?php endforeach ?> <?php endforeach ?>
<th class="index_head_short_column">작업</th> <th class="index_head_short_column">작업</th>
</tr> </tr>
@ -34,13 +34,13 @@
<?php $viewDatas['entity'] = $entity; ?> <?php $viewDatas['entity'] = $entity; ?>
<tr <?= $viewDatas['helper']->getListRowColor($entity) ?>> <tr <?= $viewDatas['helper']->getListRowColor($entity) ?>>
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?> <?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
<td><?= $viewDatas['helper']->getListButton('modify', $viewDatas) ?></td> <td><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
<?php endforeach ?> <?php endforeach ?>
<td nowrap> <td nowrap>
<?= $viewDatas['helper']->getListButton('view', $viewDatas) ?>&nbsp; <?= $viewDatas['helper']->getListButton('view', '', $viewDatas) ?>&nbsp;
<?= $viewDatas['helper']->getListButton('delete', $viewDatas) ?> <?= $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
</td> </td>
</tr> </tr>
<?php $cnt++ ?> <?php $cnt++ ?>
@ -53,8 +53,8 @@
<?php foreach ($viewDatas['control']['batchjob_fields'] as $field): ?> <?php foreach ($viewDatas['control']['batchjob_fields'] as $field): ?>
<?= $viewDatas['helper']->getFieldForm($field, null, $viewDatas, ['data-batchjob' => 'true']) ?>&nbsp; <?= $viewDatas['helper']->getFieldForm($field, null, $viewDatas, ['data-batchjob' => 'true']) ?>&nbsp;
<?php endforeach ?> <?php endforeach ?>
<li class="nav-item"><?= $viewDatas['helper']->getListButton('batchjob', $viewDatas) ?></li> <li class="nav-item"><?= $viewDatas['helper']->getListButton('batchjob', '', $viewDatas) ?></li>
<li class="nav-item"><?= $viewDatas['helper']->getListButton('invoice', $viewDatas) ?></li> <li class="nav-item"><?= $viewDatas['helper']->getListButton('invoice', '', $viewDatas) ?></li>
</ul> </ul>
<div class=" index_pagination"><?= $viewDatas['pagination'] ?></div> <div class=" index_pagination"><?= $viewDatas['pagination'] ?></div>
</div> </div>

View File

@ -29,7 +29,7 @@
<tr> <tr>
<th class="index_head_short_column">번호</th> <th class="index_head_short_column">번호</th>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, $viewDatas) ?></th> <th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<?php endforeach ?> <?php endforeach ?>
<th class="index_head_short_column">작업</th> <th class="index_head_short_column">작업</th>
</tr> </tr>
@ -40,13 +40,13 @@
<?php $viewDatas['entity'] = $entity; ?> <?php $viewDatas['entity'] = $entity; ?>
<tr <?= $viewDatas['helper']->getListRowColor($entity) ?>> <tr <?= $viewDatas['helper']->getListRowColor($entity) ?>>
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?> <?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
<td><?= $viewDatas['helper']->getListButton('modify', $viewDatas) ?></td> <td><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
<?php endforeach ?> <?php endforeach ?>
<td nowrap> <td nowrap>
<?= $viewDatas['helper']->getListButton('view', $viewDatas) ?>&nbsp; <?= $viewDatas['helper']->getListButton('view', '', $viewDatas) ?>&nbsp;
<?= $viewDatas['helper']->getListButton('delete', $viewDatas) ?> <?= $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
</td> </td>
</tr> </tr>
<?php $cnt++ ?> <?php $cnt++ ?>

View File

@ -23,7 +23,7 @@
<tr> <tr>
<th class="index_head_short_column">번호</th> <th class="index_head_short_column">번호</th>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, $viewDatas) ?></th> <th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<?php endforeach ?> <?php endforeach ?>
<th class="index_head_short_column">작업</th> <th class="index_head_short_column">작업</th>
</tr> </tr>
@ -34,14 +34,14 @@
<?php $viewDatas['entity'] = $entity; ?> <?php $viewDatas['entity'] = $entity; ?>
<tr <?= $viewDatas['helper']->getListRowColor($entity) ?>> <tr <?= $viewDatas['helper']->getListRowColor($entity) ?>>
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?> <?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
<td><?= $viewDatas['helper']->getListButton('modify', $viewDatas) ?></td> <td><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
<?php foreach ($viewDatas['control']['index_fields'] as $field): ?> <?php foreach ($viewDatas['control']['index_fields'] as $field): ?>
<td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
<?php endforeach ?> <?php endforeach ?>
<td nowrap> <td nowrap>
<?= $viewDatas['helper']->getListButton('view', $viewDatas) ?>&nbsp; <?= $viewDatas['helper']->getListButton('view', '', $viewDatas) ?>&nbsp;
<?= $viewDatas['helper']->getListButton('history', $viewDatas) ?>&nbsp; <?= $viewDatas['helper']->getListButton('history', '', $viewDatas) ?>&nbsp;
<?= $viewDatas['helper']->getListButton('delete', $viewDatas) ?> <?= $viewDatas['helper']->getListButton('delete', '', $viewDatas) ?>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -49,7 +49,7 @@
<table class="table table-bordered table-hover table-striped"> <table class="table table-bordered table-hover table-striped">
<tr> <tr>
<?php foreach (SERVICE_ITEM_TYPES as $item_type => $label): ?> <?php foreach (SERVICE_ITEM_TYPES as $item_type => $label): ?>
<th data-rtc-resizable="<?= $item_type ?>" nowrap><?= $viewDatas['helper']->getFieldLabel($item_type, $viewDatas) ?></th> <th data-rtc-resizable="<?= $item_type ?>" nowrap><?= $viewDatas['helper']->getFieldLabel($item_type, $label, $viewDatas) ?></th>
<?php endforeach ?> <?php endforeach ?>
</tr> </tr>
<tr> <tr>

View File

@ -9,14 +9,14 @@
<?php $rowspan = count($viewDatas['control']['view_fields']) ?> <?php $rowspan = count($viewDatas['control']['view_fields']) ?>
<?php foreach ($viewDatas['control']['view_fields'] as $field): ?> <?php foreach ($viewDatas['control']['view_fields'] as $field): ?>
<tr> <tr>
<th nowrap class="text-end" width="15%"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th> <th nowrap class="text-end" width="15%"><?= $viewDatas['helper']->getFieldLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<td nowrap class="text-start" width="15%"><?= $viewDatas['helper']->getFieldView($field, $viewDatas['entity']->$field, $viewDatas) ?></td> <td nowrap class="text-start" width="15%"><?= $viewDatas['helper']->getFieldView($field, $viewDatas['entity']->$field, $viewDatas) ?></td>
<?php if (!$loop): ?> <?php if (!$loop): ?>
<td rowspan="<?= $rowspan ?>"> <td rowspan="<?= $rowspan ?>">
<table class="table table-bordered table-hover table-striped"> <table class="table table-bordered table-hover table-striped">
<?php foreach (SERVICE_ITEM_TYPES as $item_type => $label): ?> <?php foreach (SERVICE_ITEM_TYPES as $item_type => $label): ?>
<tr> <tr>
<th nowrap class="text-end" width="15%" data-rtc-resizable="<?= $item_type ?>" nowrap><?= $viewDatas['helper']->getFieldLabel($item_type, $viewDatas) ?></th> <th nowrap class="text-end" width="15%" data-rtc-resizable="<?= $item_type ?>" nowrap><?= $viewDatas['helper']->getFieldLabel($item_type, $label, $viewDatas) ?></th>
<td nowrap class="text-start"><?= $viewDatas['helper']->getFieldView($item_type, $viewDatas['entity']->$item_type, $viewDatas) ?></td> <td nowrap class="text-start"><?= $viewDatas['helper']->getFieldView($item_type, $viewDatas['entity']->$item_type, $viewDatas) ?></td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>

View File

@ -7,7 +7,7 @@
<table class="table table-bordered"> <table class="table table-bordered">
<?php foreach ($viewDatas['control']['view_fields'] as $field): ?> <?php foreach ($viewDatas['control']['view_fields'] as $field): ?>
<tr> <tr>
<th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, $viewDatas) ?></th> <th nowrap class="text-end"><?= $viewDatas['helper']->getFieldLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
<td nowrap class="text-start"><?= $viewDatas['helper']->getFieldView($field, $viewDatas['entity']->$field, $viewDatas) ?></td> <td nowrap class="text-start"><?= $viewDatas['helper']->getFieldView($field, $viewDatas['entity']->$field, $viewDatas) ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>

View File

@ -1,12 +1,12 @@
<div class="index_batchjob"> <div class="index_batchjob">
<ul class="nav justify-content-center"> <ul class="nav justify-content-center">
<li class="nav-item"><?= $viewDatas['helper']->getListButton('create', $viewDatas) ?></li> <li class="nav-item"><?= $viewDatas['helper']->getListButton('create', '', $viewDatas) ?></li>
<li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li> <li class="nav-item"><?= form_checkbox(array("id" => "batchjobuids_checkbox")) ?>ALL</li>
<?php foreach ($viewDatas['control']['batchjob_fields'] as $field): ?> <?php foreach ($viewDatas['control']['batchjob_fields'] as $field): ?>
<?= $viewDatas['helper']->getFieldForm($field, null, $viewDatas, ['data-batchjob' => 'true']) ?>&nbsp; <?= $viewDatas['helper']->getFieldForm($field, null, $viewDatas, ['data-batchjob' => 'true']) ?>&nbsp;
<?php endforeach ?> <?php endforeach ?>
<li class="nav-item"><?= $viewDatas['helper']->getListButton('batchjob', $viewDatas) ?></li> <li class="nav-item"><?= $viewDatas['helper']->getListButton('batchjob', '', $viewDatas) ?></li>
<li class="nav-item"><?= $viewDatas['helper']->getListButton('batchjob_delete', $viewDatas) ?></li> <li class="nav-item"><?= $viewDatas['helper']->getListButton('batchjob_delete', '', $viewDatas) ?></li>
</ul> </ul>
<div class=" index_pagination"><?= $viewDatas['pagination'] ?></div> <div class=" index_pagination"><?= $viewDatas['pagination'] ?></div>
</div> </div>

View File

@ -25,7 +25,7 @@
<?php foreach ($viewDatas['newServiceEntities'] as $entity): ?> <?php foreach ($viewDatas['newServiceEntities'] as $entity): ?>
<?php $viewDatas['entity'] = $entity ?> <?php $viewDatas['entity'] = $entity ?>
<tr> <tr>
<td><?= $viewDatas['helper']->getListButton('new_service_view', $viewDatas, ['label' => $entity->getTitle()]) ?></td> <td><?= $viewDatas['helper']->getListButton('new_service_view', '', $viewDatas, ['label' => $entity->getTitle()]) ?></td>
<td><?= $viewDatas['helper']->getFieldView('ownerinfo_uid', $entity->getOwnerUID(), $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView('ownerinfo_uid', $entity->getOwnerUID(), $viewDatas) ?></td>
<td><?= $viewDatas['helper']->getFieldView('type', $entity->getType(), $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView('type', $entity->getType(), $viewDatas) ?></td>
<td><?= $viewDatas['helper']->getFieldView('switchinfo_uid', $entity->getSwitchUID(), $viewDatas) ?></td> <td><?= $viewDatas['helper']->getFieldView('switchinfo_uid', $entity->getSwitchUID(), $viewDatas) ?></td>