shoppingmallv2 init...

This commit is contained in:
최준흠git config git config --helpgit config --global user.name 최준흠 2023-08-12 16:49:08 +09:00
parent 063ab7ca7c
commit 77c434617c
22 changed files with 116 additions and 108 deletions

View File

@ -113,6 +113,10 @@ function getFieldIndex_Column_BoardHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-4'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -139,10 +143,10 @@ function getFieldIndex_Row_BoardHelper($field, $entity, array $viewDatas): strin
$value,
["target" => "_self"]
);
return sprintf("<td class='text-start'>%s%s %s</td>", $depth, $reply, $view);
return sprintf("%s%s %s", $depth, $reply, $view);
break;
default:
return sprintf("<td>%s</td>", getFieldView_BoardHelper($field, $entity, $viewDatas));
return getFieldView_BoardHelper($field, $entity, $viewDatas);
break;
}
} //
@ -168,7 +172,7 @@ function getFieldIndex_Row_BoardHelper_Admin($field, $entity, array $viewDatas):
$value,
["target" => "_self"]
);
return sprintf("<td class='text-start'>%s%s %s</td>", $depth, $reply, $view);
return sprintf("%s%s %s", $depth, $reply, $view);
break;
default:
if (in_array($field, $viewDatas['fieldFilters'])) {
@ -179,7 +183,7 @@ function getFieldIndex_Row_BoardHelper_Admin($field, $entity, array $viewDatas):
$field,
$field
);
return sprintf("<td>%s</td>", getFieldForm_BoardHelper($field, $entity->$field, $viewDatas, $attributes));
return getFieldForm_BoardHelper($field, $entity->$field, $viewDatas, $attributes);
}
return getFieldIndex_Row_BoardHelper($field, $entity, $viewDatas);
break;

View File

@ -97,7 +97,7 @@ function getFieldIndex_Row_CardHelper($field, $entity, array $viewDatas): string
$value = $entity->$field ?: DEFAULTS['EMPTY'];
switch ($field) {
default:
return sprintf("<td>%s</td>", getFieldView_CardHelper($field, $entity, $viewDatas));
return getFieldView_CardHelper($field, $entity, $viewDatas);
break;
}
} //

View File

@ -113,6 +113,10 @@ function getFieldIndex_Column_CategoryHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-4'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -124,7 +128,7 @@ function getFieldIndex_Row_CategoryHelper($field, $entity, array $viewDatas): st
{
switch ($field) {
default:
return sprintf("<td>%s</td>", getFieldView_CategoryHelper($field, $entity, $viewDatas));
return getFieldView_CategoryHelper($field, $entity, $viewDatas);
break;
}
} //
@ -149,7 +153,7 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewData
$value,
["target" => "_self"]
);
return sprintf("<td class='text-start'>%s%s %s</td>", $depth, $reply, $view);
return sprintf("%s%s %s", $depth, $reply, $view);
break;
default:
if (in_array($field, $viewDatas['fieldFilters'])) {
@ -160,7 +164,7 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewData
$field,
$field
);
return sprintf("<td>%s</td>", getFieldForm_CategoryHelper($field, $entity->$field, $viewDatas, $attributes));
return getFieldForm_CategoryHelper($field, $entity->$field, $viewDatas, $attributes);
}
return getFieldIndex_Row_CategoryHelper($field, $entity, $viewDatas);
break;

View File

@ -56,6 +56,10 @@ function getFieldIndex_Column_DepositHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-4'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -67,7 +71,7 @@ function getFieldIndex_Row_DepositHelper($field, $entity, array $viewDatas): str
{
switch ($field) {
default:
return sprintf("<td>%s</td>", getFieldView_DepositHelper($field, $entity, $viewDatas));
return getFieldView_DepositHelper($field, $entity, $viewDatas);
break;
}
} //

View File

