diff --git a/module/block/control.php b/module/block/control.php
index 028168b088..68a6a2aba0 100755
--- a/module/block/control.php
+++ b/module/block/control.php
@@ -42,6 +42,7 @@ class block extends control
if($module == 'my')
{
$modules = $this->lang->block->moduleList;
+ unset($modules['doc']);
list($programModule, $programMethod) = explode('-', $this->config->programLink);
list($productModule, $productMethod) = explode('-', $this->config->productLink);
@@ -2033,6 +2034,94 @@ class block extends control
$this->view->projects = $this->loadModel('project')->getOverviewList('byStatus', $status, $orderBy, $count);
}
+ /**
+ * Print document statistic block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printDocStatisticBlock()
+ {
+ $this->display();
+ }
+
+ /**
+ * Print document dynamic block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printDocDynamicBlock()
+ {
+ $this->display();
+ }
+
+ /**
+ * Print my collection of documents block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printMyCollectionBlock()
+ {
+ $this->display();
+ }
+
+ /**
+ * Print recent update block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printRecentUpdateBlock()
+ {
+ $this->display();
+ }
+
+ /**
+ * Print view list block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printViewListBlock()
+ {
+ $this->display();
+ }
+
+ /**
+ * Print collect list block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printCollectListBlock()
+ {
+ $this->display();
+ }
+
+ /**
+ * Print product's document block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printProductDocBlock()
+ {
+ $this->display();
+ }
+
+ /**
+ * Print project's document block.
+ *
+ * @access public
+ * @return void
+ */
+ public function printProjectDocBlock()
+ {
+ $this->display();
+ }
+
/**
* Print guide block
*
diff --git a/module/block/lang/de.php b/module/block/lang/de.php
index 978f144d63..f58cd56d4f 100644
--- a/module/block/lang/de.php
+++ b/module/block/lang/de.php
@@ -332,6 +332,39 @@ $lang->block->default['full']['my']['10']['grid'] = 8;
$lang->block->default['full']['my']['10']['params']['orderBy'] = 'id_desc';
$lang->block->default['full']['my']['10']['params']['count'] = '15';
+/* Doc module block. */
+$lang->block->default['doc']['1']['title'] = 'Statistic';
+$lang->block->default['doc']['1']['block'] = 'statistic';
+$lang->block->default['doc']['1']['grid'] = 8;
+
+$lang->block->default['doc']['2']['title'] = 'Dynamic';
+$lang->block->default['doc']['2']['block'] = 'docdynamic';
+$lang->block->default['doc']['2']['grid'] = 4;
+
+$lang->block->default['doc']['3']['title'] = 'My Collection';
+$lang->block->default['doc']['3']['block'] = 'mycollection';
+$lang->block->default['doc']['3']['grid'] = 8;
+
+$lang->block->default['doc']['4']['title'] = 'Recently Update';
+$lang->block->default['doc']['4']['block'] = 'recentupdate';
+$lang->block->default['doc']['4']['grid'] = 8;
+
+$lang->block->default['doc']['5']['title'] = 'Browse Leaderboard';
+$lang->block->default['doc']['5']['block'] = 'viewlist';
+$lang->block->default['doc']['5']['grid'] = 4;
+
+$lang->block->default['doc']['6']['title'] = $lang->productCommon . 'Document';
+$lang->block->default['doc']['6']['block'] = 'productdoc';
+$lang->block->default['doc']['6']['grid'] = 8;
+
+$lang->block->default['doc']['7']['title'] = 'Favorite Leaderboard';
+$lang->block->default['doc']['7']['block'] = 'collectlist';
+$lang->block->default['doc']['7']['grid'] = 4;
+
+$lang->block->default['doc']['8']['title'] = $lang->projectCommon . 'Document';
+$lang->block->default['doc']['8']['block'] = 'projectdoc';
+$lang->block->default['doc']['8']['grid'] = 8;
+
$lang->block->count = 'Count';
$lang->block->type = 'Type';
$lang->block->orderBy = 'Order by';
@@ -360,6 +393,7 @@ $lang->block->moduleList['project'] = $lang->projectCommon;
$lang->block->moduleList['execution'] = $lang->execution->common;
$lang->block->moduleList['qa'] = 'QA';
$lang->block->moduleList['todo'] = 'Todos';
+$lang->block->moduleList['doc'] = 'Doc';
$lang->block->modules['project'] = new stdclass();
$lang->block->modules['project']->availableBlocks = new stdclass();
@@ -414,6 +448,17 @@ $lang->block->modules['todo'] = new stdclass();
$lang->block->modules['todo']->availableBlocks = new stdclass();
$lang->block->modules['todo']->availableBlocks->list = 'Todos';
+$lang->block->modules['doc'] = new stdclass();
+$lang->block->modules['doc']->availableBlocks = new stdclass();
+$lang->block->modules['doc']->availableBlocks->statistic = 'Statistic';
+$lang->block->modules['doc']->availableBlocks->docdynamic = 'Dynamic';
+$lang->block->modules['doc']->availableBlocks->mycollection = 'My Collection';
+$lang->block->modules['doc']->availableBlocks->recentupdate = 'Recently Update';
+$lang->block->modules['doc']->availableBlocks->viewlist = 'Browse Leaderboard';
+$lang->block->modules['doc']->availableBlocks->productdoc = $lang->productCommon . 'Document';
+$lang->block->modules['doc']->availableBlocks->collectlist = 'Favorite Leaderboard';
+$lang->block->modules['doc']->availableBlocks->projectdoc = $lang->projectCommon . 'Document';
+
$lang->block->orderByList = new stdclass();
$lang->block->orderByList->product = array();
diff --git a/module/block/lang/en.php b/module/block/lang/en.php
index 2a19a3bcec..74a9bc593a 100644
--- a/module/block/lang/en.php
+++ b/module/block/lang/en.php
@@ -332,6 +332,39 @@ $lang->block->default['full']['my']['10']['grid'] = 8;
$lang->block->default['full']['my']['10']['params']['orderBy'] = 'id_desc';
$lang->block->default['full']['my']['10']['params']['count'] = '15';
+/* Doc module block. */
+$lang->block->default['doc']['1']['title'] = 'Statistic';
+$lang->block->default['doc']['1']['block'] = 'statistic';
+$lang->block->default['doc']['1']['grid'] = 8;
+
+$lang->block->default['doc']['2']['title'] = 'Dynamic';
+$lang->block->default['doc']['2']['block'] = 'docdynamic';
+$lang->block->default['doc']['2']['grid'] = 4;
+
+$lang->block->default['doc']['3']['title'] = 'My Collection';
+$lang->block->default['doc']['3']['block'] = 'mycollection';
+$lang->block->default['doc']['3']['grid'] = 8;
+
+$lang->block->default['doc']['4']['title'] = 'Recently update';
+$lang->block->default['doc']['4']['block'] = 'recentupdate';
+$lang->block->default['doc']['4']['grid'] = 8;
+
+$lang->block->default['doc']['5']['title'] = 'Browse Leaderboard';
+$lang->block->default['doc']['5']['block'] = 'viewlist';
+$lang->block->default['doc']['5']['grid'] = 4;
+
+$lang->block->default['doc']['6']['title'] = $lang->productCommon . 'Document';
+$lang->block->default['doc']['6']['block'] = 'productdoc';
+$lang->block->default['doc']['6']['grid'] = 8;
+
+$lang->block->default['doc']['7']['title'] = 'Favorite Leaderboard';
+$lang->block->default['doc']['7']['block'] = 'collectlist';
+$lang->block->default['doc']['7']['grid'] = 4;
+
+$lang->block->default['doc']['8']['title'] = $lang->projectCommon . 'Document';
+$lang->block->default['doc']['8']['block'] = 'projectdoc';
+$lang->block->default['doc']['8']['grid'] = 8;
+
$lang->block->count = 'Count';
$lang->block->type = 'Type';
$lang->block->orderBy = 'Order by';
@@ -360,6 +393,7 @@ $lang->block->moduleList['project'] = $lang->projectCommon;
$lang->block->moduleList['execution'] = $lang->execution->common;
$lang->block->moduleList['qa'] = 'Test';
$lang->block->moduleList['todo'] = 'Todo';
+$lang->block->moduleList['doc'] = 'Doc';
$lang->block->modules['project'] = new stdclass();
$lang->block->modules['project']->availableBlocks = new stdclass();
@@ -414,6 +448,17 @@ $lang->block->modules['todo'] = new stdclass();
$lang->block->modules['todo']->availableBlocks = new stdclass();
$lang->block->modules['todo']->availableBlocks->list = 'Todo';
+$lang->block->modules['doc'] = new stdclass();
+$lang->block->modules['doc']->availableBlocks = new stdclass();
+$lang->block->modules['doc']->availableBlocks->statistic = 'Statistic';
+$lang->block->modules['doc']->availableBlocks->docdynamic = 'Dynamic';
+$lang->block->modules['doc']->availableBlocks->mycollection = 'My Collection';
+$lang->block->modules['doc']->availableBlocks->recentupdate = 'Recently Update';
+$lang->block->modules['doc']->availableBlocks->viewlist = 'Browse Leaderboard';
+$lang->block->modules['doc']->availableBlocks->productdoc = $lang->productCommon . 'Document';
+$lang->block->modules['doc']->availableBlocks->collectlist = 'Favorite Leaderboard';
+$lang->block->modules['doc']->availableBlocks->projectdoc = $lang->projectCommon . 'Document';
+
$lang->block->orderByList = new stdclass();
$lang->block->orderByList->product = array();
diff --git a/module/block/lang/fr.php b/module/block/lang/fr.php
index 0485e43e45..96d858c2aa 100644
--- a/module/block/lang/fr.php
+++ b/module/block/lang/fr.php
@@ -332,6 +332,39 @@ $lang->block->default['full']['my']['10']['grid'] = 8;
$lang->block->default['full']['my']['10']['params']['orderBy'] = 'id_desc';
$lang->block->default['full']['my']['10']['params']['count'] = '15';
+/* Doc module block. */
+$lang->block->default['doc']['1']['title'] = 'Statistic';
+$lang->block->default['doc']['1']['block'] = 'statistic';
+$lang->block->default['doc']['1']['grid'] = 8;
+
+$lang->block->default['doc']['2']['title'] = 'Dynamic';
+$lang->block->default['doc']['2']['block'] = 'docdynamic';
+$lang->block->default['doc']['2']['grid'] = 4;
+
+$lang->block->default['doc']['3']['title'] = 'My Collection';
+$lang->block->default['doc']['3']['block'] = 'mycollection';
+$lang->block->default['doc']['3']['grid'] = 8;
+
+$lang->block->default['doc']['4']['title'] = 'Recently Update';
+$lang->block->default['doc']['4']['block'] = 'recentupdate';
+$lang->block->default['doc']['4']['grid'] = 8;
+
+$lang->block->default['doc']['5']['title'] = 'Browse Leaderboard';
+$lang->block->default['doc']['5']['block'] = 'viewlist';
+$lang->block->default['doc']['5']['grid'] = 4;
+
+$lang->block->default['doc']['6']['title'] = $lang->productCommon . 'Document';
+$lang->block->default['doc']['6']['block'] = 'productdoc';
+$lang->block->default['doc']['6']['grid'] = 8;
+
+$lang->block->default['doc']['7']['title'] = 'Favorite Leaderboard';
+$lang->block->default['doc']['7']['block'] = 'collectlist';
+$lang->block->default['doc']['7']['grid'] = 4;
+
+$lang->block->default['doc']['8']['title'] = $lang->projectCommon . 'Document';
+$lang->block->default['doc']['8']['block'] = 'projectdoc';
+$lang->block->default['doc']['8']['grid'] = 8;
+
$lang->block->count = 'Numéro';
$lang->block->type = 'Type';
$lang->block->orderBy = 'Trié par';
@@ -360,6 +393,7 @@ $lang->block->moduleList['project'] = $lang->projectCommon;
$lang->block->moduleList['execution'] = $lang->execution->common;
$lang->block->moduleList['qa'] = 'Test';
$lang->block->moduleList['todo'] = 'Todo';
+$lang->block->moduleList['doc'] = 'Doc';
$lang->block->modules['project'] = new stdclass();
$lang->block->modules['project']->availableBlocks = new stdclass();
@@ -414,6 +448,17 @@ $lang->block->modules['todo'] = new stdclass();
$lang->block->modules['todo']->availableBlocks = new stdclass();
$lang->block->modules['todo']->availableBlocks->list = 'Todo';
+$lang->block->modules['doc'] = new stdclass();
+$lang->block->modules['doc']->availableBlocks = new stdclass();
+$lang->block->modules['doc']->availableBlocks->statistic = 'Statistic';
+$lang->block->modules['doc']->availableBlocks->docdynamic = 'Dynamic';
+$lang->block->modules['doc']->availableBlocks->mycollection = 'My Collection';
+$lang->block->modules['doc']->availableBlocks->recentupdate = 'Recently Update';
+$lang->block->modules['doc']->availableBlocks->viewlist = 'Browse Leaderboard';
+$lang->block->modules['doc']->availableBlocks->productdoc = $lang->productCommon . 'Document';
+$lang->block->modules['doc']->availableBlocks->collectlist = 'Favorite Leaderboard';
+$lang->block->modules['doc']->availableBlocks->projectdoc = $lang->projectCommon . 'Document';
+
$lang->block->orderByList = new stdclass();
$lang->block->orderByList->product = array();
diff --git a/module/block/lang/zh-cn.php b/module/block/lang/zh-cn.php
index 0af3f1887a..c6ac52b5c5 100644
--- a/module/block/lang/zh-cn.php
+++ b/module/block/lang/zh-cn.php
@@ -332,6 +332,39 @@ $lang->block->default['full']['my']['10']['grid'] = 8;
$lang->block->default['full']['my']['10']['params']['orderBy'] = 'id_desc';
$lang->block->default['full']['my']['10']['params']['count'] = '15';
+/* Doc module block. */
+$lang->block->default['doc']['1']['title'] = '文档统计';
+$lang->block->default['doc']['1']['block'] = 'statistic';
+$lang->block->default['doc']['1']['grid'] = 8;
+
+$lang->block->default['doc']['2']['title'] = '文档动态';
+$lang->block->default['doc']['2']['block'] = 'docdynamic';
+$lang->block->default['doc']['2']['grid'] = 4;
+
+$lang->block->default['doc']['3']['title'] = '我的收藏';
+$lang->block->default['doc']['3']['block'] = 'mycollection';
+$lang->block->default['doc']['3']['grid'] = 8;
+
+$lang->block->default['doc']['4']['title'] = '最近更新';
+$lang->block->default['doc']['4']['block'] = 'recentupdate';
+$lang->block->default['doc']['4']['grid'] = 8;
+
+$lang->block->default['doc']['5']['title'] = '浏览排行榜';
+$lang->block->default['doc']['5']['block'] = 'viewlist';
+$lang->block->default['doc']['5']['grid'] = 4;
+
+$lang->block->default['doc']['6']['title'] = $lang->productCommon . '文档';
+$lang->block->default['doc']['6']['block'] = 'productdoc';
+$lang->block->default['doc']['6']['grid'] = 8;
+
+$lang->block->default['doc']['7']['title'] = '收藏排行榜';
+$lang->block->default['doc']['7']['block'] = 'collectlist';
+$lang->block->default['doc']['7']['grid'] = 4;
+
+$lang->block->default['doc']['8']['title'] = $lang->projectCommon . '文档';
+$lang->block->default['doc']['8']['block'] = 'projectdoc';
+$lang->block->default['doc']['8']['grid'] = 8;
+
$lang->block->count = '数量';
$lang->block->type = '类型';
$lang->block->orderBy = '排序';
@@ -360,6 +393,7 @@ $lang->block->moduleList['project'] = $lang->projectCommon;
$lang->block->moduleList['execution'] = $lang->execution->common;
$lang->block->moduleList['qa'] = '测试';
$lang->block->moduleList['todo'] = '待办';
+$lang->block->moduleList['doc'] = '文档';
$lang->block->modules['project'] = new stdclass();
$lang->block->modules['project']->availableBlocks = new stdclass();
@@ -414,6 +448,17 @@ $lang->block->modules['todo'] = new stdclass();
$lang->block->modules['todo']->availableBlocks = new stdclass();
$lang->block->modules['todo']->availableBlocks->list = '待办列表';
+$lang->block->modules['doc'] = new stdclass();
+$lang->block->modules['doc']->availableBlocks = new stdclass();
+$lang->block->modules['doc']->availableBlocks->statistic = '文档统计';
+$lang->block->modules['doc']->availableBlocks->docdynamic = '文档动态';
+$lang->block->modules['doc']->availableBlocks->mycollection = '我的收藏';
+$lang->block->modules['doc']->availableBlocks->recentupdate = '最近更新';
+$lang->block->modules['doc']->availableBlocks->viewlist = '浏览排行榜';
+$lang->block->modules['doc']->availableBlocks->productdoc = $lang->productCommon . '文档';
+$lang->block->modules['doc']->availableBlocks->collectlist = '收藏排行榜';
+$lang->block->modules['doc']->availableBlocks->projectdoc = $lang->projectCommon . '文档';
+
$lang->block->orderByList = new stdclass();
$lang->block->orderByList->product = array();
diff --git a/module/block/model.php b/module/block/model.php
index fcb3d99bab..21be92da64 100644
--- a/module/block/model.php
+++ b/module/block/model.php
@@ -558,6 +558,7 @@ class blockModel extends model
if($module == 'project') return $this->getProjectStatisticParams();
if($module == 'execution') return $this->getExecutionStatisticParams();
if($module == 'qa') return $this->getQaStatisticParams();
+ if($module == 'doc') return $this->getDocStatisticParams();
$params = new stdclass();
$params = $this->appendCountParams($params);
@@ -628,6 +629,17 @@ class blockModel extends model
return json_encode($params);
}
+ /**
+ * Get document statistic params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getDocStatisticParams()
+ {
+ return false;
+ }
+
/**
* Get recent project pararms.
*
@@ -718,7 +730,7 @@ class blockModel extends model
$params = $this->appendCountParams();
$params->type['name'] = $this->lang->block->type;
- $params->type['options'] = $this->lang->issue->labelList;
+ $params->type['options'] = $this->lang->issue->featureBar['browse'];
$params->type['control'] = 'select';
$params->orderBy['name'] = $this->lang->block->orderBy;
@@ -1061,6 +1073,83 @@ class blockModel extends model
return false;
}
+ /**
+ * Get document dynamic params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getDocDynamicParams()
+ {
+ return false;
+ }
+
+ /**
+ * Get my collection params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getMyCollectionParams()
+ {
+ return false;
+ }
+
+ /**
+ * Get recent update params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getRecentUpdateParams()
+ {
+ return false;
+ }
+
+ /**
+ * Get view list params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getViewlistParams()
+ {
+ return false;
+ }
+
+ /**
+ * Get product document params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getProductDocParams()
+ {
+ return false;
+ }
+
+ /**
+ * Get collect list params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getCollectListParams()
+ {
+ return false;
+ }
+
+ /**
+ * Get project document params.
+ *
+ * @access public
+ * @return bool
+ */
+ public function getProjectDocParams()
+ {
+ return false;
+ }
+
/**
* Get the total estimated man hours required.
*
diff --git a/module/block/view/collectlistblock.html.php b/module/block/view/collectlistblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/block/view/docdynamicblock.html.php b/module/block/view/docdynamicblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/block/view/docstatisticblock.html.php b/module/block/view/docstatisticblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/block/view/mycollectionblock.html.php b/module/block/view/mycollectionblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/block/view/productdocblock.html.php b/module/block/view/productdocblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/block/view/projectdocblock.html.php b/module/block/view/projectdocblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/block/view/recentupdateblock.html.php b/module/block/view/recentupdateblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/block/view/viewlistblock.html.php b/module/block/view/viewlistblock.html.php
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/module/doc/control.php b/module/doc/control.php
index e54ee7084d..23cf2a554d 100755
--- a/module/doc/control.php
+++ b/module/doc/control.php
@@ -36,19 +36,7 @@ class doc extends control
*/
public function index()
{
- $this->session->set('docList', $this->app->getURI(true), 'doc');
- $this->app->loadClass('pager', $static = true);
- $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;
-
- $this->view->latestEditedDocs = $this->doc->getDocsByBrowseType('byediteddate', 0, 0, 'editedDate_desc, id_desc', $pager);
- $this->view->myDocs = $this->doc->getDocsByBrowseType('openedbyme', 0, 0, 'addedDate_desc', $pager);
- $this->view->collectedDocs = $this->doc->getDocsByBrowseType('collectedbyme', 0, 0, 'addedDate_desc', $pager);
- $this->view->statisticInfo = $this->doc->getStatisticInfo();
- $this->view->users = $this->user->getPairs('noletter');
-
+ $this->view->title = $this->lang->doc->common . $this->lang->colon . $this->lang->doc->index;
$this->display();
}
diff --git a/module/doc/css/index.css b/module/doc/css/index.css
deleted file mode 100644
index f45675040c..0000000000
--- a/module/doc/css/index.css
+++ /dev/null
@@ -1,4 +0,0 @@
-#pageActions ul.dropdown-menu {left: 67px;}
-#mainRow .main-col .row .col-sm-7 {width: 55% !important;}
-#mainRow .main-col .row .col-sm-5 {width: 45% !important;}
-#mainRow .c-num {text-overflow: ellipsis; white-space: nowrap;}
diff --git a/module/doc/lang/de.php b/module/doc/lang/de.php
index 24e0d438cc..81cc79ad88 100644
--- a/module/doc/lang/de.php
+++ b/module/doc/lang/de.php
@@ -147,7 +147,7 @@ $lang->doc->editCatalog = 'Edit Catalog';
$lang->doc->deleteCatalog = 'Delete Catalog';
/* Methods list */
-$lang->doc->index = 'Home';
+$lang->doc->index = 'Dashboard';
$lang->doc->createAB = 'Create';
$lang->doc->create = 'Dokument hinzufügen';
$lang->doc->edit = 'Bearbeiten';
diff --git a/module/doc/lang/en.php b/module/doc/lang/en.php
index 8e7764bb63..be7159fb3c 100644
--- a/module/doc/lang/en.php
+++ b/module/doc/lang/en.php
@@ -147,7 +147,7 @@ $lang->doc->editCatalog = 'Edit Catalog';
$lang->doc->deleteCatalog = 'Delete Catalog';
/* Methods list */
-$lang->doc->index = 'Document Home';
+$lang->doc->index = 'Dashboard';
$lang->doc->createAB = 'Create';
$lang->doc->create = 'Create Document';
$lang->doc->edit = 'Edit Document';
diff --git a/module/doc/lang/fr.php b/module/doc/lang/fr.php
index 85eaedb2dc..f1d21c4a78 100644
--- a/module/doc/lang/fr.php
+++ b/module/doc/lang/fr.php
@@ -147,7 +147,7 @@ $lang->doc->editCatalog = 'Edit Catalog';
$lang->doc->deleteCatalog = 'Delete Catalog';
/* Methods list */
-$lang->doc->index = 'Accueil Documents';
+$lang->doc->index = 'Dashboard';
$lang->doc->createAB = 'Create';
$lang->doc->create = 'Ajouter Document';
$lang->doc->edit = 'Editer Document';
diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php
index 1ae2ecd4b6..3e9ec2fa10 100644
--- a/module/doc/lang/zh-cn.php
+++ b/module/doc/lang/zh-cn.php
@@ -147,7 +147,7 @@ $lang->doc->editCatalog = '编辑目录';
$lang->doc->deleteCatalog = '删除目录';
/* 方法列表。*/
-$lang->doc->index = '文档主页';
+$lang->doc->index = '仪表盘';
$lang->doc->createAB = '创建';
$lang->doc->create = '创建文档';
$lang->doc->edit = '编辑文档';
diff --git a/module/doc/view/index.html.php b/module/doc/view/index.html.php
index c664665280..90e969ab9e 100644
--- a/module/doc/view/index.html.php
+++ b/module/doc/view/index.html.php
@@ -11,197 +11,5 @@
*/
?>
-
-
-
-
-
-
-
-
doc->orderByEdit;?>
-
-
-
-
-
-
-
-
-
- | doc->title;?> |
- doc->size;?> |
- doc->addedBy;?> |
- doc->editedDate;?> |
-
-
-
-
-
- | createLink('doc', 'view', "docID={$doc->id}", '', true), $doc->title, '', "data-toggle='modal' data-type='iframe' data-width='90%' title='{$doc->title}'")?> |
- fileSize ? $doc->fileSize : '-';?> |
- addedBy);?> |
- editedDate) ? formatTime($doc->addedDate, 'Y-m-d') : formatTime($doc->editedDate, 'Y-m-d');?> |
-
-
-
-
-
-
-
-
-
-
-
-
doc->allDoc . ' ' . $statisticInfo->totalDocs;?>
-
-
-
-
-
-
- doc->orderByEdit;?>
- lastEditedDocs;?>
-
-
-
-
-
- doc->todayEdited;?>
- todayEditedDocs;?>
-
-
-
- doc->pastEdited;?>
- pastEditedDocs;?>
-
-
-
-
-
-
-
-
-
-
-
doc->myDoc;?>
-
-
-
-
-
-
-
-
-
- | doc->title;?> |
- doc->size;?> |
- doc->addedBy;?> |
- doc->editedDate;?> |
-
-
-
-
-
- | createLink('doc', 'view', "docID={$doc->id}", '', true), $doc->title, '', "data-toggle='modal' data-type='iframe' data-width='90%' title='{$doc->title}'")?> |
- fileSize ? $doc->fileSize : '-';?> |
- addedBy);?> |
- editedDate) ? formatTime($doc->editedDate, 'Y-m-d') : formatTime($doc->addedDate, 'y-m-d');?> |
-
-
-
-
-
-
-
-
-
-
-
-
doc->myCollection;?>
-
-
-
-
-
-
-
-
-
- | doc->title;?> |
- doc->addedBy;?> |
- doc->editedDate;?> |
-
-
-
-
-
- | createLink('doc', 'view', "docID={$doc->id}", '', true), $doc->title, '', "data-toggle='modal' data-type='iframe' data-width='90%' title='{$doc->title}'")?> |
- addedBy);?> |
- editedDate) ? formatTime($doc->editedDate, 'Y-m-d') : formatTime($doc->addedDate, 'y-m-d');?> |
-
-
-
-
-
-
-
-
-
-
-
+fetch('block', 'dashboard', 'module=doc');?>