Commit a0c2e8d8ec73576c6a936adb332fa2eae0c00547

Authored by nbm
1 parent 6c4d4f61

Display the document ID.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3212 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
... ... @@ -43,7 +43,7 @@ function renderDocumentPath($oDocument, $bDisplayActions = false) {
43 43  
44 44 function renderDocumentData($oDocument, $bEditable, $sStatusMessage = "") {
45 45 global $default;
46   - /*ok*/ $sQuery = array("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, D.is_checked_out, COALESCE(U2.name, '') AS c_user " .
  46 + /*ok*/ $sQuery = array("SELECT D.id, 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, D.is_checked_out, COALESCE(U2.name, '') AS c_user " .
47 47 "FROM $default->documents_table AS D INNER JOIN $default->web_documents_table AS WD ON WD.document_id = D.ID " .
48 48 "INNER JOIN $default->web_documents_status_table AS WDSL ON WD.status_id = WDSL.id " .
49 49 "LEFT JOIN $default->users_table AS U ON U.id = D.creator_id " .
... ... @@ -54,9 +54,9 @@ function renderDocumentData($oDocument, $bEditable, $sStatusMessage = "") {
54 54 "WHERE D.id = ? " .
55 55 "AND TT.name LIKE 'Create'", $oDocument->getID());
56 56  
57   - $aColumns = array("name", "modified", "created", "initiator", "document_type", "version", "status", "c_user");
58   - $aColumnNames = array(_("Document title"), _("Last updated"), _("Created"), _("Document initiator"), _("Document Type"), _("Version"), _("Status"), _("Checked out by"));
59   - $aColumnTypes = array(1,1,1,1,1,1,1,1);
  57 + $aColumns = array("id", "name", "modified", "created", "initiator", "document_type", "version", "status", "c_user");
  58 + $aColumnNames = array(_("Id"), _("Document title"), _("Last updated"), _("Created"), _("Document initiator"), _("Document Type"), _("Version"), _("Status"), _("Checked out by"));
  59 + $aColumnTypes = array(1,1,1,1,1,1,1,1,1);
60 60 $oPatternListFromQuery = & new PatternListFromQuery($sQuery, $aColumns, $aColumnNames, $aColumnTypes);
61 61 $oPatternListFromQuery->setTableHeading(_("Document Data"));
62 62 $oPatternListFromQuery->setEmptyTableMessage(_("No Document Data"));
... ...