index.jsp 999 B

12345678910111213141516171819
  1. <script type="text/javascript" src="<c:url value="/resources/plugins/jquery/jquery-2.1.4.min.js" />"></script>
  2. <script type="text/javascript">
  3. var contextPath = '${pageContext.request.contextPath}';
  4. if(${sessionScope.MP_USER_ID==null}){
  5. location.href = contextPath + "/login.page?first"
  6. }else{
  7. if(${sessionScope.MP_INDEX_PAGE=="I"}){
  8. location.href = contextPath + "/mobile/consent/consentInpatient.page?menuId=inpatient&first";
  9. }else if(${sessionScope.MP_INDEX_PAGE=="O"}){
  10. location.href = contextPath + "/mobile/consent/consentOutpatient.page?menuId=outpatient&first";
  11. }else if(${sessionScope.MP_INDEX_PAGE=="E"}){
  12. location.href = contextPath + "/mobile/consent/consentEmergency.page?menuId=emergency&first";
  13. }else if(${sessionScope.MP_INDEX_PAGE=="P"}){
  14. location.href = contextPath + "/mobile/consent/consentOperation.page?menuId=operation&first";
  15. }else{
  16. location.href = contextPath + "/mobile/consent/consentInpatient.page?menuId=inpatient&first";
  17. }
  18. };
  19. </script>