@ -110,6 +110,10 @@ function getFieldIndex_Column_OrderHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-4'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -123,19 +127,16 @@ function getFieldIndex_Row_OrderHelper($field, $entity, array $viewDatas): strin
switch ($field) {
case 'title':
case 'name':
return sprintf(
"<td>%s</td>",
anchor(
current_url() . '/view/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(),
$value,
["target" => "_self"]
)
return anchor(
current_url() . '/view/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(),
$value,
["target" => "_self"]
);
break;
case 'status':
if ($value == DEFAULTS['STATUS']) {
return sprintf(
"<td nowrap><div class=\"payment\">%s</div><div class=\"payment\">%s</div></td>",
"<div class=\"payment\">%s</div><div class=\"payment\">%s</div>",
anchor(
URLS['paymentCard'] . '/' . $entity->getPrimaryKey(),
"카 드 결 제",
@ -148,11 +149,11 @@ function getFieldIndex_Row_OrderHelper($field, $entity, array $viewDatas): strin
)
);
} else {
return sprintf("<td>%s</td>", getFieldView_OrderHelper($field, $entity, $viewDatas));
return getFieldView_OrderHelper($field, $entity, $viewDatas);
}
break;
default:
return sprintf("<td>%s</td>", getFieldView_OrderHelper($field, $entity, $viewDatas));
return getFieldView_OrderHelper($field, $entity, $viewDatas);
break;
}
} //
@ -163,13 +164,10 @@ function getFieldIndex_Row_OrderHelper_Admin($field, $entity, array $viewDatas):
switch ($field) {
case 'title':
case 'name':
return sprintf(
"<td>%s</td>",
anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
)
return anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
);
break;
default:
@ -181,7 +179,7 @@ function getFieldIndex_Row_OrderHelper_Admin($field, $entity, array $viewDatas):
$field,
$field
);
return sprintf("<td>%s</td>", getFieldForm_OrderHelper($field, $entity->$field, $viewDatas, $attributes));
return getFieldForm_OrderHelper($field, $entity->$field, $viewDatas, $attributes);
}
return getFieldIndex_Row_OrderHelper($field, $entity, $viewDatas);
break;

View File

@ -125,6 +125,10 @@ function getFieldIndex_Column_ProductHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-4'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -158,7 +162,7 @@ function getFieldIndex_Row_ProductHelper_Admin($field, $entity, array $viewDatas
case 'title':
case 'name':
return sprintf(
"<td class='text-start'>%s<BR>%s</td>",
"%s<BR>%s",
$entity->getFileImage("middle", 'photo'),
anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
@ -176,10 +180,10 @@ function getFieldIndex_Row_ProductHelper_Admin($field, $entity, array $viewDatas
$field,
$field
);
return sprintf("<td>%s</td>", getFieldForm_ProductHelper($field, $entity->$field, $viewDatas, $attributes));
return getFieldForm_ProductHelper($field, $entity->$field, $viewDatas, $attributes);
}
//front는 table을 사용하지 않는 점 주의
return sprintf("<td>%s</td>", getFieldIndex_Row_ProductHelper($field, $entity, $viewDatas));
return getFieldIndex_Row_ProductHelper($field, $entity, $viewDatas);
break;
}
} //

View File

@ -113,6 +113,10 @@ function getFieldIndex_Column_SitepageHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-4'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -122,25 +126,13 @@ function getFieldIndex_Column_SitepageHelper($field, array $viewDatas)
//Front용
function getFieldIndex_Row_SitepageHelper($field, $entity, array $viewDatas): string
{
$value = $entity->$field ?: DEFAULTS['EMPTY'];
//front쪽은 table을 사용하지 않음 주의
switch ($field) {
case 'title':
case 'name':
return sprintf(
"<td>%s</td>",
anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
)
);
break;
case 'content':
//front쪽은 table을 사용하지 않음 주의
return getFieldView_SitepageHelper($field, $entity, $viewDatas);
break;
default:
return sprintf("<td>%s</td>", getFieldView_SitepageHelper($field, $entity, $viewDatas));
return getFieldView_SitepageHelper($field, $entity, $viewDatas);
break;
}
} //
@ -148,7 +140,16 @@ function getFieldIndex_Row_SitepageHelper($field, $entity, array $viewDatas): st
//Admin용
function getFieldIndex_Row_SitepageHelper_Admin($field, $entity, array $viewDatas): string
{
$value = $entity->$field ?: DEFAULTS['EMPTY'];
switch ($field) {
case 'title':
case 'name':
return anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
);
break;
default:
if (in_array($field, $viewDatas['fieldFilters'])) {
$attributes["onChange"] = sprintf(
@ -158,8 +159,9 @@ function getFieldIndex_Row_SitepageHelper_Admin($field, $entity, array $viewData
$field,
$field
);
return sprintf("<td>%s</td>", getFieldForm_SitepageHelper($field, $entity->$field, $viewDatas, $attributes));
return getFieldForm_SitepageHelper($field, $entity->$field, $viewDatas, $attributes);
}
//front쪽은 table을 사용하지 않음 주의
return getFieldIndex_Row_SitepageHelper($field, $entity, $viewDatas);
break;
}

View File

@ -101,6 +101,10 @@ function getFieldIndex_Column_UserSNSHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-1'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -114,17 +118,14 @@ function getFieldIndex_Row_UserSNSHelper($field, $entity, array $viewDatas): str
switch ($field) {
case 'title':
case 'name':
return sprintf(
"<td>%s</td>",
anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
)
return anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
);
break;
default:
return sprintf("<td>%s</td>", getFieldView_UserSNSHelper($field, $entity, $viewDatas));
return getFieldView_UserSNSHelper($field, $entity, $viewDatas);
break;
}
} //
@ -141,7 +142,7 @@ function getFieldIndex_Row_UserSNSHelper_Admin($field, $entity, array $viewDatas
$field,
$field
);
return sprintf("<td>%s</td>", getFieldForm_UserSNSHelper($field, $entity->$field, $viewDatas, $attributes));
return getFieldForm_UserSNSHelper($field, $entity->$field, $viewDatas, $attributes);
}
return getFieldIndex_Row_UserSNSHelper($field, $entity, $viewDatas);
break;

