diff --git a/module/dept/control.php b/module/dept/control.php index 5994ca7dc9..7ade562193 100644 --- a/module/dept/control.php +++ b/module/dept/control.php @@ -37,6 +37,10 @@ class dept extends control $parentDepts = $this->dept->getParents($deptID); $this->view->title = $this->lang->dept->manage . $this->lang->colon . $this->app->company->name; $this->view->position[] = $this->lang->dept->manage; + $this->view->deptID = $deptID; + $this->view->depts = $this->dept->getTreeMenu($rootDeptID = 0, array('deptmodel', 'createManageLink')); + $this->view->parentDepts = $parentDepts; + $this->view->sons = $this->dept->getSons($deptID); $this->view->tree = $this->dept->getFullTree(0); $this->display(); } diff --git a/module/dept/view/browse.html.php b/module/dept/view/browse.html.php index fe3815779e..4f3a059e73 100644 --- a/module/dept/view/browse.html.php +++ b/module/dept/view/browse.html.php @@ -14,14 +14,63 @@
icons['dept']);?> dept->common;?>
-
-
-
- icons['dept']);?> +
+
+
+
+ icons['dept']);?> +
+
+
+
    +
    +
    -
    -
    -
      +
      +
      +
      +
      + dept->manageChild;?> +
      +
      +
      ' class='form-condensed'> + + + + + + + + + + +
      + + createLink('dept', 'browse'), $this->app->company->name); + echo $lang->arrow; + foreach($parentDepts as $dept) + { + echo html::a($this->createLink('dept', 'browse', "deptID=$dept->id"), $dept->name); + echo $lang->arrow; + } + ?> + + + order > $maxOrder) $maxOrder = $sonDept->order; + echo html::input("depts[id$sonDept->id]", $sonDept->name, "class='form-control'"); + } + for($i = 0; $i < DEPT::NEW_CHILD_COUNT ; $i ++) echo html::input("depts[]", '', "class='form-control'"); + ?> +
      + + +
      +
      @@ -46,13 +95,14 @@
      -
      +