cfmgrv4 init...2
This commit is contained in:
parent
302d0f286b
commit
c50940aada
@ -63,7 +63,7 @@ function getFieldView_AuthHelper(string $field, array $viewDatas, array $extras
|
||||
]
|
||||
) . " " .
|
||||
anchor(
|
||||
base_url() . $viewDatas['view_root'] . "account?auth_uid=" . $viewDatas['entity']->getPK(),
|
||||
base_url() . $viewDatas['view_root'] . "account?auth_uid=" . $viewDatas['entity']->getPK(),
|
||||
ICONS["FLAG"],
|
||||
[
|
||||
"class" => "btn btn-sm btn-primary btn-circle",
|
||||
@ -107,7 +107,7 @@ function getListLabel_AuthHelper(string $field, array $viewDatas, array $extras
|
||||
$order_value = $viewDatas['order_value'] == 'DESC' ? "ASC" : "DESC";
|
||||
$viewDatas['uri']->addQuery('order_field', $field);
|
||||
$viewDatas['uri']->addQuery('order_value', $order_value);
|
||||
$label = anchor((string)$viewDatas['uri'], $label);
|
||||
$label = anchor((string) $viewDatas['uri'], $label);
|
||||
}
|
||||
return sprintf("<th %s>%s</th>", implode(" ", $extras), $label);
|
||||
}
|
||||
@ -117,7 +117,7 @@ function getListButton_AuthHelper(string $action, array $viewDatas, array $extra
|
||||
case 'create':
|
||||
$viewDatas['list_action_url'] = current_url() . '/' . $action;
|
||||
$extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras];
|
||||
$action = getListButtonLabel_CommonHelper($action, '입력', $viewDatas, $extras);
|
||||
$action = getListButtonLabel_CommonHelper($action, '입력', $viewDatas, $extras);
|
||||
break;
|
||||
case 'modify':
|
||||
$pk = $viewDatas['entity']->getPK();
|
||||
|
||||
@ -42,7 +42,7 @@ function getFieldForm_RecordHelper(string $field, mixed $value, array $viewDatas
|
||||
$form = form_input($field, $value, [
|
||||
"placeholder" => "예)www.example.com",
|
||||
"style" =>
|
||||
"width:200px; ::placeholder{color:silver; opacity: 1;}",
|
||||
"width:200px; ::placeholder{color:silver; opacity: 1;}",
|
||||
"class" => "form-control",
|
||||
(strpos($viewDatas['field_rules'][$field], 'required') !== false) ? "required" : ""
|
||||
]);
|
||||
@ -58,7 +58,7 @@ function getFieldForm_RecordHelper(string $field, mixed $value, array $viewDatas
|
||||
$form = form_input($field, $value, [
|
||||
"placeholder" => "예)123.123.123.123",
|
||||
"style" =>
|
||||
"width:200px; ::placeholder{color:silver; opacity: 1;}",
|
||||
"width:200px; ::placeholder{color:silver; opacity: 1;}",
|
||||
"class" => "form-control",
|
||||
(strpos($viewDatas['field_rules'][$field], 'required') !== false) ? "required" : ""
|
||||
]);
|
||||
@ -109,17 +109,10 @@ function getFieldView_RecordHelper(string $field, array $viewDatas, array $extra
|
||||
}
|
||||
break;
|
||||
case RecordModel::TITLE:
|
||||
$url = sprintf("%s/toggle/%s/fixed?fixed=%s", current_url(), $viewDatas['entity']->getPK(), $viewDatas['entity']->fixed == 'on' ? "off" : "on");
|
||||
$url = sprintf("%s/toggle/%s/fixed?fixed=%s", current_url(), $viewDatas['entity']->getPK(), $viewDatas['entity']->fixed == 'on' ? "off" : "on");
|
||||
$value = sprintf("%s%s", $viewDatas['entity']->fixed == 'on' ? "<span class=\"text-danger\">" . ICONS['LOCK'] . "</span>" : "", $value);
|
||||
$value = anchor($url, $value, ["target" => "_self"]);
|
||||
break;
|
||||
case 'content':
|
||||
$value = sprintf(
|
||||
"<span class=\"short-text\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"%s\">%s</span>",
|
||||
$value,
|
||||
mb_strlen($value) > 40 ? mb_substr($value, 0, 40) . '...' : $value
|
||||
);
|
||||
break;
|
||||
case 'updated_at':
|
||||
case 'created_at':
|
||||
$value = $value ? date("Y-m-d", strtotime($value)) : "";
|
||||
@ -148,7 +141,7 @@ function getListLabel_RecordHelper(string $field, array $viewDatas, array $extra
|
||||
$order_value = $viewDatas['order_value'] == 'DESC' ? "ASC" : "DESC";
|
||||
$viewDatas['uri']->addQuery('order_field', $field);
|
||||
$viewDatas['uri']->addQuery('order_value', $order_value);
|
||||
$label = anchor((string)$viewDatas['uri'], $label);
|
||||
$label = anchor((string) $viewDatas['uri'], $label);
|
||||
}
|
||||
switch ($field) {
|
||||
case RecordModel::PARENT:
|
||||
@ -166,7 +159,7 @@ function getListButton_RecordHelper(string $action, array $viewDatas, array $ext
|
||||
case 'create':
|
||||
$viewDatas['list_action_url'] = current_url() . '/' . $action . '?' . $viewDatas['uri']->getQuery(['only' => RecordModel::PARENT]);
|
||||
$extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras];
|
||||
$action = getListButtonLabel_CommonHelper($action, '입력', $viewDatas, $extras);
|
||||
$action = getListButtonLabel_CommonHelper($action, '입력', $viewDatas, $extras);
|
||||
break;
|
||||
case 'sync':
|
||||
$checkbox = "";
|
||||
|
||||
@ -31,7 +31,7 @@ function getFieldForm_UserHelper(string $field, mixed $value, array $viewDatas,
|
||||
$forms = [];
|
||||
foreach ($viewDatas['field_options'][$field] as $key => $label) {
|
||||
$values = is_array($value) ? $value : explode(DEFAULTS["DELIMITER_ROLE"], $value);
|
||||
$forms[] = form_checkbox($field . "[]", $key, in_array($key, $values)) . $label;
|
||||
$forms[] = form_checkbox($field . "[]", $key, in_array($key, $values)) . $label;
|
||||
}
|
||||
$form = implode(" ", $forms);
|
||||
} else {
|
||||
@ -134,7 +134,7 @@ function getListLabel_UserHelper(string $field, array $viewDatas, array $extras
|
||||
$order_value = $viewDatas['order_value'] == 'DESC' ? "ASC" : "DESC";
|
||||
$viewDatas['uri']->addQuery('order_field', $field);
|
||||
$viewDatas['uri']->addQuery('order_value', $order_value);
|
||||
$label = anchor((string)$viewDatas['uri'], $label);
|
||||
$label = anchor((string) $viewDatas['uri'], $label);
|
||||
}
|
||||
switch ($field) {
|
||||
case UserModel::TITLE:
|
||||
@ -148,7 +148,7 @@ function getListButton_UserHelper(string $action, array $viewDatas, array $extra
|
||||
case 'create':
|
||||
$viewDatas['list_action_url'] = current_url() . '/' . $action;
|
||||
$extras = ["class" => "btn btn-outline btn-primary btn-circle", "target" => "_self", ...$extras];
|
||||
$action = getListButtonLabel_CommonHelper($action, '입력', $viewDatas, $extras);
|
||||
$action = getListButtonLabel_CommonHelper($action, '입력', $viewDatas, $extras);
|
||||
break;
|
||||
case 'modify':
|
||||
$pk = $viewDatas['entity']->getPK();
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="table.account">
|
||||
<thead>
|
||||
<tr>
|
||||
<th nowrap>번호</th>
|
||||
<th class="index_head_short_column">번호</th>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<?= getListLabel_AccountHelper($field, $viewDatas, ["data-rtc-resizable=\"{$field}\""]) ?>
|
||||
<?php endforeach ?>
|
||||
<th nowrap>작업</th>
|
||||
<th class="index_head_short_column">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -22,13 +22,13 @@
|
||||
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
||||
<?php $viewDatas['entity'] = $entity; ?>
|
||||
<?php $viewDatas['old_auth'] = $old_auth ?>
|
||||
<td class="text-center" nowrap>
|
||||
<td>
|
||||
<?= getListButton_AccountHelper('sync', $viewDatas, ["style" => "cursor:pointer"]) ?>
|
||||
</td>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td><?= getFieldView_AccountHelper($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
<td nowrap>
|
||||
<td>
|
||||
<?= getListButton_AccountHelper('delete', $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="table.auth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th nowrap>번호</th>
|
||||
<th class="index_head_short_column">번호</th>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<?= getListLabel_AuthHelper($field, $viewDatas, ["data-rtc-resizable=\"{$field}\""]) ?>
|
||||
<?php endforeach ?>
|
||||
<th nowrap>작업</th>
|
||||
<th class="index_head_short_column">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -20,13 +20,13 @@
|
||||
<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>
|
||||
<td>
|
||||
<?= getListButton_AuthHelper('modify', $viewDatas, ["style" => "cursor:pointer"]) ?>
|
||||
</td>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td><?= getFieldView_AuthHelper($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
<td nowrap>
|
||||
<td>
|
||||
<?= getListButton_AuthHelper('delete', $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="table.record">
|
||||
<thead>
|
||||
<tr>
|
||||
<th nowrap>번호</th>
|
||||
<th class="index_head_short_column">번호</th>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<?= getListLabel_RecordHelper($field, $viewDatas, ["data-rtc-resizable=\"{$field}\""]) ?>
|
||||
<?php endforeach ?>
|
||||
<th nowrap>작업</th>
|
||||
<th class="index_head_short_column">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -22,13 +22,13 @@
|
||||
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
||||
<?php $viewDatas['entity'] = $entity; ?>
|
||||
<?php $viewDatas['old_zone'] = $old_zone ?>
|
||||
<td class="text-center" nowrap>
|
||||
<td>
|
||||
<?= getListButton_RecordHelper('sync', $viewDatas, ["style" => "cursor:pointer"]) ?>
|
||||
</td>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td><?= getFieldView_RecordHelper($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
<td nowrap>
|
||||
<td>
|
||||
<?= getListButton_RecordHelper('delete', $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="table.zone">
|
||||
<thead>
|
||||
<tr>
|
||||
<th nowrap>번호</th>
|
||||
<th class="index_head_short_column">번호</th>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<?= getListLabel_ZoneHelper($field, $viewDatas, ["data-rtc-resizable=\"{$field}\""]) ?>
|
||||
<?php endforeach ?>
|
||||
<th nowrap>작업</th>
|
||||
<th class="index_head_short_column">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -22,13 +22,13 @@
|
||||
<?php $viewDatas['cnt'] = $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt); ?>
|
||||
<?php $viewDatas['entity'] = $entity ?>
|
||||
<?php $viewDatas['old_account'] = $old_account ?>
|
||||
<td class="text-center" nowrap>
|
||||
<td>
|
||||
<?= getListButton_ZoneHelper('sync', $viewDatas, ["style" => "cursor:pointer"]) ?>
|
||||
</td>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td><?= getFieldView_ZoneHelper($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
<td nowrap>
|
||||
<td>
|
||||
<?= getListButton_ZoneHelper('delete', $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="table.mapurl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th nowrap>번호</th>
|
||||
<th class="index_head_short_column">번호</th>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<?= getListLabel_MapurlHelper($field, $viewDatas, ["data-rtc-resizable=\"{$field}\""]) ?>
|
||||
<?php endforeach ?>
|
||||
<th nowrap>작업</th>
|
||||
<th class="index_head_short_column">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -20,13 +20,13 @@
|
||||
<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>
|
||||
<td>
|
||||
<?= getListButton_MapurlHelper('modify', $viewDatas, ["style" => "cursor:pointer"]) ?>
|
||||
</td>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td><?= getFieldView_MapurlHelper($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
<td nowrap>
|
||||
<td>
|
||||
<?= getListButton_MapurlHelper('delete', $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
<table class="index_table data table table-bordered table-hover table-striped" data-rtc-resizable-table="table.user">
|
||||
<thead>
|
||||
<tr>
|
||||
<th nowrap>번호</th>
|
||||
<th class="index_head_short_column">번호</th>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<?= getListLabel_UserHelper($field, $viewDatas, ["data-rtc-resizable=\"{$field}\""]) ?>
|
||||
<?php endforeach ?>
|
||||
<th nowrap>작업</th>
|
||||
<th class="index_head_short_column">작업</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -20,13 +20,13 @@
|
||||
<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>
|
||||
<td>
|
||||
<?= getListButton_UserHelper('modify', $viewDatas, ["style" => "cursor:pointer"]) ?>
|
||||
</td>
|
||||
<?php foreach ($viewDatas['fields'] as $field): ?>
|
||||
<td><?= getFieldView_UserHelper($field, $viewDatas) ?></td>
|
||||
<?php endforeach ?>
|
||||
<td nowrap>
|
||||
<td>
|
||||
<?= getListButton_UserHelper('delete', $viewDatas) ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -57,6 +57,10 @@ table.index_table thead th {
|
||||
/* border:1px solid silver; */
|
||||
}
|
||||
|
||||
table.index_table thead th.index_head_short_column {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
table.index_table thead th:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
@ -1,96 +1,110 @@
|
||||
div#content{
|
||||
color:black;
|
||||
padding-top:20px;
|
||||
padding-left:30px;
|
||||
margin-bottom:40px;
|
||||
div#content {
|
||||
color: black;
|
||||
padding-top: 20px;
|
||||
padding-left: 30px;
|
||||
margin-bottom: 40px;
|
||||
/* border-left:1px solid silver;
|
||||
border-right:1px solid silver; */
|
||||
}
|
||||
|
||||
/* div#content div.top{
|
||||
border:1px solid red;
|
||||
} */
|
||||
|
||||
/*페이지정보*/
|
||||
div#content div.top nav span.pageinfo{
|
||||
font-weight:bold;
|
||||
div#content div.top nav span.pageinfo {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*검색*/
|
||||
div#content div.top nav input[type=text]{
|
||||
width:200px;
|
||||
height:40px;
|
||||
border-radius:0px !important;
|
||||
div#content div.top nav input[type=text] {
|
||||
width: 200px;
|
||||
height: 40px;
|
||||
border-radius: 0px !important;
|
||||
/* border:1px solid red; */
|
||||
}
|
||||
|
||||
/*검색submit*/
|
||||
div#content div.top nav input[type=submit]{
|
||||
div#content div.top nav input[type=submit] {
|
||||
font-size: 1.5rem;
|
||||
font-weight:bold;
|
||||
width:80px;
|
||||
height:40px;
|
||||
color:white;
|
||||
border-radius:0px !important;
|
||||
background-color:#555555;
|
||||
font-weight: bold;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
color: white;
|
||||
border-radius: 0px !important;
|
||||
background-color: #555555;
|
||||
/* border:1px solid red; */
|
||||
}
|
||||
|
||||
/*Excel Icon*/
|
||||
div#content div.top nav a{
|
||||
border-radius:0px !important;
|
||||
div#content div.top nav a {
|
||||
border-radius: 0px !important;
|
||||
/* border:1px solid red; */
|
||||
}
|
||||
|
||||
/* Table 부분 */
|
||||
div#content table {
|
||||
width:100%;
|
||||
width: 100%;
|
||||
/* overflow-x: auto;
|
||||
padding-top:5px;
|
||||
padding-bottom:5px; */
|
||||
}
|
||||
|
||||
/* insert,update,reply,view Form Page 관련 전용*/
|
||||
div#content table.form tbody tr td.label{
|
||||
width:10%;
|
||||
text-align:right;
|
||||
padding-right:20px;
|
||||
background-color:#e8ebe9;
|
||||
div#content table.form tbody tr td.label {
|
||||
width: 10%;
|
||||
text-align: right;
|
||||
padding-right: 20px;
|
||||
background-color: #e8ebe9;
|
||||
}
|
||||
div#content table.form tbody tr td.column{
|
||||
height:27px;
|
||||
text-align:left;
|
||||
padding-left:20px;
|
||||
|
||||
div#content table.form tbody tr td.column {
|
||||
height: 27px;
|
||||
text-align: left;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
/* insert,update,reply,view Form Page 관련 전용*/
|
||||
|
||||
/* 상품 리스트 전용 */
|
||||
div#content table.product tr:first-child {
|
||||
border-top:2px solid black;
|
||||
border-bottom:1px solid silver;
|
||||
border-top: 2px solid black;
|
||||
border-bottom: 1px solid silver;
|
||||
}
|
||||
|
||||
/* 상품 리스트 전용 */
|
||||
|
||||
div#content table thead th{
|
||||
div#content table thead th {
|
||||
white-space: nowrap;
|
||||
padding-top:15px;
|
||||
padding-bottom:15px;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
font-size: 1.5rem;
|
||||
font-weight:bold;
|
||||
border-top:2px solid black;
|
||||
border-bottom:1px solid silver;
|
||||
background-color:#F5F5F5;
|
||||
font-weight: bold;
|
||||
border-top: 2px solid black;
|
||||
border-bottom: 1px solid silver;
|
||||
background-color: #F5F5F5;
|
||||
/* border:1px solid silver; */
|
||||
}
|
||||
|
||||
div#content table thead th.index_head_short_column {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
div#content div.bottom {
|
||||
padding-top:15px;
|
||||
text-align:center;
|
||||
padding-top: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div#content div.bottom ul.pagination {
|
||||
margin-top:20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
div#content div.bottom ul.pagination li.page-item a{
|
||||
border:0px;
|
||||
border-radius:0px !important;
|
||||
background-color:#e8ebe9;
|
||||
|
||||
div#content div.bottom ul.pagination li.page-item a {
|
||||
border: 0px;
|
||||
border-radius: 0px !important;
|
||||
background-color: #e8ebe9;
|
||||
}
|
||||
div#content div.bottom ul.pagination li.active a{
|
||||
background-color:gray;
|
||||
|
||||
div#content div.bottom ul.pagination li.active a {
|
||||
background-color: gray;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user