Inital commit
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" ?>
|
||||
<%@ page language="java" contentType="text/html" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Column List</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" action="?action=listEvents">
|
||||
<h1>Event Publisher</h1>
|
||||
<h2>Please map needed data to the appropriate columns:</h2>
|
||||
<input type="hidden" name="action" value="listEvents" />
|
||||
<ul>
|
||||
<li>
|
||||
Title:
|
||||
<select name="fdTitle">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
Description:
|
||||
<select name="fdDescription">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
Start Date:
|
||||
<select name="fdStartDate">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
End Date:
|
||||
<select name="fdEndDate">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
Location:
|
||||
<select name="fdLocation">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' /><br />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
Web Site:
|
||||
<select name="fdWebSite">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' /><br />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
Calendar Event Url:
|
||||
<select name="fdCalendarUrl">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' /><br />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
Base Event Url:
|
||||
<select name="fdBaseUrl">
|
||||
<c:forEach var="column" items="${columnList}">
|
||||
<option value="<c:out value='${column}' />">
|
||||
<c:out value='${column}' /><br />
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
<input type="submit" value="Publish Events" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" ?>
|
||||
<%@ page language="java" contentType="text/html" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Events</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Event Publisher</h1>
|
||||
<h2>Events to be published:</h2>
|
||||
<ul>
|
||||
<c:forEach var="event" items="${events}">
|
||||
<li><b><c:out value="${event.title}"/></b>
|
||||
<ul>
|
||||
<li>Description: <c:out value="${event.description}"/></li>
|
||||
<li>Start Date: <fmt:formatDate value="${event.startDate}" dateStyle="full"/></li>
|
||||
<li>End Date: <fmt:formatDate value="${event.endDate}" dateStyle="full"/></li>
|
||||
</ul>
|
||||
</li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
<form method="post" action="?action=publish">
|
||||
<h2>Publish these events to the following targets:</h2>
|
||||
<ul>
|
||||
<li><input type="checkbox" name="calendar" value="checked" /> Calendar</li>
|
||||
<li><input type="checkbox" name="base" value="checked" /> Base</li>
|
||||
</ul>
|
||||
<input type="hidden" name="action" value="publish" />
|
||||
<input type="submit" value="Publish" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" ?>
|
||||
<%@ page language="java" contentType="text/html" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Welcome to the Event Publisher</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Event Publisher</h1>
|
||||
<p>
|
||||
You can publish events to a Google Calendar and/or to Google Base from
|
||||
a private spreadsheet on Google Spreadsheets.
|
||||
</p>
|
||||
<h2>Publish from a private spreadsheet</h2>
|
||||
<p>
|
||||
To access the private Google Spreadsheet to use for publishing, please
|
||||
<a href="<c:out value="${ssAuthUrl}" />">authenticate</a> to your Google
|
||||
Account
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<%@ page language="java" contentType="text/html" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Publishing Results</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Event Publisher</h1>
|
||||
<h2>Publishing successful:</h2>
|
||||
<ul>
|
||||
<li><a href="?action=listEvents">Publish again</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" ?>
|
||||
<%@ page language="java" contentType="text/html" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Spreadsheet List</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Event Publisher</h1>
|
||||
<h2>Spreadsheets available:</h2>
|
||||
<ul>
|
||||
<c:forEach var="ss" items="${ssList}">
|
||||
<li><a href="?action=outputWsList&wsFeed=<c:out value='${ss["wsFeed"]}' />">
|
||||
<c:out value='${ss["title"]}' />
|
||||
</a></li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" ?>
|
||||
<%@ page language="java" contentType="text/html" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Worksheet List</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/app.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Event Publisher</h1>
|
||||
<h2>Worksheets available:</h2>
|
||||
<ul>
|
||||
<c:forEach var="ws" items="${wsList}">
|
||||
<li><a href="?action=outputColumnList&cellFeed=<c:out value='${ws["cellFeed"]}' />"><c:out value='${ws["title"]}' /></a> </li>
|
||||
</c:forEach>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user