You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2005/10/21 23:46:28 UTC

svn commit: r327589 [63/72] - in /incubator/roller/branches/roller_1.x: ./ contrib/ contrib/lib/ contrib/plugins/ contrib/plugins/src/ contrib/plugins/src/org/ contrib/plugins/src/org/roller/ contrib/plugins/src/org/roller/presentation/ contrib/plugins...

Propchange: incubator/roller/branches/roller_1.x/web/images/valid-html401.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/roller/branches/roller_1.x/web/images/valid-rss.png
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/images/valid-rss.png?rev=327589&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/roller/branches/roller_1.x/web/images/valid-rss.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/roller/branches/roller_1.x/web/images/valid-xhtml10.png
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/images/valid-xhtml10.png?rev=327589&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/roller/branches/roller_1.x/web/images/valid-xhtml10.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/roller/branches/roller_1.x/web/images/vcss.png
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/images/vcss.png?rev=327589&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/roller/branches/roller_1.x/web/images/vcss.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/roller/branches/roller_1.x/web/index.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/index.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/index.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/index.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,2 @@
+<%@ page language="java" %>	
+<jsp:forward page="main.do?rmik=tabbedmenu.main&rmk=tabbedmenu.main" />

Added: incubator/roller/branches/roller_1.x/web/keepalive.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/keepalive.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/keepalive.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/keepalive.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,51 @@
+<%@ page session="false"
+    import="org.roller.pojos.WebsiteData,
+            org.roller.presentation.RollerRequest,
+            org.roller.util.DateUtil,
+            java.text.DateFormat,
+            java.util.Date,
+            java.util.Locale,
+            java.util.TimeZone"
+%><style>
+.details {
+   font-size: 12px;
+   color: grey;
+   text-align: right;
+}
+</style><%
+String msg = "You are not logged in.";
+HttpSession session = request.getSession(false);
+if (session != null)
+{
+    RollerRequest rreq = RollerRequest.getRollerRequest(request);
+    if (rreq != null)
+    {
+        try
+        {
+            WebsiteData website = rreq.getWebsite();
+            if (website != null)
+            {
+                Date creationTime = new Date( session.getCreationTime() );
+                Date accessedTime = new Date( session.getLastAccessedTime() );
+                DateFormat sdf = DateFormat.getDateTimeInstance(
+                    DateFormat.MEDIUM, DateFormat.FULL, website.getLocaleInstance() );
+                String creationStr = sdf.format( creationTime );
+                String accessedStr = sdf.format( accessedTime );
+                msg = "You have been logged in since " + creationStr + ".  ";
+                msg += "Last access was at " + accessedStr + ".";
+            }
+        }
+        catch (Exception e)
+        {
+            msg = "You are currently logged in.";
+        }
+    }
+}
+%><span class="details"><%= msg %></span>
+<script>
+    setTimeout("reload()",900000); // 15 minutes
+    function reload()
+    {
+        self.location = "keepalive.jsp";
+    }
+</script>
\ No newline at end of file

Added: incubator/roller/branches/roller_1.x/web/local-banner-planet.jspf
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/local-banner-planet.jspf?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/local-banner-planet.jspf (added)
+++ incubator/roller/branches/roller_1.x/web/local-banner-planet.jspf Fri Oct 21 14:27:36 2005
@@ -0,0 +1,10 @@
+
+        <br />
+        <center><img src="images/roller-logo.png" /></center>
+
+        <h1>
+           <c:out value="${data.title}" />
+        </h1>
+        <p class="websiteDescription">
+           <c:out value="${data.description}" />
+        </p>

Added: incubator/roller/branches/roller_1.x/web/local-banner.jspf
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/local-banner.jspf?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/local-banner.jspf (added)
+++ incubator/roller/branches/roller_1.x/web/local-banner.jspf Fri Oct 21 14:27:36 2005
@@ -0,0 +1,10 @@
+
+        <br />
+        <center><img src="images/roller-logo.png" /></center>
+
+        <h1>
+           <%= RollerRuntimeConfig.getProperty("site.name") %>
+        </h1>
+        <p class="websiteDescription">
+           <%= RollerRuntimeConfig.getProperty("site.description") %>
+        </p>

Added: incubator/roller/branches/roller_1.x/web/login-redirect.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/login-redirect.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/login-redirect.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/login-redirect.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,13 @@
+<%@ page language="java" errorPage="/error.jsp" contentType="text/html; charset=UTF-8" %><%@ 
+taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ 
+taglib uri="http://www.rollerweblogger.org/tags" prefix="roller" %>
+<% request.setAttribute("secure_login", 
+    org.roller.config.RollerConfig.getProperty("securelogin.enabled")); %>
+<c:if test='${secure_login == "true"}' >
+  <roller:secure mode="unsecured" />
+</c:if>
+<%
+String dest = "editor/weblog.do?method=create&rmk=tabbedmenu.weblog&rmik=tabbedmenu.weblog.newEntry";
+response.sendRedirect(dest);
+%>
+

Added: incubator/roller/branches/roller_1.x/web/login.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/login.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/login.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/login.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,85 @@
+<%@ include file="/taglibs.jsp" %>
+<% request.setAttribute("secure_login", 
+    org.roller.config.RollerConfig.getProperty("securelogin.enabled")); %>
+<c:if test='${secure_login == "true"}' >
+  <roller:secure mode="secured" />
+</c:if>
+
+<%@ include file="/theme/header.jsp" %>
+
+<div id="loginTable">
+
+<form method="post" 
+      id="loginForm" 
+	  action="<c:url value="/auth/"/>"
+	  onsubmit="saveUsername(this)">
+<table width="100%">
+    <tr>
+        <td colspan="2">
+            <logic:present parameter="error">
+                <div class="error">
+                    <bean:message key="error.password.mismatch"/>
+                </div>
+            </logic:present>
+        </td>
+    </tr>
+    <tr>
+        <th><fmt:message key="loginPage.userName" />:</th>
+        <td><input type="text" name="j_username" id="j_username" size="25" /></td>
+    </tr>
+    <tr>
+        <th><fmt:message key="loginPage.password" />:</th>
+        <td>
+            <input type="password" name="j_password" id="j_password" size="20" />
+            <!-- for Resin -->
+            <input type="hidden" name="j_uri" id="j_uri" value="" />
+        </td>
+    </tr>
+    <c:if test="${rememberMeEnabled}">
+    <tr>
+        <td></td>
+        <td>
+            <input type="checkbox" name="rememberMe" id="rememberMe" />
+            <label for="rememberMe">
+                <fmt:message key="loginPage.rememberMe" />
+            </label>
+        </td>
+    </tr>
+    </c:if>
+    <tr>
+        <td></td>
+        <td>
+            <input type="submit" name="login" id="login" value="<fmt:message key="loginPage.login" />" />
+        	<input type="reset" name="reset" id="reset" value="<fmt:message key="loginPage.reset" />" 
+                onclick="document.getElementById('j_username').focus()" />
+        </td>
+    </tr>
+</table>
+</form>
+
+<script type="text/javascript">
+<!--
+
+if (document.getElementById) {
+    if (getCookie("username") != null) {
+        if (document.getElementById) {
+            document.getElementById("j_username").value = getCookie("username");
+            document.getElementById("j_password").focus();
+        }
+    } else {
+        document.getElementById("j_username").focus();
+    }
+}
+
+function saveUsername(theForm) {
+    var expires = new Date();
+    expires.setTime(expires.getTime() + 24 * 30 * 60 * 60 * 1000); // sets it for approx 30 days.
+    setCookie("username",theForm.j_username.value,expires);
+}
+//-->
+</script>
+
+</div>
+
+<%@ include file="/theme/footer.jsp" %>
+

Added: incubator/roller/branches/roller_1.x/web/loginerror.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/loginerror.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/loginerror.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/loginerror.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,22 @@
+<%@ page import="org.roller.presentation.RollerSession" %>
+<%
+String dest = "login.jsp?error=true";
+
+// This server-side redirect may work on some servers.
+// Comment it out on OC4J. 
+response.sendRedirect(dest);
+%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <title></title>
+<meta http-equiv="refresh" 
+	content="0;url=<%= dest %>">
+</head>
+<body bgcolor="#ffffff">
+</body>
+</html>
+
+
+

Added: incubator/roller/branches/roller_1.x/web/logout-redirect.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/logout-redirect.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/logout-redirect.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/logout-redirect.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,6 @@
+
+<%
+request.getSession().invalidate();
+response.sendRedirect("index.jsp");
+%>
+

