|
@@ 685-695 (lines=11) @@
|
| 682 |
|
$isset = false; |
| 683 |
|
foreach ($categorys as $categoryChild) { |
| 684 |
|
if ($categoryChild->parent_id == $category->pk()) { |
| 685 |
|
if (!$isset) { |
| 686 |
|
$isset = true; |
| 687 |
|
echo "<li data-id='{$category->pk()}' data-model = '" . get_class($category) . "'> |
| 688 |
|
<label class='nav-toggle nav-header'> |
| 689 |
|
<span class='nav-toggle-icon glyphicon glyphicon-chevron-right'></span> |
| 690 |
|
<a href='#' onclick='inji.Ui.dataManagers.get(this).switchCategory(this);return false;' data-path ='" . $category->tree_path . ($category->pk() ? $category->pk() . "/" : '') . "'> " . $category->name . "</a> |
| 691 |
|
<a href = '#' onclick = 'inji.Ui.forms.popUp(\"" . str_replace('\\', '\\\\', get_class($category)) . ':' . $category->pk() . "\")' class ='glyphicon glyphicon-edit'></a> |
| 692 |
|
<a onclick='inji.Ui.dataManagers.get(this).delCategory({$category->pk()});return false;' class ='glyphicon glyphicon-remove'></a> |
| 693 |
|
</label> |
| 694 |
|
<ul class='nav nav-list nav-left-ml'>"; |
| 695 |
|
} |
| 696 |
|
$this->showCategory($categorys, $categoryChild); |
| 697 |
|
} |
| 698 |
|
} |
|
@@ 699-713 (lines=15) @@
|
| 696 |
|
$this->showCategory($categorys, $categoryChild); |
| 697 |
|
} |
| 698 |
|
} |
| 699 |
|
if ($isset) { |
| 700 |
|
echo '</ul> |
| 701 |
|
</li>'; |
| 702 |
|
} else { |
| 703 |
|
echo "<li data-id='{$category->pk()}' data-model = '" . get_class($category) . "'> |
| 704 |
|
<label class='nav-header'> |
| 705 |
|
<span class=' nav-toggle-icon glyphicon glyphicon-minus'></span> |
| 706 |
|
<div class ='pull-right actions'> |
| 707 |
|
<a href = '#' onclick = 'inji.Ui.forms.popUp(\"" . str_replace('\\', '\\\\', get_class($category)) . ':' . $category->pk() . "\")' class ='glyphicon glyphicon-edit'></a> |
| 708 |
|
<a onclick='inji.Ui.dataManagers.get(this).delCategory({$category->pk()});return false;' class ='glyphicon glyphicon-remove'></a> |
| 709 |
|
</div> |
| 710 |
|
<a href='#' onclick='inji.Ui.dataManagers.get(this).switchCategory(this);return false;' data-path ='" . $category->tree_path . ($category->pk() ? $category->pk() . "/" : '') . "'> " . $category->name . "</a> |
| 711 |
|
</label> |
| 712 |
|
</li>"; |
| 713 |
|
} |
| 714 |
|
} |
| 715 |
|
|
| 716 |
|
/** |