|
createLink('tree', 'browse', "root={$root->id}&viewType=$viewType"), $root->name);
echo $lang->arrow;
foreach($parentModules as $module)
{
echo html::a($this->createLink('tree', 'browse', "root={$root->id}&viewType=$viewType&moduleID=$module->id"), $module->name);
echo $lang->arrow;
}
?>
|
tree->syncFromProject, "id='copyModule' onclick='syncModule($currentProject, \"task\")'");
}
echo ' ';
}
elseif($viewType != 'story' and strpos($viewType, 'doc') === false and $viewType != 'webapp')
{
echo html::select('productModule', $productModules, '', 'class=select-3');
echo html::commonButton($lang->tree->syncFromProduct, 'onclick="syncModule('.$rootID.')"');
echo ' ';
}
else if($viewType == 'story')
{
if($allProduct)
{
echo html::select('allProduct', $allProduct, '', 'onchange=syncProductOrProject(this,"product")');
echo html::select('productModule', $productModules, '');
echo html::commonButton($lang->tree->syncFromProduct, "id='copyModule' onclick='syncModule($currentProduct, \"story\")'");
}
echo ' ';
}
$maxOrder = 0;
echo '';
foreach($sons as $sonModule)
{
if($sonModule->order > $maxOrder) $maxOrder = $sonModule->order;
echo '' . html::input("modules[id$sonModule->id]", $sonModule->name, 'class=text-3 style="margin-bottom:5px"') . ' ';
}
for($i = 0; $i < TREE::NEW_CHILD_COUNT ; $i ++) echo '' . html::input("modules[]", '', 'class=text-3 style="margin-bottom:5px"') . ' ';
?>
|