From: <bra...@us...> - 2008-07-21 23:22:34
|
Revision: 2467 http://archive-access.svn.sourceforge.net/archive-access/?rev=2467&view=rev Author: bradtofel Date: 2008-07-21 23:22:43 +0000 (Mon, 21 Jul 2008) Log Message: ----------- MOVE: webapp/template -> webapp/WEB-INF/template Added Paths: ----------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/CookieJS.jsp trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-footer.jsp trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-header.jsp Removed Paths: ------------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-footer.jsp trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-header.jsp Copied: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/CookieJS.jsp (from rev 2455, trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/CookieJS.jsp) =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/CookieJS.jsp (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/CookieJS.jsp 2008-07-21 23:22:43 UTC (rev 2467) @@ -0,0 +1,18 @@ +<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> +<%@ page import="org.archive.wayback.core.WaybackRequest" %> +<script type="text/javascript"> +function SetCookie(cookieName,cookieValue,nDays) { + var today = new Date(); + var expire = new Date(); + if (nDays==null || nDays==0) nDays=1; + expire.setTime(today.getTime() + 86400000*nDays); + document.cookie = cookieName+"="+escape(cookieValue) + + ";expires="+expire.toGMTString() + ";path=/"; +} +function SetAnchorDate(date) { + SetCookie("<%= WaybackRequest.REQUEST_ANCHOR_DATE %>",date,365); +} +function SetAnchorWindow(maxSeconds) { + SetCookie("<%= WaybackRequest.REQUEST_ANCHOR_WINDOW %>",maxSeconds,365); +} +</script> \ No newline at end of file Deleted: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-footer.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-footer.jsp 2008-04-11 03:51:10 UTC (rev 2227) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-footer.jsp 2008-07-21 23:22:43 UTC (rev 2467) @@ -1,24 +0,0 @@ -<%@ page import="org.archive.wayback.core.UIResults" %> -<%@ page import="org.archive.wayback.util.StringFormatter" %> -<% -UIResults results = UIResults.getFromRequest(request); -StringFormatter fmt = results.getFormatter(); -String contextRoot = results.getContextPrefix(); -String serverRoot = results.getServerPrefix(); -%> -<!-- FOOTER --> - <div align="center"> - <hr noshade size="1" align="center"> - - <p> - <a href="<%= contextRoot %>"> - <%= fmt.format("UIGlobal.homeLink") %> - </a> | - <a href="<%= contextRoot %>help.jsp"> - <%= fmt.format("UIGlobal.helpLink") %> - </a> - </p> - </div> - </body> -</html> -<!-- /FOOTER --> Copied: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-footer.jsp (from rev 2447, trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-footer.jsp) =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-footer.jsp (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-footer.jsp 2008-07-21 23:22:43 UTC (rev 2467) @@ -0,0 +1,25 @@ +<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> +<%@ page import="org.archive.wayback.core.UIResults" %> +<%@ page import="org.archive.wayback.util.StringFormatter" %> +<% +UIResults results = UIResults.getGeneric(request); +StringFormatter fmt = results.getWbRequest().getFormatter(); +String contextRoot = results.getWbRequest().getContextPrefix(); +String serverRoot = results.getWbRequest().getServerPrefix(); +%> +<!-- FOOTER --> + <div align="center"> + <hr noshade size="1" align="center"> + + <p> + <a href="<%= contextRoot %>"> + <%= fmt.format("UIGlobal.homeLink") %> + </a> | + <a href="<%= contextRoot %>help.jsp"> + <%= fmt.format("UIGlobal.helpLink") %> + </a> + </p> + </div> + </body> +</html> +<!-- /FOOTER --> Deleted: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-header.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp 2008-04-11 03:51:10 UTC (rev 2227) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-header.jsp 2008-07-21 23:22:43 UTC (rev 2467) @@ -1,108 +0,0 @@ -<!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.UIResults" %> -<%@ page import="org.archive.wayback.util.StringFormatter" %> -<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> -<% -UIResults results = UIResults.getFromRequest(request); -StringFormatter fmt = results.getFormatter(); -String contextRoot = results.getContextPrefix(); -String serverRoot = results.getServerPrefix(); -%> -<!-- HEADER --> -<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="<%= contextRoot %>css/styles.css" - src="<%= contextRoot %>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="<%= contextRoot %>"><img src="<%= contextRoot %>images/wayback_logo_sm.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="<%= contextRoot %>query" method="get"> - - - <tr> - <td nowrap align="center"><img src="<%= contextRoot %>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="type" value="urlquery"> - <input type="text" name="url" value="http://" size="24" maxlength="256"> - - </b> - <select name="date" size="1"> - <option value="" selected><%= fmt.format("UIGlobal.selectYearAll") %></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="<%= contextRoot %>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> -<!-- /HEADER --> Copied: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-header.jsp (from rev 2447, trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp) =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-header.jsp (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/WEB-INF/template/UI-header.jsp 2008-07-21 23:22:43 UTC (rev 2467) @@ -0,0 +1,111 @@ +<!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 contextRoot = wbRequest.getContextPrefix(); +String serverRoot = wbRequest.getServerPrefix(); +%> +<!-- HEADER --> +<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="<%= contextRoot %>css/styles.css" + src="<%= contextRoot %>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="<%= contextRoot %>"><img src="<%= contextRoot %>images/wayback_logo_sm.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="<%= contextRoot %>query" method="get"> + + + <tr> + <td nowrap align="center"><img src="<%= contextRoot %>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="<%= contextRoot %>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> +<!-- /HEADER --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |