shoppingmallv2 init...

This commit is contained in:
최준흠 2023-08-03 10:13:38 +09:00
parent 7f2127326d
commit 967680977f
7 changed files with 8 additions and 7 deletions

View File

@ -119,7 +119,7 @@ function getFieldIndex_Row_BoardConfigHelper_Admin($field, $entity, array $field
default:
if (in_array($field, $fieldFilters)) {
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
return getFieldFilter_BoardConfigHelper($field, $entity->$field, $fieldFormOptions, $attributes);
return getFieldForm_BoardConfigHelper($field, $entity->$field, $fieldFormOptions, $attributes);
}
return getFieldIndex_Row_BoardConfigHelper($field, $entity, $fieldFormOptions, $attributes);
break;

View File

@ -131,7 +131,7 @@ function getFieldIndex_Row_BoardHelper_Admin($field, $entity, array $fieldFilter
default:
if (in_array($field, $fieldFilters)) {
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
return getFieldFilter_BoardHelper($field, $entity->$field, $fieldFormOptions, $attributes);
return getFieldForm_BoardHelper($field, $entity->$field, $fieldFormOptions, $attributes);
}
return getFieldIndex_Row_BoardHelper($field, $entity, $fieldFormOptions, $attributes);
break;

View File

@ -128,7 +128,7 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $fieldFil
default:
if (in_array($field, $fieldFilters)) {
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
return getFieldFilter_CategoryHelper($field, $entity->$field, $fieldFormOptions, $attributes);
return getFieldForm_CategoryHelper($field, $entity->$field, $fieldFormOptions, $attributes);
}
return getFieldIndex_Row_CategoryHelper($field, $entity, $fieldFormOptions, $attributes);
break;

View File

@ -52,7 +52,7 @@ function getFieldView_OrderHelper($field, $entity, array $fieldFilters, array $f
"<div style=\"text-align:left;\">%s</div>",
anchor(current_url() . '/view/' . $entity->getPrimaryKey(), $value, [...$attributes, "target" => "_self"])
);
break;
break;
case 'quantity':
case 'price':
return number_format(!$value ? 0 : $value);
@ -100,7 +100,7 @@ function getFieldIndex_Row_OrderHelper_Admin($field, $entity, array $fieldFilter
default:
if (in_array($field, $fieldFilters)) {
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
return getFieldFilter_OrderHelper($field, $entity->$field, $fieldFormOptions, $attributes);
return getFieldForm_OrderHelper($field, $entity->$field, $fieldFormOptions, $attributes);
}
return getFieldIndex_Row_OrderHelper($field, $entity, $fieldFormOptions, $attributes);
break;

View File

@ -140,7 +140,7 @@ function getFieldIndex_Row_ProductHelper_Admin($field, $entity, array $fieldFilt
default:
if (in_array($field, $fieldFilters)) {
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
return getFieldFilter_ProductHelper($field, $entity->$field, $fieldFormOptions, $attributes);
return getFieldForm_ProductHelper($field, $entity->$field, $fieldFormOptions, $attributes);
}
return getFieldIndex_Row_ProductHelper($field, $entity, $fieldFormOptions, $attributes);
break;

View File

@ -104,7 +104,7 @@ function getFieldIndex_Row_UserSNSHelper_Admin($field, $entity, array $fieldFilt
default:
if (in_array($field, $fieldFilters)) {
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
return getFieldFilter_UserSNSHelper($field, $entity->$field, $fieldFormOptions, $attributes);
return getFieldForm_UserSNSHelper($field, $entity->$field, $fieldFormOptions, $attributes);
}
return getFieldIndex_Row_UserSNSHelper($field, $entity, $fieldFormOptions, $attributes);
break;

View File

@ -5,5 +5,6 @@
<div class="accordion accordion-flush">
<?= $this->include($layout['path'] . '/left_menu/base'); ?>
<?= $this->include($layout['path'] . '/left_menu/board'); ?>
<?= $this->include($layout['path'] . '/left_menu/shoppingmall'); ?>
</div>
</div>