Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp?rev=1788222&r1=1788221&r2=1788222&view=diff ============================================================================== --- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp (original) +++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/resultreport.jsp Thu Mar 23 12:21:03 2017 @@ -236,191 +236,179 @@ try %> - - - - - - - - - - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ApacheManifoldCFActivityResultReport")%> - - - - + - - - - - - - - - -
-

<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ActivityResultReport")%>

-
- - - - - - - - - - - - -

<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.Connection")%> - + + +
+
+ + + + + @@ -461,20 +450,18 @@ function isInteger(value) else { %> - + <% } %> - - - - - + - - + - - - - - - - + + - + + - - - - - - - - - - -
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.Connection")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.Activities")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.Activities")%> - <% - i = 0; - while (i < activityList.length) - { - String activity = activityList[i++]; + i = 0; + while (i < activityList.length) + { + String activity = activityList[i++]; %> - + <% - } + } %>

<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.StartTime")%> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.StartTime")%> +
+ : - + : + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.on")%> - - + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.on")%> + + - + , - + + , + +
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.EndTime")%> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.EndTime")%> +
+ : - + : + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.on")%> - - + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.on")%> + + - + , - + + , + +

<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.EntityMatch")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ResultCodeMatch")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.EntityMatch")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ResultCodeMatch")%> +

<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.IdentifierClassDescription")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ResultCodeClassDescription")%> +
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.IdentifierClassDescription")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ResultCodeClassDescription")%>

+
+
+

+ "><%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"resultreport.Continue")%> + <% + } + %> + + + <% if (reportConnection.length() > 0) { @@ -741,15 +741,17 @@ function isInteger(value) IResultSet set = connMgr.genHistoryResultCodes(reportConnection,criteria,sortOrder,resultBucket,idBucket,startRow,rowCount+1); %> - - - - - - - - - + + + + +
+
+
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.IdentifierClass")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ResultClass")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.EventCount")%>
+ + + + <% zz = 0; @@ -772,72 +774,69 @@ function isInteger(value) resultCodeBucketString = resultCodeBucketObject.toString(); %> > - - - + + + <% zz++; } %>
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.IdentifierClass")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.ResultClass")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.EventCount")%>
<%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(idBucketString)%><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(resultCodeBucketString)%><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(row.getValue("eventcount").toString())%><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(idBucketString)%><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(resultCodeBucketString)%><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(row.getValue("eventcount").toString())%>
- - - - - - -
- + + - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.Rows")%> - <%=Integer.toString(startRow)%>-<%=(hasMoreRows?Integer.toString(startRow+rowCount-1):"END")%> - - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.RowsPerPage")%> - -
- + +
    +
  • + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.Rows")%><%=Integer.toString(startRow)%>-<%=(hasMoreRows?Integer.toString(startRow+rowCount-1):"END")%> +
  • +
  • +
    + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.RowsPerPage")%> +
    +
  • +