Added: incubator/roller/branches/roller_1.x/web/main.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/main.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/main.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/main.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,149 @@
+<%@ 
+page import="org.roller.presentation.MainPageAction" %><%@ 
+page import="java.util.Locale" %><%@ 
+include file="/taglibs.jsp" %><%@ 
+include file="/theme/header.jsp" %>
+<table>
+<tr><%
+request.setAttribute("pinnedPosts",
+	((MainPageAction.MainPageData)request.getAttribute("data")).getWeblogEntriesPinnedToMain(5));
+request.setAttribute("recentPosts",
+	((MainPageAction.MainPageData)request.getAttribute("data")).getRecentWeblogEntries(45));
+request.setAttribute("popularWebsites",
+	((MainPageAction.MainPageData)request.getAttribute("data")).getPopularWebsites(65));
+%>
+<td width="70%" valign="top">
+
+    <div class="bannerBox">
+    <%@ include file="local-banner.jspf" %>
+    </div>
+
+  <c:if test="${!empty pinnedPosts}">
+
+    <div class="entryTitleBox">
+       <fmt:message key="mainPage.pinnedEntries" />
+    </div>
+
+    <c:forEach var="post" items="${pinnedPosts}">
+        <div class="entryBoxPinned">
+
+            <a href='<c:out value="${baseURL}" /><c:out value="${post.permaLink}" />' class="entryTitle">
+                <str:truncateNicely upper="90" >
+                   <c:out value="${post.displayTitle}" />
+                </str:truncateNicely></a>
+            </a><br />
+
+            <span class="entryDetails">
+
+                <a href='<c:out value="${baseURL}" />/page/<c:out value="${post.website.user.userName}" />' class="entryDetails">
+                <str:truncateNicely upper="50" >
+                   <c:out value="${post.website.name}" />
+                </str:truncateNicely></a> |
+                <c:out value="${post.category.path}" /> |
+                <fmt:formatDate value="${post.pubTime}" type="both" dateStyle="medium" timeStyle="medium" />
+                <c:if test="${!empty post.link}">
+                   | <a href='<c:out value="${post.link}" />' class="entryDetails"><fmt:message key="mainPage.link" /></a>
+                </c:if>
+                <br />
+
+            </span>
+
+            <roller:ApplyPlugins name="post" scope="page" maxLength="250" skipFlag="true" />
+
+         </div>
+    </c:forEach>
+    <br />
+  </c:if>
+
+    <div class="entryTitleBox">
+       <a href='<c:url value="/rss"/>' title='<fmt:message key="mainPage.rss.tip" />'>
+          <img src='<c:url value="/images/rssbadge.gif"/>' align="right"  border="0"
+             alt='<fmt:message key="mainPage.rss.tip" />' /></a>
+       <fmt:message key="mainPage.recentEntries" />
+    </div>
+
+    <c:forEach var="post" items="${recentPosts}">
+        <div class="entryBox">
+
+            <a href='<c:out value="${baseURL}" /><c:out value="${post.permaLink}" />' class="entryTitle">
+                <str:truncateNicely upper="90" >
+                   <c:out value="${post.displayTitle}" />
+                </str:truncateNicely></a>
+            </a><br />
+
+            <span class="entryDetails">
+
+                <a href='<c:out value="${baseURL}" />/page/<c:out value="${post.website.user.userName}" />' class="entryDetails">
+                <str:truncateNicely upper="50" >
+                   <c:out value="${post.website.name}" />
+                </str:truncateNicely></a> |
+                <c:out value="${post.category.path}" /> |
+                <fmt:formatDate value="${post.pubTime}" type="both" dateStyle="medium" timeStyle="medium" />
+                <c:if test="${!empty post.link}">
+                   | <a href='<c:out value="${post.link}" />' class="entryDetails"><fmt:message key="mainPage.link" /></a>
+                </c:if>
+                <br />
+
+            </span>
+
+            <roller:ApplyPlugins name="post" scope="page" stripHtml="true" maxLength="60" skipFlag="true" />
+
+         </div>
+    </c:forEach>
+
+</td>
+<td width="30%" valign="top">
+
+    <div class="entryTitleBox"><fmt:message key="mainPage.searchWeblogs" /></div>
+
+    <div class="entryBox">
+        <form id="searchForm" method="get"
+            action="<c:out value="${baseURL}" />/search"
+            style="margin: 0; padding: 0" onsubmit="return validateSearch(this)">
+            <input type="text" id="q" name="q" size="20"
+                maxlength="255" value="<c:out value="${param.q}" />" />
+            <input type="submit" value="<fmt:message key="mainPage.searchButton" />" />
+        </form>
+        <script type="text/javascript">
+            function validateSearch(form) {
+                if (form.q.value == "") {
+                    alert("Please enter a search term to continue.");
+                    form.q.focus();
+                    return false;
+                }
+                return true;
+            }
+    </script>
+    </div>
+
+    <div class="entryTitleBox"><fmt:message key="mainPage.hotWeblogs" /></div>
+
+    <div class="entryBox">
+      <span class="hotBlogs">
+      <c:if test="${not empty popularWebsites}"> <%-- to prevent invalid XHTML --%>
+        <ul style="list-style-type:none; padding-left:2px; margin: 0px">
+        <c:forEach var="site" items="${popularWebsites}">
+           <li style="list-style-type:none; padding-left:2px; margin: 0px">
+               <a href='<c:out value="${baseURL}" />/page/<c:out value="${site.userName}" />'
+                  title='<c:out value="${site.userName}" />' >
+                  <str:truncateNicely lower="45" 
+				  	upper="45" ><c:out 
+					value="${site.websiteName}" /></str:truncateNicely></a>:
+               <c:out value="${site.hits}" /> <fmt:message key="mainPage.hits" />
+           </li>
+        </c:forEach>
+        </ul>
+      </c:if>
+      </span>
+    </div>
+
+</td>
+
+</tr>
+</table>
+
+<br />
+
+<%@ include file="/theme/footer.jsp" %>
+
+

Added: incubator/roller/branches/roller_1.x/web/planet.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/planet.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/planet.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/planet.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,172 @@
+<% try { %>
+<%@ 
+page import="org.roller.presentation.planet.PlanetAction" %><%@ 
+page import="java.util.Locale" %><%@ 
+include file="/taglibs.jsp" %><%@ 
+include file="/theme/header.jsp" %>
+
+<table>
+<tr>
+<%
+request.setAttribute("aggregation", ((PlanetAction.PlanetPageData)
+   request.getAttribute("data")).getAggregation(50));
+request.setAttribute("topBlogs", ((PlanetAction.PlanetPageData)
+   request.getAttribute("data")).getTopSubscriptions(50));
+request.setAttribute("popularWebsites",((PlanetAction.PlanetPageData)
+   request.getAttribute("data")).getPopularWebsites(65));
+   
+// custom groups, only shown if they exist      
+request.setAttribute("featuredGroup1",((PlanetAction.PlanetPageData)
+   request.getAttribute("data")).getGroup("featuredGroup1"));
+request.setAttribute("featuredGroup1_entries",((PlanetAction.PlanetPageData)
+   request.getAttribute("data")).getAggregation("featuredGroup1",20));
+
+request.setAttribute("featuredGroup2",((PlanetAction.PlanetPageData)
+   request.getAttribute("data")).getGroup("featuredGroup2"));
+request.setAttribute("featuredGroup2_entries",((PlanetAction.PlanetPageData)
+   request.getAttribute("data")).getAggregation("featuredGroup2",20));
+%>
+<td width="70%" valign="top">
+
+    <div class="bannerBox">
+    <%@ include file="local-banner-planet.jspf" %>
+    </div>
+    
+    <div class="entryTitleBox">
+       <a href='<c:url value="/planetrss"/>' 
+          title='<fmt:message key="mainPage.rss.tip" />'>
+          <img src='<c:url value="/images/rssbadge.gif"/>' align="right"  border="0"
+             alt='<fmt:message key="mainPage.rss.tip" />' /></a>
+       <fmt:message key="mainPage.recentEntries" />
+    </div>
+
+    <c:forEach var="post" items="${aggregation}">
+        
+        <div class="entryBox">
+            <a href='<c:out value="${post.permalink}" />' class="entryTitle">
+               <str:truncateNicely upper="90" >
+                  <str:removeXml>
+                     <c:out value="${post.title}" />
+                  </str:removeXml>
+               </str:truncateNicely></a>
+            </a><br />
+
+            <span class="entryDetails">
+                <a href='<c:out value="${post.subscription.siteUrl}" />' 
+                    class="entryDetails">
+                   <str:removeXml>
+                      <c:out value="${post.subscription.title}" />
+                   </str:removeXml>
+                </a>               
+                <fmt:formatDate value="${post.published}" type="both" 
+                    dateStyle="medium" timeStyle="medium" />
+                <br />
+            </span>
+            
+            <str:truncateNicely upper="250" >
+               <str:removeXml>
+                  <c:out value="${post.content}" escapeXml="false" />
+               </str:removeXml>
+            </str:truncateNicely>
+        </div>
+        
+    </c:forEach>
+
+</td>
+<td width="30%" valign="top">
+
+    <div class="entryTitleBox"><fmt:message key="planet.rankings" /></div>
+
+    <div class="entryBox">
+      <span class="hotBlogs">
+      <c:if test="${not empty topBlogs}"> <%-- to prevent invalid XHTML --%>
+        <ul style="list-style-type:none; padding-left:2px; margin: 0px">
+            <c:forEach var="blog" items="${topBlogs}">
+               <li style="list-style-type:none; padding-left:2px; margin: 0px">
+                   <a href='<c:out value="${blog.siteUrl}" />'
+                      title='<c:out value="${blog.title}" />' >
+                       <str:left count="120" >
+                          <str:removeXml>
+                              <c:out value="${blog.title}" />
+                          </str:removeXml>
+                       </str:left>... 
+                   </a>:
+                   <c:out value="${blog.inboundlinks}" />
+                   <fmt:message key="planet.links" />
+               </li>
+            </c:forEach>
+        </ul>
+      </c:if>
+      </span>
+    </div>
+
+    <div class="entryTitleBox"><fmt:message key="planet.hotBlogs" /></div>
+
+    <div class="entryBox">
+      <span class="hotBlogs">
+      <c:if test="${not empty popularWebsites}"> <%-- to prevent invalid XHTML --%>
+        <ul style="list-style-type:none; padding-left:2px; margin: 0px">
+        <c:forEach var="site" items="${popularWebsites}">
+           <li style="list-style-type:none; padding-left:2px; margin: 0px">
+               <a href='<c:out value="${baseURL}" />/page/<c:out value="${site.userName}" />'
+                  title='<c:out value="${site.userName}" />' >
+                  <str:truncateNicely lower="45" upper="45" >
+                     <c:out value="${site.websiteName}" />
+                  </str:truncateNicely></a>:
+               <c:out value="${site.hits}" /> 
+               <fmt:message key="mainPage.hits" />
+           </li>
+        </c:forEach>
+        </ul>
+      </c:if>
+      </span>
+    </div>
+
+    <c:if test="${not empty featuredGroup1_entries && not empty featuredGroup1}"> 
+    <div class="entryTitleBox"><c:out value="${featuredGroup1.title}" /></div>
+    <div class="entryBox">
+      <span class="hotBlogs">
+        <ul style="list-style-type:none; padding-left:2px; margin: 0px">
+            <c:forEach var="post" items="${featuredGroup1_entries}">
+               <li style="list-style-type:none; padding-left:2px; margin: 0px">
+                   <a href='<c:out value="${post.permalink}" />' >
+	                   <str:left count="50" >
+	                      <c:out value="${post.title}" />
+	                   </str:left>...
+                   </a>
+               </li>
+            </c:forEach>
+        </ul>
+      </span>
+    </div>
+    </c:if>
+
+    <c:if test="${not empty featuredGroup2_entries && not empty featuredGroup2}"> 
+    <div class="entryTitleBox"><c:out value="${featuredGroup2.title}" /></div>
+    <div class="entryBox">
+      <span class="hotBlogs">
+        <ul style="list-style-type:none; padding-left:2px; margin: 0px">
+            <c:forEach var="post" items="${featuredGroup2_entries}">
+               <li style="list-style-type:none; padding-left:2px; margin: 0px">
+                   <a href='<c:out value="${post.permalink}" />' >
+	                   <str:left count="50" >
+	                      <c:out value="${post.title}" />
+	                   </str:left>...
+	               </a>
+               </li>
+            </c:forEach>
+        </ul>
+      </span>
+    </div>
+    </c:if>
+
+</td>
+
+</tr>
+</table>
+
+<br />
+
+<%@ include file="/theme/footer.jsp" %>
+<% } catch (Exception e) {e.printStackTrace();} %>
+

