diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 1866b1799c..22e39c2a18 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -54,6 +54,7 @@ $lang->public = '公共'; $lang->trunk = '主干'; $lang->sort = '排序'; $lang->required = '必填'; +$lang->noData = '暂无'; $lang->actions = '操作'; $lang->comment = '备注'; diff --git a/module/doc/css/view.css b/module/doc/css/view.css index d15fdf60ef..132a04d412 100644 --- a/module/doc/css/view.css +++ b/module/doc/css/view.css @@ -1,9 +1,2 @@ .versions .dropdown-menu{max-height:260px; overflow-y:auto;} - -fieldset > .content table tr.firstRow th{border-top-width: 2px;} -fieldset > .content table tr th { border-top: 1px solid #BBB; - border-top-width: 1px; - background-color: #F7F7F7; -} -fieldset > .content table tr th, fieldset > .content table tr td{ padding: 5px 10px; } -.col-main{width:100%} +.table-data > tbody > tr > th.w-80px {width:80px;} diff --git a/module/doc/model.php b/module/doc/model.php index 054394f976..87b5ac93da 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -310,6 +310,11 @@ class docModel extends model elseif($browseType == 'byediteddate') { $docIdList = $this->getPrivDocs($libID, $moduleID); + $files = $this->dao->select('*')->from(TABLE_FILE) + ->where('objectType')->eq('doc') + ->andWhere('objectID')->in($docIdList) + ->fetchGroup('objectID'); + $docs = $this->dao->select('*')->from(TABLE_DOC) ->where('deleted')->eq(0) ->andWhere('id')->in($docIdList) @@ -317,11 +322,6 @@ class docModel extends model ->page($pager) ->fetchAll('id'); - $files = $this->dao->select('*')->from(TABLE_FILE) - ->where('objectType')->eq('doc') - ->andWhere('objectID')->in(array_keys($docs)) - ->fetchGroup('objectID'); - foreach($docs as $doc) { $docs[$doc->id]->fileSize = 0; diff --git a/module/doc/view/view.html.php b/module/doc/view/view.html.php index 96a0a7e6e0..803dec1b3c 100644 --- a/module/doc/view/view.html.php +++ b/module/doc/view/view.html.php @@ -13,71 +13,165 @@ -
-
- icons['doc']);?> id;?> - title;?> - deleted):?> - doc->deleted;?> - - version > 1):?> - action == 'created') - { - $versions[$i] = "#$i " . zget($users, $action->actor) . ' ' . substr($action->date, 2, 14); - $i++; - } - if($action->action == 'edited') - { - foreach($action->history as $history) - { - if($history->field == 'content') - { - $versions[$i] = "#$i " . zget($users, $action->actor) . ' ' . substr($action->date, 2, 14); - $i++; - break; - } - } - } - } - krsort($versions); - ?> - - +session->docList ? $this->session->docList : inlink('browse');?> +