Commit 55ff68037967bddb0ebc53e72c1cfcaf1fd229a9
1 parent
545a19ff
Added extra item in main view
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1220 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
4 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -22,18 +22,19 @@ function renderDocumentPath($oDocument) { |
| 22 | 22 | |
| 23 | 23 | function renderDocumentData($oDocument) { |
| 24 | 24 | global $default; |
| 25 | - $sQuery = "SELECT D.name, D.modified, DTT.datetime AS created, U.name AS initiator, CONCAT(CONCAT(D.major_version, '.'), D.minor_version) AS version, WDSL.name AS status " . | |
| 25 | + $sQuery = "SELECT D.name, D.modified, DTT.datetime AS created, U.name AS initiator, CONCAT(CONCAT(D.major_version, '.'), D.minor_version) AS version, WDSL.name AS status, DTL.name AS document_type " . | |
| 26 | 26 | "FROM $default->owl_documents_table AS D INNER JOIN $default->owl_web_documents_table AS WD ON WD.document_id = D.ID " . |
| 27 | 27 | "INNER JOIN $default->owl_web_documents_status_table AS WDSL ON WD.status_id = WDSL.id " . |
| 28 | 28 | "INNER JOIN $default->owl_users_table AS U ON U.id = D.creator_id " . |
| 29 | 29 | "INNER JOIN $default->owl_document_transactions_table AS DTT ON DTT.document_id = D.id " . |
| 30 | 30 | "INNER JOIN $default->owl_transaction_types_table AS TT ON DTT.transaction_id = TT.id " . |
| 31 | + "INNER JOIN $default->owl_document_types_table AS DTL ON DTL.id = D.document_type_id " . | |
| 31 | 32 | "WHERE D.id = " . $oDocument->getID() . " " . |
| 32 | 33 | "AND TT.name LIKE 'Create'"; |
| 33 | 34 | |
| 34 | - $aColumns = array("name", "modified", "created", "initiator", "version", "status"); | |
| 35 | - $aColumnNames = array("Document title", "Last updated", "Created", "Document initiator", "Version", "Status"); | |
| 36 | - $aColumnTypes = array(1,1,1,1,1); | |
| 35 | + $aColumns = array("name", "modified", "created", "initiator", "document_type", "version", "status"); | |
| 36 | + $aColumnNames = array("Document title", "Last updated", "Created", "Document initiator", "Document Type", "Version", "Status"); | |
| 37 | + $aColumnTypes = array(1,1,1,1,1,1); | |
| 37 | 38 | $oPatternListFromQuery = & new PatternListFromQuery($sQuery, $aColumns, $aColumnNames, $aColumnTypes); |
| 38 | 39 | $oPatternListFromQuery->setTableHeading("Document Data"); |
| 39 | 40 | $oPatternListFromQuery->setTableWidth("90%"); | ... | ... |