3 * This is a common dao with basic CRUD operations and is not limited to any
4 * persistent layer implementation
6 * Copyright (C) 2008 Imran M Yousuf (imyousuf@smartitengineering.com)
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 3 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 Created on : Apr 6, 2009, 11:18:46 AM
25 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
29 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
30 <style type=
"text/css">
32 text-decoration: none
;
38 margin: 0px 0px 0px 0px;
39 padding: 0px 0px 0px 0px;
43 <script type=
"text/javascript">
44 function setSizeToFull(frame
)
46 var height
= frame
.contentWindow
.document
.body
.scrollHeight
;
47 if(frame
.contentWindow
.document
.getElementById('currentChanges').style
.display
== "none") {
50 frame
.style
.height
= height
+"px";
53 <script type=
"text/javascript">
54 function registerEvents() {
55 var currentfr
= document
.getElementById('changesFrame').contentWindow
.document
.getElementById('currentChangesFrame').contentWindow
;
56 if (currentfr
.addEventListener
) {
57 currentfr
.addEventListener("resize", readjustIframe
, false)
59 else if (currentfr
.attachEvent
){
60 currentfr
.detachEvent("onresize", readjustIframe
);
61 currentfr
.attachEvent("onresize", readjustIframe
);
63 var changesLink
= document
.getElementById('changesFrame').contentWindow
.document
.getElementById('currentChangesLink');
64 if (changesLink
.addEventListener
) {
65 changesLink
.addEventListener("click", readjustIframe
, false)
67 else if (changesLink
.attachEvent
){
68 changesLink
.detachEvent("onclick", readjustIframe
);
69 changesLink
.attachEvent("onclick", readjustIframe
);
73 function readjustIframe(loadevt
) {
74 setSizeToFull(document
.getElementById('changesFrame'));
78 <body onload=
"registerEvents()">
79 <h1>${project.name} - ${project.version}
</h1>
82 <h2>Announcements
</h2>
84 <iframe src=
"./changes/index.html" id=
"changesFrame" style=
"height: 60px;"></iframe>
85 <a href=
"./site/index.html"><h2>Code Site
</h2></a>