diff --git a/module/common/lang/menu.php b/module/common/lang/menu.php index 9aa7e71463..9821fa8322 100644 --- a/module/common/lang/menu.php +++ b/module/common/lang/menu.php @@ -316,24 +316,24 @@ $lang->devops->menuOrder[25] = 'rules'; /* Doc menu.*/ $lang->doc->menu = new stdclass(); -$lang->doc->menu->recent = array('link' => "{$lang->doc->recent}|doc|recent"); -$lang->doc->menu->my = array('link' => "{$lang->doc->my}|doc|my"); -$lang->doc->menu->favorite = array('link' => "{$lang->doc->favorite}|doc|favorite"); -$lang->doc->menu->product = array('link' => "{$lang->doc->product}|doc|product"); -$lang->doc->menu->project = array('link' => "{$lang->doc->project}|doc|project"); -$lang->doc->menu->custom = array('link' => "{$lang->doc->custom}|doc|project"); -$lang->doc->menu->wiki = array('link' => "{$lang->doc->wiki}|doc|project"); +$lang->doc->menu->dashboard = array('link' => "{$lang->dashboard}|doc|index"); +$lang->doc->menu->recent = array('link' => "{$lang->doc->recent}|doc|browse|libID=0&browseTyp=byediteddate", 'alias' => 'recent'); +$lang->doc->menu->my = array('link' => "{$lang->doc->my}|doc|browse|libID=0&browseTyp=openedbyme", 'alias' => 'my'); +$lang->doc->menu->collect = array('link' => "{$lang->doc->favorite}|doc|browse|libID=0&browseTyp=collectedbyme", 'alias' => 'collect'); +$lang->doc->menu->product = array('link' => "{$lang->doc->product}|doc|objectLibs|type=product"); +$lang->doc->menu->project = array('link' => "{$lang->doc->project}|doc|objectLibs|type=project"); +$lang->doc->menu->custom = array('link' => "{$lang->doc->custom}|doc|objectLibs|libID=0"); $lang->doc->dividerMenu = ',product,'; /* Doc menu order. */ -$lang->doc->menuOrder[5] = 'recent'; -$lang->doc->menuOrder[10] = 'my'; -$lang->doc->menuOrder[15] = 'favorite'; -$lang->doc->menuOrder[20] = 'product'; -$lang->doc->menuOrder[25] = 'project'; -$lang->doc->menuOrder[30] = 'custom'; -$lang->doc->menuOrder[35] = 'wiki'; +$lang->doc->menuOrder[5] = 'dashboard'; +$lang->doc->menuOrder[10] = 'recent'; +$lang->doc->menuOrder[15] = 'my'; +$lang->doc->menuOrder[20] = 'collect'; +$lang->doc->menuOrder[25] = 'product'; +$lang->doc->menuOrder[30] = 'project'; +$lang->doc->menuOrder[35] = 'custom'; /* Report menu.*/ $lang->report->menu = new stdclass(); diff --git a/module/doc/control.php b/module/doc/control.php index 3d4ce9ba2e..5e4499038f 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -70,9 +70,8 @@ class doc extends control * Browse docs. * * @param string|int $libID product|execution or the int id of custom library - * @param int $moduleID - * @param int $productID - * @param int $executionID + * @param string $browseType + * @param int $param * @param string $orderBy * @param string $from doc|project|product * @param int $recTotal @@ -160,6 +159,16 @@ class doc extends control { $libs = $this->doc->getAllLibsByType('collector'); $this->view->itemCounts = $this->doc->statLibCounts(array_keys($libs)); + + $this->app->rawMethod = 'collect'; + } + elseif($browseType == 'openedbyme') + { + $this->app->rawMethod = 'my'; + } + elseif($browseType == 'byediteddate') + { + $this->app->rawMethod = 'recent'; } $attachLibs = array(); @@ -842,14 +851,14 @@ class doc extends control } /** - * Show libs for product or execution. + * Show libs for product or project. * * @param string $type - * @param int $objectID + * @param int $objectID projectID|productID * @access public * @return void */ - public function objectLibs($type, $objectID) + public function objectLibs($type, $objectID = 0) { // setcookie('from', $from, $this->config->cookieLife, $this->config->webRoot, '', false, true); $this->session->set('docList', $this->app->getURI(true), 'doc'); diff --git a/module/doc/css/common.css b/module/doc/css/common.css index 71509178c9..e809dd9fb4 100644 --- a/module/doc/css/common.css +++ b/module/doc/css/common.css @@ -67,7 +67,6 @@ .side-col > .cell > header {position: absolute; top: 10px; right: 10px; left: 10px;} .side-col > .cell > header > .c-sm {padding-right: 20px; width: 60px;} .side-col .docsTree {position: absolute; top: 53px; left: 0; right: 0; bottom: 0; overflow: auto; padding: 0 10px 10px;} -.main-col .block-files > .panel-body {top: 45px; left: 0; right: 0; bottom: 0; overflow: auto;} td.c-name a {color: #0c60e1;} td.c-name a:visited {color: #082999;} diff --git a/module/doc/view/browse.html.php b/module/doc/view/browse.html.php index 74e97a0371..f2ef2957e8 100644 --- a/module/doc/view/browse.html.php +++ b/module/doc/view/browse.html.php @@ -20,50 +20,9 @@ app->user->feedback) && !$this->cookie->feedbackView && $this->from == 'doc') ? true : false;?>
- from == 'doc') include './side.html.php';?> - cookie->browseType == 'bygrid'):?> - -
-
-
- - - - - - -
- -

doc->noSearchedDoc;?>

@@ -157,7 +116,7 @@ collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?> - id&version=0&from={$lang->navGroup->doc}"), "  " . $doc->title, '', "title={$doc->title}");?> + createLink('doc', 'view', "docID=$doc->id&version=0&from={$lang->navGroup->doc}", '', true), "  " . $doc->title, '', "title={$doc->title} class='iframe' data-width='90%'");?> fileSize ? $doc->fileSize : '-';?> addedBy);?> addedDate, 'y-m-d');?> @@ -167,7 +126,7 @@ id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> - id&comment=false&from={$lang->navGroup->doc}", "", '', "title='{$lang->edit}' class='btn btn-link'")?> + id&comment=false&from={$lang->navGroup->doc}", "", '', "title='{$lang->edit}' class='btn btn-link iframe'", true, true)?> id&confirm=no&from={$lang->navGroup->doc}", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?> @@ -182,6 +141,5 @@
-
diff --git a/module/doc/view/index.html.php b/module/doc/view/index.html.php index 43ca8af252..8b1a313b1e 100644 --- a/module/doc/view/index.html.php +++ b/module/doc/view/index.html.php @@ -13,7 +13,6 @@ doc->appendNavCSS();?>
-