View File

@ -117,6 +117,10 @@ function getFieldIndex_Column_UserHelper($field, array $viewDatas)
$viewDatas['uri']->addQuery('order_value', $value);
$columnData = anchor($viewDatas['uri'], $label);
switch ($field) {
case 'title':
case 'name':
return sprintf("<th class='col-1'>%s</th>", $columnData);
break;
default:
return sprintf("<th>%s</th>", $columnData);
break;
@ -130,17 +134,14 @@ function getFieldIndex_Row_UserHelper($field, $entity, array $viewDatas): string
switch ($field) {
case 'title':
case 'name':
return sprintf(
"<td>%s</td>",
anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
)
return anchor(
current_url() . '/view/' . $entity->getPrimaryKey(),
$value,
["target" => "_self"]
);
break;
default:
return sprintf("<td>%s</td>", getFieldView_UserHelper($field, $entity, $viewDatas));
return getFieldView_UserHelper($field, $entity, $viewDatas);
break;
}
} //
@ -157,7 +158,7 @@ function getFieldIndex_Row_UserHelper_Admin($field, $entity, array $viewDatas):
foreach ($viewDatas['fieldFormOptions'][$field] as $key => $label) {
$checkboxs[] = form_checkbox("{$field}[]", $key, in_array($key, explode(DEFAULTS["DELIMITER_ROLE"], $value))) . $label;
}
return sprintf("<td>%s</td>", implode(" ", $checkboxs));
return implode(" ", $checkboxs);
break;
default:
if (in_array($field, $viewDatas['fieldFilters'])) {
@ -168,7 +169,7 @@ function getFieldIndex_Row_UserHelper_Admin($field, $entity, array $viewDatas):
$field,
$field
);
return sprintf("<td>%s</td>", getFieldForm_UserHelper($field, $entity->$field, $viewDatas, $attributes));
return getFieldForm_UserHelper($field, $entity->$field, $viewDatas, $attributes);
}
return getFieldIndex_Row_UserHelper($field, $entity, $viewDatas);
break;

View File

