@@ -102,7 +102,7 @@ |
||
102 | 102 | public function validate(&$request) |
103 | 103 | { |
104 | 104 | if (empty($request[$this->colName]) && !empty($this->colParams['required'])) { |
105 | - throw new \Exception('Вы не заполнили: ' . $this->colLabel()); |
|
105 | + throw new \Exception('Вы не заполнили: '.$this->colLabel()); |
|
106 | 106 | } |
107 | 107 | //var_dump($this->colName,$this->colParams); |
108 | 108 | //exit(); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | 'size' => $_FILES[$this->activeForm->requestFormName]['size'][$this->modelName][$this->colName], |
45 | 45 | 'error' => $_FILES[$this->activeForm->requestFormName]['error'][$this->modelName][$this->colName], |
46 | 46 | ], [ |
47 | - 'upload_code' => 'activeForm:' . $this->activeForm->modelName . ':' . $this->activeForm->model->pk(), |
|
47 | + 'upload_code' => 'activeForm:'.$this->activeForm->modelName.':'.$this->activeForm->model->pk(), |
|
48 | 48 | 'accept_group' => 'image' |
49 | 49 | ]); |
50 | 50 | if ($file_id) { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | 'size' => $_FILES[$this->activeForm->requestFormName]['size'][$this->modelName][$this->colName][$key], |
26 | 26 | 'error' => $_FILES[$this->activeForm->requestFormName]['error'][$this->modelName][$this->colName][$key], |
27 | 27 | ], [ |
28 | - 'upload_code' => 'activeForm:' . $this->activeForm->modelName . ':' . $this->activeForm->model->pk() |
|
28 | + 'upload_code' => 'activeForm:'.$this->activeForm->modelName.':'.$this->activeForm->model->pk() |
|
29 | 29 | ]); |
30 | 30 | } |
31 | 31 | $this->activeForm->model->{$this->colName} = implode(',', array_filter($file_ids)); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | 'formName' => !empty($dataManager->managerOptions['editForm']) ? $dataManager->managerOptions['editForm'] : 'manager', |
27 | 27 | 'redirectUrl' => !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : str_replace('\\', '/', $dataManager->modelName) |
28 | 28 | ]; |
29 | - return "<a href='/admin/" . str_replace('\\', '/view/', get_class($item)) . "/{$item->pk()}?" . http_build_query($query) . "'><i class='glyphicon glyphicon-eye-open'></i></a>"; |
|
29 | + return "<a href='/admin/".str_replace('\\', '/view/', get_class($item))."/{$item->pk()}?".http_build_query($query)."'><i class='glyphicon glyphicon-eye-open'></i></a>"; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | if (!empty($actionParams['query'])) { |
29 | 29 | $query = $query + $actionParams['query']; |
30 | 30 | } |
31 | - return "<a class='" . (isset($actionParams['class']) ? $actionParams['class'] : '') . "' href='{$actionParams['href']}?" . http_build_query($query) . "'>{$actionParams['text']}</a>"; |
|
31 | + return "<a class='".(isset($actionParams['class']) ? $actionParams['class'] : '')."' href='{$actionParams['href']}?".http_build_query($query)."'>{$actionParams['text']}</a>"; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | 'formName' => !empty($dataManager->managerOptions['editForm']) ? $dataManager->managerOptions['editForm'] : 'manager' |
25 | 25 | ]; |
26 | 26 | |
27 | - return '<a href ="#" onclick=\'inji.Ui.forms.popUp("' . addcslashes(get_class($item), '\\') . ':' . $item->pk() . '",' . json_encode($formParams) . '); |
|
27 | + return '<a href ="#" onclick=\'inji.Ui.forms.popUp("'.addcslashes(get_class($item), '\\').':'.$item->pk().'",'.json_encode($formParams).'); |
|
28 | 28 | return false;\'><i class="glyphicon glyphicon-edit"></i></a>'; |
29 | 29 | } |
30 | 30 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public static function rowButton($dataManager, $item, $params, $actionParams) |
21 | 21 | { |
22 | - return '<a href ="#" onclick=\'inji.Ui.dataManagers.get(this).delRow(' . $item->pk() . '); |
|
22 | + return '<a href ="#" onclick=\'inji.Ui.dataManagers.get(this).delRow('.$item->pk().'); |
|
23 | 23 | return false;\'><i class="glyphicon glyphicon-remove"></i></a>'; |
24 | 24 | } |
25 | 25 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $model->delete(); |
32 | 32 | } |
33 | 33 | $count = count($models); |
34 | - return 'Удалено <b>' . $count . '</b> ' . \Tools::getNumEnding($count, ['запись', 'записи', 'записей']); |
|
34 | + return 'Удалено <b>'.$count.'</b> '.\Tools::getNumEnding($count, ['запись', 'записи', 'записей']); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | } |
32 | 32 | $count += count($items); |
33 | 33 | foreach ($items as $objectChild) { |
34 | - $count+=static::showLi($objectChild, 1, $maxDeep, $hrefFunc); |
|
34 | + $count += static::showLi($objectChild, 1, $maxDeep, $hrefFunc); |
|
35 | 35 | } |
36 | 36 | ?> |
37 | 37 | </ul> |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $item = $item['text']; |
53 | 53 | } |
54 | 54 | if (!isset($attributes['id'])) { |
55 | - $attributes['id'] = str_replace('\\', '_', get_class($object)) . "-{$object->pk()}"; |
|
55 | + $attributes['id'] = str_replace('\\', '_', get_class($object))."-{$object->pk()}"; |
|
56 | 56 | } |
57 | 57 | if (!$maxDeep || $deep < $maxDeep) { |
58 | 58 | $items = $class::getList(['where' => ['parent_id', $object->pk()]]); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | echo \Html::el('li', $attributes, $item, true); |
64 | 64 | echo '<ul>'; |
65 | 65 | } |
66 | - $count+=static::showLi($objectChild, $deep + 1, $maxDeep, $hrefFunc); |
|
66 | + $count += static::showLi($objectChild, $deep + 1, $maxDeep, $hrefFunc); |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | if ($isset) { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $this->name = $modelName; |
58 | 58 | } |
59 | 59 | |
60 | - $this->managerId = str_replace('\\', '_', 'dataManager_' . $this->modelName . '_' . $this->managerName . '_' . \Tools::randomString()); |
|
60 | + $this->managerId = str_replace('\\', '_', 'dataManager_'.$this->modelName.'_'.$this->managerName.'_'.\Tools::randomString()); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -101,13 +101,13 @@ discard block |
||
101 | 101 | if (!empty($this->managerOptions['filters'])) { |
102 | 102 | $buttons[] = [ |
103 | 103 | 'text' => 'Фильтры', |
104 | - 'onclick' => ' var modal = $("#' . $this->managerId . '_filters"); |
|
104 | + 'onclick' => ' var modal = $("#'.$this->managerId.'_filters"); |
|
105 | 105 | modal.modal("show");', |
106 | 106 | ]; |
107 | 107 | } |
108 | 108 | $buttons[] = [ |
109 | 109 | 'text' => 'Добавить элемент', |
110 | - 'onclick' => 'inji.Ui.forms.popUp("' . str_replace('\\', '\\\\', $modelName) . '",' . json_encode($formParams) . ')', |
|
110 | + 'onclick' => 'inji.Ui.forms.popUp("'.str_replace('\\', '\\\\', $modelName).'",'.json_encode($formParams).')', |
|
111 | 111 | ]; |
112 | 112 | |
113 | 113 | return $buttons; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | 'className' => $action |
132 | 132 | ]; |
133 | 133 | } |
134 | - $return[$key]['className'] = strpos($return[$key]['className'], '\\') === false && class_exists('Ui\DataManager\Action\\' . $return[$key]['className']) ? 'Ui\DataManager\Action\\' . $return[$key]['className'] : $action; |
|
134 | + $return[$key]['className'] = strpos($return[$key]['className'], '\\') === false && class_exists('Ui\DataManager\Action\\'.$return[$key]['className']) ? 'Ui\DataManager\Action\\'.$return[$key]['className'] : $action; |
|
135 | 135 | } |
136 | 136 | return $return; |
137 | 137 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | <?php |
167 | 167 | foreach ($actions as $action => $actionParams) { |
168 | 168 | if (class_exists($actionParams['className']) && $actionParams['className']::$groupAction) { |
169 | - echo "<li><a href ='' onclick='inji.Ui.dataManagers.get(this).groupAction(\"" . str_replace('\\', '\\\\', $action) . "\");return false;'>{$actionParams['className']::$name}</a></li>"; |
|
169 | + echo "<li><a href ='' onclick='inji.Ui.dataManagers.get(this).groupAction(\"".str_replace('\\', '\\\\', $action)."\");return false;'>{$actionParams['className']::$name}</a></li>"; |
|
170 | 170 | } |
171 | 171 | } |
172 | 172 | ?> |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | return []; |
215 | 215 | } |
216 | 216 | if (!$this->checkAccess()) { |
217 | - $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
|
217 | + $this->drawError('you not have access to "'.$this->modelName.'" manager with name: "'.$this->managerName.'"'); |
|
218 | 218 | return []; |
219 | 219 | } |
220 | 220 | $modelName = $this->modelName; |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $queryParams['start'] = $this->page * $this->limit - $this->limit; |
231 | 231 | } |
232 | 232 | if (!empty($params['categoryPath']) && $modelName::$categoryModel) { |
233 | - $queryParams['where'][] = ['tree_path', $params['categoryPath'] . '%', 'LIKE']; |
|
233 | + $queryParams['where'][] = ['tree_path', $params['categoryPath'].'%', 'LIKE']; |
|
234 | 234 | } |
235 | 235 | if (!empty($params['appType'])) { |
236 | 236 | $queryParams['appType'] = $params['appType']; |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | if (!empty($params['filters'][$col]['max'])) { |
288 | 288 | if ($colInfo['colParams']['type'] == 'dateTime' && !strpos($params['filters'][$col]['max'], ' ')) { |
289 | 289 | |
290 | - $date = $params['filters'][$col]['max'] . ' 23:59:59'; |
|
290 | + $date = $params['filters'][$col]['max'].' 23:59:59'; |
|
291 | 291 | } else { |
292 | 292 | $date = $params['filters'][$col]['max']; |
293 | 293 | } |
@@ -314,16 +314,16 @@ discard block |
||
314 | 314 | } |
315 | 315 | switch ($params['filters'][$col]['compareType']) { |
316 | 316 | case 'contains': |
317 | - $queryParams['where'][] = [$col, '%' . $params['filters'][$col]['value'] . '%', 'LIKE']; |
|
317 | + $queryParams['where'][] = [$col, '%'.$params['filters'][$col]['value'].'%', 'LIKE']; |
|
318 | 318 | break; |
319 | 319 | case 'equals': |
320 | 320 | $queryParams['where'][] = [$col, $params['filters'][$col]['value']]; |
321 | 321 | break; |
322 | 322 | case 'starts_with': |
323 | - $queryParams['where'][] = [$col, $params['filters'][$col]['value'] . '%', 'LIKE']; |
|
323 | + $queryParams['where'][] = [$col, $params['filters'][$col]['value'].'%', 'LIKE']; |
|
324 | 324 | break; |
325 | 325 | case 'ends_with': |
326 | - $queryParams['where'][] = [$col, '%' . $params['filters'][$col]['value'], 'LIKE']; |
|
326 | + $queryParams['where'][] = [$col, '%'.$params['filters'][$col]['value'], 'LIKE']; |
|
327 | 327 | break; |
328 | 328 | } |
329 | 329 | break; |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | $item = $relation['relModel']::get([[$item->index(), $item->id], [$model->index(), $model->id]]); |
363 | 363 | } |
364 | 364 | $row = []; |
365 | - $row[] = '<input type ="checkbox" name = "pk[]" value =' . $item->pk() . '>'; |
|
365 | + $row[] = '<input type ="checkbox" name = "pk[]" value ='.$item->pk().'>'; |
|
366 | 366 | $row[] = $item->pk(); |
367 | 367 | foreach ($this->managerOptions['cols'] as $key => $colName) { |
368 | 368 | if (!empty($params['download'])) { |
@@ -408,16 +408,16 @@ discard block |
||
408 | 408 | $managerParams = ['relation' => $modelName::$cols[$colName]['relation']]; |
409 | 409 | $count = $item->{$modelName::$cols[$colName]['relation']}(array_merge($params, ['count' => 1])); |
410 | 410 | $count = $count ? $count : 'Нет'; |
411 | - return "<a class = 'btn btn-xs btn-primary' onclick = 'inji.Ui.dataManagers.popUp(\"" . str_replace('\\', '\\\\', $modelName) . ":" . $item->pk() . "\"," . json_encode(array_merge($params, $managerParams)) . ")'>{$count}</a>"; |
|
411 | + return "<a class = 'btn btn-xs btn-primary' onclick = 'inji.Ui.dataManagers.popUp(\"".str_replace('\\', '\\\\', $modelName).":".$item->pk()."\",".json_encode(array_merge($params, $managerParams)).")'>{$count}</a>"; |
|
412 | 412 | case 'many': |
413 | 413 | $managerParams = ['relation' => $modelName::$cols[$colName]['relation']]; |
414 | 414 | $count = $item->{$modelName::$cols[$colName]['relation']}(array_merge($params, ['count' => 1])); |
415 | 415 | $count = $count ? $count : 'Нет'; |
416 | - return "<a class = 'btn btn-xs btn-primary' onclick = 'inji.Ui.dataManagers.popUp(\"" . str_replace('\\', '\\\\', $modelName) . ":" . $item->pk() . "\"," . json_encode(array_merge($params, $managerParams)) . ")'>{$count}</a>"; |
|
416 | + return "<a class = 'btn btn-xs btn-primary' onclick = 'inji.Ui.dataManagers.popUp(\"".str_replace('\\', '\\\\', $modelName).":".$item->pk()."\",".json_encode(array_merge($params, $managerParams)).")'>{$count}</a>"; |
|
417 | 417 | default : |
418 | 418 | if ($item->{$modelName::$cols[$colName]['relation']}) { |
419 | 419 | if (\App::$cur->name == 'admin') { |
420 | - $href = "<a href ='/admin/" . str_replace('\\', '/view/', $relations[$modelName::$cols[$colName]['relation']]['model']) . "/" . $item->{$modelName::$cols[$colName]['relation']}->pk() . "'>"; |
|
420 | + $href = "<a href ='/admin/".str_replace('\\', '/view/', $relations[$modelName::$cols[$colName]['relation']]['model'])."/".$item->{$modelName::$cols[$colName]['relation']}->pk()."'>"; |
|
421 | 421 | if (!empty($modelName::$cols[$colName]['showCol'])) { |
422 | 422 | $href .= $item->{$modelName::$cols[$colName]['relation']}->{$modelName::$cols[$colName]['showCol']}; |
423 | 423 | } else { |
@@ -447,18 +447,18 @@ discard block |
||
447 | 447 | case'many': |
448 | 448 | $managerParams = ['relation' => $modelName::$cols[$colName]['relation']]; |
449 | 449 | $count = $item->{$modelName::$cols[$colName]['relation']}(array_merge($params, ['count' => 1])); |
450 | - return "<a class = 'btn btn-xs btn-primary' onclick = 'inji.Ui.dataManagers.popUp(\"" . str_replace('\\', '\\\\', $modelName) . ":" . $item->pk() . "\"," . json_encode(array_merge($params, $managerParams)) . ")'>{$count} " . \Tools::getNumEnding($count, ['Элемент', 'Элемента', 'Элементов']) . "</a>"; |
|
450 | + return "<a class = 'btn btn-xs btn-primary' onclick = 'inji.Ui.dataManagers.popUp(\"".str_replace('\\', '\\\\', $modelName).":".$item->pk()."\",".json_encode(array_merge($params, $managerParams)).")'>{$count} ".\Tools::getNumEnding($count, ['Элемент', 'Элемента', 'Элементов'])."</a>"; |
|
451 | 451 | default: |
452 | 452 | return $item->$colName; |
453 | 453 | } |
454 | 454 | } elseif (!empty($modelName::$cols[$colName]['type'])) { |
455 | - if (\App::$cur->name == 'admin' && $originalCol == 'name' || ( $dataManager && !empty($dataManager->managerOptions['colToView']) && $dataManager->managerOptions['colToView'] == $originalCol)) { |
|
455 | + if (\App::$cur->name == 'admin' && $originalCol == 'name' || ($dataManager && !empty($dataManager->managerOptions['colToView']) && $dataManager->managerOptions['colToView'] == $originalCol)) { |
|
456 | 456 | $formName = $dataManager && !empty($dataManager->managerOptions['editForm']) ? $dataManager->managerOptions['editForm'] : 'manager'; |
457 | - $redirectUrl = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/admin/' . str_replace('\\', '/', get_class($originalItem)); |
|
458 | - return "<a href ='/admin/" . str_replace('\\', '/view/', get_class($originalItem)) . "/{$originalItem->id}?formName={$formName}&redirectUrl={$redirectUrl}'>{$item->$colName}</a>"; |
|
457 | + $redirectUrl = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/admin/'.str_replace('\\', '/', get_class($originalItem)); |
|
458 | + return "<a href ='/admin/".str_replace('\\', '/view/', get_class($originalItem))."/{$originalItem->id}?formName={$formName}&redirectUrl={$redirectUrl}'>{$item->$colName}</a>"; |
|
459 | 459 | } elseif (\App::$cur->name == 'admin' && $colName == 'name') { |
460 | - $redirectUrl = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/admin/' . str_replace('\\', '/', get_class($originalItem)); |
|
461 | - return "<a href ='/admin/" . str_replace('\\', '/view/', get_class($item)) . "/{$item->id}?redirectUrl={$redirectUrl}'>{$item->$colName}</a>"; |
|
460 | + $redirectUrl = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/admin/'.str_replace('\\', '/', get_class($originalItem)); |
|
461 | + return "<a href ='/admin/".str_replace('\\', '/view/', get_class($item))."/{$item->id}?redirectUrl={$redirectUrl}'>{$item->$colName}</a>"; |
|
462 | 462 | } else { |
463 | 463 | return \Model::resloveTypeValue($item, $colName); |
464 | 464 | } |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | return []; |
494 | 494 | } |
495 | 495 | if (!$this->checkAccess()) { |
496 | - $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
|
496 | + $this->drawError('you not have access to "'.$this->modelName.'" manager with name: "'.$this->managerName.'"'); |
|
497 | 497 | return []; |
498 | 498 | } |
499 | 499 | if (!empty($params['limit'])) { |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | ]; |
508 | 508 | $modelName = $this->modelName; |
509 | 509 | if (!empty($params['categoryPath']) && $modelName::$categoryModel) { |
510 | - $queryParams['where'][] = ['tree_path', $params['categoryPath'] . '%', 'LIKE']; |
|
510 | + $queryParams['where'][] = ['tree_path', $params['categoryPath'].'%', 'LIKE']; |
|
511 | 511 | } |
512 | 512 | if (!empty($this->managerOptions['userGroupFilter'][\Users\User::$cur->group_id]['getRows'])) { |
513 | 513 | foreach ($this->managerOptions['userGroupFilter'][\Users\User::$cur->group_id]['getRows'] as $colName => $colOptions) { |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | if (!empty($params['filters'][$col]['max'])) { |
560 | 560 | if ($colInfo['colParams']['type'] == 'dateTime' && !strpos($params['filters'][$col]['max'], ' ')) { |
561 | 561 | |
562 | - $date = $params['filters'][$col]['max'] . ' 23:59:59'; |
|
562 | + $date = $params['filters'][$col]['max'].' 23:59:59'; |
|
563 | 563 | } else { |
564 | 564 | $date = $params['filters'][$col]['max']; |
565 | 565 | } |
@@ -586,16 +586,16 @@ discard block |
||
586 | 586 | } |
587 | 587 | switch ($params['filters'][$col]['compareType']) { |
588 | 588 | case 'contains': |
589 | - $queryParams['where'][] = [$col, '%' . $params['filters'][$col]['value'] . '%', 'LIKE']; |
|
589 | + $queryParams['where'][] = [$col, '%'.$params['filters'][$col]['value'].'%', 'LIKE']; |
|
590 | 590 | break; |
591 | 591 | case 'equals': |
592 | 592 | $queryParams['where'][] = [$col, $params['filters'][$col]['value']]; |
593 | 593 | break; |
594 | 594 | case 'starts_with': |
595 | - $queryParams['where'][] = [$col, $params['filters'][$col]['value'] . '%', 'LIKE']; |
|
595 | + $queryParams['where'][] = [$col, $params['filters'][$col]['value'].'%', 'LIKE']; |
|
596 | 596 | break; |
597 | 597 | case 'ends_with': |
598 | - $queryParams['where'][] = [$col, '%' . $params['filters'][$col]['value'], 'LIKE']; |
|
598 | + $queryParams['where'][] = [$col, '%'.$params['filters'][$col]['value'], 'LIKE']; |
|
599 | 599 | break; |
600 | 600 | } |
601 | 601 | break; |
@@ -657,13 +657,13 @@ discard block |
||
657 | 657 | return false; |
658 | 658 | } |
659 | 659 | if (!$this->checkAccess()) { |
660 | - $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
|
660 | + $this->drawError('you not have access to "'.$this->modelName.'" manager with name: "'.$this->managerName.'"'); |
|
661 | 661 | return []; |
662 | 662 | } |
663 | 663 | $tree = new Tree(); |
664 | 664 | $tree->ul($this->managerOptions['categorys']['model'], 0, function($category) { |
665 | - return "<a href='#' onclick='inji.Ui.dataManagers.get(this).switchCategory(this);return false;' data-path ='" . $category->tree_path . ($category->pk() ? $category->pk() . "/" : '') . "'> " . $category->name . "</a> |
|
666 | - <a href = '#' onclick = 'inji.Ui.forms.popUp(\"" . str_replace('\\', '\\\\', get_class($category)) . ':' . $category->pk() . "\")' class ='glyphicon glyphicon-edit'></a> |
|
665 | + return "<a href='#' onclick='inji.Ui.dataManagers.get(this).switchCategory(this);return false;' data-path ='".$category->tree_path.($category->pk() ? $category->pk()."/" : '')."'> ".$category->name."</a> |
|
666 | + <a href = '#' onclick = 'inji.Ui.forms.popUp(\"" . str_replace('\\', '\\\\', get_class($category)).':'.$category->pk()."\")' class ='glyphicon glyphicon-edit'></a> |
|
667 | 667 | <a onclick='inji.Ui.dataManagers.get(this).delCategory({$category->pk()});return false;' class ='glyphicon glyphicon-remove'></a>"; |
668 | 668 | }); |
669 | 669 | ?> |