Commit d949b6cbf91506587e4e0ec6f1d5885c230d9a73
1 parent
e4b3121d
List correctly (not listing doc fields)
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2149 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
12 additions
and
12 deletions
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/listDocTypesBL.php
| ... | ... | @@ -35,21 +35,21 @@ if(checkSession()) { |
| 35 | 35 | |
| 36 | 36 | $main->setFormAction($_SERVER['PHP_SELF']); |
| 37 | 37 | |
| 38 | - $sQuery = "SELECT id as DocFieldID, name as DocFieldName, data_type, is_generic, has_lookup, " . | |
| 39 | - "'Edit', 'Delete', 'Edit Metadata' " . | |
| 40 | - "FROM " . $default->owl_fields_table . " " . | |
| 38 | + $sQuery = "SELECT id as DocTypeID, name as DocTypeName, " . | |
| 39 | + "'Edit', 'Delete', 'Edit Fields' " . | |
| 40 | + "FROM " . $default->owl_document_types_table . " " . | |
| 41 | 41 | "ORDER BY name"; |
| 42 | 42 | |
| 43 | - $aColumns = array("DocFieldName", "data_type", "is_generic", "has_lookup","Edit", "Delete", "Edit Metadata" ); | |
| 44 | - $aColumnNames = array("Name", "Data type", "Generic?", "Lookup?", "Edit", "Delete", "Edit Metadata"); | |
| 45 | - $aColumnTypes = array(1,1,2,2,3,3,3); | |
| 46 | - $aDBColumnArray = array("DocFieldID"); | |
| 47 | - $aQueryStringVariableNames = array("fDocFieldID"); | |
| 43 | + $aColumns = array("DocTypeName", "Edit", "Delete", "Edit Fields"); | |
| 44 | + $aColumnNames = array("Name", "Edit", "Delete", "Edit Fields"); | |
| 45 | + $aColumnTypes = array(1,3,3,3); | |
| 46 | + $aDBColumnArray = array("DocTypeID"); | |
| 47 | + $aQueryStringVariableNames = array("fDocTypeID"); | |
| 48 | + | |
| 49 | + $aHyperLinkURL = array( 1=> "$default->rootUrl/control.php?action=editDocType&fDocTypeSelected=1", | |
| 50 | + 2=> "$default->rootUrl/control.php?action=removeDocType", | |
| 51 | + 3=> "$default->rootUrl/control.php?action=editDocTypeFields&fDocTypeSelected=1"); | |
| 48 | 52 | |
| 49 | - $aHyperLinkURL = array( 4=> "$default->rootUrl/control.php?action=editDocField", | |
| 50 | - 5=> "$default->rootUrl/control.php?action=removeDocField", | |
| 51 | - 6=> "$default->rootUrl/control.php?action=editDocFieldLookups"); | |
| 52 | - | |
| 53 | 53 | $oSearchResults = & new PatternTableSqlQuery($sQuery, $aColumns, $aColumnTypes, $aColumnNames, "100%", $aHyperLinkURL,$aDBColumnArray,$aQueryStringVariableNames); |
| 54 | 54 | $oSearchResults->setDisplayColumnHeadings(true); |
| 55 | 55 | $htmlTables = $oSearchResults->render() ; | ... | ... |