@ -12,9 +12,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,7 +26,7 @@
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_BoardHelper_Admin($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_BoardHelper_Admin($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr>

View File

@ -12,9 +12,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_CategoryHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,7 +26,7 @@
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_CategoryHelper_Admin($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_CategoryHelper_Admin($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr>

View File

@ -12,9 +12,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_OrderHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,7 +26,7 @@
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_OrderHelper_Admin($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_OrderHelper_Admin($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr>

View File

@ -12,9 +12,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_ProductHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,7 +26,7 @@
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_ProductHelper_Admin($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_ProductHelper_Admin($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr>

View File

@ -12,9 +12,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_SitepageHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,7 +26,7 @@
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_SitepageHelper_Admin($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_SitepageHelper_Admin($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr>

View File

@ -12,9 +12,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_UserHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,7 +26,7 @@
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_UserHelper_Admin($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_UserHelper_Admin($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr>

View File

@ -12,9 +12,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_UserSNSHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,7 +26,7 @@
<?= anchor(current_url() . '/update/' . $entity->getPrimaryKey(), $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt), ["target" => "_self"]) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_UserSNSHelper_Admin($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_UserSNSHelper_Admin($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td><?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?></td>
</tr>

View File

@ -8,9 +8,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_BoardHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -26,13 +26,9 @@
<?php endif ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_BoardHelper($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_BoardHelper($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td>
<!-- 사용자가 쓰기권한이 있는지 확인-->
<?php if (isRole_CommonHelper($viewDatas['currentRoles'], $viewDatas['category'], CATEGORY_ROLE_FIELDS['WRITE'])) : ?>
<?= anchor(current_url() . '/insert?category=' . $viewDatas['category']->getPrimaryKey(), '입력', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?>
<?php endif ?>
<!-- 사용자가 자신의 작성한것인지 확인되면 delete 가능-->
<?php if ($viewDatas[SESSION_NAMES['ISLOGIN']] && $entity->user_uid == $viewDatas['auth'][AUTH_FIELDS['ID']]) : ?>
<?= anchor(current_url() . '/delete/' . $entity->getPrimaryKey() . '?category=' . $viewDatas['category']->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) ?>
@ -44,6 +40,10 @@
</tbody>
</table>
<div class="bottom">
<!-- 사용자가 쓰기권한이 있는지 확인-->
<?php if (isRole_CommonHelper($viewDatas['currentRoles'], $viewDatas['category'], CATEGORY_ROLE_FIELDS['WRITE'])) : ?>
<?= anchor(current_url() . '/insert?category=' . $viewDatas['category']->getPrimaryKey(), '입력', ["class" => "btn btn-sm btn-primary btn-circle", "target" => "_self"]) ?>
<?php endif ?>
<?= $viewDatas['pagination'] ?>
</div>
<?= form_close() ?>

View File

@ -9,9 +9,9 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_OrderHelper($field, $viewDatas) ?><?php endforeach ?>
<th>작업</th>
<th>@</th>
</tr>
</thead>
<tbody>
@ -22,7 +22,7 @@
<?= $viewDatas['total_count'] - (($viewDatas['page'] - 1) * $viewDatas['per_page'] + $cnt) ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_OrderHelper($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_OrderHelper($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
<td>
<?php if ($entity->status == DEFAULTS['STATUS']) : ?>

View File

@ -8,7 +8,7 @@
<table class="table table-hover">
<thead>
<tr>
<th>번호</th>
<th>#</th>
<?php foreach ($viewDatas['fields'] as $field) : ?><?= getFieldIndex_Column_UserHelper($field, $viewDatas) ?><?php endforeach ?>
</tr>
</thead>
@ -25,7 +25,7 @@
<?php endif ?>
</td>
<?php foreach ($viewDatas['fields'] as $field) : ?>
<?= getFieldIndex_Row_UserHelper($field, $entity, $viewDatas) ?>
<td><?= getFieldIndex_Row_UserHelper($field, $entity, $viewDatas) ?></td>
<?php endforeach ?>
</tr>
<?php $cnt++ ?>

View File

@ -8,7 +8,7 @@
margin:0px;
padding:0px;
border:0px;
font-size:12px;
font-size:14px;
font: Arial;
}

View File

@ -68,7 +68,6 @@ div#content table.product tr:first-child {
div#content table thead th{
white-space: nowrap;
text-align:center;
padding-top:15px;
padding-bottom:15px;
font-size: 16px;
@ -78,10 +77,6 @@ div#content table thead th{
background-color:#F5F5F5;
/* border:1px solid silver; */
}
div#content table tbody td {
/* border:1px solid silver; */
text-align:center;
}
div#content div.bottom {
padding-top:15px;

View File

@ -69,7 +69,6 @@ div#content table.product tr:first-child {
div#content table thead th{
white-space: nowrap;
text-align:center;
padding-top:15px;
padding-bottom:15px;
font-size: 16px;
@ -79,10 +78,6 @@ div#content table thead th{
background-color:#F5F5F5;
/* border:1px solid silver; */
}
div#content table tbody td {
/* border:1px solid silver; */
text-align:center;
}
div#content div.bottom {
padding-top:15px;