* ajusted style of tree.

This commit is contained in:
Catouse
2014-04-18 13:58:06 +08:00
parent d25b4da81d
commit be03af7fae
6 changed files with 28 additions and 8 deletions
+2 -3
View File
@@ -30,12 +30,11 @@ class docModel extends model
$selectHtml .= "<div class='dropdown'>" . html::a('javascript:;', $libs[$libID] . " <span class='caret'></span>", '', "data-toggle='dropdown'") . "<ul class='dropdown-menu'>";
foreach ($libs as $key => $value)
{
$selectHtml .= "<li>" . html::a('javascript:;', $value) . '</li>';
$class = $libID == $key ? 'active' : '';
$selectHtml .= "<li class='$class'>" . html::a("javascript:switchDocLib(\"$key\", \"$currentModule\", \"$currentMethod\", \"$extra\");", $value) . '</li>';
}
$selectHtml .= '</ul></div>';
html::select('libID', $libs, $libID, "onchange=\"switchDocLib(this.value, '$currentModule', '$currentMethod', '$extra');\" class='form-control input-sm'");
common::setMenuVars($this->lang->doc->menu, 'list', $selectHtml);
foreach($this->lang->doc->menu as $key => $menu)
{