From: <bra...@us...> - 2010-06-01 19:42:13
|
Revision: 3138 http://archive-access.svn.sourceforge.net/archive-access/?rev=3138&view=rev Author: bradtofel Date: 2010-06-01 19:42:04 +0000 (Tue, 01 Jun 2010) Log Message: ----------- New template system uses a single wrapper, which includes content from a delegate .jsp Added Paths: ----------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-wrapper.jsp Added: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-wrapper.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-wrapper.jsp (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-wrapper.jsp 2010-06-01 19:42:04 UTC (rev 3138) @@ -0,0 +1,139 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<%@ page import="org.archive.wayback.core.WaybackRequest" %> +<%@ page import="org.archive.wayback.core.UIResults" %> +<%@ page import="org.archive.wayback.util.StringFormatter" %> +<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> +<% +UIResults results = UIResults.getGeneric(request); +WaybackRequest wbRequest = results.getWbRequest(); +StringFormatter fmt = wbRequest.getFormatter(); +String contentJsp = results.getContentJsp(); +String staticPrefix = results.getStaticPrefix(); +String queryPrefix = results.getQueryPrefix(); +String replayPrefix = results.getReplayPrefix(); + +%><html xmlns="http://www.w3.org/1999/xhtml"> + + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8" /> + + <link rel="stylesheet" type="text/css" + href="<%= staticPrefix %>css/styles.css" + src="<%= staticPrefix %>css/styles.css" /> + <title><%= fmt.format("UIGlobal.pageTitle") %></title> + <base target="_top" /> + </head> + + <body bgcolor="white" alink="red" vlink="#0000aa" link="blue" + style="font-family: Arial; font-size: 10pt"> + + <table width="100%" border="0" cellpadding="0" cellspacing="5"> + + <tr> + + <!-- WAYBACK LOGO --> + + <td width="26%"><a href="<%= staticPrefix %>"><img src="<%= staticPrefix %>images/wayback_logo_tr.gif" width="153" height="54" border="0"></a></td> + + <!-- /WAYBACK LOGO --> + + <!-- COLLECTION-EMPTYLOGO --> + + <td width="70%" align="right"></td> + + <!-- /COLLECTION-EMPTY LOGO --> + + </tr> + + <!-- GREEN BANNER --> + <tr> + <td colspan="2" height="30" align="center" class="mainSecHeadW"> + <table width="100%" border="0" cellspacing="0" cellpadding="0"> + + <tr class="mainBColor"> + <td colspan="2"> + <table border="0" width="80%" align="center"> + + + <!-- URL FORM --> + <form action="<%= queryPrefix %>query" method="get"> + + + <tr> + <td nowrap align="center"><img src="<%= staticPrefix %>images/shim.gif" width="1" height="20"> + + <b class="mainBodyW"> + <font size="2" color="#FFFFFF" face="Arial, Helvetica, sans-serif"> + <%= fmt.format("UIGlobal.enterWebAddress") %> + </font> + <input type="hidden" name="<%= WaybackRequest.REQUEST_TYPE %>" value="<%= WaybackRequest.REQUEST_CAPTURE_QUERY %>"> + <input type="text" name="<%= WaybackRequest.REQUEST_URL %>" value="http://" size="24" maxlength="256"> + + </b> + <select name="<%= WaybackRequest.REQUEST_DATE %>" size="1"> + <option value="" selected><%= fmt.format("UIGlobal.selectYearAll") %></option> + <option>2008</option> + <option>2007</option> + <option>2006</option> + <option>2005</option> + <option>2004</option> + <option>2003</option> + <option>2002</option> + <option>2001</option> + <option>2000</option> + <option>1999</option> + <option>1998</option> + <option>1997</option> + <option>1996</option> + </select> + + <input type="submit" name="Submit" value="<%= fmt.format("UIGlobal.urlSearchButton") %>" align="absMiddle"> + + <a href="<%= staticPrefix %>advanced_search.jsp" style="color:white;font-size:11px"> + <%= fmt.format("UIGlobal.advancedSearchLink") %> + </a> + + </td> + </tr> + + + </form> + <!-- /URL FORM --> + + </table> + </td> + </tr> + </table> + </td> + </tr> + <!-- /GREEN BANNER --> + </table> +<!-- PAGE CONTENTS --> +<% +if((contentJsp == null) || (contentJsp.length() == 0)) { + %> + No content here... + <% +} else { + %> + <jsp:include page="<%= contentJsp %>" flush="true"></jsp:include> + <% +} +%> +<!-- /PAGE CONTENTS --> + <div align="center"> + <hr noshade size="1" align="center" /> + + <p> + <a href="<%= staticPrefix %>"> + <%= fmt.format("UIGlobal.homeLink") %> + </a> | + <a href="<%= staticPrefix %>help.jsp"> + <%= fmt.format("UIGlobal.helpLink") %> + </a> + </p> + </div> + </body> +</html> + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |