Commit bf9fecea7c9b3072425e18d56604f755908ca4af
1 parent
dfe5e224
Solved some Netscape issues
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1822 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
11 additions
and
8 deletions
presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc
| ... | ... | @@ -69,7 +69,8 @@ function getAddComment($fDocumentID, $sSubject, $sBody) { |
| 69 | 69 | $sToRender .= renderHeading($sHeading); |
| 70 | 70 | $sToRender .= renderDocumentPath($fDocumentID); |
| 71 | 71 | $sToRender .= "<table width=\"100%\" border=\"0\" cellpadding=0 ><tr><td></td>\n"; |
| 72 | - $sToRender .= "<td align=right width=100%><input onmouseover=\"this.style.cursor='hand'\" type=\"submit\" style=\"BORDER-RIGHT: 0px groove; BORDER-TOP: 0px groove; BACKGROUND-IMAGE: url($default->graphicsUrl/widgets/submit.gif); BORDER-LEFT: 0px groove; WIDTH: 45px; BORDER-BOTTOM: 0px groove; HEIGHT: 18; BACKGROUND-COLOR: white\" width=\"45\" height=\"20\" value=\" \" width=\"100\"></td>"; | |
| 72 | + //$sToRender .= "<td align=right width=100%><input onmouseover=\"this.style.cursor='hand'\" type=\"submit\" style=\"BORDER-RIGHT: 0px groove; BORDER-TOP: 0px groove; BACKGROUND-IMAGE: url($default->graphicsUrl/widgets/submit.gif); BORDER-LEFT: 0px groove; WIDTH: 45px; BORDER-BOTTOM: 0px groove; HEIGHT: 18; BACKGROUND-COLOR: white\" width=\"45\" height=\"20\" value=\" \" width=\"100\"></td>"; | |
| 73 | + $sToRender .= "<td align=right width=100%><input onmouseover=\"this.style.cursor='hand'\" type=\"image\" src=\"$default->graphicsUrl/widgets/submit.gif\"></td>"; | |
| 73 | 74 | $sToRender .= "<td width=\"10\"><img src=\"$default->graphicsUrl/widgets/back.gif\" onmouseover=\"this.style.cursor='hand'\" onclick=\"javascript: history.go(-1);\" ></td></tr>\n"; |
| 74 | 75 | $sToRender .= "<br><tr><td valign=\"top\" width=10><b>Subject</b></td><td colspan=2>\n"; |
| 75 | 76 | $sToRender .= "<input type=\"text\" style=\"width:100%\" name=\"NewCommentSubject\" id=\"NewCommentSubject\" value=\"$sSubject\"></td></tr>\n"; | ... | ... |
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionUI.inc
| ... | ... | @@ -107,19 +107,20 @@ function getViewComment($iNum,$oThread,$oComment,$oUser) { |
| 107 | 107 | $sToRender .= "<td align=right><a href=\"" . generateControllerLink("addComment", "fDocumentID=" . $oThread->getDocumentID() . "&fAddComment=1") . "\"><img src=\"$default->graphicsUrl/widgets/addcomment.gif\" border=\"0\" /></a>"; |
| 108 | 108 | $sToRender .= "<img src=\"$default->graphicsUrl/widgets/back.gif\" onmouseover=\"this.style.cursor='hand'\" onclick=\"javascript: history.go(-1);\" ></td>"; |
| 109 | 109 | $sToRender .= "</tr></table><br>\n"; |
| 110 | - $sToRender .= "<table border=\"0\" width=\"100%\" cellspacing=0><tr>\n"; | |
| 110 | + $sToRender .= "<table border=\"0\" width=\"100%\">\n"; | |
| 111 | + $sToRender .= "<tr><td></td>\n"; | |
| 111 | 112 | $sToRender .= "<td><b> Subject</b></td>\n"; |
| 112 | 113 | $sToRender .= "<td><b>Author</b></td>\n"; |
| 113 | 114 | $sToRender .= "<td><b>Date</b></td>\n"; |
| 114 | - $sToRender .= "</tr>\n"; | |
| 115 | + $sToRender .= "</tr>\n"; | |
| 115 | 116 | } |
| 116 | - | |
| 117 | - $sToRender .= "<tr><td style=\"background-color:$BGcolor\" width=450>$iNum. <a style=\"width:94%\" href=\"" . $_SERVER['PHP_SELF'] . "?fViewComment=1&iCommentID=" . $oComment->getID() . "&iDocumentID=" . $oThread->getDocumentID() . "\" title=\"" . $oComment->getSubject() . "\">" . substr($oComment->getSubject(),0,$iSubjectChars ) . $dotdot . "</a></td>\n"; | |
| 117 | + | |
| 118 | + $sToRender .= "<tr><td>$iNum </td><td style=\"background-color:$BGcolor\" width=450><a style=\"width:94%\" href=\"" . $_SERVER['PHP_SELF'] . "?fViewComment=1&iCommentID=" . $oComment->getID() . "&iDocumentID=" . $oThread->getDocumentID() . "\" title=\"" . $oComment->getSubject() . "\">" . substr($oComment->getSubject(),0,$iSubjectChars ) . $dotdot . "</a></td>\n"; | |
| 118 | 119 | $sToRender .= "<td style=\"background-color:$UserBGcolor\" width=\"100\" title=\"$oUser->getUserName()\">" . substr($oUser->getUserName(),0,10) . $Userdotdot . "</td>\n"; |
| 119 | 120 | $sToRender .= "<td style=\"background-color:$BGcolor\" width=\"70\">" . $oComment->getDate() . "<td></tr>\n"; |
| 120 | 121 | |
| 121 | 122 | // If this is the last subject line then close the table |
| 122 | - if ($iNum == $iNumMax) { $sToRender .= "</table>\n\n";} | |
| 123 | + if ($iNum == ($oThread->getNumberOfReplies())) { $sToRender .= "\n</table>\n\n";} | |
| 123 | 124 | return $sToRender; |
| 124 | 125 | } |
| 125 | 126 | |
| ... | ... | @@ -140,8 +141,9 @@ function getCommentBody($oComment, $iDocumentID, $oUser) { |
| 140 | 141 | |
| 141 | 142 | $sToRender .= "<br><table width=100% border=0><tr ><td colspan=2><b>Author: </b>" . $oUser->getUserName() . "</td>\n"; |
| 142 | 143 | $sToRender .= "<td align=right>\n"; |
| 143 | - $sToRender .= "<input onmouseover=\"this.style.cursor='hand'\" type=\"submit\" style=\"BORDER-RIGHT: 0px groove; BORDER-TOP: 0px groove; BACKGROUND-IMAGE: url($default->graphicsUrl/widgets/reply.gif); BORDER-LEFT: 0px groove; WIDTH: 40px; BORDER-BOTTOM: 0px groove; HEIGHT: 18; BACKGROUND-COLOR: white\" height=\"20\" value=\" \" width=\"200\"></td>"; | |
| 144 | - $sToRender .= "<td width=30><img src=\"$default->graphicsUrl/widgets/back.gif\" onmouseover=\"this.style.cursor='hand'\" onclick=\"javascript: history.go(-1);\" ></td></tr>\n"; | |
| 144 | + //$sToRender .= "<input onmouseover=\"this.style.cursor='hand'\" type=\"submit\" style=\"BORDER-RIGHT: 0px groove; BORDER-TOP: 0px groove; BACKGROUND-IMAGE: url($default->graphicsUrl/widgets/reply.gif); BORDER-LEFT: 0px groove; WIDTH: 40px; BORDER-BOTTOM: 0px groove; HEIGHT: 18; BACKGROUND-COLOR: white\" height=\"20\" value=\" \" width=\"200\">"; | |
| 145 | + $sToRender .= "<input onmouseover=\"this.style.cursor='hand'\" type=\"image\" src=\"$default->graphicsUrl/widgets/reply.gif\">"; | |
| 146 | + $sToRender .= "</td><td width=30><img src=\"$default->graphicsUrl/widgets/back.gif\" onmouseover=\"this.style.cursor='hand'\" onclick=\"javascript: history.go(-1);\" ></td></tr>\n"; | |
| 145 | 147 | $sToRender .= "<tr><td width=\"1\" style=\"background-color:#F5F6EE;\" valign=\"top\"><b>Subject: </b></td><td width=405 style=\"background-color:#F5F6EE;\">"; |
| 146 | 148 | $sToRender .= "<input name=\"CommentSubject\" id=\"CommentSubject\" style=\"background-color:#F5F6EE;BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-RIGHT-WIDTH: 0px;width=80%\" readOnly value=\"" . $oComment->getSubject() . "\">"; |
| 147 | 149 | $sToRender .= "</td><td colspan=2><b>Date: </b><font color=\"#056DCE\">" . $oComment->getDate() . "</font> </td></tr><tr><td colspan=4 valign=top>"; | ... | ... |