(no commit message)
[utils] / crawler / kissweb / src / webapp / WEB-INF / overview.jsp
diff --git a/crawler/kissweb/src/webapp/WEB-INF/overview.jsp b/crawler/kissweb/src/webapp/WEB-INF/overview.jsp
new file mode 100644 (file)
index 0000000..ce74949
--- /dev/null
@@ -0,0 +1,74 @@
+
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+  <head>
+    <title>KiSS Crawler overview page</title>
+    
+    <meta http-equiv="pragma" content="no-cache">
+    <meta http-equiv="cache-control" content="no-cache">
+    <meta http-equiv="expires" content="0">
+    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
+    <meta http-equiv="description" content="This is my page">
+    
+    <!--
+    <link rel="stylesheet" type="text/css" href="styles.css">
+    -->
+  </head>
+  
+  <body>
+    <h1>KiSS Crawler Overview</h1>
+    
+    <TABLE border="1">
+      <tr>
+        <td>
+           Currently running:
+        </td>
+        <td>
+           <c:out value="${running}"/>
+        </td>
+      </tr>
+      <c:if test="${lastReport != null}">
+            <tr>
+        <td>
+          Last executed at:
+        </td>
+        <td>
+          <c:out value="${lastExecuted}"/>
+        </td>
+      </tr>
+      <tr>
+        <td>
+          Last result: 
+        </td>
+        <td>
+          <c:out value="${lastResult}"/>
+        </td>
+      </tr>
+        <tr>
+        <td>
+          Last message: 
+        </td>
+        <td>
+          <c:out value="${lastMessage}" escapeXml="false"/>
+        </td>
+        </tr>
+        <tr>
+        <td>
+          Last report: 
+        </td>
+        <td>
+          <a href="?details=1">details</a>
+        </td>
+        </tr>
+      </c:if>
+    </TABLE>
+    <c:if test="${!running}">
+    <FORM action="runnow">
+      <INPUT type="submit" name="runnow" value="Run Crawler as soon as possible">
+    </FORM>
+    </c:if>
+  </body>
+</html>