Added: incubator/roller/branches/roller_1.x/web/planet/PlanetConfig.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/planet/PlanetConfig.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/planet/PlanetConfig.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/planet/PlanetConfig.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,108 @@
+<%@ include file="/taglibs.jsp" %><%@ include file="/theme/header.jsp" %>
+<script type="text/javascript">
+<!--
+function refreshEntries()
+{
+    document.planetConfigForm.method.value = "refreshEntries";
+    document.planetConfigForm.submit();
+}
+function syncWebsites()
+{
+    document.planetConfigForm.method.value = "syncWebsites";
+    document.planetConfigForm.submit();
+}
+// -->
+</script>
+
+<html:form action="/admin/planetConfig" method="post">
+    <html:hidden property="method" value="saveConfig" />
+    <html:hidden property="id" />
+    
+    <h3><fmt:message key="planetConfig.pageTitle" /></h3>
+    <p><i><fmt:message key="planetConfig.prompt" /></i></p>
+
+    <div class="formrow">
+        <label for="title" class="formrow" />
+           <fmt:message key="planetConfig.title" />
+        </label>
+        <html:text property="title" size="40" maxlength="255" />
+        <img src="../images/help.jpeg" alt="help" 
+           title='<fmt:message key="planetConfig.tip.title" />' />
+    </div>
+    
+    <div class="formrow">
+        <label for="description" class="formrow" />
+           <fmt:message key="planetConfig.description" />
+        </label>
+        <html:text property="description" size="40" maxlength="255" />
+        <img src="../images/help.jpeg" alt="help" 
+           title='<fmt:message key="planetConfig.tip.description" />' />
+    </div>
+    
+    <div class="formrow">
+        <label for="siteUrl" class="formrow" />
+           <fmt:message key="planetConfig.siteUrl" />
+        </label>
+        <html:text property="siteUrl" size="40" maxlength="255" />
+        <img src="../images/help.jpeg" alt="help" 
+           title='<fmt:message key="planetConfig.tip.siteUrl" />' />
+    </div>
+    
+    <div class="formrow">
+        <label for="adminEmail" class="formrow" />
+           <fmt:message key="planetConfig.adminEmail" />
+        </label>
+        <html:text property="adminEmail" size="40" maxlength="255" />
+        <img src="../images/help.jpeg" alt="help" 
+           title='<fmt:message key="planetConfig.tip.adminEmail" />' />
+    </div>
+    
+    <div class="formrow">
+        <label for="cacheDir" class="formrow" />
+           <fmt:message key="planetConfig.cacheDir" />
+        </label>
+        <html:text property="cacheDir" size="40" maxlength="255" />
+        <img src="../images/help.jpeg" alt="help" 
+           title='<fmt:message key="planetConfig.tip.cacheDir" />' />
+    </div>
+    
+    <div class="formrow">
+        <label for="proxyHost" class="formrow" />
+            <fmt:message key="planetConfig.proxyHost" />
+        </label>
+        <html:text property="proxyHost" size="40" maxlength="255" />
+        <img src="../images/help.jpeg" alt="help" 
+           title='<fmt:message key="planetConfig.tip.proxyHost" />' />
+    </div>
+    
+    <div class="formrow">
+        <label for="proxyPort" class="formrow" />
+            <fmt:message key="planetConfig.proxyPort" />
+        </label>
+        <html:text property="proxyPort" size="40" maxlength="255" />
+        <img src="../images/help.jpeg" alt="help" 
+           title='<fmt:message key="planetConfig.tip.proxyPort" />' />
+    </div>
+    
+    <input type="submit" value='<fmt:message key="planetConfig.button.post" />' />
+    
+    <br />      
+    <br />      
+    <h3><fmt:message key="planetConfig.title.control" /></h3>
+    <p><i><fmt:message key="planetConfig.prompt.control" /></i></p>
+    
+    <input type="button" name="refresh"
+       value='<fmt:message key="planetConfig.button.refreshEntries" />'
+       onclick="refreshEntries()" />  
+
+    <input type="button" name="sync"
+       value='<fmt:message key="planetConfig.button.syncWebsites" />'
+       onclick="syncWebsites()" />  
+
+</html:form>
+
+
+<%@ include file="/theme/footer.jsp" %>
+
+
+

Added: incubator/roller/branches/roller_1.x/web/planet/PlanetGroups.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/planet/PlanetGroups.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/planet/PlanetGroups.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/planet/PlanetGroups.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,127 @@
+<%@ include file="/taglibs.jsp" %><%@ include file="/theme/header.jsp" %>
+<script type="text/javascript">
+<!--
+function cancelEditing()
+{
+    document.planetGroupForm.method.value = "cancelEditing";
+    document.planetGroupForm.submit();
+}
+function deleteGroup()
+{
+    document.planetGroupForm.method.value = "deleteGroup";
+    document.planetGroupForm.submit();
+}
+// -->
+</script>
+<c:if test="${!(model.unconfigured)}" >
+
+    <h2><fmt:message key="planetGroups.pageTitle" /></h2>
+    <c:if test="${empty planetSubscriptionForm.id}" >
+        <p><i><fmt:message key="planetGroups.prompt.add" /></i></p>
+    </c:if>
+    <c:if test="${!empty planetSubscriptionForm.id}" >
+        <p><i><fmt:message key="planetGroups.prompt.edit" /></i></p>
+    </c:if>
+    
+    <html:form action="/admin/planetGroups" method="post">
+        <html:hidden property="method" value="saveGroup" />
+        <html:hidden property="id" />
+        
+        <div class="formrow">
+            <label for="title" class="formrow" />
+                <fmt:message key="planetGroups.title" /></label>
+            <html:text property="title" size="40" maxlength="255" />
+            <img src="../images/help.jpeg" alt="help" 
+                title='<fmt:message key="planetGroups.tip.title" />' />
+        </div>
+        
+        <div class="formrow">
+            <label for="handle" class="formrow" />
+                <fmt:message key="planetGroups.handle" /></label>
+            <html:text property="handle" size="40" maxlength="255" />
+            <img src="../images/help.jpeg" alt="help" 
+                title='<fmt:message key="planetGroups.tip.handle" />' />
+        </div>
+        
+        <p />
+        <div class="formrow">
+            <label class="formrow" />&nbsp;</label>
+            <input type="submit" 
+                value='<fmt:message key="planetGroups.button.save" />' />
+            &nbsp;
+            <input type="button" 
+                value='<fmt:message key="planetGroups.button.cancel" />' 
+                onclick="cancelEditing()"/>
+            <c:if test="${!empty planetGroupForm.id}" >
+                &nbsp;&nbsp;
+                <input type="button" 
+                   value='<fmt:message key="planetGroups.button.delete" />' 
+                   onclick="deleteGroup()" />
+            </c:if>
+        </div>
+
+    </html:form>
+    <br />
+    
+    <h2><fmt:message key="planetGroups.existingTitle" /></h2>
+    <p><i><fmt:message key="planetGroups.existingPrompt" /></i></p>
+    
+    <table class="rollertable">
+        <tr class="rHeaderTr">
+           <th class="rollertable" width="30%">
+               <fmt:message key="planetGroups.column.title" />
+           </th>
+           <th class="rollertable" width="50%">
+               <fmt:message key="planetGroups.column.handle" />
+           </th>
+           <th class="rollertable" width="10%">
+               <fmt:message key="planetGroups.column.edit" />
+           </th>
+           <th class="rollertable" width="10%">
+               <fmt:message key="planetGroups.column.subscriptions" />
+           </th>
+        </tr>
+        <c:forEach var="group" items="${model.groups}" >
+            <roller:row oddStyleClass="rollertable_odd" evenStyleClass="rollertable_even">
+            
+                <td class="rollertable">
+                       <c:out value="${group.title}" />
+                </td>
+                
+                <td class="rollertable">
+                       <c:out value="${group.handle}" />
+                </td>
+                
+                <td class="rollertable">
+                    <roller:link page="/admin/planetGroups.do">
+                        <roller:linkparam 
+                            id="method" value="getGroups" />                   
+                        <roller:linkparam 
+                            id="groupHandle" name="group" property="handle" />                   
+                        <img src='<c:url value="/images/Edit16.png"/>' border="0" alt="icon" 
+                            title="<fmt:message key='planetGroups.edit.tip' />" />
+                    </roller:link>
+                </td>       
+                                        
+                <td class="rollertable">
+                    <roller:link page="/admin/planetSubscriptions.do">
+                        <roller:linkparam 
+                            id="method" value="getSubscriptions" />                   
+                        <roller:linkparam 
+                            id="groupHandle" name="group" property="handle" />                   
+                        <img src='<c:url value="/images/Edit16.png"/>' border="0" alt="icon" 
+                            title="<fmt:message key='planetGroups.subscriptions.tip' />" />
+                    </roller:link>
+                </td>       
+                                        
+            </roller:row>
+       </c:forEach>
+    </table>
+</c:if>
+<c:if test="${model.unconfigured}" >
+    <fmt:message key="planetGroups.unconfigured" />
+</c:if>
+
+<%@ include file="/theme/footer.jsp" %>
+
+

Added: incubator/roller/branches/roller_1.x/web/planet/PlanetSubscriptions.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/planet/PlanetSubscriptions.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/planet/PlanetSubscriptions.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/planet/PlanetSubscriptions.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,142 @@
+<%@ include file="/taglibs.jsp" %><%@ include file="/theme/header.jsp" %>
+<script type="text/javascript">
+<!--
+function cancelEditing()
+{
+    document.planetSubscriptionFormEx.method.value = "cancelEditing";
+    document.planetSubscriptionFormEx.submit();
+}
+function deleteSubscription()
+{
+    document.planetSubscriptionFormEx.method.value = "deleteSubscription";
+    document.planetSubscriptionFormEx.submit();
+}
+// -->
+</script>
+<c:if test="${!(model.unconfigured)}" >
+
+    <h2>
+    <fmt:message key="planetSubscriptions.pageTitle" />
+        <c:if test='${planetSubscriptionFormEx.groupHandle != "external"}' >
+           &nbsp;[group: <c:out value="${planetSubscriptionFormEx.groupHandle}" />]
+        </c:if>
+    </h2>
+       
+    <c:if test="${empty planetSubscriptionFormEx.id}" >
+        <p><i><fmt:message key="planetSubscriptions.prompt.add" /></i></p>
+    </c:if>
+    <c:if test="${!empty planetSubscriptionFormEx.id}" >
+        <p><i><fmt:message key="planetSubscriptions.prompt.edit" /></i></p>
+    </c:if>
+    
+    <html:form action="/admin/planetSubscriptions" method="post">
+        <html:hidden property="method" value="saveSubscription" />
+        <html:hidden property="id" />
+        <html:hidden property="groupHandle" />
+        <html:hidden property="inboundlinks" />
+        <html:hidden property="inboundblogs" />
+        
+        <div class="formrow">
+            <label for="title" class="formrow" />
+                <fmt:message key="planetSubscription.title" /></label>
+            <html:text property="title" size="40" maxlength="255" />
+            <img src="../images/help.jpeg" alt="help" 
+                title='<fmt:message key="planetSubscription.tip.title" />' />
+        </div>
+        
+        <div class="formrow">
+            <label for="feedUrl" class="formrow" />
+                <fmt:message key="planetSubscription.feedUrl" /></label>
+            <html:text property="feedUrl" size="40" maxlength="255" />
+            <img src="../images/help.jpeg" alt="help" 
+                title='<fmt:message key="planetSubscription.tip.feedUrl" />' />
+        </div>
+        
+        <div class="formrow">
+            <label for="siteUrl" class="formrow" />
+                <fmt:message key="planetSubscription.siteUrl" /></label>
+            <html:text property="siteUrl" size="40" maxlength="255" />
+            <img src="../images/help.jpeg" alt="help" 
+                title='<fmt:message key="planetSubscription.tip.siteUrl" />' />
+        </div>
+
+        <p />
+        <div class="formrow">
+            <label class="formrow" />&nbsp;</label>
+            <input type="submit" 
+                value='<fmt:message key="planetSubscriptions.button.save" />' />
+            &nbsp;
+            <input type="button" 
+                value='<fmt:message key="planetSubscriptions.button.cancel" />' 
+                onclick="cancelEditing()"/>
+            <c:if test="${!empty planetSubscriptionFormEx.id}" >
+                &nbsp;&nbsp;
+                <input type="button" 
+                   value='<fmt:message key="planetSubscriptions.button.delete" />' 
+                   onclick="deleteSubscription()" />
+            </c:if>
+        </div>
+
+        <br />
+
+        <h2>
+            <fmt:message key="planetSubscriptions.existingTitle" />
+            <c:if test='${planetSubscriptionFormEx.groupHandle != "external"}' >
+               &nbsp;[group: <c:out value="${planetSubscriptionFormEx.groupHandle}" />]
+            </c:if>
+        </h2>
+        <p><i><fmt:message key="planetSubscriptions.existingPrompt" /></i></p>
+
+        <table class="rollertable">
+            <tr class="rHeaderTr">
+               <th class="rollertable" width="30%">
+                   <fmt:message key="planetSubscriptions.column.title" />
+               </th>
+               <th class="rollertable" width="60%">
+                   <fmt:message key="planetSubscriptions.column.feedUrl" />
+               </th>
+               <th class="rollertable" width="10%">
+                   <fmt:message key="planetSubscriptions.column.edit" />
+               </th>
+            </tr>
+            <c:forEach var="subscription" items="${model.subscriptions}" >
+                <roller:row oddStyleClass="rollertable_odd" evenStyleClass="rollertable_even">
+
+                    <td class="rollertable">
+                           <c:out value="${subscription.title}" />
+                    </td>
+
+                    <td class="rollertable">
+                        <str:left count="100" >
+                           <c:out value="${subscription.feedUrl}" />
+                        </str:left>
+                    </td>
+
+                    <td class="rollertable">
+                        <roller:link page="/admin/planetSubscriptions.do">
+                            <roller:linkparam 
+                                id="method" value="getSubscriptions" />                   
+                            <roller:linkparam 
+                                id="groupHandle" 
+                                name="planetSubscriptionFormEx" 
+                                property="groupHandle" />                   
+                            <roller:linkparam 
+                                id="feedUrl" name="subscription" property="feedUrl" />                   
+                            <img src='<c:url value="/images/Edit16.png"/>' border="0" alt="icon" 
+                                title="<fmt:message key='planetSubscription.edit.tip' />" />
+                        </roller:link>
+                    </td>       
+
+                </roller:row>
+           </c:forEach>
+        </table>
+    
+    </html:form>
+
+    
+</c:if>
+<c:if test="${model.unconfigured}" >
+    <fmt:message key="planetSubscriptions.unconfigured" />
+</c:if>
+
+<%@ include file="/theme/footer.jsp" %>

Added: incubator/roller/branches/roller_1.x/web/planet/local-banner.jspf
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/planet/local-banner.jspf?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/planet/local-banner.jspf (added)
+++ incubator/roller/branches/roller_1.x/web/planet/local-banner.jspf Fri Oct 21 14:27:36 2005
@@ -0,0 +1,8 @@
+
+        <br />
+        <center><img src="images/roller-logo.png" /></center>
+        <h1>
+           Roller Blog Aggregator
+        </h1>
+        <p class="websiteDescription">
+        </p>

Added: incubator/roller/branches/roller_1.x/web/robots.txt
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/robots.txt?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/robots.txt (added)
+++ incubator/roller/branches/roller_1.x/web/robots.txt Fri Oct 21 14:27:36 2005
@@ -0,0 +1,10 @@
+User-agent: *
+Disallow: /images
+Disallow: /language
+Disallow: /resources
+Disallow: /theme
+Disallow: /trackback
+Disallow: /login-redirect.jsp
+Disallow: /comment.do
+Disallow: /main.do
+Disallow: /user.do
\ No newline at end of file

Added: incubator/roller/branches/roller_1.x/web/taglibs.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/taglibs.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/taglibs.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/taglibs.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,21 @@
+<%@ page language="java" errorPage="/error.jsp" contentType="text/html; charset=UTF-8" %><%@ 
+taglib uri="http://java.sun.com/jstl/core"       prefix="c" %><%@ 
+taglib uri="http://java.sun.com/jstl/fmt"        prefix="fmt" %><%@ 
+taglib uri="http://struts.apache.org/tags-bean"  prefix="bean" %><%@ 
+taglib uri="http://struts.apache.org/tags-html"  prefix="html" %><%@ 
+taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %><%@ 
+taglib uri="http://jakarta.apache.org/taglibs/string-1.0.1" prefix="str" %><%@ 
+taglib uri="http://www.rollerweblogger.org/tags" prefix="roller" %><%@ 
+page import="org.roller.model.Roller" %><%@ 
+page import="org.roller.pojos.UserData" %><%@ 
+page import="org.roller.pojos.RollerConfigData" %><%@ 
+page import="org.roller.presentation.RollerContext" %><%@ 
+page import="org.roller.presentation.RollerRequest" %><%@ 
+page import="org.roller.config.RollerRuntimeConfig" %><%@ 
+page import="org.roller.config.RollerConfig" %><%@ 
+page import="org.roller.presentation.LanguageUtil" %><%@ 
+page import="javax.servlet.jsp.jstl.core.Config" %><%   
+// fmt:setLocale doesn't accept an expression, hence this hack
+Config.set(pageContext, Config.FMT_LOCALE, LanguageUtil.getViewLocale(request), pageContext.PAGE_SCOPE); 
+%><fmt:setBundle basename="ApplicationResources" /><%-- 
+Set all pages that include this page to use XHTML --%><html:xhtml />
\ No newline at end of file

