Commit 012a20b353cb0dbefa706b9bcd14daab1ea5c77c
1 parent
b59ddcb7
aligned heading
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1805 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
9 additions
and
8 deletions
presentation/lookAndFeel/knowledgeTree/help.php
| ... | ... | @@ -7,8 +7,12 @@ $hStretched = "$default->graphicsUrl/hrepeat.gif"; |
| 7 | 7 | $row1 = "<img src = ". $heading. ">"; |
| 8 | 8 | |
| 9 | 9 | //Output a title bar |
| 10 | -echo "<head><Table cellpadding = \"1\" cellspacing = \"1\" border=\"1\" width=\"100%\" height=\"10%\">\n " . | |
| 11 | -"<tr height=\"20%\"><td background = " . $hStretched ." width =\"100%\">". $row1 ."</td></tr></Table><br></head>\n "; | |
| 10 | +$headingBar = "<table cellpadding=\"0\" cellspacing=\"0\" border=\"1\" width=\"100%\" height=\"10%\">\n"; | |
| 11 | +$headingBar .= "\t<tr height=\"20%\">\n"; | |
| 12 | +$headingBar .= "\t\t<td background=\"$hStretched\" width=\"100%\"><img src=\"$heading\"/></td>\n"; | |
| 13 | +$headingBar .= "\t</tr>\n"; | |
| 14 | +$headingBar .= "</table>\n"; | |
| 15 | +echo $headingBar; | |
| 12 | 16 | |
| 13 | 17 | //Query the database for the helpURL based on the current action |
| 14 | 18 | $sQuery = "SELECT HLP.help_info as helpinfo ". |
| ... | ... | @@ -17,13 +21,10 @@ $sQuery = "SELECT HLP.help_info as helpinfo ". |
| 17 | 21 | $sql = $default->db; |
| 18 | 22 | $sql->query($sQuery); |
| 19 | 23 | |
| 20 | -if ($sql->next_record()) | |
| 21 | -{ | |
| 24 | +if ($sql->next_record()) { | |
| 22 | 25 | require_once("$default->uiDirectory/help/" . $sql->f("helpinfo")); |
| 23 | -} | |
| 24 | -else | |
| 25 | -{ | |
| 26 | - echo "No help available for "."$fAction"; | |
| 26 | +} else { | |
| 27 | + echo "No help available for $fAction"; | |
| 27 | 28 | } |
| 28 | 29 | ?> |
| 29 | 30 | ... | ... |