Commit 8878f4ff4e2fff2592919c4ee11cca2892fa4f06
1 parent
722c0b09
added common admin UI methods
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2501 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
17 additions
and
0 deletions
presentation/lookAndFeel/knowledgeTree/administration/adminUI.inc
0 → 100644
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Contains UI methods common to all administration screens | |
| 5 | + */ | |
| 6 | + | |
| 7 | +function getAddLink($sAddAction, $sAddText) { | |
| 8 | + global $default; | |
| 9 | + $sBGColor = $default->siteMap->getSectionColour("Administration", "td"); | |
| 10 | + return "<table width=\"100%\"><tr><td bgcolor=\"$sBGColor\">" . generateControllerLink("$sAddAction", "", "<font color=\"#ffffff\">$sAddText</font>") . "</td></tr></table>\n"; | |
| 11 | +} | |
| 12 | + | |
| 13 | +function getCancelButton($sCancelAction, $sQueryString = "") { | |
| 14 | + global $default; | |
| 15 | + return generateControllerLink($sCancelAction, $sQueryString, "<img border=\"0\" src=\"$default->graphicsUrl/widgets/cancel.gif\"/>"); | |
| 16 | +} | |
| 17 | +?> | |
| 0 | 18 | \ No newline at end of file | ... | ... |