diff --git a/module/doc/control.php b/module/doc/control.php index ec3bbde407..7e6fa2e566 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -40,7 +40,7 @@ class doc extends control $this->doc->setMenu(); $this->app->loadClass('pager', $static = true); - $pager = new pager(6, 6, 1); + $pager = new pager(0, 5, 1); $this->view->title = $this->lang->doc->common . $this->lang->colon . $this->lang->doc->index; $this->view->position[] = $this->lang->doc->index; diff --git a/module/doc/css/browse.css b/module/doc/css/browse.css new file mode 100644 index 0000000000..63bf714968 --- /dev/null +++ b/module/doc/css/browse.css @@ -0,0 +1,2 @@ +.panel{padding-bottom: 40px;} +.panel .table-footer{position: absolute; bottom: 0; width: 100%;} diff --git a/module/doc/model.php b/module/doc/model.php index c3e90723f7..054394f976 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -466,7 +466,7 @@ class docModel extends model $stmt = $this->dao->select('*')->from(TABLE_DOC) ->where('deleted')->eq(0) ->beginIF($libID)->andWhere('lib')->in($libID)->fi() - ->beginIF($module)->andWhere('module')->in($module)->fi() + ->andWhere('module')->in($module) ->query(); @@ -1145,6 +1145,7 @@ class docModel extends model $docCounts= $this->dao->select("lib, count(id) as docCount")->from(TABLE_DOC) ->where('lib')->in($idList) ->andWhere('deleted')->eq(0) + ->andWhere('module')->eq(0) ->groupBy('lib') ->fetchPairs(); diff --git a/module/doc/view/browse.html.php b/module/doc/view/browse.html.php index d75096496b..2a025da51a 100644 --- a/module/doc/view/browse.html.php +++ b/module/doc/view/browse.html.php @@ -81,6 +81,7 @@ var browseType = ''; + diff --git a/module/doc/view/browsebygrid.html.php b/module/doc/view/browsebygrid.html.php index a3b2036067..0f31b542a3 100644 --- a/module/doc/view/browsebygrid.html.php +++ b/module/doc/view/browsebygrid.html.php @@ -11,36 +11,36 @@
- - collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> -
- id&orderBy=$orderBy&from=$from");?>"> - -
collector, $this->app->user->account) !== false ? " " : '') . $module->name;?>
-
docCount . $lang->doc->item;?>
-
-
- id}&objectType=module", "", 'hiddenwin', "title='{$lang->doc->collect}' class='btn btn-link'")?> -
+ + collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> +
+ id&orderBy=$orderBy&from=$from");?>"> + +
collector, $this->app->user->account) !== false ? " " : '') . $module->name;?>
+
docCount . $lang->doc->item;?>
+
+
+ id}&objectType=module", "", 'hiddenwin', "title='{$lang->doc->collect}' class='btn btn-link'");?>
- - - collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> -
- id");?>"> - -
collector, $this->app->user->account) !== false ? " " : '') . $doc->title;?>
-
addedBy);?>
-
-
- id}&objectType=doc", "", 'hiddenwin', "title='{$lang->doc->collect}' class='btn btn-link'")?> - id}", "", '', "title='{$lang->edit}' class='btn btn-link' data-toggle='modal'")?> - id}", "", '', "title='{$lang->delete}' class='btn btn-link'")?> -
-
-
+ + + collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> +
+ id");?>"> + +
collector, $this->app->user->account) !== false ? " " : '') . $doc->title;?>
+
addedBy);?>
+
+
+ id}&objectType=doc", "", 'hiddenwin', "title='{$lang->doc->collect}' class='btn btn-link'")?> + id}", "", '', "title='{$lang->edit}' class='btn btn-link' data-toggle='modal'")?> + id}", "", '', "title='{$lang->delete}' class='btn btn-link'")?> +
+
+
+
diff --git a/module/doc/view/side.html.php b/module/doc/view/side.html.php index 33ec9c42ad..c58037d103 100644 --- a/module/doc/view/side.html.php +++ b/module/doc/view/side.html.php @@ -75,7 +75,7 @@ $projectSubLibs = $this->doc->getSubLibGroups('project', array_keys($projects));