Commit 4b172de35b63b5f4cdcb339ce2396491099b7441

Authored by rob
1 parent 6507b72e

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
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
... ... @@ -115,11 +115,13 @@ function renderNonEditableDocumentRouting($oDocument) {
115 115 }
116 116  
117 117 function getEditPage($oDocument) {
  118 + global $default;
118 119 $sToRender = renderDocumentPath($oDocument) . "\n<br>\n";
119 120 $sToRender .= "<table border = 0>\n";
120 121 $sToRender .= "<tr>\n";
121 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 125 $sToRender .= "\t<tr width>\n";
124 126 $sToRender .= "\t\t<td>" . wrapInTable(renderDocumentData($oDocument)) . "</td>\n";
125 127 //$sToRender .= "\t\t<td>" . renderGenericDocumentMetaData($oDocument) . "</td>\n";
... ... @@ -134,7 +136,8 @@ function getEditPage($oDocument) {
134 136 $sToRender .= "\t</table>\n";
135 137 $sToRender .= "</td>\n";
136 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 141 $sToRender .= "\t<tr>\n";
139 142 $sToRender .= "\t\t<td>" . wrapInTable(renderEditableDocumentRouting($oDocument)) . "</td>\n";
140 143 //$sToRender .= "\t\t<td>" . renderDocumentRouting($oDocument) . "</td>\n";
... ... @@ -147,6 +150,7 @@ function getEditPage($oDocument) {
147 150 $sToRender .= "<tr>\n";
148 151 $sToRender .= "<td><input type=\"submit\" value=\"Edit\"></td>\n";
149 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 154 $sToRender .= "</tr>\n";
151 155 $sToRender .= "</table>\n";
152 156  
... ... @@ -154,6 +158,7 @@ function getEditPage($oDocument) {
154 158 }
155 159  
156 160 function getViewPage($oDocument) {
  161 + global $default;
157 162 $sToRender = renderDocumentPath($oDocument) . "\n<br>\n";
158 163 $sToRender .= "<table border = 0>\n";
159 164 $sToRender .= "<tr>\n";
... ... @@ -185,6 +190,7 @@ function getViewPage($oDocument) {
185 190 $sToRender .= "<table>\n";
186 191 $sToRender .= "<tr>\n";
187 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 194 $sToRender .= "</tr>\n";
189 195 $sToRender .= "</table>\n";
190 196  
... ...