diff --git a/config/filter.php b/config/filter.php
index eaa7706976..e173dd69be 100644
--- a/config/filter.php
+++ b/config/filter.php
@@ -97,9 +97,11 @@ $filter->bug->default->cookie['preProductID'] = 'int';
$filter->bug->create->cookie['preBranch'] = 'int';
$filter->bug->export->cookie['checkedItem'] = 'reg::checked';
-$filter->doc->browse->cookie['browseType'] = 'reg::browseType';
-$filter->doc->default->cookie['from'] = 'code';
-$filter->doc->default->cookie['product'] = 'int';
+$filter->doc->browse->cookie['browseType'] = 'reg::browseType';
+$filter->doc->alllibs->cookie['browseType'] = 'reg::browseType';
+$filter->doc->objectlibs->cookie['browseType'] = 'reg::browseType';
+$filter->doc->default->cookie['from'] = 'code';
+$filter->doc->default->cookie['product'] = 'int';
$filter->doc->showfiles->cookie['docFilesViewType'] = 'code';
$filter->file->download->cookie[$config->sessionVar] = 'code';
diff --git a/module/doc/control.php b/module/doc/control.php
index f2e36ff588..1121c71599 100644
--- a/module/doc/control.php
+++ b/module/doc/control.php
@@ -619,7 +619,11 @@ class doc extends control
$libs = $this->doc->getAllLibsByType($type, $pager, $product);
$subLibs = array();
- if($type == 'product' or $type == 'project') $subLibs = $this->doc->getSubLibGroups($type, array_keys($libs));
+ if($type == 'product' or $type == 'project')
+ {
+ $subLibs = $this->doc->getSubLibGroups($type, array_keys($libs));
+ if($this->cookie->browseType == 'bylist') $this->view->users = $this->loadModel('user')->getPairs('noletter');
+ }
if($type == 'custom') $this->view->itemCounts = $this->doc->statLibCounts(array_keys($libs));
$this->view->type = $type;
@@ -739,7 +743,7 @@ class doc extends control
public function objectLibs($type, $objectID, $from = 'doc')
{
$this->from = $from;
- setcookie('from', $from, $this->config->cookieLife, $this->config->webRoot);
+ setcookie('from', $from, $this->config->cookieLife, $this->config->webRoot);
$table = $type == 'product' ? TABLE_PRODUCT : TABLE_PROJECT;
$object = $this->dao->select('id,name')->from($table)->where('id')->eq($objectID)->fetch();
diff --git a/module/doc/css/common.css b/module/doc/css/common.css
index 23926c7d45..b0dcd89fc1 100644
--- a/module/doc/css/common.css
+++ b/module/doc/css/common.css
@@ -26,9 +26,6 @@
.col-md-size .table .c-datetime {display: none;}
.table-files .btn {padding:0 6px;}
-.table-files .c-actions .btn > .icon {opacity: 0;}
-.table-files .c-actions .btn > .icon.text-yellow,
-.table-files tr:hover .c-actions .btn > .icon {opacity: 1;}
#docsTree li > a > .icon {opacity: .65;}
diff --git a/module/doc/js/browse.js b/module/doc/js/browse.js
index be2e21c800..240dfcabf5 100644
--- a/module/doc/js/browse.js
+++ b/module/doc/js/browse.js
@@ -17,12 +17,6 @@ function browseBySearch()
$('#queryBox').addClass('show');
}
-function setBrowseType(type)
-{
- $.cookie('browseType', type, {expires:config.cookieLife, path:config.webRoot});
- location.href = location.href;
-}
-
$(function(){
$('#' + browseType + 'Tab').addClass('active');
if(browseType == "bysearch")
diff --git a/module/doc/js/common.js b/module/doc/js/common.js
index b737d4b5e9..e2e3e42572 100644
--- a/module/doc/js/common.js
+++ b/module/doc/js/common.js
@@ -16,6 +16,12 @@ function toggleAcl(acl)
}
}
+function setBrowseType(type)
+{
+ $.cookie('browseType', type, {expires:config.cookieLife, path:config.webRoot});
+ location.href = location.href;
+}
+
$(document).ready(function()
{
$('.libs-group.sort').sortable(
diff --git a/module/doc/lang/en.php b/module/doc/lang/en.php
index 5687eaa540..79e8ab49f6 100644
--- a/module/doc/lang/en.php
+++ b/module/doc/lang/en.php
@@ -44,6 +44,7 @@ $lang->doc->acl = 'Right';
$lang->doc->groups = 'Groups';
$lang->doc->users = 'Users';
$lang->doc->item = ' Item';
+$lang->doc->num = 'Docs';
$lang->doc->searchResult = 'Search Result';
$lang->doc->moduleDoc = 'By Module';
diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php
index 278af6fb23..4f2fd54078 100644
--- a/module/doc/lang/zh-cn.php
+++ b/module/doc/lang/zh-cn.php
@@ -44,6 +44,7 @@ $lang->doc->acl = '权限';
$lang->doc->groups = '分组';
$lang->doc->users = '用户';
$lang->doc->item = '项';
+$lang->doc->num = '文档数量';
$lang->doc->searchResult = '搜索结果';
$lang->doc->moduleDoc = '按模块浏览';
diff --git a/module/doc/view/alllibs.html.php b/module/doc/view/alllibs.html.php
index a8c1074660..def2ed82a0 100644
--- a/module/doc/view/alllibs.html.php
+++ b/module/doc/view/alllibs.html.php
@@ -11,11 +11,14 @@
*/
?>
-app->user->feedback) && !$this->cookie->feedbackView && $this->from == 'doc') ? true : false;?>
+app->user->feedback) && !$this->cookie->feedbackView) ? true : false;?>
+ cookie->browseType == 'bylist'):?>
+
+
@@ -25,6 +28,12 @@
projectCommon;?>
+
@@ -36,7 +45,7 @@
- name;?>
+ collector, $this->app->user->account) !== false ? " " : '') . $lib->name;?>
id] . $lang->doc->item;?>
@@ -45,7 +54,9 @@
- id&objectType=lib", "
", 'hiddenwin', "title='{$lang->doc->collect}' class='btn btn-link'")?>
+ 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&objectType=doclib");?>" title="" class='btn btn-link ajaxCollect'>
id", "
", '', "title='{$lang->edit}' class='btn btn-link iframe'")?>
id", "
", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?>
id&type=doc", "
", '', "title='{$lang->tree->manage}' class='btn btn-link'")?>
@@ -58,5 +69,6 @@
+
diff --git a/module/doc/view/alllibsbylist.html.php b/module/doc/view/alllibsbylist.html.php
new file mode 100644
index 0000000000..fcd5c50f25
--- /dev/null
+++ b/module/doc/view/alllibsbylist.html.php
@@ -0,0 +1,68 @@
+
+
+
+
+
+ doc->custom;?>
+ productCommon;?>
+ projectCommon;?>
+
+
+
+
+
+
+
+
+
+ product->name;?>
+ project->name;?>
+ doc->libName;?>
+ |
+ doc->num;?> |
+
+ doc->addedBy;?> |
+ doc->addedDate;?> |
+
+ actions;?> |
+
+
+
+
+
+ createLink('doc', 'objectLibs', "type=$type&objectID=$lib->id") : $this->createLink('doc', 'browse', "libID=$lib->id");?>
+
+ | name);?> |
+
+
+ id] . $lang->doc->item;?>
+
+ id]) . $lang->doc->item;?>
+
+ |
+
+ createdBy) echo zget($users, $lib->createdBy);?> |
+ createdDate != '00-00-00 00:00:00') echo formatTime($lib->createdDate, 'm-d h:i');?> |
+
+
+ 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&objectType=doclib");?>" title="" class='btn btn-link ajaxCollect'>
+ id", "", '', "title='{$lang->edit}' class='btn btn-link iframe'")?>
+ id", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?>
+ id&type=doc", "", '', "title='{$lang->tree->manage}' class='btn btn-link'")?>
+ |
+
+
+
+
+
+
+
+
+
diff --git a/module/doc/view/objectlibs.html.php b/module/doc/view/objectlibs.html.php
index 8e3c4ceea9..36155a33b8 100644
--- a/module/doc/view/objectlibs.html.php
+++ b/module/doc/view/objectlibs.html.php
@@ -15,6 +15,9 @@
from == 'doc'):?>
+ cookie->browseType == 'bylist'):?>
+
+
@@ -22,6 +25,10 @@
name;?>
+
diff --git a/module/doc/view/objectlibsbylist.html.php b/module/doc/view/objectlibsbylist.html.php
new file mode 100644
index 0000000000..1e7768410d
--- /dev/null
+++ b/module/doc/view/objectlibsbylist.html.php
@@ -0,0 +1,74 @@
+
+
+
+
+ name;?>
+
+
+
+
+
+
+
+ | doc->libName;?> |
+ doc->num;?> |
+ actions;?> |
+
+
+
+ $lib):?>
+
+ doc->custom->objectLibs, 'files') === false && $libID == 'files') continue;?>
+ doc->custom->objectLibs, 'customFiles') === false && isset($lib->main) && !$lib->main) continue;?>
+
+
+ id");?>
+ id");?>
+
+ | name);?> |
+ allCount . $lang->doc->item;?> |
+
+
+ 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;?>
+ " title="" class='btn btn-link ajaxCollect'>
+ ", '', "title='{$lang->edit}' class='btn btn-link iframe'")?>
+ main)) common::printLink('doc', 'deleteLib', "libID=$libID", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?>
+ ", '', "title='{$lang->doc->manageType}' class='btn btn-link'")?>
+
+ |
+
+
+
+
+
+
+