dbmsv2 init...1
This commit is contained in:
parent
88980a98ab
commit
3d8d7a6c65
@ -281,7 +281,6 @@ class CommonHelper
|
|||||||
case 'old_clientinfo_uid':
|
case 'old_clientinfo_uid':
|
||||||
case 'clientinfo_uid':
|
case 'clientinfo_uid':
|
||||||
case 'serviceinfo_uid':
|
case 'serviceinfo_uid':
|
||||||
case 'serverinfo_uid':
|
|
||||||
$extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
$extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
||||||
$form = $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
|
$form = $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
@ -354,8 +353,7 @@ class CommonHelper
|
|||||||
case 'clientinfo_uid':
|
case 'clientinfo_uid':
|
||||||
case 'serviceinfo_uid':
|
case 'serviceinfo_uid':
|
||||||
case 'serverinfo_uid':
|
case 'serverinfo_uid':
|
||||||
case 'csinfo_uid':
|
case 'part_uid':
|
||||||
case 'ipinfo_uid':
|
|
||||||
$extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
$extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,21 +2,21 @@
|
|||||||
|
|
||||||
namespace App\Helpers\Customer;
|
namespace App\Helpers\Customer;
|
||||||
|
|
||||||
use App\Helpers\Equipment\ServerPartHelper;
|
use App\Helpers\Equipment\ServerHelper;
|
||||||
use App\Models\Customer\ServiceModel;
|
use App\Models\Customer\ServiceModel;
|
||||||
|
|
||||||
class ServiceHelper extends CustomerHelper
|
class ServiceHelper extends CustomerHelper
|
||||||
{
|
{
|
||||||
private ?ServerPartHelper $_serverPartHelper = null;
|
private ?ServerHelper $_serverHelper = null;
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->setTitleField(field: ServiceModel::TITLE);
|
$this->setTitleField(field: ServiceModel::TITLE);
|
||||||
$this->_serverPartHelper = new ServerPartHelper();
|
$this->_serverHelper = new ServerHelper();
|
||||||
}
|
}
|
||||||
private function getServerPartHelper(): ServerPartHelper
|
private function getServerHelper(): ServerHelper
|
||||||
{
|
{
|
||||||
return $this->_serverPartHelper;
|
return $this->_serverHelper;
|
||||||
}
|
}
|
||||||
public function getFieldForm(string $field, mixed $value, array $viewDatas, array $extras = []): string
|
public function getFieldForm(string $field, mixed $value, array $viewDatas, array $extras = []): string
|
||||||
{
|
{
|
||||||
@ -37,20 +37,6 @@ class ServiceHelper extends CustomerHelper
|
|||||||
public function getFieldView(string $field, mixed $value, array $viewDatas, array $extras = []): string|null
|
public function getFieldView(string $field, mixed $value, array $viewDatas, array $extras = []): string|null
|
||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
// case 'clientinfo_uid':
|
|
||||||
// $temp = parent::getFieldForm($field, $value, $viewDatas, $extras);
|
|
||||||
// $value = $temp . form_label(
|
|
||||||
// ICONS['HISTORY'],
|
|
||||||
// 'client_history',
|
|
||||||
// [
|
|
||||||
// "data-src" => "/admin/customer/clienthistory?clientinfo_uid={$value}",
|
|
||||||
// "data-bs-toggle" => "modal",
|
|
||||||
// "data-bs-target" => "#index_action_form",
|
|
||||||
// "class" => "btn btn-outline btn-primary btn-circle",
|
|
||||||
// "target" => "_self"
|
|
||||||
// ]
|
|
||||||
// );
|
|
||||||
// break;
|
|
||||||
case 'billing_at':
|
case 'billing_at':
|
||||||
if (array_key_exists('unPaids', $viewDatas)) {
|
if (array_key_exists('unPaids', $viewDatas)) {
|
||||||
if (array_key_exists($viewDatas['entity']->getPK(), $viewDatas['unPaids'])) {
|
if (array_key_exists($viewDatas['entity']->getPK(), $viewDatas['unPaids'])) {
|
||||||
@ -67,9 +53,8 @@ class ServiceHelper extends CustomerHelper
|
|||||||
case 'OS':
|
case 'OS':
|
||||||
case 'DB':
|
case 'DB':
|
||||||
case 'SOFTWARE':
|
case 'SOFTWARE':
|
||||||
$serverEntity = $viewDatas['entity']->getServerEntity();
|
$viewDatas['serverEntity'] = $viewDatas['entity']->getServerEntity();
|
||||||
$viewDatas['serverPartEntities'] = $serverEntity->getServerPartEntities($field);
|
$value = $this->getServerHelper()->getFieldView($field, $value, $viewDatas, $extras);
|
||||||
$value = $this->getServerPartHelper()->getFieldView($field, $value, $viewDatas, $extras);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
|
||||||
@ -110,9 +95,8 @@ class ServiceHelper extends CustomerHelper
|
|||||||
case 'OS':
|
case 'OS':
|
||||||
case 'DB':
|
case 'DB':
|
||||||
case 'SOFTWARE':
|
case 'SOFTWARE':
|
||||||
$serverEntity = $viewDatas['entity']->getServerEntity();
|
$viewDatas['serverEntity'] = $viewDatas['entity']->getServerEntity();
|
||||||
$viewDatas['serverPartEntities'] = $serverEntity->getServerPartEntities($action);
|
$action = $this->getServerHelper()->getListButton($action, $label, $viewDatas, $extras);
|
||||||
$action = $this->getServerPartHelper()->getListButton($action, $label, $viewDatas, $extras);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$action = parent::getListButton($action, $label, $viewDatas, $extras);
|
$action = parent::getListButton($action, $label, $viewDatas, $extras);
|
||||||
|
|||||||
@ -51,10 +51,17 @@ class ServerHelper extends EquipmentHelper
|
|||||||
case 'format_at':
|
case 'format_at':
|
||||||
$value = $value ? date("Y-m-d", strtotime($value)) : "";
|
$value = $value ? date("Y-m-d", strtotime($value)) : "";
|
||||||
break;
|
break;
|
||||||
|
case 'SWITCH':
|
||||||
|
case 'IP':
|
||||||
|
case 'CS':
|
||||||
case 'CPU':
|
case 'CPU':
|
||||||
case 'RAM':
|
case 'RAM':
|
||||||
case 'DISK':
|
case 'DISK':
|
||||||
$viewDatas['serverPartEntities'] = $viewDatas['entity']->getServerPartEntities($field);
|
case 'OS':
|
||||||
|
case 'DB':
|
||||||
|
case 'SOFTWARE':
|
||||||
|
$serverEntity = array_key_exists('serverEntity', $viewDatas) ? $viewDatas['serverEntity'] : $viewDatas['entity'];
|
||||||
|
$viewDatas['serverPartEntities'] = $serverEntity->getServerPartEntities($field);
|
||||||
$value = $this->getServerPartHelper()->getFieldView($field, $value, $viewDatas, $extras);
|
$value = $this->getServerPartHelper()->getFieldView($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -86,10 +93,17 @@ class ServerHelper extends EquipmentHelper
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case 'SWITCH':
|
||||||
|
case 'IP':
|
||||||
|
case 'CS':
|
||||||
case 'CPU':
|
case 'CPU':
|
||||||
case 'RAM':
|
case 'RAM':
|
||||||
case 'DISK':
|
case 'DISK':
|
||||||
$viewDatas['serverPartEntities'] = $viewDatas['entity']->getServerPartEntities($action);
|
case 'OS':
|
||||||
|
case 'DB':
|
||||||
|
case 'SOFTWARE':
|
||||||
|
$serverEntity = array_key_exists('serverEntity', $viewDatas) ? $viewDatas['serverEntity'] : $viewDatas['entity'];
|
||||||
|
$viewDatas['serverinfo_uid'] = $serverEntity->getPK();
|
||||||
$action = $this->getServerPartHelper()->getListButton($action, $label, $viewDatas, $extras);
|
$action = $this->getServerPartHelper()->getListButton($action, $label, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class ServerPartHelper extends EquipmentHelper
|
|||||||
foreach ($viewDatas['entity']->getServerPartEntities($partType) as $serverPartEntity) {
|
foreach ($viewDatas['entity']->getServerPartEntities($partType) as $serverPartEntity) {
|
||||||
//기존 입력화면에서 return 된것인지?
|
//기존 입력화면에서 return 된것인지?
|
||||||
if ($value === null && $serverPartEntity !== null) {
|
if ($value === null && $serverPartEntity !== null) {
|
||||||
$value = $serverPartEntity->getPartInfoUID();
|
$value = $serverPartEntity->getPartUID();
|
||||||
}
|
}
|
||||||
$form .= $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
|
$form .= $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
|
||||||
}
|
}
|
||||||
@ -31,33 +31,6 @@ class ServerPartHelper extends EquipmentHelper
|
|||||||
public function getFieldForm(string $field, mixed $value, array $viewDatas, array $extras = []): string
|
public function getFieldForm(string $field, mixed $value, array $viewDatas, array $extras = []): string
|
||||||
{
|
{
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
// case 'SWITCH':
|
|
||||||
// if (array_key_exists('entity', $viewDatas)) {
|
|
||||||
// $value = $viewDatas['entity']->getSwitchEntity() !== null ? $viewDatas['entity']->getSwitchEntity()->getPK() : $value;
|
|
||||||
// }
|
|
||||||
// $extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
|
||||||
// $form = $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
|
|
||||||
// break;
|
|
||||||
// case 'IP':
|
|
||||||
// $extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
|
||||||
// $form = "";
|
|
||||||
// if (array_key_exists('entity', $viewDatas)) {
|
|
||||||
// foreach ($viewDatas['entity']->getIPEntities() as $ipEntity) {
|
|
||||||
// $form .= "<div>" . $this->form_dropdown_custom($field, $ipEntity->getPK(), $viewDatas, $extras) . "</div>";
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// $form .= $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
|
|
||||||
// break;
|
|
||||||
// case 'CS':
|
|
||||||
// $extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
|
||||||
// $form = "";
|
|
||||||
// if (array_key_exists('entity', $viewDatas)) {
|
|
||||||
// foreach ($viewDatas['entity']->getCSEntities() as $csEntity) {
|
|
||||||
// $form .= "<div>" . $this->form_dropdown_custom($field, $csEntity->getPK(), $viewDatas, $extras) . "</div>";
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// $form .= $this->form_dropdown_custom($field, $value, $viewDatas, $extras);
|
|
||||||
// break;
|
|
||||||
case 'SWITCH':
|
case 'SWITCH':
|
||||||
case 'IP':
|
case 'IP':
|
||||||
case 'CS':
|
case 'CS':
|
||||||
@ -85,6 +58,10 @@ class ServerPartHelper extends EquipmentHelper
|
|||||||
$options = ["" => lang("Equipment/ServerPart.label.extra") . " 선택", ...$formOptionDatas];
|
$options = ["" => lang("Equipment/ServerPart.label.extra") . " 선택", ...$formOptionDatas];
|
||||||
$form = form_dropdown($field, $options, $value, $extras);
|
$form = form_dropdown($field, $options, $value, $extras);
|
||||||
break;
|
break;
|
||||||
|
case 'part_uid':
|
||||||
|
$extras['class'] = array_key_exists('class', $extras) ? $extras['class'] . ' select-field' : 'select-field';
|
||||||
|
$form = parent::getFieldForm($field, $value, $viewDatas, $extras);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$form = parent::getFieldForm($field, $value, $viewDatas, $extras);
|
$form = parent::getFieldForm($field, $value, $viewDatas, $extras);
|
||||||
break;
|
break;
|
||||||
@ -110,7 +87,7 @@ class ServerPartHelper extends EquipmentHelper
|
|||||||
ICONS['SETUP'],
|
ICONS['SETUP'],
|
||||||
$field,
|
$field,
|
||||||
[
|
[
|
||||||
"data-src" => "/admin/equipment/serverpart/modify/{$partEntity->getPK()}?type={$field}&ActionTemplate=popup",
|
"data-src" => "/admin/equipment/serverpart/modify/{$partEntity->getPK()}?type={$partEntity->getType()}&ActionTemplate=popup",
|
||||||
"data-bs-toggle" => "modal",
|
"data-bs-toggle" => "modal",
|
||||||
"data-bs-target" => "#index_action_form",
|
"data-bs-target" => "#index_action_form",
|
||||||
"class" => "btn btn-sm btn-outline btn-circle",
|
"class" => "btn btn-sm btn-outline btn-circle",
|
||||||
@ -149,21 +126,17 @@ class ServerPartHelper extends EquipmentHelper
|
|||||||
case 'OS':
|
case 'OS':
|
||||||
case 'DB':
|
case 'DB':
|
||||||
case 'SOFTWARE':
|
case 'SOFTWARE':
|
||||||
$temps = [];
|
$extras = ["class" => "btn btn-sm btn-outline btn-circle", "target" => "_self", ...$extras];
|
||||||
foreach ($viewDatas['serverPartEntities'] as $partEntity) {
|
$action = form_label(
|
||||||
$extras = ["class" => "btn btn-sm btn-outline btn-circle", "target" => "_self", ...$extras];
|
$label ? $label : ICONS['SETUP'],
|
||||||
$temps[] = form_label(
|
$action,
|
||||||
$label ? $label : ICONS['SETUP'],
|
[
|
||||||
$action,
|
"data-src" => "/admin/equipment/serverpart?serverinfo_uid={$viewDatas['serverinfo_uid']}&type={$action}&ActionTemplate=popup",
|
||||||
[
|
"data-bs-toggle" => "modal",
|
||||||
"data-src" => "/admin/equipment/serverpart?serverinfo_uid={$partEntity->getServerInfoUID()}&type={$partEntity->getType()}&ActionTemplate=popup",
|
"data-bs-target" => "#index_action_form",
|
||||||
"data-bs-toggle" => "modal",
|
...$extras,
|
||||||
"data-bs-target" => "#index_action_form",
|
]
|
||||||
...$extras,
|
);
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
$action = implode("<BR>", $temps);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$action = parent::getListButton($action, $label, $viewDatas, $extras);
|
$action = parent::getListButton($action, $label, $viewDatas, $extras);
|
||||||
|
|||||||
@ -26,6 +26,9 @@ return [
|
|||||||
"OS" => "운영체제",
|
"OS" => "운영체제",
|
||||||
"DB" => "데이터베이스",
|
"DB" => "데이터베이스",
|
||||||
"SOFTWARE" => "소프트웨어",
|
"SOFTWARE" => "소프트웨어",
|
||||||
|
"SWITCH" => "스위치",
|
||||||
|
"IP" => "IP",
|
||||||
|
"CS" => "CS",
|
||||||
],
|
],
|
||||||
"EXTRA" => [
|
"EXTRA" => [
|
||||||
'RAID0' => "RAID0",
|
'RAID0' => "RAID0",
|
||||||
|
|||||||
@ -16,7 +16,18 @@
|
|||||||
<div id="container" class="layout_content">
|
<div id="container" class="layout_content">
|
||||||
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
||||||
<div class="index_body">
|
<div class="index_body">
|
||||||
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
<?= 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']['actionFilters'] as $field): ?>
|
||||||
|
<?= $viewDatas['helper']->getListFilter($field, $viewDatas['control']['index_filters'][$field] ?? old($field), $viewDatas, ['id' => $field]) ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</nav>
|
||||||
|
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
<?= form_open(current_url(), ['id' => 'batchjob_form', 'method' => "post"]) ?>
|
<?= 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">
|
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="reisze_table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@ -5,7 +5,18 @@
|
|||||||
<div id="container" class="layout_content">
|
<div id="container" class="layout_content">
|
||||||
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
||||||
<div class="index_body">
|
<div class="index_body">
|
||||||
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
<?= 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']['actionFilters'] as $field): ?>
|
||||||
|
<?= $viewDatas['helper']->getListFilter($field, $viewDatas['control']['index_filters'][$field] ?? old($field), $viewDatas, ['id' => $field]) ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<?= form_close() ?>
|
||||||
<?= form_open(current_url(), ['id' => 'batchjob_form', 'method' => "post"]) ?>
|
<?= 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">
|
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="reisze_table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@ -16,7 +16,18 @@
|
|||||||
<div id="container" class="layout_content">
|
<div id="container" class="layout_content">
|
||||||
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
||||||
<div class="index_body">
|
<div class="index_body">
|
||||||
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
<?= 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']['actionFilters'] as $field): ?>
|
||||||
|
<?= $viewDatas['helper']->getListFilter($field, $viewDatas['control']['index_filters'][$field] ?? old($field), $viewDatas, ['id' => $field]) ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</nav>
|
||||||
|
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
<?= form_open(current_url(), ['id' => 'batchjob_form', 'method' => "post"]) ?>
|
<?= 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">
|
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="reisze_table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@ -1,67 +0,0 @@
|
|||||||
<?= $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>
|
|
||||||
<?php foreach ($viewDatas['control']['actionFields'] as $field): ?>
|
|
||||||
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
|
|
||||||
<?php endforeach ?>
|
|
||||||
<th class="index_head_short_column">부품정보</th>
|
|
||||||
<th class="index_head_short_column">작업</th>
|
|
||||||
</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 $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
|
||||||
<td nowrap><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
|
|
||||||
<?php foreach ($viewDatas['control']['actionFields'] as $field): ?>
|
|
||||||
<td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
|
|
||||||
<?php endforeach ?>
|
|
||||||
<td nowrap>
|
|
||||||
<?php foreach (SERVERPART['PARTTYPES'] as $partType): ?><div><?= $viewDatas['helper']->getFieldView($partType, "", $viewDatas) ?></div><?php endforeach; ?>
|
|
||||||
<div><?= $viewDatas['helper']->getFieldView("ipinfo_uid", "", $viewDatas) ?></div>
|
|
||||||
<div><?= $viewDatas['helper']->getFieldView("csinfo_uid", "", $viewDatas) ?></div>
|
|
||||||
</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() ?>
|
|
||||||
@ -16,7 +16,18 @@
|
|||||||
<div id="container" class="layout_content">
|
<div id="container" class="layout_content">
|
||||||
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
<link href="/css/<?= $viewDatas['layout'] ?>/index.css" media="screen" rel="stylesheet" type="text/css" />
|
||||||
<div class="index_body">
|
<div class="index_body">
|
||||||
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
<?= 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']['actionFilters'] as $field): ?>
|
||||||
|
<?= $viewDatas['helper']->getListFilter($field, $viewDatas['control']['index_filters'][$field] ?? old($field), $viewDatas, ['id' => $field]) ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</nav>
|
||||||
|
<?= $this->include("templates/{$viewDatas['layout']}/index_content_top"); ?>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
<?= form_open(current_url(), ['id' => 'batchjob_form', 'method' => "post"]) ?>
|
<?= 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">
|
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="reisze_table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@ -1,61 +0,0 @@
|
|||||||
<?= $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>
|
|
||||||
<?php foreach ($viewDatas['control']['actionFields'] as $field): ?>
|
|
||||||
<th data-rtc-resizable="<?= $field ?>"><?= $viewDatas['helper']->getListLabel($field, lang("{$viewDatas['class_path']}.label.{$field}"), $viewDatas) ?></th>
|
|
||||||
<?php endforeach ?>
|
|
||||||
<th class="index_head_short_column">작업</th>
|
|
||||||
</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 $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
|
||||||
<td nowrap><?= $viewDatas['helper']->getListButton('modify', '', $viewDatas) ?></td>
|
|
||||||
<?php foreach ($viewDatas['control']['actionFields'] as $field): ?>
|
|
||||||
<td><?= $viewDatas['helper']->getFieldView($field, $entity->$field, $viewDatas) ?></td>
|
|
||||||
<?php endforeach ?>
|
|
||||||
<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() ?>
|
|
||||||
@ -1,23 +1,11 @@
|
|||||||
<?= form_open(current_url(), ["method" => "get"]) ?>
|
<nav class="search nav justify-content-center">
|
||||||
<nav class="index_top navbar navbar-expand-lg">
|
검색어:<?= form_input('index_word', $viewDatas['control']['index_word'] ?? "") ?>
|
||||||
<div class="container-fluid">
|
검색일:<?= form_input('index_start', $viewDatas['index_start'] ?? "", ["class" => "calender"]) ?>~<?= form_input('index_end', $viewDatas['index_end'] ?? "", ["class" => "calender"]) ?>
|
||||||
<nav class="condition nav">
|
<button class="btn btn-outline-primary" type="submit">검색</button>
|
||||||
조건:
|
<?= anchor(current_url() . '/download/excel', ICONS['EXCEL'], ["target" => "_self", "class" => "excel"]) ?>
|
||||||
<?php foreach ($viewDatas['control']['actionFilters'] as $field): ?>
|
</nav>
|
||||||
<?= $viewDatas['helper']->getListFilter($field, $viewDatas['control']['index_filters'][$field] ?? old($field), $viewDatas, ['id' => $field]) ?>
|
<nav class="pageinfo nav justify-content-end">
|
||||||
<?php endforeach ?>
|
Page:<?= $viewDatas['page'] ?? 1 ?>/<?= $viewDatas['total_page'] ?>
|
||||||
</nav>
|
<?= form_dropdown('per_page', $viewDatas['page_options'], $viewDatas['per_page'], ['onChange' => 'this.form.submit()']) ?>
|
||||||
<nav class="search nav justify-content-center">
|
/ 총:<?= $viewDatas['total_count'] ?>
|
||||||
검색어:<?= form_input('index_word', $viewDatas['control']['index_word'] ?? "") ?>
|
</nav>
|
||||||
검색일:<?= form_input('index_start', $viewDatas['index_start'] ?? "", ["class" => "calender"]) ?>~<?= form_input('index_end', $viewDatas['index_end'] ?? "", ["class" => "calender"]) ?>
|
|
||||||
<button class="btn btn-outline-primary" type="submit">검색</button>
|
|
||||||
<?= anchor(current_url() . '/download/excel', ICONS['EXCEL'], ["target" => "_self", "class" => "excel"]) ?>
|
|
||||||
</nav>
|
|
||||||
<nav class="pageinfo nav justify-content-end">
|
|
||||||
Page:<?= $viewDatas['page'] ?? 1 ?>/<?= $viewDatas['total_page'] ?>
|
|
||||||
<?= form_dropdown('per_page', $viewDatas['page_options'], $viewDatas['per_page'], ['onChange' => 'this.form.submit()']) ?>
|
|
||||||
/ 총:<?= $viewDatas['total_count'] ?>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
<?= form_close() ?>
|
|
||||||
Loading…
Reference in New Issue
Block a user