Index: lams_admin/web/import/status.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r1ba327f73cb27c822d8a4ef36c386dd5a1432aef --- lams_admin/web/import/status.jsp (.../status.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_admin/web/import/status.jsp (.../status.jsp) (revision 1ba327f73cb27c822d8a4ef36c386dd5a1432aef) @@ -1,55 +1,56 @@ + + <%@ include file="/taglibs.jsp"%> <%@ page import="org.lamsfoundation.lams.web.session.SessionManager" %> <%@ page import="org.lamsfoundation.lams.admin.service.IImportService" %> - - - - - - - + - function refresh() { - document.location = 'admin/import/status.jsp'; - } - window.setInterval("refresh()",5000); - + - -<% - Integer importTotal = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORT_TOTAL); - Integer imported = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORTED); - String progress = ""; - try { - float percent = imported.floatValue()/importTotal.floatValue() * 100; - progress = (new Float(percent)).toString(); - progress = (progress.length() >= 5 ? progress.substring(0,5) : progress); - } catch (Exception e) {} - out.println((progress.length()>0?progress:"0")+"% completed..."); -%> - + + <% + Integer importTotal = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORT_TOTAL); + Integer imported = (Integer)SessionManager.getSession().getAttribute(IImportService.STATUS_IMPORTED); + String progress = ""; + try { + float percent = imported.floatValue()/importTotal.floatValue() * 100; + progress = (new Float(percent)).toString(); + progress = (progress.length() >= 5 ? progress.substring(0,5) : progress); + } catch (Exception e) {} + out.println((progress.length()>0?progress:"0")+"% completed..."); + %> + - - - -
-

-

${progressMessage}

-
- - + + - +
+

+

${progressMessage}

+
+ + + +
\ No newline at end of file