Commits

Anonymous committed 44dee86

organize jsp/vm pages/decorators

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@23069f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits dee0988

Comments (0)

Files changed (8)

webapp/webroot/WEB-INF/decorators/foot.jsp

+<div class="footer micro">
+	footer content here<br />
+	<br />
+</div>

webapp/webroot/WEB-INF/decorators/head.jsp

+
+%    String root = request.getContextPath(); %>
+<table width="100%" border="0" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="145" align="left"><a href="http://www.quartzscheduler.com/" target="_blank"><img src="<%= request.getContextPath()%>/icons/quartzEJS.jpg"/></a></td>
+		<td width="10" valign="bottom">
+		&nbsp;	<%  if (request.getRemoteUser() != null){ %>
+			User:  <%=request.getRemoteUser()%> <a href="<%=root%>/logout.action">[Sign out] </a>
+			<% } else { %>
+				<a href="<%=root%>/logout.action">[Sign In]</a>
+		 <%	}  %>
+		 </td>
+		<td></td>
+	</tr>
+	<tr><td height="10" width="145"  colspan="3" class="nav" >&nbsp; </td>
+	</tr>
+</table>

webapp/webroot/WEB-INF/decorators/main.jsp

+<%@ taglib uri="sitemesh-decorator" prefix="decorator" %>
+<%@ taglib uri="sitemesh-page" prefix="page" %>
+<%@ taglib uri="webwork" prefix="webwork" %>
+<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %>
+<html>
+  <head>
+    <title><decorator:title/></title>
+    <link rel="stylesheet" href="decorators/style.css">
+    <c:url var="url" value="/style/default.css"/>
+    <c:url var="displaytag_css" value="/style/display.css"/>
+    <link rel=stylesheet type=text/css href='<c:out value="${url}"/>'/>
+    <link rel=stylesheet type=text/css href='<c:out value="${displaytag_css}"/>'/>
+    <decorator:head/>
+  </head>
+  	<body>
+		<table width="100%" border="0" cellspacing="0" cellpadding="0">
+			<tr><td><jsp:include page="/WEB-INF/decorators/head.jsp"/></td></tr>
+			<tr>
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr>
+						<td width="145" height="100%" valign="top"><jsp:include page="/WEB-INF/decorators/nav.jsp"/></td>
+						<td width="10">&nbsp;</td>
+						<td ><!--insert attribute="bodyhead"--><decorator:body/></td>
+						  <webwork:if test="(actionErrors != null && actionErrors.size() > 0) || (fieldErrors != null && fieldErrors.size() > 0)">
+						<td valign="top">
+							<page:applyDecorator name="window" title="Errors" page="/WEB-INF/decorators/msg.jsp"  />
+						</td>
+						</webwork:if>
+					</tr>
+				</table>
+			</tr>
+			<tr><td><jsp:include page="/WEB-INF/decorators/foot.jsp"/></td></tr>
+		</table>
+	</body>
+</html>

webapp/webroot/WEB-INF/decorators/msg.jsp

+<%@ taglib uri="webwork" prefix="webwork" %>
+  <webwork:if test="actionErrors != null && actionErrors.size() > 0">
+  	<p>
+	<font color="red">
+	<b>Action errors:</b><br/>
+	<ul> 
+	<webwork:iterator value="actionErrors">
+            <li><webwork:property /></li>
+        </webwork:iterator>
+	</ul>
+	</font>
+	</p>
+    </webwork:if>
+     <webwork:if test="fieldErrors != null && fieldErrors.size() > 0">
+     	<p>
+	<font color="red">
+	<b>Field errors:</b><br/>
+	<ul>
+	<webwork:iterator value="fieldErrors">
+            <li><webwork:property /></li>
+	</webwork:iterator>
+	</ul>
+	</font>
+	</p>
+     </webwork:if>
+

webapp/webroot/WEB-INF/decorators/msg.vm

+#fieldErrors()
+   #if( $fieldErrors.size() > 0 )
+	<p>
+	<font color="red">
+	<b>ERRORS:</b><br>
+	<ul>
+	#foreach( $error in $fieldErrors )
+		<li>$error</li>
+	#end
+	</ul>
+	</font>
+	</p>
+   #end
+message=$msg
+${req.contextPath}

webapp/webroot/WEB-INF/decorators/nav.jsp

+
+<%  String root = request.getContextPath(); %>
+<table width="145" height="100%" class="nav" border="0" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="142" valign="top">
+		<a href="<%=root%>/schedule/scheduleControl.action">Schedule Control</a>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top">
+		<a href="<%=root%>/definition/list.action">Job Definitions</a>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top" ><a href="<%=root%>/jobs/createJob.action">Create Job</a></td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top" ><a href="<%=root%>/schedule/listJobs.action">List Jobs</a></td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top" ><a href="<%=root%>/schedule/listTriggers.action">List all Triggers</a></td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top" ><a href="<%=root%>/quartzLog.action">Logging</a></td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr height="100%">
+		<td width="142" valign="top" >&nbsp;</td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+</table>

webapp/webroot/WEB-INF/decorators/nav.vm

+
+<table width="145" height="100%" class="nav" border="0" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="142" valign="top">
+		<a href="#urlroot()/schedule/scheduleControl.action">Schedule Control</a>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top">
+		<a href="#urlroot()/definition/list.action">Job Definitions</a>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top" ><a href="#urlroot()/jobs/createJob.action">Create Job</a></td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top" ><a href="#urlroot()/schedule/listJobs.action">List Jobs</a></td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr>
+		<td width="142" valign="top" ><a href="#urlroot()/schedule/listTriggers.action">List all Triggers</a></td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+	<tr height="100%">
+		<td width="142" valign="top" >&nbsp;</td>
+		<td width="3" >&nbsp;</td>
+	</tr>
+</table>

webapp/webroot/WEB-INF/decorators/window.jsp

+<%@ taglib uri="sitemesh-decorator" prefix="decorator" %>
+<table class="simple">
+  <tr>
+    <th><!--<img src="decorators/snazzy.gif">--><decorator:title/></th>
+  </tr>
+  <tr>
+    <td>
+      <decorator:body/>
+    </td>
+  </tr>
+</table>