Commit 5c1516129eb180b8bbf88d0c1096eeaf904ec1ce
1 parent
bf995f6d
Fixed page to fit in table row
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@716 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
8 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| @@ -115,11 +115,13 @@ function renderNonEditableDocumentRouting($oDocument) { | @@ -115,11 +115,13 @@ function renderNonEditableDocumentRouting($oDocument) { | ||
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | function getEditPage($oDocument) { | 117 | function getEditPage($oDocument) { |
| 118 | + global $default; | ||
| 118 | $sToRender = renderDocumentPath($oDocument) . "\n<br>\n"; | 119 | $sToRender = renderDocumentPath($oDocument) . "\n<br>\n"; |
| 119 | $sToRender .= "<table border = 0>\n"; | 120 | $sToRender .= "<table border = 0>\n"; |
| 120 | $sToRender .= "<tr>\n"; | 121 | $sToRender .= "<tr>\n"; |
| 121 | $sToRender .= "<td>\n"; | 122 | $sToRender .= "<td>\n"; |
| 122 | - $sToRender .= "\t<table border = 0 width = 280>\n"; | 123 | + //$sToRender .= "\t<table border = 0 width = 280>\n"; |
| 124 | + $sToRender .= "\t<table border = 0>\n"; | ||
| 123 | $sToRender .= "\t<tr width>\n"; | 125 | $sToRender .= "\t<tr width>\n"; |
| 124 | $sToRender .= "\t\t<td>" . wrapInTable(renderDocumentData($oDocument)) . "</td>\n"; | 126 | $sToRender .= "\t\t<td>" . wrapInTable(renderDocumentData($oDocument)) . "</td>\n"; |
| 125 | //$sToRender .= "\t\t<td>" . renderGenericDocumentMetaData($oDocument) . "</td>\n"; | 127 | //$sToRender .= "\t\t<td>" . renderGenericDocumentMetaData($oDocument) . "</td>\n"; |
| @@ -134,7 +136,8 @@ function getEditPage($oDocument) { | @@ -134,7 +136,8 @@ function getEditPage($oDocument) { | ||
| 134 | $sToRender .= "\t</table>\n"; | 136 | $sToRender .= "\t</table>\n"; |
| 135 | $sToRender .= "</td>\n"; | 137 | $sToRender .= "</td>\n"; |
| 136 | $sToRender .= "<td valign=top>\n"; | 138 | $sToRender .= "<td valign=top>\n"; |
| 137 | - $sToRender .= "\t<table border = 0, width = 230>\n"; | 139 | + //$sToRender .= "\t<table border = 0, width = 230>\n"; |
| 140 | + $sToRender .= "\t<table border = 0>\n"; | ||
| 138 | $sToRender .= "\t<tr>\n"; | 141 | $sToRender .= "\t<tr>\n"; |
| 139 | $sToRender .= "\t\t<td>" . wrapInTable(renderEditableDocumentRouting($oDocument)) . "</td>\n"; | 142 | $sToRender .= "\t\t<td>" . wrapInTable(renderEditableDocumentRouting($oDocument)) . "</td>\n"; |
| 140 | //$sToRender .= "\t\t<td>" . renderDocumentRouting($oDocument) . "</td>\n"; | 143 | //$sToRender .= "\t\t<td>" . renderDocumentRouting($oDocument) . "</td>\n"; |
| @@ -147,6 +150,7 @@ function getEditPage($oDocument) { | @@ -147,6 +150,7 @@ function getEditPage($oDocument) { | ||
| 147 | $sToRender .= "<tr>\n"; | 150 | $sToRender .= "<tr>\n"; |
| 148 | $sToRender .= "<td><input type=\"submit\" value=\"Edit\"></td>\n"; | 151 | $sToRender .= "<td><input type=\"submit\" value=\"Edit\"></td>\n"; |
| 149 | $sToRender .= "<td><a href=\"" . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\">Download</a></td>\n"; | 152 | $sToRender .= "<td><a href=\"" . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\">Download</a></td>\n"; |
| 153 | + $sToRender .= "<td><a href=\"$default->owl_root_url/control.php?action=emailDocument&fDocumentID=" . $oDocument->getID() . "\">Email link</a></td>\n"; | ||
| 150 | $sToRender .= "</tr>\n"; | 154 | $sToRender .= "</tr>\n"; |
| 151 | $sToRender .= "</table>\n"; | 155 | $sToRender .= "</table>\n"; |
| 152 | 156 | ||
| @@ -154,6 +158,7 @@ function getEditPage($oDocument) { | @@ -154,6 +158,7 @@ function getEditPage($oDocument) { | ||
| 154 | } | 158 | } |
| 155 | 159 | ||
| 156 | function getViewPage($oDocument) { | 160 | function getViewPage($oDocument) { |
| 161 | + global $default; | ||
| 157 | $sToRender = renderDocumentPath($oDocument) . "\n<br>\n"; | 162 | $sToRender = renderDocumentPath($oDocument) . "\n<br>\n"; |
| 158 | $sToRender .= "<table border = 0>\n"; | 163 | $sToRender .= "<table border = 0>\n"; |
| 159 | $sToRender .= "<tr>\n"; | 164 | $sToRender .= "<tr>\n"; |
| @@ -185,6 +190,7 @@ function getViewPage($oDocument) { | @@ -185,6 +190,7 @@ function getViewPage($oDocument) { | ||
| 185 | $sToRender .= "<table>\n"; | 190 | $sToRender .= "<table>\n"; |
| 186 | $sToRender .= "<tr>\n"; | 191 | $sToRender .= "<tr>\n"; |
| 187 | $sToRender .= "<td><a href=\"" . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\">Download</a></td>\n"; | 192 | $sToRender .= "<td><a href=\"" . $_SERVER["PHP_SELF"] . "?fDocumentID=" . $oDocument->getID() . "&fForDownload=1\">Download</a></td>\n"; |
| 193 | + $sToRender .= "<td><a href=\"$default->owl_root_url/control.php?action=emailDocument&fDocumentID=" . $oDocument->getID() . "\">Email link</a></td>\n"; | ||
| 188 | $sToRender .= "</tr>\n"; | 194 | $sToRender .= "</tr>\n"; |
| 189 | $sToRender .= "</table>\n"; | 195 | $sToRender .= "</table>\n"; |
| 190 | 196 |