Commit f7ab681c188a9d9572feaab7faa88d81e50cf19c

Authored by michael
1 parent 7759dee4

changed heading display colour to white

fixed template browse popup


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1931 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentLinkUI.inc
... ... @@ -13,7 +13,7 @@ function renderHeading($sHeading) {
13 13 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
14 14 $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
15 15 $sToRender = "<table border=\"0\" width=\"100%\">\n";
16   - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">$sHeading</th></tr>\n";
  16 + $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n";
17 17 $sToRender .= "<tr/>\n";
18 18 $sToRender .= "<tr/>\n";
19 19 $sToRender .= "</table>\n";
... ... @@ -31,10 +31,10 @@ function getPage($iDocumentID) {
31 31 $bAddNetscapeScript = false;
32 32 if (! (($default->phpSniff->property("browser") == "moz") && ($default->phpSniff->property("version") <= "4.79")) ) {
33 33 //for any other browser but netscape 4.7 do this
34   - $sToRender .= "<td>Document to link</td><td><input type=\"text\" DISABLED name=\"fTargetDocument\" value=\"\" /><input type=\"button\" value=\"Browse\" onClick=\"newWindow('http://ktdev/control.php?action=templateBrowse','window2')\"></td>\n";
  34 + $sToRender .= "<td>Document to link</td><td><input type=\"text\" DISABLED name=\"fTargetDocument\" value=\"\" /><input type=\"button\" value=\"Browse\" onClick=\"newWindow('" . generateControllerUrl("templateBrowse") . "','window2')\"></td>\n";
35 35 }else {
36 36 //for netscape 4.7 do this
37   - $sToRender .= "<td>Document to link</td><td><input type=\"text\" value=\"\" name=\"fTargetDocument\" onblur=\"disable(document.MainForm.fTargetDocument);\" /><input type=\"button\" value=\"Browse\" onClick=\"disable(document.MainForm.fTargetDocument);newWindow('http://ktdev/control.php?action=templateBrowse','window2')\"></td>\n";
  37 + $sToRender .= "<td>Document to link</td><td><input type=\"text\" value=\"\" name=\"fTargetDocument\" onblur=\"disable(document.MainForm.fTargetDocument);\" /><input type=\"button\" value=\"Browse\" onClick=\"disable(document.MainForm.fTargetDocument);newWindow('" . generateControllerUrl("templateBrowse") . "','window2')\"></td>\n";
38 38 $bAddNetscapeScript = true;
39 39 }
40 40 $sToRender .= "</tr>\n";
... ...