shoppingmallv2 init...
This commit is contained in:
parent
3de4a451c2
commit
c68351431e
@ -247,7 +247,6 @@ define('DEFAULTS', [
|
|||||||
'STATUS' => getenv('default.status') ?: "use",
|
'STATUS' => getenv('default.status') ?: "use",
|
||||||
'EMPTY' => getenv('default.empty') ?: "",
|
'EMPTY' => getenv('default.empty') ?: "",
|
||||||
'PERPAGE' => getenv('default.perpage') ?: 20,
|
'PERPAGE' => getenv('default.perpage') ?: 20,
|
||||||
'HIERARCHY_GRPDEPTH' => getenv('default.hierarchy_grpdepth') ?: 20,
|
|
||||||
'DELIMITER_FILE' => getenv('default.delimiter.file') ?: "||",
|
'DELIMITER_FILE' => getenv('default.delimiter.file') ?: "||",
|
||||||
'DELIMITER_ROLE' => getenv('default.delimiter.role') ?: ",",
|
'DELIMITER_ROLE' => getenv('default.delimiter.role') ?: ",",
|
||||||
]);
|
]);
|
||||||
|
|||||||
@ -115,7 +115,7 @@ function getFieldIndex_Column_BoardHelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
@ -129,6 +129,10 @@ function getFieldIndex_Row_BoardHelper($field, $entity, array $viewDatas): strin
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
|
$depth = " ";
|
||||||
|
for ($i = 1; $i < $entity->getHierarchy_Depth(); $i++) {
|
||||||
|
$depth .= " ";
|
||||||
|
}
|
||||||
$reply = anchor(
|
$reply = anchor(
|
||||||
current_url() . '/reply/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(),
|
current_url() . '/reply/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(),
|
||||||
ICONS['REPLY'],
|
ICONS['REPLY'],
|
||||||
@ -139,12 +143,7 @@ function getFieldIndex_Row_BoardHelper($field, $entity, array $viewDatas): strin
|
|||||||
$value,
|
$value,
|
||||||
["target" => "_self"]
|
["target" => "_self"]
|
||||||
);
|
);
|
||||||
return sprintf(
|
return sprintf("%s%s %s", $depth, $reply, $view);
|
||||||
"<div style=\"text-align:left; padding-left:%spx\">%s %s</div>",
|
|
||||||
$entity->getHierarchy_Depth() * DEFAULTS['HIERARCHY_GRPDEPTH'],
|
|
||||||
$reply,
|
|
||||||
$view
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return getFieldView_BoardHelper($field, $entity, $viewDatas);
|
return getFieldView_BoardHelper($field, $entity, $viewDatas);
|
||||||
@ -159,6 +158,10 @@ function getFieldIndex_Row_BoardHelper_Admin($field, $entity, array $viewDatas):
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
|
$depth = " ";
|
||||||
|
for ($i = 1; $i < $entity->getHierarchy_Depth(); $i++) {
|
||||||
|
$depth .= " ";
|
||||||
|
}
|
||||||
$reply = anchor(
|
$reply = anchor(
|
||||||
current_url() . '/reply/' . $entity->getPrimaryKey(),
|
current_url() . '/reply/' . $entity->getPrimaryKey(),
|
||||||
ICONS['REPLY'],
|
ICONS['REPLY'],
|
||||||
@ -169,12 +172,7 @@ function getFieldIndex_Row_BoardHelper_Admin($field, $entity, array $viewDatas):
|
|||||||
$value,
|
$value,
|
||||||
["target" => "_self"]
|
["target" => "_self"]
|
||||||
);
|
);
|
||||||
return sprintf(
|
return sprintf("%s%s %s", $depth, $reply, $view);
|
||||||
"<div style=\"text-align:left; padding-left:%spx\">%s %s</div>",
|
|
||||||
$entity->getHierarchy_Depth() * DEFAULTS['HIERARCHY_GRPDEPTH'],
|
|
||||||
$reply,
|
|
||||||
$view
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (in_array($field, $viewDatas['fieldFilters'])) {
|
if (in_array($field, $viewDatas['fieldFilters'])) {
|
||||||
|
|||||||
@ -115,7 +115,7 @@ function getFieldIndex_Column_CategoryHelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
@ -138,14 +138,14 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewData
|
|||||||
$value = $entity->$field ?: DEFAULTS['EMPTY'];
|
$value = $entity->$field ?: DEFAULTS['EMPTY'];
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'linkurl':
|
case 'linkurl':
|
||||||
return sprintf(
|
return $entity->getFileImage('middle', 'photo') . "<BR>" . $value;
|
||||||
"<div class=\"location-left\">%s<BR>%s</div>",
|
|
||||||
$entity->getFileImage('middle', 'photo'),
|
|
||||||
$value
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
|
$depth = " ";
|
||||||
|
for ($i = 1; $i < $entity->getHierarchy_Depth(); $i++) {
|
||||||
|
$depth .= " ";
|
||||||
|
}
|
||||||
$reply = anchor(
|
$reply = anchor(
|
||||||
current_url() . '/reply/' . $entity->getPrimaryKey(),
|
current_url() . '/reply/' . $entity->getPrimaryKey(),
|
||||||
ICONS['REPLY'],
|
ICONS['REPLY'],
|
||||||
@ -156,12 +156,7 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewData
|
|||||||
$value,
|
$value,
|
||||||
["target" => "_self"]
|
["target" => "_self"]
|
||||||
);
|
);
|
||||||
return sprintf(
|
return sprintf("%s%s %s", $depth, $reply, $view);
|
||||||
"<div style=\"text-align:left; padding-left:%spx\">%s %s</div>",
|
|
||||||
$entity->getHierarchy_Depth() * DEFAULTS['HIERARCHY_GRPDEPTH'],
|
|
||||||
$reply,
|
|
||||||
$view
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (in_array($field, $viewDatas['fieldFilters'])) {
|
if (in_array($field, $viewDatas['fieldFilters'])) {
|
||||||
|
|||||||
@ -109,7 +109,7 @@ function getFieldIndex_Column_OrderHelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
|
|||||||
@ -145,7 +145,7 @@ function getFieldIndex_Column_PaymentHelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
|
|||||||
@ -114,7 +114,7 @@ function getFieldFilter_ProductHelper($field, $value, array $viewDatas)
|
|||||||
return form_dropdown($field, $viewDatas['fieldFormOptions'][$field], $value, ['class' => "select-field"]);
|
return form_dropdown($field, $viewDatas['fieldFormOptions'][$field], $value, ['class' => "select-field"]);
|
||||||
} //
|
} //
|
||||||
|
|
||||||
function getFieldIndex_Column_Productelper($field, array $viewDatas)
|
function getFieldIndex_Column_ProductHelper($field, array $viewDatas)
|
||||||
{
|
{
|
||||||
$label = lang("{$viewDatas['className']}.label.{$field}");
|
$label = lang("{$viewDatas['className']}.label.{$field}");
|
||||||
if ($field == $viewDatas['order_field']) {
|
if ($field == $viewDatas['order_field']) {
|
||||||
@ -127,7 +127,7 @@ function getFieldIndex_Column_Productelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
|
|||||||
@ -115,7 +115,7 @@ function getFieldIndex_Column_SitepageHelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
|
|||||||
@ -103,7 +103,7 @@ function getFieldIndex_Column_UserSNSHelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
|
|||||||
@ -119,7 +119,7 @@ function getFieldIndex_Column_UserHelper($field, array $viewDatas)
|
|||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'title':
|
case 'title':
|
||||||
case 'name':
|
case 'name':
|
||||||
return sprintf("<th style=\"width:100px;\">%s</th>", $columnData);
|
return sprintf("<th class=\"title\">%s</th>", $columnData);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return sprintf("<th>%s</th>", $columnData);
|
return sprintf("<th>%s</th>", $columnData);
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -21,12 +21,12 @@
|
|||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
||||||
<td>
|
<td nowrap>
|
||||||
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
||||||
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
||||||
<td nowrap><?= getFieldIndex_Row_BoardHelper_Admin($field, $entity, $viewDatas) ?></td>
|
<td class="<?= in_array($field, ['title', 'name']) ? "title hierarchy" : "" ?>"><?= getFieldIndex_Row_BoardHelper_Admin($field, $entity, $viewDatas) ?></td>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_CategoryHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_CategoryHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -21,12 +21,12 @@
|
|||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
||||||
<td>
|
<td nowrap>
|
||||||
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
||||||
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
||||||
<td nowrap><?= getFieldIndex_Row_CategoryHelper_Admin($field, $entity, $viewDatas) ?></td>
|
<td class="<?= in_array($field, ['title', 'name']) ? "title hierarchy" : "" ?>"><?= getFieldIndex_Row_CategoryHelper_Admin($field, $entity, $viewDatas) ?></td>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_OrderHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_OrderHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -21,12 +21,12 @@
|
|||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
||||||
<td>
|
<td nowarp>
|
||||||
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
||||||
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
||||||
<td nowrap><?= getFieldIndex_Row_OrderHelper_Admin($field, $entity, $viewDatas) ?></td>
|
<td><?= getFieldIndex_Row_OrderHelper_Admin($field, $entity, $viewDatas) ?></td>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_ProductHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_ProductHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -21,12 +21,12 @@
|
|||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
||||||
<td>
|
<td nowarp>
|
||||||
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
||||||
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
||||||
<td nowrap><?= getFieldIndex_Row_ProductHelper_Admin($field, $entity, $viewDatas) ?></td>
|
<td><?= getFieldIndex_Row_ProductHelper_Admin($field, $entity, $viewDatas) ?></td>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_SitepageHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_SitepageHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -21,12 +21,12 @@
|
|||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
||||||
<td>
|
<td nowrap>
|
||||||
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
||||||
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
||||||
<td nowrap><?= getFieldIndex_Row_SitepageHelper_Admin($field, $entity, $viewDatas) ?></td>
|
<td><?= getFieldIndex_Row_SitepageHelper_Admin($field, $entity, $viewDatas) ?></td>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_UserHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_UserHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -21,12 +21,12 @@
|
|||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
<tr id="<?= $entity->getPrimaryKey() ?>" <?= $entity->status != DEFAULTS['STATUS'] ? 'class="table-danger" rowcolor="red"' : 'rowcolor="red"' ?> onClick="indexRowCheckBoxToggle(this)">
|
||||||
<td>
|
<td nowarp>
|
||||||
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
<?= form_checkbox(["id" => "checkbox_uid_{$entity->getPrimaryKey()}", "name" => "batchjob_uids[]", "value" => $entity->getPrimaryKey(), "class" => "batchjobuids_checkboxs"]); ?>
|
||||||
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
||||||
<td nowrap><?= getFieldIndex_Row_UserHelper_Admin($field, $entity, $viewDatas) ?></td>
|
<td><?= getFieldIndex_Row_UserHelper_Admin($field, $entity, $viewDatas) ?></td>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_UserSNSHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_UserSNSHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>번호</th>
|
<th>번호</th>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?><th><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?></th><?php endforeach ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?><?php endforeach ?>
|
||||||
<th>작업</th>
|
<th>작업</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
<?php foreach ($viewDatas['fields'] as $field) : ?>
|
||||||
<td nowrap><?= getFieldIndex_Row_BoardHelper($field, $entity, $viewDatas) ?></td>
|
<td><?= getFieldIndex_Row_BoardHelper($field, $entity, $viewDatas) ?></td>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<td>
|
<td>
|
||||||
<!-- 사용자가 쓰기권한이 있는지 확인-->
|
<!-- 사용자가 쓰기권한이 있는지 확인-->
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php $cnt = 0 ?>
|
<?php $cnt = 0 ?>
|
||||||
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
<?php foreach ($viewDatas['entitys'] as $entity) : ?>
|
||||||
<table id="block" class="table">
|
<table class="product table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="14%" rowspan="3"><?= $entity->getFileImage('middle') ?></td>
|
<td width="14%" rowspan="3"><?= $entity->getFileImage('middle') ?></td>
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
div#content{
|
div#content{
|
||||||
|
color:black;
|
||||||
padding-top:20px;
|
padding-top:20px;
|
||||||
margin-bottom:20px;
|
margin-bottom:20px;
|
||||||
/* border-left:1px solid silver;
|
/* border-left:1px solid silver;
|
||||||
@ -8,20 +9,6 @@ div#content{
|
|||||||
border:1px solid red;
|
border:1px solid red;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
/* Form Page 관련 전용*/
|
|
||||||
div#content table.form td.label{
|
|
||||||
width:10%;
|
|
||||||
text-align:right;
|
|
||||||
padding-right:20px;
|
|
||||||
background-color:#e8ebe9;
|
|
||||||
}
|
|
||||||
div#content table.form td.column{
|
|
||||||
height:27px;
|
|
||||||
text-align:left;
|
|
||||||
padding-left:20px;
|
|
||||||
}
|
|
||||||
/* Form Page 관련 전용*/
|
|
||||||
|
|
||||||
/*페이지정보*/
|
/*페이지정보*/
|
||||||
div#content div.top nav span.pageinfo{
|
div#content div.top nav span.pageinfo{
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
@ -49,29 +36,45 @@ div#content div.top nav a{
|
|||||||
border-radius:0px !important;
|
border-radius:0px !important;
|
||||||
/* border:1px solid red; */
|
/* border:1px solid red; */
|
||||||
}
|
}
|
||||||
/* index block 전용 */
|
|
||||||
div#content table#block tr:first-child {
|
/* Table 부분 */
|
||||||
border-top:2px solid black;
|
|
||||||
border-bottom:1px solid silver;
|
|
||||||
}
|
|
||||||
div#content table#block tr td{
|
|
||||||
text-align:left;
|
|
||||||
}
|
|
||||||
/* index block 전용 */
|
|
||||||
div#content table {
|
div#content table {
|
||||||
white-space: nowrap;
|
width:100%;
|
||||||
/* overflow-x: auto;
|
/* overflow-x: auto;
|
||||||
padding-top:5px;
|
padding-top:5px;
|
||||||
padding-bottom:5px; */
|
padding-bottom:5px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* insert,update,reply,view Form Page 관련 전용*/
|
||||||
|
div#content table form td.label{
|
||||||
|
width:10%;
|
||||||
|
text-align:right;
|
||||||
|
padding-right:20px;
|
||||||
|
background-color:#e8ebe9;
|
||||||
|
}
|
||||||
|
div#content table form 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;
|
||||||
|
}
|
||||||
|
div#content table th.title,td.title{
|
||||||
|
width:150px;
|
||||||
|
border:1px solid silver;
|
||||||
|
}
|
||||||
div#content table thead th{
|
div#content table thead th{
|
||||||
|
white-space: nowrap;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
padding-top:15px;
|
padding-top:15px;
|
||||||
padding-bottom:15px;
|
padding-bottom:15px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
border-top:2px solid black;
|
|
||||||
border-bottom:1px solid silver;
|
|
||||||
background-color:#F5F5F5;
|
background-color:#F5F5F5;
|
||||||
/* border:1px solid silver; */
|
/* border:1px solid silver; */
|
||||||
}
|
}
|
||||||
@ -79,6 +82,10 @@ div#content table tbody td {
|
|||||||
/* border:1px solid silver; */
|
/* border:1px solid silver; */
|
||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
|
div#content table tbody td.hierarchy {
|
||||||
|
/* border:1px solid silver; */
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
div#content div.bottom {
|
div#content div.bottom {
|
||||||
padding-top:15px;
|
padding-top:15px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
@ -88,11 +95,12 @@ div#content div.bottom ul.pagination {
|
|||||||
margin-top:20px;
|
margin-top:20px;
|
||||||
}
|
}
|
||||||
div#content div.bottom ul.pagination li.page-item a{
|
div#content div.bottom ul.pagination li.page-item a{
|
||||||
|
color:black;
|
||||||
border:0px;
|
border:0px;
|
||||||
border-radius:0px !important;
|
border-radius:0px !important;
|
||||||
background-color:#e8ebe9;
|
background-color:#e8ebe9;
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
div#content div.bottom ul.pagination li.active a{
|
div#content div.bottom ul.pagination li.active a{
|
||||||
|
color:black;
|
||||||
background-color:gray;
|
background-color:gray;
|
||||||
}
|
}
|
||||||
@ -1,4 +1,5 @@
|
|||||||
div#content{
|
div#content{
|
||||||
|
color:black;
|
||||||
padding-top:40px;
|
padding-top:40px;
|
||||||
padding-left:30px;
|
padding-left:30px;
|
||||||
margin-bottom:20px;
|
margin-bottom:20px;
|
||||||
@ -9,20 +10,6 @@ div#content{
|
|||||||
border:1px solid red;
|
border:1px solid red;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
/* Form Page 관련 전용*/
|
|
||||||
div#content table.form td.label{
|
|
||||||
width:10%;
|
|
||||||
text-align:right;
|
|
||||||
padding-right:20px;
|
|
||||||
background-color:#e8ebe9;
|
|
||||||
}
|
|
||||||
div#content table.form td.column{
|
|
||||||
height:27px;
|
|
||||||
text-align:left;
|
|
||||||
padding-left:20px;
|
|
||||||
}
|
|
||||||
/* Form Page 관련 전용*/
|
|
||||||
|
|
||||||
/*페이지정보*/
|
/*페이지정보*/
|
||||||
div#content div.top nav span.pageinfo{
|
div#content div.top nav span.pageinfo{
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
@ -50,34 +37,49 @@ div#content div.top nav a{
|
|||||||
border-radius:0px !important;
|
border-radius:0px !important;
|
||||||
/* border:1px solid red; */
|
/* border:1px solid red; */
|
||||||
}
|
}
|
||||||
/* index block 전용 */
|
|
||||||
div#content table#block tr:first-child {
|
/* Table 부분 */
|
||||||
border-top:2px solid black;
|
|
||||||
border-bottom:1px solid silver;
|
|
||||||
}
|
|
||||||
div#content table#block tr td{
|
|
||||||
text-align:left;
|
|
||||||
}
|
|
||||||
/* index block 전용 */
|
|
||||||
div#content table {
|
div#content table {
|
||||||
white-space: nowrap;
|
width:100%;
|
||||||
/* overflow-x: auto;
|
/* overflow-x: auto;
|
||||||
padding-top:5px;
|
padding-top:5px;
|
||||||
padding-bottom:5px; */
|
padding-bottom:5px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* insert,update,reply,view Form Page 관련 전용*/
|
||||||
|
div#content table form td.label{
|
||||||
|
width:10%;
|
||||||
|
text-align:right;
|
||||||
|
padding-right:20px;
|
||||||
|
background-color:#e8ebe9;
|
||||||
|
}
|
||||||
|
div#content table form 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;
|
||||||
|
}
|
||||||
div#content table thead th{
|
div#content table thead th{
|
||||||
|
white-space: nowrap;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
padding-top:15px;
|
padding-top:15px;
|
||||||
padding-bottom:15px;
|
padding-bottom:15px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
border-top:2px solid black;
|
|
||||||
border-bottom:1px solid silver;
|
|
||||||
background-color:#F5F5F5;
|
background-color:#F5F5F5;
|
||||||
/* border:1px solid silver; */
|
/* border:1px solid silver; */
|
||||||
}
|
}
|
||||||
|
div#content table thead th.title{
|
||||||
|
width:300px;
|
||||||
|
/* border:1px solid silver; */
|
||||||
|
}
|
||||||
div#content table thead th a{
|
div#content table thead th a{
|
||||||
color:black;
|
|
||||||
/* border:1px solid silver; */
|
/* border:1px solid silver; */
|
||||||
}
|
}
|
||||||
div#content table tbody td {
|
div#content table tbody td {
|
||||||
@ -85,8 +87,6 @@ div#content table tbody td {
|
|||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
div#content table tbody td a{
|
div#content table tbody td a{
|
||||||
color:black;
|
|
||||||
/* text-decoration: none; */
|
|
||||||
/* border:1px solid silver; */
|
/* border:1px solid silver; */
|
||||||
}
|
}
|
||||||
div#content div.bottom {
|
div#content div.bottom {
|
||||||
@ -102,7 +102,6 @@ div#content div.bottom ul.pagination li.page-item a{
|
|||||||
border:0px;
|
border:0px;
|
||||||
border-radius:0px !important;
|
border-radius:0px !important;
|
||||||
background-color:#e8ebe9;
|
background-color:#e8ebe9;
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
div#content div.bottom ul.pagination li.active a{
|
div#content div.bottom ul.pagination li.active a{
|
||||||
color:black;
|
color:black;
|
||||||
|
|||||||
@ -39,5 +39,3 @@ a:link { text-decoration: none; }
|
|||||||
a:visited { text-decoration: none; }
|
a:visited { text-decoration: none; }
|
||||||
a:hover { text-decoration: underline; }
|
a:hover { text-decoration: underline; }
|
||||||
a:active { text-decoration: underline; }
|
a:active { text-decoration: underline; }
|
||||||
|
|
||||||
div.location-left { text-align:left; }
|
|
||||||
Loading…
Reference in New Issue
Block a user