Update of /cvsroot/easystruts/easystruts-website/web/templates/easystruts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv435/web/templates/easystruts
Added Files:
x_event.js .htaccess nexb-print.css x_core.js
search_highlight.js ViewTemplate.jsp nexb.css FindContent.jsp
Log Message:
Added new web site sources and data
--- NEW FILE: ViewTemplate.jsp ---
<!--
/* Copyright (c) 2003, 2004 nexB Inc. */
/* This code is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License version 2.1 as published by the Free Software Foundation; */
/* See <a href='http://www.nexb.com'>http://www.nexb.com</a> for more details */
-->
<%@ taglib prefix="wiki" uri="/WEB-INF/jspwiki.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><wiki:Variable var="applicationname" />: <wiki:PageName /></title>
<meta http-equiv="content-type" content="text/html; charset=<wiki:ContentEncoding />" />
<meta name="language" content="english, en">
<meta name="keywords" content="Struts, Easy Struts, Eclipse, open source, web development, java, jsp, software, nexB">
<meta name="description" content="EasyStruts is the premier Struts tooling for Eclipse">
<meta name="abstract" content="EasyStruts is the premier Struts tooling for Eclipse">
<meta name="copyright" content="©2003,2004 nexB Inc.">
<meta name="revisit-after" content="3 days">
<script src="templates/<wiki:TemplateDir />/search_highlight.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="templates/<wiki:TemplateDir/>/nexb.css" title="nexB web" />
<link rel="stylesheet" type="text/css" media="print" href="templates/<wiki:TemplateDir/>/nexb-print.css" title="nexB print" />
<script type="text/javascript" src="templates/<wiki:TemplateDir/>/x_core.js"></script>
<script type="text/javascript" src="templates/<wiki:TemplateDir/>/x_event.js"></script>
<script type="text/javascript">
function adjustLayout()
{
// Get natural heights
var cHeight = xHeight("bodyText");
var lHeight = xHeight("leftMenuBox");
var rHeight = xHeight("rightBox");
// Find the maximum height
var maxHeight = Math.max(cHeight, Math.max(lHeight, rHeight));
// Assign maximum height to all columns
xHeight("content", maxHeight);
xHeight("leftMenu", maxHeight);
xHeight("right", maxHeight);
// Show the footer
xShow("footer");
}
window.onload = function()
{
xAddEventListener(window, "resize", adjustLayout, false);
adjustLayout();
}
</script>
</head>
<body>
<!-- ###### Header ###### -->
<div class="header">
<div class="headerBanner">
<div class="headerSearch">
<wiki:InsertPage page="RightMenuBar" />
<form method="get"
action='<wiki:Variable var="baseURL"/>Search.jsp'
accept-charset="<wiki:ContentEncoding />">
<input type="text" class="searchText" name="query" maxlength="255" />
<input type="submit" class="searchButton" name="ok" value="Search" />
</form>
</div>
<div class="headerTitle">
<a href="/" ><img src="templates/<wiki:TemplateDir/>/images/easystruts-small-195x44r.png" width="190" height"44" alt="nexB. Open by Design."/></a>
</div>
</div>
<div class="menuBar">
<wiki:InsertPage page="MenuBar" />
</div>
</div>
<!-- ###### Content ###### -->
<div class="mainContent">
<!-- ###### Left Menu ###### -->
<div class="leftMenu">
<div class="leftMenuBox">
<wiki:InsertPage page="LeftMenu" />
<br /> <!-- address some display issues with Mozilla to avoid footer overlapp -->
</div>
</div>
<!-- ###### Right Highlight box ###### -->
<div class="right">
<div class="rightBox">
<!-- <wiki:InsertPage page="BodyRight" /> -->
</div>
</div>
<!-- ###### Body Text ###### -->
<div class="content">
<div class="bodyText">
<div class="breadcrumbsBar">
<p>Your trail : <wiki:Breadcrumbs maxpages="5" separator=" | "/></p>
</div>
<h1><wiki:PageName/></h1>
<span class="bodyTextContent">
<wiki:CheckRequestContext context="view">
<wiki:InsertPage />
</wiki:CheckRequestContext>
<wiki:CheckRequestContext context="find">
<wiki:Include page="FindContent.jsp" />
</wiki:CheckRequestContext>
<wiki:CheckRequestContext context="error">
<wiki:InsertPage page="ErrorMessage" />
</wiki:CheckRequestContext>
<br /> <!-- address some display issues with Mozilla to avoid footer overlapp -->
</span>
</div>
</div>
</div>
<!-- ###### Footer ###### -->
<div class="footer">
<div class="footerContent">
<div class="footerLeft">
<p>
<wiki:InsertPage page="LeftFooter" />
<br />Last modified: <wiki:PageDate/>
</p>
</div>
<div class="footerRight">
<p>
<wiki:InsertPage page="RightFooter" />
</p>
</div>
</div>
</div>
</body>
</html>
--- NEW FILE: x_event.js ---
// x_event.js
// X v3.15, Cross-Browser DHTML Library from Cross-Browser.com
// Copyright (c) 2002,2003,2004 Michael Foster (mi...@cr...)
// This library is distributed under the terms of the LGPL (gnu.org)
function xAddEventListener(e,eventType,eventListener,useCapture) {
if(!(e=xGetElementById(e))) return;
eventType=eventType.toLowerCase();
if((!xIE4Up && !xOp7) && e==window) {
if(eventType=='resize') { window.xPCW=xClientWidth(); window.xPCH=xClientHeight(); window.xREL=eventListener; xResizeEvent(); return; }
if(eventType=='scroll') { window.xPSL=xScrollLeft(); window.xPST=xScrollTop(); window.xSEL=eventListener; xScrollEvent(); return; }
}
var eh='e.on'+eventType+'=eventListener';
if(e.addEventListener) e.addEventListener(eventType,eventListener,useCapture);
else if(e.attachEvent) e.attachEvent('on'+eventType,eventListener);
else if(e.captureEvents) {
if(useCapture||(eventType.indexOf('mousemove')!=-1)) { e.captureEvents(eval('Event.'+eventType.toUpperCase())); }
eval(eh);
}
else eval(eh);
}
function xRemoveEventListener(e,eventType,eventListener,useCapture) {
if(!(e=xGetElementById(e))) return;
eventType=eventType.toLowerCase();
if((!xIE4Up && !xOp7) && e==window) {
if(eventType=='resize') { window.xREL=null; return; }
if(eventType=='scroll') { window.xSEL=null; return; }
}
var eh='e.on'+eventType+'=null';
if(e.removeEventListener) e.removeEventListener(eventType,eventListener,useCapture);
else if(e.detachEvent) e.detachEvent('on'+eventType,eventListener);
else if(e.releaseEvents) {
if(useCapture||(eventType.indexOf('mousemove')!=-1)) { e.releaseEvents(eval('Event.'+eventType.toUpperCase())); }
eval(eh);
}
else eval(eh);
}
function xEvent(evt) { // cross-browser event object prototype
this.type = '';
this.target = null;
this.pageX = 0;
this.pageY = 0;
this.offsetX = 0;
this.offsetY = 0;
this.keyCode = 0;
var e = evt ? evt : window.event;
if(!e) return;
if(e.type) this.type = e.type;
if(e.target) this.target = e.target;
else if(e.srcElement) this.target = e.srcElement;
if(xOp5or6) { this.pageX = e.clientX; this.pageY = e.clientY; }
else if(xDef(e.clientX,e.clientY)) { this.pageX = e.clientX + xScrollLeft(); this.pageY = e.clientY + xScrollTop(); }
if(xDef(e.offsetX,e.offsetY)) { this.offsetX = e.offsetX; this.offsetY = e.offsetY; }
else { this.offsetX = this.pageX - xPageX(this.target); this.offsetY = this.pageY - xPageY(this.target); }
if (e.keyCode) { this.keyCode = e.keyCode; } // for moz/fb, if keyCode==0 use which
else if (xDef(e.which)) { this.keyCode = e.which; }
}
function xResizeEvent() { // window resize event simulation
if (window.xREL) setTimeout('xResizeEvent()', 250);
var cw = xClientWidth(), ch = xClientHeight();
if (window.xPCW != cw || window.xPCH != ch) { window.xPCW = cw; window.xPCH = ch; if (window.xREL) window.xREL(); }
}
function xScrollEvent() { // window scroll event simulation
if (window.xSEL) setTimeout('xScrollEvent()', 250);
var sl = xScrollLeft(), st = xScrollTop();
if (window.xPSL != sl || window.xPST != st) { window.xPSL = sl; window.xPST = st; if (window.xSEL) window.xSEL(); }
}
// end x_event.js
--- NEW FILE: x_core.js ---
// x_core.js
// X v3.15.1, Cross-Browser DHTML Library from Cross-Browser.com
// Copyright (c) 2002,2003,2004 Michael Foster (mi...@cr...)
// This library is distributed under the terms of the LGPL (gnu.org)
// Variables:
var xVersion='3.15.1',xNN4=false,xOp7=false,xOp5or6=false,xIE4Up=false,xIE4=false,xIE5=false,xUA=navigator.userAgent.toLowerCase();
if(window.opera){
xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1);
if (!xOp7) xOp5or6=(xUA.indexOf('opera 5')!=-1 || xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 || xUA.indexOf('opera/6')!=-1);
}
else if (document.all) {
xIE4Up=xUA.indexOf('msie')!=-1 && parseInt(navigator.appVersion)>=4;
xIE4=xUA.indexOf('msie 4')!=-1;
xIE5=xUA.indexOf('msie 5')!=-1;
}
// Object:
function xGetElementById(e) {
if(typeof(e)!='string') return e;
if(document.getElementById) e=document.getElementById(e);
else if(document.all) e=document.all[e];
else e=null;
return e;
}
function xParent(e,bNode){
if (!(e=xGetElementById(e))) return null;
var p=null;
if (!bNode && xDef(e.offsetParent)) p=e.offsetParent;
else if (xDef(e.parentNode)) p=e.parentNode;
else if (xDef(e.parentElement)) p=e.parentElement;
return p;
}
function xDef() {
for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
return true;
}
function xStr(s) {
return typeof(s)=='string';
}
function xNum(n) {
return typeof(n)=='number';
}
// Appearance:
function xShow(e) {
if(!(e=xGetElementById(e))) return;
if(e.style && xDef(e.style.visibility)) e.style.visibility='visible';
}
function xHide(e) {
if(!(e=xGetElementById(e))) return;
if(e.style && xDef(e.style.visibility)) e.style.visibility='hidden';
}
function xZIndex(e,uZ) {
if(!(e=xGetElementById(e))) return 0;
if(e.style && xDef(e.style.zIndex)) {
if(xNum(uZ)) e.style.zIndex=uZ;
uZ=parseInt(e.style.zIndex);
}
return uZ;
}
function xColor(e,sColor) {
if(!(e=xGetElementById(e))) return '';
var c='';
if(e.style && xDef(e.style.color)) {
if(xStr(sColor)) e.style.color=sColor;
c=e.style.color;
}
return c;
}
function xBackground(e,sColor,sImage) {
if(!(e=xGetElementById(e))) return '';
var bg='';
if(e.style) {
if(xStr(sColor)) {
if(!xOp5or6) e.style.backgroundColor=sColor;
else e.style.background=sColor;
}
if(xStr(sImage)) e.style.backgroundImage=(sImage!='')? 'url('+sImage+')' : null;
if(!xOp5or6) bg=e.style.backgroundColor;
else bg=e.style.background;
}
return bg;
}
// Position:
function xMoveTo(e,iX,iY) {
xLeft(e,iX);
xTop(e,iY);
}
function xLeft(e,iX) {
if(!(e=xGetElementById(e))) return 0;
var css=xDef(e.style);
if (css && xStr(e.style.left)) {
if(xNum(iX)) e.style.left=iX+'px';
else {
iX=parseInt(e.style.left);
if(isNaN(iX)) iX=0;
}
}
else if(css && xDef(e.style.pixelLeft)) {
if(xNum(iX)) e.style.pixelLeft=iX;
else iX=e.style.pixelLeft;
}
return iX;
}
function xTop(e,iY) {
if(!(e=xGetElementById(e))) return 0;
var css=xDef(e.style);
if(css && xStr(e.style.top)) {
if(xNum(iY)) e.style.top=iY+'px';
else {
iY=parseInt(e.style.top);
if(isNaN(iY)) iY=0;
}
}
else if(css && xDef(e.style.pixelTop)) {
if(xNum(iY)) e.style.pixelTop=iY;
else iY=e.style.pixelTop;
}
return iY;
}
function xPageX(e) {
if (!(e=xGetElementById(e))) return 0;
var x = 0;
while (e) {
if (xDef(e.offsetLeft)) x += e.offsetLeft;
e = xDef(e.offsetParent) ? e.offsetParent : null;
}
return x;
}
function xPageY(e) {
if (!(e=xGetElementById(e))) return 0;
var y = 0;
while (e) {
if (xDef(e.offsetTop)) y += e.offsetTop;
e = xDef(e.offsetParent) ? e.offsetParent : null;
}
// if (xOp7) return y - document.body.offsetTop; // v3.14, temporary hack for opera bug 130324
return y;
}
function xOffsetLeft(e) {
if (!(e=xGetElementById(e))) return 0;
if (xDef(e.offsetLeft)) return e.offsetLeft;
else return 0;
}
function xOffsetTop(e) {
if (!(e=xGetElementById(e))) return 0;
if (xDef(e.offsetTop)) return e.offsetTop;
else return 0;
}
function xScrollLeft(e) {
var offset=0;
if (!(e=xGetElementById(e))) {
if(document.documentElement && document.documentElement.scrollLeft) offset=document.documentElement.scrollLeft;
else if(document.body && xDef(document.body.scrollLeft)) offset=document.body.scrollLeft;
}
else { if (xNum(e.scrollLeft)) offset = e.scrollLeft; }
return offset;
}
function xScrollTop(e) {
var offset=0;
if (!(e=xGetElementById(e))) {
if(document.documentElement && document.documentElement.scrollTop) offset=document.documentElement.scrollTop;
else if(document.body && xDef(document.body.scrollTop)) offset=document.body.scrollTop;
}
else { if (xNum(e.scrollTop)) offset = e.scrollTop; }
return offset;
}
function xHasPoint(ele, iLeft, iTop, iClpT, iClpR, iClpB, iClpL) {
if (!xNum(iClpT)){iClpT=iClpR=iClpB=iClpL=0;}
else if (!xNum(iClpR)){iClpR=iClpB=iClpL=iClpT;}
else if (!xNum(iClpB)){iClpL=iClpR; iClpB=iClpT;}
var thisX = xPageX(ele), thisY = xPageY(ele);
return (iLeft >= thisX + iClpL && iLeft <= thisX + xWidth(ele) - iClpR &&
iTop >=thisY + iClpT && iTop <= thisY + xHeight(ele) - iClpB );
}
// Size:
function xResizeTo(e,uW,uH) {
xWidth(e,uW);
xHeight(e,uH);
}
function xWidth(e,uW) {
if(!(e=xGetElementById(e))) return 0;
if (xNum(uW)) {
if (uW<0) uW = 0;
else uW=Math.round(uW);
}
else uW=0;
var css=xDef(e.style);
if(css && xDef(e.offsetWidth) && xStr(e.style.width)) {
if(uW) xSetCW(e, uW);
uW=e.offsetWidth;
}
else if(css && xDef(e.style.pixelWidth)) {
if(uW) e.style.pixelWidth=uW;
uW=e.style.pixelWidth;
}
return uW;
}
function xHeight(e,uH) {
if(!(e=xGetElementById(e))) return 0;
if (xNum(uH)) {
if (uH<0) uH = 0;
else uH=Math.round(uH);
}
else uH=0;
var css=xDef(e.style);
if(css && xDef(e.offsetHeight) && xStr(e.style.height)) {
if(uH) xSetCH(e, uH);
uH=e.offsetHeight;
}
else if(css && xDef(e.style.pixelHeight)) {
if(uH) e.style.pixelHeight=uH;
uH=e.style.pixelHeight;
}
return uH;
}
function xGetCS(ele,sP){return parseInt(document.defaultView.getComputedStyle(ele,'').getPropertyValue(sP));}
function xSetCW(ele,uW){
var pl=0,pr=0,bl=0,br=0;
if(xDef(document.defaultView) && xDef(document.defaultView.getComputedStyle)){
pl=xGetCS(ele,'padding-left');
pr=xGetCS(ele,'padding-right');
bl=xGetCS(ele,'border-left-width');
br=xGetCS(ele,'border-right-width');
}
else if(xDef(ele.currentStyle,document.compatMode)){
if(document.compatMode=='CSS1Compat'){
pl=parseInt(ele.currentStyle.paddingLeft);
pr=parseInt(ele.currentStyle.paddingRight);
bl=parseInt(ele.currentStyle.borderLeftWidth);
br=parseInt(ele.currentStyle.borderRightWidth);
}
}
else if(xDef(ele.offsetWidth,ele.style.width)){ // ?
ele.style.width=uW+'px';
pl=ele.offsetWidth-uW;
}
if(isNaN(pl)) pl=0; if(isNaN(pr)) pr=0; if(isNaN(bl)) bl=0; if(isNaN(br)) br=0;
var cssW=uW-(pl+pr+bl+br);
if(isNaN(cssW)||cssW<0) return;
else ele.style.width=cssW+'px';
}
function xSetCH(ele,uH){
var pt=0,pb=0,bt=0,bb=0;
if(xDef(document.defaultView) && xDef(document.defaultView.getComputedStyle)){
pt=xGetCS(ele,'padding-top');
pb=xGetCS(ele,'padding-bottom');
bt=xGetCS(ele,'border-top-width');
bb=xGetCS(ele,'border-bottom-width');
}
else if(xDef(ele.currentStyle,document.compatMode)){
if(document.compatMode=='CSS1Compat'){
pt=parseInt(ele.currentStyle.paddingTop);
pb=parseInt(ele.currentStyle.paddingBottom);
bt=parseInt(ele.currentStyle.borderTopWidth);
bb=parseInt(ele.currentStyle.borderBottomWidth);
}
}
else if(xDef(ele.offsetHeight,ele.style.height)){ // ?
ele.style.height=uH+'px';
pt=ele.offsetHeight-uH;
}
if(isNaN(pt)) pt=0; if(isNaN(pb)) pb=0; if(isNaN(bt)) bt=0; if(isNaN(bb)) bb=0;
var cssH=uH-(pt+pb+bt+bb);
if(isNaN(cssH)||cssH<0) return;
else ele.style.height=cssH+'px';
}
function xClip(e,iTop,iRight,iBottom,iLeft) {
if(!(e=xGetElementById(e))) return;
if(e.style) {
if (xNum(iLeft)) e.style.clip='rect('+iTop+'px '+iRight+'px '+iBottom+'px '+iLeft+'px)';
else e.style.clip='rect(0 '+parseInt(e.style.width)+'px '+parseInt(e.style.height)+'px 0)';
}
}
// Window:
function xClientWidth() {
var w=0;
if(xOp5or6) w=window.innerWidth;
else if(!window.opera && document.documentElement && document.documentElement.clientWidth) // v3.12
w=document.documentElement.clientWidth;
else if(document.body && document.body.clientWidth)
w=document.body.clientWidth;
else if(xDef(window.innerWidth,window.innerHeight,document.height)) {
w=window.innerWidth;
if(document.height>window.innerHeight) w-=16;
}
return w;
}
function xClientHeight() {
var h=0;
if(xOp5or6) h=window.innerHeight;
else if(!window.opera && document.documentElement && document.documentElement.clientHeight) // v3.12
h=document.documentElement.clientHeight;
else if(document.body && document.body.clientHeight)
h=document.body.clientHeight;
else if(xDef(window.innerWidth,window.innerHeight,document.width)) {
h=window.innerHeight;
if(document.width>window.innerWidth) h-=16;
}
return h;
}
// end x_core.js
--- NEW FILE: search_highlight.js ---
/* http://www.kryogenix.org/code/browser/searchhi/ */
/* Modified 20021006 to fix query string parsing and add case insensitivity */
/* Modified 20030227 by sg...@hi... to skip words with "-" and cut %2B (+) preceding pages */
function highlightWord(node,word)
{
// Iterate into this nodes childNodes
if (node.hasChildNodes)
{
var hi_cn;
for (hi_cn=0;hi_cn<node.childNodes.length;hi_cn++)
{
highlightWord(node.childNodes[hi_cn],word);
}
}
// And do this node itself
if (node.nodeType == 3)
{ // text node
tempNodeVal = node.nodeValue.toLowerCase();
tempWordVal = word.toLowerCase();
if (tempNodeVal.indexOf(tempWordVal) != -1)
{
pn = node.parentNode;
if (pn.className != "searchword")
{
// word has not already been highlighted!
nv = node.nodeValue;
ni = tempNodeVal.indexOf(tempWordVal);
// Create a load of replacement nodes
before = document.createTextNode(nv.substr(0,ni));
docWordVal = nv.substr(ni,word.length);
// alert( "Found: " + docWordVal );
after = document.createTextNode(nv.substr(ni+word.length));
hiwordtext = document.createTextNode(docWordVal);
hiword = document.createElement("span");
hiword.className = "searchword";
hiword.appendChild(hiwordtext);
pn.insertBefore(before,node);
pn.insertBefore(hiword,node);
pn.insertBefore(after,node);
pn.removeChild(node);
}
}
}
}
function googleSearchHighlight()
{
if (!document.createElement) return;
ref = document.referrer; //or URL for highlighting in place
if (ref.indexOf('?') == -1) return;
qs = ref.substr(ref.indexOf('?')+1);
qsa = qs.split('&');
for (i=0;i<qsa.length;i++)
{
qsip = qsa[i].split('=');
if (qsip.length == 1) continue;
// q= for Google, p= for Yahoo
// query= for JSPWiki
if (qsip[0] == 'query' || qsip[0] == 'q')
{
words = qsip[1].replace(/%2B/g,'');
words = words.replace(/-\S+\s/g,'');
words = unescape(words.replace(/\+/g,' ')).split(/\s+/);
for (w=0;w<words.length;w++) {
highlightWord(document.getElementsByTagName("body")[0],words[w]);
}
}
}
}
window.onload = googleSearchHighlight;
--- NEW FILE: .htaccess ---
Options -Indexes
--- NEW FILE: nexb.css ---
/* Copyright (c) 2003, 2004 nexB Inc. */
/* This code is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License version 2.1 as published by the Free Software Foundation; */
/* See <a href='http://www.nexb.com'>http://www.nexb.com</a> for more details */
/*
Changes from the orange style sheet:
ffc039 -> 99CCCC;
ff8800 -> 3399CC
4b70aa -> 006699
*/
/* ###### Global ###### */
body {
color: black;
background-color: white;
font-family: Arial, Helvetica, sans-serif;
width:99.7%;
margin:0;
padding:0;
border-right: 1px solid #515D65;
}
img {
border: none;
}
code {
font-family: "lucida console", "courier new", courier, monospace;
}
table {
border-collapse: collapse;
empty-cells: show;
margin: 1em;
color: #515D65;
background-color: white;
border: 1px solid #515D65;
font-size: small;
}
td {
border: 1px solid #515D65;
padding:1ex;
}
ul, li{
margin-bottom:0.1em;
margin-top:0.1em;
}
input.searchButton {
color: white;
background-color: #3399CC;
font-size:small;
border: 1px solid white;
vertical-align: middle;
cursor: hand; /* for IE */
margin:0;
padding:0;
margin-left: 1em;
}
input.searchText {
font-size:small;
border: 1px solid black;
vertical-align: middle;
padding-top:2px;
padding-bottom:2px;
}
/* ###### Headers ###### */
.header {
color: #4B70AA;
background-color: white;
}
.headerBanner {
background-image: url(images/headerBackground-blue620x1.gif);
background-repeat: repeat-y;
background-attachment: scroll;
background-position: right;
border:none;
border-bottom: 1px solid white;
padding:0.5em 1em 0.5em;
}
.headerTitle {
vertical-align: baseline;
}
.headerTitle h1{
display: inline;
margin:0;
margin-left:0.5em;
padding:0;
font-weight: normal;
font-size: 300%;
}
.headerTitle a {
text-decoration: none;
border:0;
}
.headerSearch {
font-size:73%;
float: right;
padding-top: 1.5em;
}
.headerSearch form {
display: inline;
margin:0;
padding:0;
}
.headerSearch input.searchButton {
color: white;
background-color: #3399CC;
font-size:small;
border: 1px solid white;
vertical-align: middle;
cursor: hand; /* for IE */
margin:0;
padding:0;
margin-left: 1em;
}
.headerSearch input.searchText {
font-size:small;
border: 1px solid black;
vertical-align: middle;
padding-top:2px;
padding-bottom:2px;
}
.headerSearch a {
color: black;
text-decoration: none;
padding:0;
padding-left:1em;
padding-right:1em;
}
.headerSearch a:hover {
text-decoration: underline;
}
/* ### Menu Bar ###### */
.menuBar {
font-size: 73%;
color: white;
background-color: #4B70AA;
border-top-width: 1px;
border-top-style: solid;
border-top-color: black;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: white;
padding-top:0.25em;
padding-bottom:0.25em;
}
.menuBar p {
padding:0;
padding-top:0.25em;
padding-bottom:0.25em;
margin:0;
}
.menuBar a {
color: white;
text-decoration: none;
padding:0;
padding-left:1em;
padding-right:1em;
}
.menuBar a:hover {
text-decoration: underline;
color: #99CCCC;
}
/* ###### Left Menu ###### */
.leftMenuBox {
background-image: url(images/leftMenuTopshadow-blue.gif);
background-repeat: repeat-x;
background-color: #99CCCC;
width: 11em;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #515D65;
text-align: left;
padding:0;
padding-top:4px;
padding-bottom:1em;
float: left;
clear: left;
}
.leftMenuBox h2 {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: white;
}
.leftMenuBox h2 a,
.leftMenuBox h2 a:hover,
.leftMenuBox h2 a:visited {
border: 0;
}
.leftMenuBox h2,
.leftMenuBox h2 a,
.leftMenuBox h2 a:hover,
.leftMenuBox h2 a:visited {
color: white;
background-color: #3399CC;
margin:0;
margin-bottom: 0.1em;
padding:0;
padding-top:0.04em;
padding-bottom:0.09em;
padding-left: 0.6em;
text-align: left;
text-transform: uppercase;
font-size: 90%;
}
.leftMenuBox h2 a:hover{
color: #515D65;
}
.leftMenuBox a {
text-decoration: none;
font-weight: bold;
display: block;
color: #515D65;
font-size: 75%;
border: 1px solid #99CCCC;
border-right: 0;
margin-left: 1.8em;
margin-bottom: 0.15em;
margin-top: 0.15em;
padding-bottom: 0.25em;
padding-top: 0.25em;
padding-left: 0.3em;
}
.leftMenuBox a:hover {
color: #3399CC;
background-color: white;
border: 1px solid #515D65;
border-right: 0;
text-decoration: none;
font-weight: bold;
}
.leftMenuBox p {
padding:0;
padding-top:0.15em;
padding-bottom:0.15em;
margin:0;
margin-left: 1em;
}
/* ###### Main Content box ###### */
.mainContent {
background-color: #99CCCC;
}
/* ### bread crumbs ###### */
.breadcrumbsBar {
background-color: white;
color: #515D65;
padding: 0;
font-size: x-small;
}
.breadcrumbsBar a {
text-decoration: none;
color:#515D65;
}
.breadcrumbsBar a:hover {
text-decoration: underline;
}
/* ###### Body Text ###### */
.bodyTextContent {
font-size:small;
}
.bodyText p , .bodyTextContent p {
padding: 0.2em;
margin:0.2em;
}
.bodyText .searchword , .bodyTextContent .searchWord {
background-color: #99CCCC;
color: #515D65;
}
.bodyText {
background-image: url(images/contentTopshadow.gif);
background-repeat: repeat-x;
background-color: white;
color: #515D65;
margin: 0;
margin-left: 11em;
padding:0;
padding-left: 1em;
padding-top: 1em;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #515D65;
}
.bodyText h1 {
font-weight: normal;
font-size: x-large;
padding: 0;
margin: 0;
}
/* ###### Optional right side Text Box ###### */
.rightBox {
display: inline;
float: right;
clear: right;
border-left-color: #515D65;
border-left-style:solid;
border-left-width: 1px;
margin:0
}
/* ###### Footer ###### */
.footer {
color: #515D65;
clear: both;
padding:0;
padding-top:1em;
padding-bottom:1.5em;
margin:0;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #515D65;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #515D65;
font-size: x-small;
}
.footer a{
color: #515D65;
text-align: right;
text-decoration: underline;
}
.footer a:hover {
text-align: right;
color: black;
text-decoration: underline;
}
.footerLeft {
float: left;
text-align: left;
}
.footerRight {
text-align: right;
}
.footerLeft p , .footerRight p{
margin:0;
padding:0;
}
.footerLeft p {
margin-left:1em;
}
.footerRight p{
margin-right:1em;
}
--- NEW FILE: FindContent.jsp ---
<!--
/* Copyright (c) 2003, 2004 nexB Inc. */
/* This code is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License version 2.1 as published by the Free Software Foundation; */
/* See <a href='http://www.nexb.com'>http://www.nexb.com</a> for more details */
-->
<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
<%@ page import="com.ecyrd.jspwiki.*" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Collection" %>
<%
Collection list = (Collection)pageContext.getAttribute( "searchresults",
PageContext.REQUEST_SCOPE );
String query = (String)pageContext.getAttribute( "query",
PageContext.REQUEST_SCOPE );
if( query == null ) query = "";
%>
<form action="<wiki:Variable var="baseURL"/>Search.jsp"
accept-charset="ISO-8859-1,UTF-8">
<p>
<input type="text" class="searchText" name="query" size="40" value="<%=query%>" />
<input type="submit" class="searchButton" name="ok" value="Search" />
</p>
</form>
<% if( list != null )
{
%>
<p>Searched EasyStruts for <q><%=query%></q></p>
<% if( list.size() > 0 ) { %>
<p>Results 1-<%=(list.size()<20)?list.size():20%> out of <%=list.size()%></p>
<ol>
<wiki:SearchResultIterator list="<%=list%>" id="searchref" maxItems="20">
<li>
<wiki:LinkTo><wiki:PageName/></wiki:LinkTo>
</li>
</wiki:SearchResultIterator>
</ol>
<% } else { %>
<p>No pages were found containing <strong><q><%=query%></q></strong>.</p>
<% } %>
<%
}
%>
--- NEW FILE: nexb-print.css ---
/*
* CSS intended specificly for print media
* e.g: <link rel=stylesheet type="text/css" media="print" href="templates/default/jspwiki_print.css">
* This stylesheet mainly hides all the webspecific stuff.
* Shows content in a print friendly way.
* Author PhilipVanBogaert
*/
/* Webpage stuff */
.headerSearch,.menuBar,.breadcrumbsBar,.leftMenuBox {
display:none;
}
body {
font-size:9pt;
}
a {
text-decoration:none;
}
|