Added: incubator/roller/branches/roller_1.x/web/tags/calendar.js
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/tags/calendar.js?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/tags/calendar.js (added)
+++ incubator/roller/branches/roller_1.x/web/tags/calendar.js Fri Oct 21 14:27:36 2005
@@ -0,0 +1,97 @@
+// ===================================================================
+// Author: Matt Kruse <ma...@mattkruse.com>
+// WWW: http://www.mattkruse.com/
+//
+// NOTICE: You may use this code for any purpose, commercial or
+// private, without any further permission from the author. You may
+// remove this notice from your final code if you wish, however it is
+// appreciated by the author if at least my web site address is kept.
+//
+// You may *NOT* re-distribute this code in any way except through its
+// use. That means, you can include it in your product, or your web
+// site, or any other form where the code is actually being used. You
+// may not put the plain javascript up on your site for download or
+// include it in your javascript libraries for download. 
+// If you wish to share this code with others, please just point them
+// to the URL instead.
+// Please DO NOT link directly to my .js files from your site. Copy
+// the files to your server and use them there. Thank you.
+// ===================================================================
+
+/* SOURCE FILE: date.js */
+var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');var DAY_NAMES=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+function LZ(x){return(x<0||x>9?"":"0")+x}
+function isDate(val,format){var date=getDateFromFormat(val,format);if(date==0){return false;}return true;}
+function compareDates(date1,dateformat1,date2,dateformat2){var d1=getDateFromFormat(date1,dateformat1);var d2=getDateFromFormat(date2,dateformat2);if(d1==0 || d2==0){return -1;}else if(d1 > d2){return 1;}return 0;}
+function formatDate(date,format){format=format+"";var result="";var i_format=0;var c="";var token="";var y=date.getYear()+"";var M=date.getMonth()+1;var d=date.getDate();var E=date.getDay();var H=date.getHours();var m=date.getMinutes();var s=date.getSeconds();var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,ampm,HH,H,KK,K,kk,k;var value=new Object();if(y.length < 4){y=""+(y-0+1900);}value["y"]=""+y;value["yyyy"]=y;value["yy"]=y.substring(2,4);value["M"]=M;value["MM"]=LZ(M);value["MMM"]=MONTH_NAMES[M-1];value["NNN"]=MONTH_NAMES[M+11];value["d"]=d;value["dd"]=LZ(d);value["E"]=DAY_NAMES[E+7];value["EE"]=DAY_NAMES[E];value["H"]=H;value["HH"]=LZ(H);if(H==0){value["h"]=12;}else if(H>12){value["h"]=H-12;}else{value["h"]=H;}value["hh"]=LZ(value["h"]);if(H>11){value["K"]=H-12;}else{value["K"]=H;}value["k"]=H+1;value["KK"]=LZ(value["K"]);value["kk"]=LZ(value["k"]);if(H > 11){value["a"]="PM";}else{value["a"]="AM";}value["m"]=m;value["mm"]=LZ(m);value["s"]=s;value["ss"]=LZ(s);while(i_format < format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c) &&(i_format < format.length)){token += format.charAt(i_format++);}if(value[token] != null){result=result + value[token];}else{result=result + token;}}return result;}
+function _isInteger(val){var digits="1234567890";for(var i=0;i < val.length;i++){if(digits.indexOf(val.charAt(i))==-1){return false;}}return true;}
+function _getInt(str,i,minlength,maxlength){for(var x=maxlength;x>=minlength;x--){var token=str.substring(i,i+x);if(token.length < minlength){return null;}if(_isInteger(token)){return token;}}return null;}
+function getDateFromFormat(val,format){val=val+"";format=format+"";var i_val=0;var i_format=0;var c="";var token="";var token2="";var x,y;var now=new Date();var year=now.getYear();var month=now.getMonth()+1;var date=1;var hh=now.getHours();var mm=now.getMinutes();var ss=now.getSeconds();var ampm="";while(i_format < format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c) &&(i_format < format.length)){token += format.charAt(i_format++);}if(token=="yyyy" || token=="yy" || token=="y"){if(token=="yyyy"){x=4;y=4;}if(token=="yy"){x=2;y=2;}if(token=="y"){x=2;y=4;}year=_getInt(val,i_val,x,y);if(year==null){return 0;}i_val += year.length;if(year.length==2){if(year > 70){year=1900+(year-0);}else{year=2000+(year-0);}}}else if(token=="MMM"||token=="NNN"){month=0;for(var i=0;i<MONTH_NAMES.length;i++){var month_name=MONTH_NAMES[i];if(val.substring(i_val,i_val+month_name.length).toLowerCase()==month_name.toLowerCase()){if(token=="MMM"||(token=="NNN"&&i>11)){month=i+1;if(month>12){month -= 12;}i_val += month_name.length;break;}}}if((month < 1)||(month>12)){return 0;}}else if(token=="EE"||token=="E"){for(var i=0;i<DAY_NAMES.length;i++){var day_name=DAY_NAMES[i];if(val.substring(i_val,i_val+day_name.length).toLowerCase()==day_name.toLowerCase()){i_val += day_name.length;break;}}}else if(token=="MM"||token=="M"){month=_getInt(val,i_val,token.length,2);if(month==null||(month<1)||(month>12)){return 0;}i_val+=month.length;}else if(token=="dd"||token=="d"){date=_getInt(val,i_val,token.length,2);if(date==null||(date<1)||(date>31)){return 0;}i_val+=date.length;}else if(token=="hh"||token=="h"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>12)){return 0;}i_val+=hh.length;}else if(token=="HH"||token=="H"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>23)){return 0;}i_val+=hh.length;}else if(token=="KK"||token=="K"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>11)){return 0;}i_val+=hh.length;}else if(token=="kk"||token=="k"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>24)){return 0;}i_val+=hh.length;hh--;}else if(token=="mm"||token=="m"){mm=_getInt(val,i_val,token.length,2);if(mm==null||(mm<0)||(mm>59)){return 0;}i_val+=mm.length;}else if(token=="ss"||token=="s"){ss=_getInt(val,i_val,token.length,2);if(ss==null||(ss<0)||(ss>59)){return 0;}i_val+=ss.length;}else if(token=="a"){if(val.substring(i_val,i_val+2).toLowerCase()=="am"){ampm="AM";}else if(val.substring(i_val,i_val+2).toLowerCase()=="pm"){ampm="PM";}else{return 0;}i_val+=2;}else{if(val.substring(i_val,i_val+token.length)!=token){return 0;}else{i_val+=token.length;}}}if(i_val != val.length){return 0;}if(month==2){if( ((year%4==0)&&(year%100 != 0) ) ||(year%400==0) ){if(date > 29){return 0;}}else{if(date > 28){return 0;}}}if((month==4)||(month==6)||(month==9)||(month==11)){if(date > 30){return 0;}}if(hh<12 && ampm=="PM"){hh=hh-0+12;}else if(hh>11 && ampm=="AM"){hh-=12;}var newdate=new Date(year,month-1,date,hh,mm,ss);return newdate.getTime();}
+function parseDate(val){var preferEuro=(arguments.length==2)?arguments[1]:false;generalFormats=new Array('y-M-d','MMM d, y','MMM d,y','y-MMM-d','d-MMM-y','MMM d');monthFirst=new Array('M/d/y','M-d-y','M.d.y','MMM-d','M/d','M-d');dateFirst =new Array('d/M/y','d-M-y','d.M.y','d-MMM','d/M','d-M');var checkList=new Array('generalFormats',preferEuro?'dateFirst':'monthFirst',preferEuro?'monthFirst':'dateFirst');var d=null;for(var i=0;i<checkList.length;i++){var l=window[checkList[i]];for(var j=0;j<l.length;j++){d=getDateFromFormat(val,l[j]);if(d!=0){return new Date(d);}}}return null;}
+
+/* SOURCE FILE: AnchorPosition.js */
+function getAnchorPosition(anchorname){var useWindow=false;var coordinates=new Object();var x=0,y=0;var use_gebi=false, use_css=false, use_layers=false;if(document.getElementById){use_gebi=true;}else if(document.all){use_css=true;}else if(document.layers){use_layers=true;}if(use_gebi && document.all){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_gebi){var o=document.getElementById(anchorname);x=AnchorPosition_getPageOffsetLeft(o);y=AnchorPosition_getPageOffsetTop(o);}else if(use_css){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_layers){var found=0;for(var i=0;i<document.anchors.length;i++){if(document.anchors[i].name==anchorname){found=1;break;}}if(found==0){coordinates.x=0;coordinates.y=0;return coordinates;}x=document.anchors[i].x;y=document.anchors[i].y;}else{coordinates.x=0;coordinates.y=0;return coordinates;}coordinates.x=x;coordinates.y=y;return coordinates;}
+function getAnchorWindowPosition(anchorname){var coordinates=getAnchorPosition(anchorname);var x=0;var y=0;if(document.getElementById){if(isNaN(window.screenX)){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else{x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}}else if(document.all){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else if(document.layers){x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}coordinates.x=x;coordinates.y=y;return coordinates;}
+function AnchorPosition_getPageOffsetLeft(el){var ol=el.offsetLeft;while((el=el.offsetParent) != null){ol += el.offsetLeft;}return ol;}
+function AnchorPosition_getWindowOffsetLeft(el){return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;}
+function AnchorPosition_getPageOffsetTop(el){var ot=el.offsetTop;while((el=el.offsetParent) != null){ot += el.offsetTop;}return ot;}
+function AnchorPosition_getWindowOffsetTop(el){return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;}
+
+/* SOURCE FILE: PopupWindow.js */
+var theForm = null;
+function PopupWindow_getXYPosition(anchorname){var coordinates;if(this.type == "WINDOW"){coordinates = getAnchorWindowPosition(anchorname);}else{coordinates = getAnchorPosition(anchorname);}this.x = coordinates.x;this.y = coordinates.y;}
+function PopupWindow_setSize(width,height){this.width = width;this.height = height;}
+function PopupWindow_populate(contents){this.contents = contents;this.populated = false;}
+function PopupWindow_setUrl(url){this.url = url;}
+function PopupWindow_setWindowProperties(props){this.windowProperties = props;}
+function PopupWindow_refresh(){if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).innerHTML = this.contents;}else if(this.use_css){document.all[this.divName].innerHTML = this.contents;}else if(this.use_layers){var d = document.layers[this.divName];d.document.open();d.document.writeln(this.contents);d.document.close();}}else{if(this.popupWindow != null && !this.popupWindow.closed){if(this.url!=""){this.popupWindow.location.href=this.url;}else{this.popupWindow.document.open();this.popupWindow.document.writeln(this.contents);this.popupWindow.document.close();}this.popupWindow.focus();}}}
+function PopupWindow_showPopup(anchorname,formName){if(document.all){ (theForm = (formName != null) ? document.forms[formName] : document.forms[0]);toggleForm(theForm,0);}this.getXYPosition(anchorname);this.x += this.offsetX;this.y += this.offsetY;if(!this.populated &&(this.contents != "")){this.populated = true;this.refresh();}if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).style.left = this.x+"px";document.getElementById(this.divName).style.top = this.y+"px";document.getElementById(this.divName).style.visibility = "visible";}else if(this.use_css){document.all[this.divName].style.left = this.x;document.all[this.divName].style.top = this.y;document.all[this.divName].style.visibility = "visible";}else if(this.use_layers){document.layers[this.divName].left = this.x;document.layers[this.divName].top = this.y;document.layers[this.divName].visibility = "visible";}}else{if(this.popupWindow == null || this.popupWindow.closed){if(this.x<0){this.x=0;}if(this.y<0){this.y=0;}if(screen && screen.availHeight){if((this.y + this.height) > screen.availHeight){this.y = screen.availHeight - this.height;}}if(screen && screen.availWidth){if((this.x + this.width) > screen.availWidth){this.x = screen.availWidth - this.width;}}var avoidAboutBlank = window.opera ||( document.layers && !navigator.mimeTypes['*']) || navigator.vendor == 'KDE' ||( document.childNodes && !document.all && !navigator.taintEnabled);this.popupWindow = window.open(avoidAboutBlank?"":"about:blank","window_"+anchorname,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");}this.refresh();}}
+function PopupWindow_hidePopup(){if(document.all){if(theForm != null){toggleForm(theForm,1);}}if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).style.visibility = "hidden";}else if(this.use_css){document.all[this.divName].style.visibility = "hidden";}else if(this.use_layers){document.layers[this.divName].visibility = "hidden";}}else{if(this.popupWindow && !this.popupWindow.closed){this.popupWindow.close();this.popupWindow = null;}}}
+function PopupWindow_isClicked(e){if(this.divName != null){if(this.use_layers){var clickX = e.pageX;var clickY = e.pageY;var t = document.layers[this.divName];if((clickX > t.left) &&(clickX < t.left+t.clip.width) &&(clickY > t.top) &&(clickY < t.top+t.clip.height)){return true;}else{return false;}}else if(document.all){var t = window.event.srcElement;while(t.parentElement != null){if(t.id==this.divName){return true;}t = t.parentElement;}return false;}else if(this.use_gebi){var t = e.originalTarget;while(t.parentNode != null){if(t.id==this.divName){return true;}t = t.parentNode;}return false;}return false;}return false;}
+function PopupWindow_hideIfNotClicked(e){if(this.autoHideEnabled && !this.isClicked(e)){this.hidePopup();}}
+function PopupWindow_autoHide(){this.autoHideEnabled = true;}
+function PopupWindow_hidePopupWindows(e){for(var i=0;i<popupWindowObjects.length;i++){if(popupWindowObjects[i] != null){var p = popupWindowObjects[i];p.hideIfNotClicked(e);}}}
+function PopupWindow_attachListener(){if(document.layers){document.captureEvents(Event.MOUSEUP);}window.popupWindowOldEventListener = document.onmouseup;if(window.popupWindowOldEventListener != null){document.onmouseup = new Function("window.popupWindowOldEventListener();PopupWindow_hidePopupWindows();");}else{document.onmouseup = PopupWindow_hidePopupWindows;}}
+function PopupWindow(){if(!window.popupWindowIndex){window.popupWindowIndex = 0;}if(!window.popupWindowObjects){window.popupWindowObjects = new Array();}if(!window.listenerAttached){window.listenerAttached = true;PopupWindow_attachListener();}this.index = popupWindowIndex++;popupWindowObjects[this.index] = this;this.divName = null;this.popupWindow = null;this.width=0;this.height=0;this.populated = false;this.visible = false;this.autoHideEnabled = false;this.contents = "";this.url="";this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";if(arguments.length>0){this.type="DIV";this.divName = arguments[0];}else{this.type="WINDOW";}this.use_gebi = false;this.use_css = false;this.use_layers = false;if(document.getElementById){this.use_gebi = true;}else if(document.all){this.use_css = true;}else if(document.layers){this.use_layers = true;}else{this.type = "WINDOW";}this.offsetX = 0;this.offsetY = 0;this.getXYPosition = PopupWindow_getXYPosition;this.populate = PopupWindow_populate;this.setUrl = PopupWindow_setUrl;this.setWindowProperties = PopupWindow_setWindowProperties;this.refresh = PopupWindow_refresh;this.showPopup = PopupWindow_showPopup;this.hidePopup = PopupWindow_hidePopup;this.setSize = PopupWindow_setSize;this.isClicked = PopupWindow_isClicked;this.autoHide = PopupWindow_autoHide;this.hideIfNotClicked = PopupWindow_hideIfNotClicked;}
+
+
+/* SOURCE FILE: CalendarPopup.js */
+
+function CalendarPopup(){var c;if(arguments.length>0){c = new PopupWindow(arguments[0]);}else{c = new PopupWindow();c.setSize(150,175);}c.offsetX = -154;c.offsetY = (navigator.appName.indexOf("Netscape") != -1) ? 1 : 20;c.autoHide();c.monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");c.monthAbbreviations = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");c.dayHeaders = new Array("S","M","T","W","T","F","S");c.returnFunction = "CP_tmpReturnFunction";c.returnMonthFunction = "CP_tmpReturnMonthFunction";c.returnQuarterFunction = "CP_tmpReturnQuarterFunction";c.returnYearFunction = "CP_tmpReturnYearFunction";c.weekStartDay = 0;c.isShowYearNavigation = false;c.displayType = "date";c.disabledWeekDays = new Object();c.disabledDatesExpression = "";c.yearSelectStartOffset = 2;c.currentDate = null;c.todayText="Today";c.cssPrefix="";c.isShowYearNavigationInput=false;window.CP_targetInput = null;window.CP_dateFormat = "MM/dd/yyyy";c.setReturnFunction = CP_setReturnFunction;c.setReturnMonthFunction = CP_setReturnMonthFunction;c.setReturnQuarterFunction = CP_setReturnQuarterFunction;c.setReturnYearFunction = CP_setReturnYearFunction;c.setMonthNames = CP_setMonthNames;c.setMonthAbbreviations = CP_setMonthAbbreviations;c.setDayHeaders = CP_setDayHeaders;c.setWeekStartDay = CP_setWeekStartDay;c.setDisplayType = CP_setDisplayType;c.setDisabledWeekDays = CP_setDisabledWeekDays;c.addDisabledDates = CP_addDisabledDates;c.setYearSelectStartOffset = CP_setYearSelectStartOffset;c.setTodayText = CP_setTodayText;c.showYearNavigation = CP_showYearNavigation;c.showCalendar = CP_showCalendar;c.hideCalendar = CP_hideCalendar;c.getStyles = getCalendarStyles;c.refreshCalendar = CP_refreshCalendar;c.getCalendar = CP_getCalendar;c.select = CP_select;c.setCssPrefix = CP_setCssPrefix;c.showYearNavigationInput = CP_showYearNavigationInput
+return c;}
+function CP_tmpReturnFunction(y,m,d){if(window.CP_targetInput!=null){var dt = new Date(y,m-1,d,0,0,0);window.CP_targetInput.value = formatDate(dt,window.CP_dateFormat);}else{alert('Use setReturnFunction() to define which function will get the clicked results!');}}
+function CP_tmpReturnMonthFunction(y,m){alert('Use setReturnMonthFunction() to define which function will get the clicked results!\nYou clicked: year='+y+' , month='+m);}
+function CP_tmpReturnQuarterFunction(y,q){alert('Use setReturnQuarterFunction() to define which function will get the clicked results!\nYou clicked: year='+y+' , quarter='+q);}
+function CP_tmpReturnYearFunction(y){alert('Use setReturnYearFunction() to define which function will get the clicked results!\nYou clicked: year='+y);}
+function CP_setReturnFunction(name){this.returnFunction = name;}
+function CP_setReturnMonthFunction(name){this.returnMonthFunction = name;}
+function CP_setReturnQuarterFunction(name){this.returnQuarterFunction = name;}
+function CP_setReturnYearFunction(name){this.returnYearFunction = name;}
+function CP_setMonthNames(){for(var i=0;i<arguments.length;i++){this.monthNames[i] = arguments[i];}}
+function CP_setMonthAbbreviations(){for(var i=0;i<arguments.length;i++){this.monthAbbreviations[i] = arguments[i];}}
+function CP_setDayHeaders(){for(var i=0;i<arguments.length;i++){this.dayHeaders[i] = arguments[i];}}
+function CP_setWeekStartDay(day){this.weekStartDay = day;}
+function CP_showYearNavigation(){this.isShowYearNavigation =(arguments.length>0)?arguments[0]:true;}
+function CP_setDisplayType(type){if(type!="date"&&type!="week-end"&&type!="month"&&type!="quarter"&&type!="year"){alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");return false;}this.displayType=type;}
+function CP_setYearSelectStartOffset(num){this.yearSelectStartOffset=num;}
+function CP_setDisabledWeekDays(){this.disabledWeekDays = new Object();for(var i=0;i<arguments.length;i++){this.disabledWeekDays[arguments[i]] = true;}}
+function CP_addDisabledDates(start, end){if(arguments.length==1){end=start;}if(start==null && end==null){return;}if(this.disabledDatesExpression!=""){this.disabledDatesExpression+= "||";}if(start!=null){start = parseDate(start);start=""+start.getFullYear()+LZ(start.getMonth()+1)+LZ(start.getDate());}if(end!=null){end=parseDate(end);end=""+end.getFullYear()+LZ(end.getMonth()+1)+LZ(end.getDate());}if(start==null){this.disabledDatesExpression+="(ds<="+end+")";}else if(end  ==null){this.disabledDatesExpression+="(ds>="+start+")";}else{this.disabledDatesExpression+="(ds>="+start+"&&ds<="+end+")";}}
+function CP_setTodayText(text){this.todayText = text;}
+function CP_setCssPrefix(val){this.cssPrefix = val;}
+function CP_showYearNavigationInput(){this.isShowYearNavigationInput =(arguments.length>0)?arguments[0]:true;}
+function CP_hideCalendar(){if(arguments.length > 0){window.popupWindowObjects[arguments[0]].hidePopup();}else{this.hidePopup();}}
+function CP_refreshCalendar(index){var calObject = window.popupWindowObjects[index];if(arguments.length>1){calObject.populate(calObject.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]));}else{calObject.populate(calObject.getCalendar());}calObject.refresh();}
+function CP_showCalendar(anchorname,formName){if(arguments.length>2){if(arguments[1]==null||arguments[1]==""){this.currentDate=new Date();}else{this.currentDate=new Date(parseDate(arguments[1]));}}this.populate(this.getCalendar());this.showPopup(anchorname,formName);}
+function CP_select(inputobj, linkname, format, formName){var selectedDate=(arguments.length>4)?arguments[3]:null;if(!window.getDateFromFormat){alert("calendar.select: To use this method you must also include 'date.js' for date formatting");return;}if(this.displayType!="date"&&this.displayType!="week-end"){alert("calendar.select: This function can only be used with displayType 'date' or 'week-end'");return;}if(inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea"){alert("calendar.select: Input object passed is not a valid form input object");window.CP_targetInput=null;return;}window.CP_targetInput = inputobj;this.currentDate=null;var time=0;if(selectedDate!=null){time = getDateFromFormat(selectedDate,format)}else if(inputobj.value!=""){time = getDateFromFormat(inputobj.value,format);}if(selectedDate!=null || inputobj.value!=""){if(time==0){this.currentDate=null;}else{this.currentDate=new Date(time);}}window.CP_dateFormat = format;this.showCalendar(linkname,formName);}
+function getCalendarStyles(){var result = "";var p = "";if(this!=null && typeof(this.cssPrefix)!="undefined" && this.cssPrefix!=null && this.cssPrefix!=""){p=this.cssPrefix;}result += "<style type=\"text/css\">\n";result += "."+p+"cpYearNavigation,."+p+"cpMonthNavigation{background-color:#C0C0C0;text-align:center;vertical-align:center;text-decoration:none;color:#000000;font-weight:bold;}\n";result += "."+p+"cpDayColumnHeader, ."+p+"cpYearNavigation,."+p+"cpMonthNavigation,."+p+"cpCurrentMonthDate,."+p+"cpCurrentMonthDateDisabled,."+p+"cpOtherMonthDate,."+p+"cpOtherMonthDateDisabled,."+p+"cpCurrentDate,."+p+"cpCurrentDateDisabled,."+p+"cpTodayText,."+p+"cpTodayTextDisabled,."+p+"cpText{font-family:arial;font-size:8pt;}\n";result += "TD."+p+"cpDayColumnHeader{text-align:right;border-bottom: 1px solid #C0C0C0}\n";result += "."+p+"cpCurrentMonthDate, ."+p+"cpOtherMonthDate, ."+p+"cpCurrentDate{text-align:right;text-decoration:none;}\n";result += "."+p+"cpCurrentMonthDateDisabled, ."+p+"cpOtherMonthDateDisabled, ."+p+"cpCurrentDateDisabled{color:#D0D0D0;text-align:right;text-decoration:line-through;}\n";result += "."+p+"cpCurrentMonthDate, .cpCurrentDate{color:#000000;}\n";result += "."+p+"cpOtherMonthDate{color:#808080;}\n";result += "TD."+p+"cpCurrentDate{color:white;background-color: #C0C0C0;border:1px solid #800000;}\n";result += "TD."+p+"cpCurrentDateDisabled{border:1px solid #FFAAAA;}\n";result += "TD."+p+"cpTodayText, TD."+p+"cpTodayTextDisabled{border-top:1px solid #C0C0C0}\n";result += "A."+p+"cpTodayText, SPAN."+p+"cpTodayTextDisabled{height:20px;}\n";result += "A."+p+"cpTodayText{color:black;}\n";result += "."+p+"cpTodayTextDisabled{color:#D0D0D0;}\n";result += "."+p+"cpBorder{border:1px solid #808080;}\n";result += "</style>\n";return result;}
+function CP_getCalendar(){var now = new Date();if(this.type == "WINDOW"){var windowref = "window.opener.";}else{var windowref = "";}var result = "";if(this.type == "WINDOW"){result += "<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";result += '<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n';}else{result += '<TABLE CLASS="'+this.cssPrefix+'cpBorder" WIDTH=144 BORDER=1 BORDERWIDTH=1 CELLSPACING=0 CELLPADDING=1>\n';result += '<TR><TD ALIGN=CENTER>\n';result += '<CENTER>\n';}if(this.displayType=="date" || this.displayType=="week-end"){if(this.currentDate==null){this.currentDate = now;}if(arguments.length > 0){var month = arguments[0];}else{var month = this.currentDate.getMonth()+1;}if(arguments.length > 1 && arguments[1]>0 && arguments[1]-0==arguments[1]){var year = arguments[1];}else{var year = this.currentDate.getFullYear();}var daysinmonth= new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);if( ((year%4 == 0)&&(year%100 != 0) ) ||(year%400 == 0) ){daysinmonth[2] = 29;}var current_month = new Date(year,month-1,1);var display_year = year;var display_month = month;var display_date = 1;var weekday= current_month.getDay();var offset = 0;offset =(weekday >= this.weekStartDay) ? weekday-this.weekStartDay : 7-this.weekStartDay+weekday ;if(offset > 0){display_month--;if(display_month < 1){display_month = 12;display_year--;}display_date = daysinmonth[display_month]-offset+1;}var next_month = month+1;var next_month_year = year;if(next_month > 12){next_month=1;next_month_year++;}var last_month = month-1;var last_month_year = year;if(last_month < 1){last_month=12;last_month_year--;}var date_class;if(this.type!="WINDOW"){result += "<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";}result += '<TR>\n';var refresh = 'javascript:'+windowref+'CP_refreshCalendar';if(this.isShowYearNavigation){result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refresh+'('+this.index+','+last_month+','+last_month_year+');">&lt;</A></TD>';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="58"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+'</SPAN></TD>';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refresh+'('+this.index+','+next_month+','+next_month_year+');">&gt;</A></TD>';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refresh+'('+this.index+','+month+','+(year-1)+');">&lt;</A></TD>';if(this.isShowYearNavigationInput){result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS="'+this.cssPrefix+'cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE="'+year+'" onBlur="'+refresh+'('+this.index+','+month+',this.value-0);"></TD>';}else{result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><SPAN CLASS="'+this.cssPrefix+'cpYearNavigation">'+year+'</SPAN></TD>';}result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refresh+'('+this.index+','+month+','+(year+1)+');">&gt;</A></TD>';}else{result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refresh+'('+this.index+','+last_month+','+last_month_year+');">&lt;&lt;</A></TD>\n';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="100"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+' '+year+'</SPAN></TD>\n';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refresh+'('+this.index+','+next_month+','+next_month_year+');">&gt;&gt;</A></TD>\n';}result += '</TR></TABLE>\n';result += '<TABLE WIDTH=120 BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER>\n';result += '<TR>\n';for(var j=0;j<7;j++){result += '<TD CLASS="'+this.cssPrefix+'cpDayColumnHeader" WIDTH="14%"><SPAN CLASS="'+this.cssPrefix+'cpDayColumnHeader">'+this.dayHeaders[(this.weekStartDay+j)%7]+'</TD>\n';}result += '</TR>\n';for(var row=1;row<=6;row++){result += '<TR>\n';for(var col=1;col<=7;col++){var disabled=false;if(this.disabledDatesExpression!=""){var ds=""+display_year+LZ(display_month)+LZ(display_date);eval("disabled=("+this.disabledDatesExpression+")");}var dateClass = "";if((display_month == this.currentDate.getMonth()+1) &&(display_date==this.currentDate.getDate()) &&(display_year==this.currentDate.getFullYear())){dateClass = "cpCurrentDate";}else if(display_month == month){dateClass = "cpCurrentMonthDate";}else{dateClass = "cpOtherMonthDate";}if(disabled || this.disabledWeekDays[col-1]){result += '	<TD CLASS="'+this.cssPrefix+dateClass+'"><SPAN CLASS="'+this.cssPrefix+dateClass+'Disabled">'+display_date+'</SPAN></TD>\n';}else{var selected_date = display_date;var selected_month = display_month;var selected_year = display_year;if(this.displayType=="week-end"){var d = new Date(selected_year,selected_month-1,selected_date,0,0,0,0);d.setDate(d.getDate() +(7-col));selected_year = d.getYear();if(selected_year < 1000){selected_year += 1900;}selected_month = d.getMonth()+1;selected_date = d.getDate();}result += '	<TD CLASS="'+this.cssPrefix+dateClass+'"><A HREF="javascript:'+windowref+this.returnFunction+'('+selected_year+','+selected_month+','+selected_date+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+this.cssPrefix+dateClass+'">'+display_date+'</A></TD>\n';}display_date++;if(display_date > daysinmonth[display_month]){display_date=1;display_month++;}if(display_month > 12){display_month=1;display_year++;}}result += '</TR>';}var current_weekday = now.getDay() - this.weekStartDay;if(current_weekday < 0){current_weekday += 7;}result += '<TR>\n';result += '	<TD COLSPAN=7 ALIGN=CENTER CLASS="'+this.cssPrefix+'cpTodayText">\n';if(this.disabledDatesExpression!=""){var ds=""+now.getFullYear()+LZ(now.getMonth()+1)+LZ(now.getDate());eval("disabled=("+this.disabledDatesExpression+")");}if(disabled || this.disabledWeekDays[current_weekday+1]){result += '		<SPAN CLASS="'+this.cssPrefix+'cpTodayTextDisabled">'+this.todayText+'</SPAN>\n';}else{result += '		<A CLASS="'+this.cssPrefix+'cpTodayText" HREF="javascript:'+windowref+this.returnFunction+'(\''+now.getFullYear()+'\',\''+(now.getMonth()+1)+'\',\''+now.getDate()+'\');'+windowref+'CP_hideCalendar(\''+this.index+'\');">'+this.todayText+'</A>\n';}result += '		<BR>\n';result += '	</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n';}if(this.displayType=="month" || this.displayType=="quarter" || this.displayType=="year"){if(arguments.length > 0){var year = arguments[0];}else{if(this.displayType=="year"){var year = now.getFullYear()-this.yearSelectStartOffset;}else{var year = now.getFullYear();}}if(this.displayType!="year" && this.isShowYearNavigation){result += "<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result += '<TR>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year-1)+');">&lt;&lt;</A></TD>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="100">'+year+'</TD>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year+1)+');">&gt;&gt;</A></TD>\n';result += '</TR></TABLE>\n';}}if(this.displayType=="month"){result += '<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<4;i++){result += '<TR>';for(var j=0;j<3;j++){var monthindex =((i*3)+j);result += '<TD WIDTH=33% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnMonthFunction+'('+year+','+(monthindex+1)+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+date_class+'">'+this.monthAbbreviations[monthindex]+'</A></TD>';}result += '</TR>';}result += '</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.displayType=="quarter"){result += '<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<2;i++){result += '<TR>';for(var j=0;j<2;j++){var quarter =((i*2)+j+1);result += '<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnQuarterFunction+'('+year+','+quarter+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+date_class+'">Q'+quarter+'</A><BR><BR></TD>';}result += '</TR>';}result += '</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.displayType=="year"){var yearColumnSize = 4;result += "<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result += '<TR>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year-(yearColumnSize*2))+');">&lt;&lt;</A></TD>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year+(yearColumnSize*2))+');">&gt;&gt;</A></TD>\n';result += '</TR></TABLE>\n';result += '<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<yearColumnSize;i++){for(var j=0;j<2;j++){var currentyear = year+(j*yearColumnSize)+i;result += '<TD WIDTH=50% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnYearFunction+'('+currentyear+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+date_class+'">'+currentyear+'</A></TD>';}result += '</TR>';}result += '</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.type == "WINDOW"){result += "</BODY></HTML>\n";}return result;}
+
+/* Function to hide form elements that show through
+   the search form when it is visible */
+function toggleForm(frmObj, iState) { // 1 visible, 0 hidden 
+	for(var i = 0; i < frmObj.length; i++) {
+		if (frmObj.elements[i].type.indexOf("select") == 0 || frmObj.elements[i].type.indexOf("checkbox") == 0) {
+            frmObj.elements[i].style.visibility = iState ? "visible" : "hidden";
+		}
+	} 
+}

