PageRenderTime 282ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/org.opencms.workplace/resources/system/login/useragreement/_conf/detail-ua.jsp

http://github.com/alkacon/opencms-core
JavaServer Pages | 58 lines | 33 code | 20 blank | 5 comment | 1 complexity | 65f5d55551fb756c732c5a32d968d6db MD5 | raw file
Possible License(s): MIT, Apache-2.0, BSD-3-Clause, LGPL-2.1
  1. <%@ page buffer="none" import="org.opencms.workplace.*" %><%
  2. CmsLoginUserAgreement wp = new CmsLoginUserAgreement(pageContext, request, response);
  3. //////////////////// start of switch statement
  4. switch (wp.getAction()) {
  5. case CmsDialog.ACTION_CANCEL:
  6. //////////////////// ACTION: decline the user agreement
  7. wp.actionDecline();
  8. break;
  9. case CmsLoginUserAgreement.ACTION_ACCEPT:
  10. //////////////////// ACTION: accept the user agreement
  11. wp.actionAccept();
  12. break;
  13. case CmsDialog.ACTION_DEFAULT:
  14. default:
  15. //////////////////// ACTION: show user agreement form (default)
  16. wp.setParamAction(CmsLoginUserAgreement.DIALOG_TYPE);
  17. %><%= wp.htmlStart() %>
  18. <%= wp.bodyStart("dialog") %>
  19. <%= wp.dialogStart() %>
  20. <%= wp.dialogContentStart(wp.getParamTitle()) %>
  21. <form name="main" action="<%= wp.getDialogUri() %>" method="post" class="nomargin" onsubmit="return submitAction('<%= CmsDialog.DIALOG_OK %>', null, 'main');">
  22. <%= wp.paramsAsHidden() %>
  23. <input type="hidden" name="<%= CmsDialog.PARAM_FRAMENAME %>" value="">
  24. <%= wp.dialogWhiteBoxStart() %>
  25. <div style="height: 450px; overflow: auto;">
  26. <%= wp.getConfigurationContentStringValue(wp.NODE_TEXT) %>
  27. </div>
  28. <%= wp.dialogWhiteBoxEnd() %>
  29. <%= wp.dialogContentEnd() %>
  30. <%= wp.dialogButtonsOkCancel() %>
  31. </form>
  32. <%= wp.dialogEnd() %>
  33. <%= wp.bodyEnd() %>
  34. <%= wp.htmlEnd() %>
  35. <%
  36. }
  37. //////////////////// end of switch statement
  38. %>