Commit 413a916756139ca5014a434d4f8f385f047ddd99
1 parent
03915c5f
refactored html building functions in Html.inc
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@445 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
11 additions
and
7 deletions
presentation/Html.inc
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | * | 4 | * |
| 5 | * Generic html building functions. | 5 | * Generic html building functions. |
| 6 | * | 6 | * |
| 7 | - * Licensed under the GNU GPL. For full terms see the file COPYING. | 7 | + * Licensed under the GNU GPL. For full terms see the file DOCS/COPYING. |
| 8 | * | 8 | * |
| 9 | * @version $Revision$ | 9 | * @version $Revision$ |
| 10 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa | 10 | * @author Michael Joseph <michael@jamwarehouse.com>, Jam Warehouse (Pty) Ltd, South Africa |
| @@ -23,6 +23,12 @@ function tableRow($align, $bgcolor, $html) { | @@ -23,6 +23,12 @@ function tableRow($align, $bgcolor, $html) { | ||
| 23 | return "<tr align=\"$align\" bgcolor=\"$bgcolor\">$html</tr>"; | 23 | return "<tr align=\"$align\" bgcolor=\"$bgcolor\">$html</tr>"; |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | +function tableHeading($cssClassName, $colspan, $text) { | ||
| 27 | + return "<th colspan=\"$colspan\"> | ||
| 28 | + <span class=\"$cssClassName\">$text</span> | ||
| 29 | + </th>"; | ||
| 30 | +} | ||
| 31 | + | ||
| 26 | function tableData($html) { | 32 | function tableData($html) { |
| 27 | return "<td>$html</td>"; | 33 | return "<td>$html</td>"; |
| 28 | } | 34 | } |
| @@ -35,4 +41,8 @@ function endTableRowCell() { | @@ -35,4 +41,8 @@ function endTableRowCell() { | ||
| 35 | return "</td></tr>"; | 41 | return "</td></tr>"; |
| 36 | } | 42 | } |
| 37 | 43 | ||
| 44 | +function generateLink($sTargetPage, $sQueryString, $sLinkText) { | ||
| 45 | + return "<a href=\"$sTargetPage?$sQueryString\">$sLinkText</a>"; | ||
| 46 | +} | ||
| 47 | + | ||
| 38 | ?> | 48 | ?> |
presentation/lookAndFeel/knowledgeTree/dashboardUI.inc
| @@ -73,12 +73,6 @@ function getSubscriptionDocuments() { | @@ -73,12 +73,6 @@ function getSubscriptionDocuments() { | ||
| 73 | return array(new tmpDocument(), new tmpDocument(), new tmpDocument()); | 73 | return array(new tmpDocument(), new tmpDocument(), new tmpDocument()); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | -function tableHeading($cssClassName, $colspan, $text) { | ||
| 77 | - return "<th colspan=\"$colspan\"> | ||
| 78 | - <span class=\"$cssClassName\">$text</span> | ||
| 79 | - </th>"; | ||
| 80 | -} | ||
| 81 | - | ||
| 82 | function pendingDocumentsHeaders() { | 76 | function pendingDocumentsHeaders() { |
| 83 | return "<th align=\"left\" width=\"33%\"> | 77 | return "<th align=\"left\" width=\"33%\"> |
| 84 | <span class=\"sectionColumns\">Title</span> | 78 | <span class=\"sectionColumns\">Title</span> |