Added: incubator/roller/branches/roller_1.x/web/tags/date.jsp
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.x/web/tags/date.jsp?rev=327589&view=auto
==============================================================================
--- incubator/roller/branches/roller_1.x/web/tags/date.jsp (added)
+++ incubator/roller/branches/roller_1.x/web/tags/date.jsp Fri Oct 21 14:27:36 2005
@@ -0,0 +1,29 @@
+<%@ include file="/taglibs.jsp" %><% {
+String prefix = org.roller.presentation.tags.DateTag.KEY_PREFIX;
+String formName = request.getAttribute(prefix+"_formName").toString(); 
+String dateField = request.getAttribute(prefix+"_property").toString(); 
+String dateFormat = request.getAttribute(prefix+"_dateFormat").toString();
+String value = request.getAttribute(prefix+"_value").toString();
+Boolean readOnly = (Boolean)request.getAttribute(prefix+"_readOnly");
+%>
+<script type="text/javascript" >
+<!--
+if (document.layers) { // Netscape 4 hack
+    var cal<%= dateField %> = new CalendarPopup();
+} else {
+    var cal<%= dateField %> = new CalendarPopup("caldiv<%= dateField %>");
+    document.write(cal<%= dateField %>.getStyles());
+}
+// -->
+</script>
+<input size="12" type="text" name="<%= dateField %>" id="<%= dateField %>"
+    value="<%= value %>" readonly="readonly" />      
+<div id="caldiv<%= dateField %>" class="calDiv"></div>
+<% if (!readOnly.booleanValue()) { %>
+   <a href="#" id="anchor<%= dateField %>" 
+       onclick="cal<%= dateField %>.select(document.<%= formName %>.<%= dateField %>,
+       this.id,'<%= dateFormat %>'); return false">
+   <img src='<c:url value="/images/cal.gif"/>' class="calIcon" alt="Calendar" /></a>
+<% } 
+}
+%>
\ No newline at end of file