shoppingmallv2 init...
This commit is contained in:
parent
7b9d260261
commit
e4b2bb4a46
@ -23,7 +23,7 @@ class CategoryController extends AdminController
|
||||
public function getFields(string $action = ""): array
|
||||
{
|
||||
$fields = [
|
||||
'name', "linkurl", "photo", "isaccess", "isread", "iswrite", "isreply", "isupload", "isdownload",
|
||||
'name', "linkurl", "isaccess", "isread", "iswrite", "isreply", "isupload", "isdownload",
|
||||
"status", "head", "tail",
|
||||
];
|
||||
switch ($action) {
|
||||
@ -50,22 +50,6 @@ class CategoryController extends AdminController
|
||||
{
|
||||
return parent::getFieldBatchFilters();
|
||||
}
|
||||
//Field별 Form Datas 처리용
|
||||
protected function getFieldFormData(string $field, $entity = null): array
|
||||
{
|
||||
switch ($field) {
|
||||
case 'photo':
|
||||
$file = $this->upload_image_procedure($field);
|
||||
if (!is_null($file)) {
|
||||
$this->_viewDatas['fieldDatas'][$field] = $file;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return parent::getFieldFormData($field, $entity);
|
||||
break;
|
||||
}
|
||||
return $this->_viewDatas['fieldDatas'];
|
||||
}
|
||||
|
||||
private function write_leftmenu($old_category, array $categorys)
|
||||
{
|
||||
|
||||
@ -139,7 +139,7 @@ function getFieldIndex_Row_BoardHelper($field, $entity, array $viewDatas): strin
|
||||
$value,
|
||||
["target" => "_self"]
|
||||
);
|
||||
return sprintf("<td>%s%s %s</td>", $depth, $reply, $view);
|
||||
return sprintf("<td class='text-start'>%s%s %s</td>", $depth, $reply, $view);
|
||||
break;
|
||||
default:
|
||||
return sprintf("<td>%s</td>", getFieldView_BoardHelper($field, $entity, $viewDatas));
|
||||
@ -168,7 +168,7 @@ function getFieldIndex_Row_BoardHelper_Admin($field, $entity, array $viewDatas):
|
||||
$value,
|
||||
["target" => "_self"]
|
||||
);
|
||||
return sprintf("<td>%s%s %s</td>", $depth, $reply, $view);
|
||||
return sprintf("<td class='text-start'>%s%s %s</td>", $depth, $reply, $view);
|
||||
break;
|
||||
default:
|
||||
if (in_array($field, $viewDatas['fieldFilters'])) {
|
||||
|
||||
@ -149,7 +149,7 @@ function getFieldIndex_Row_CategoryHelper_Admin($field, $entity, array $viewData
|
||||
$value,
|
||||
["target" => "_self"]
|
||||
);
|
||||
return sprintf("<td>%s%s %s</td>", $depth, $reply, $view);
|
||||
return sprintf("<td class='text-start'>%s%s %s</td>", $depth, $reply, $view);
|
||||
break;
|
||||
default:
|
||||
if (in_array($field, $viewDatas['fieldFilters'])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user