* change the tree module.

This commit is contained in:
wangchunsheng
2010-07-22 08:09:42 +00:00
parent 6d4ffce38f
commit 7cecf1682f
7 changed files with 40 additions and 41 deletions
+2 -3
View File
@@ -46,7 +46,7 @@ class tree extends control
{
$product = $this->product->getById($productID);
if($viewType == 'product')
if($viewType == 'story')
{
/* 设置菜单。*/
$this->product->setMenu($this->product->getPairs(), $productID, 'product');
@@ -106,7 +106,7 @@ class tree extends control
die(js::reload('parent'));
}
$this->view->module = $this->tree->getById($moduleID);
$this->view->optionMenu = $this->tree->getOptionMenu($this->view->module->product, $this->view->module->view);
$this->view->optionMenu = $this->tree->getOptionMenu($this->view->module->root, $this->view->module->type);
/* 去掉自己和child。*/
$childs = $this->tree->getAllChildId($moduleID);
@@ -133,7 +133,6 @@ class tree extends control
$this->tree->manageChild($productID, $viewType, $_POST['parentModuleID'], $_POST['modules']);
die(js::reload('parent'));
}
}
/* 删除某一个模块。*/