+ + <% } else { %> -
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.PleaseSelectAConnection")%>
+
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"resultreport.PleaseSelectAConnection")%>
<% } %> -
+ <% } catch (ManifoldCFException e) @@ -846,14 +845,9 @@ catch (ManifoldCFException e) variableContext.setParameter("text",e.getMessage()); variableContext.setParameter("target","index.jsp"); %> - + <% } %> -
- - - - + + Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/setupAdminProfile.jsp URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/setupAdminProfile.jsp?rev=1788222&r1=1788221&r2=1788222&view=diff ============================================================================== --- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/setupAdminProfile.jsp (original) +++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/setupAdminProfile.jsp Thu Mar 23 12:21:03 2017 @@ -1,3 +1,4 @@ +<%@ page import="org.apache.manifoldcf.core.util.URLDecoder" %> <% response.setHeader("Pragma","No-cache"); response.setDateHeader("Expires",0); response.setHeader("Cache-Control", "no-cache"); @@ -36,7 +37,17 @@ if (password == null) adminprofile.login(threadContext,userID,password); if (adminprofile.getLoggedOn()) - response.sendRedirect("index.jsp"); +{ + String nextUri = request.getParameter("nextUrl"); + if (nextUri == null) + { + response.sendRedirect("index.jsp"); + } + else + { + response.sendRedirect(URLDecoder.decode(nextUri)); + } +} else { // Go back to login page, but with signal that login failed Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/showjobstatus.jsp URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/showjobstatus.jsp?rev=1788222&r1=1788221&r2=1788222&view=diff ============================================================================== --- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/showjobstatus.jsp (original) +++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/showjobstatus.jsp Thu Mar 23 12:21:03 2017 @@ -48,90 +48,84 @@ try JobStatus[] jobs = manager.getAllStatus(true,maxCount); %> - - - - - - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.ApacheManifoldCFStatusOfAllJobs")%> - - - - - - - - - - - - - - -
-

<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.StatusOfJobs")%>

-
- - - + +
+
+
+ + + + - +
+
- - - - + + + + + + + + <% int i = 0; @@ -210,17 +204,21 @@ function Resume(jobID) endTime = new Date(js.getEndTime()).toString(); } %> - > - + - - - - + + + + + + + <% } %> - - - - -

<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Name")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Status")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.StartTime")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.EndTime")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Documents")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Active")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Processed")%>Action<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Name")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Status")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.StartTime")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.EndTime")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Documents")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Active")%><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Processed")%>
- +
+ <% if (status == JobStatus.JOBSTATUS_NOTYETRUN || status == JobStatus.JOBSTATUS_COMPLETED || status == JobStatus.JOBSTATUS_ERROR) { %> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Start")%> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Startminimal")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Start")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Startminimal")%> <% } if (status == JobStatus.JOBSTATUS_RUNNING || @@ -230,8 +228,12 @@ function Resume(jobID) status == JobStatus.JOBSTATUS_STARTING) { %> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Restart")%> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Restartminimal")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Restart")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Restartminimal")%> <% } if (status == JobStatus.JOBSTATUS_RUNNING || @@ -239,7 +241,9 @@ function Resume(jobID) status == JobStatus.JOBSTATUS_WINDOWWAIT) { %> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Pause")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Pause")%> <% } if (status == JobStatus.JOBSTATUS_RUNNING || @@ -252,33 +256,41 @@ function Resume(jobID) status == JobStatus.JOBSTATUS_RESTARTING) { %> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Abort")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Abort")%> <% } if (status == JobStatus.JOBSTATUS_PAUSED) { %> - <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Resume")%> + <%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Resume")%> <% } %> - + <%=""%><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(js.getDescription())%><%=statusName%><%=startTime%><%=endTime%><%=(js.getQueueCountExact()?"":"> ")%><%=new Long(js.getDocumentsInQueue()).toString()%><%=(js.getOutstandingCountExact()?"":"> ")%><%=new Long(js.getDocumentsOutstanding()).toString()%><%=(js.getProcessedCountExact()?"":"> ")%><%=new Long(js.getDocumentsProcessed()).toString()%><%=""%><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(js.getDescription())%><%=statusName%><%=startTime%><%=endTime%><%=(js.getQueueCountExact()?"":"> ")%><%=new Long(js.getDocumentsInQueue()).toString()%><%=(js.getOutstandingCountExact()?"":"> ")%><%=new Long(js.getDocumentsOutstanding()).toString()%><%=(js.getProcessedCountExact()?"":"> ")%><%=new Long(js.getDocumentsProcessed()).toString()%>

"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"showjobstatus.Refresh")%>
- +
+ + <% } catch (ManifoldCFException e) @@ -287,16 +299,11 @@ catch (ManifoldCFException e) variableContext.setParameter("text",e.getMessage()); variableContext.setParameter("target","index.jsp"); %> - + <% } %> - -
- - - - - + + + +