gerd
11/8/2016 - 2:35 PM

layout.jsp

<!DOCTYPE html>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%-- <jsp:include page="/WEB-INF/templates/session.jsp" /> --%>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<!--  This is to make sure the browser uses latest mode -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">

<c:choose>
    <c:when test="${fn:toLowerCase(model.skinResource) eq 'cdm'}">
        <title>Caradigm&reg; - Risk Management powered by LexisNexis&reg;</title>
        <link rel="icon" type="image/png" href="resources/cdm/images/caradigm_title_logo.png" />
        <link rel="shortcut icon" type="image/png" href="resources/cdm/images/caradigm_title_logo.png" />
    </c:when>
    <c:otherwise>
        <title><tiles:insertAttribute name="title" defaultValue="PPM" /></title>
		<link rel="icon" type="image/png"	href="<c:url value="/resources/ln/images/favicon.png"/>" />
		<link rel="shortcut icon" type="image/png"	href="<c:url value="/resources/ln/images/favicon.png"/>" />
    </c:otherwise>
</c:choose>

<tiles:useAttribute id="baseHelpUrl" name="baseHelpUrl" />
<tiles:useAttribute id="carHelpUrl" name="carHelpUrl" />
<tiles:useAttribute id="helpUrl" name="helpUrl" />
<!-- IE9, Console not defined error -->
<script type="text/javascript">
	if (!(window.console && console.log)) {
		console = {
			log : function() {
			},
			debug : function() {
			},
			info : function() {
			},
			warn : function() {
			},
			error : function() {
			}
		};
	}
</script>

<tiles:insertAttribute name="includecommoncss" />
<tiles:insertAttribute name="includecommonjs" />
<tiles:useAttribute id="customJavascripts" name="customJavascripts"	classname="java.util.List" />
<tiles:useAttribute name="isEpisodeDetailsScreen"/>
<c:if test="${not empty customJavascripts}">
	<c:forEach var="script" items="${customJavascripts}">
		<script type="text/javascript" src="<c:url value="${script}"/> "></script>
	</c:forEach>
</c:if>
<script type="text/javascript">
if ('${model.skinResource}'.toUpperCase() == 'CDM') {
    LN.setHelpPath('${carHelpUrl}', '${helpUrl}'); /* Setting the help url for Caradigm */
   } else {
    LN.setHelpPath('${baseHelpUrl}', '${helpUrl}');
}
var defaultPageLevelHelp = LN.getHelpPath().split("#")[1];
LN.setContextPath('${pageContext.request.contextPath}');

	var formatUtil = new lexisnexis.component.FormatUtil();
	var drillDownFilters=new lexisnexis.component.DrillDownFilter();
 	var contextHelp = new lexisnexis.component.contextHelp(); 
</script>

</head>
<body id="ln_ppm_layout">

	<tiles:useAttribute id="groupByMenuItems" name="groupByMenuItems"
		classname="java.util.List" />
	<tiles:useAttribute id="selectedGroupByItem" name="selectedGroupByItem" />

	<div id="ln_main" class="container-fluid">

		<!-- The Header Section -->
		<div id="ln_header">
			<jsp:include page="/resources/default/jsp/layout/header.jsp"></jsp:include>
		</div>
		<!-- End Header Section -->

		<!--  <div class="container-fluid ln-headerredline ln-shadow" id="redbar"></div> -->
		<!-- Including the Top Navigation Items -->
		<jsp:include page="/resources/default/jsp/layout/topNav.jsp"></jsp:include>

		<!-- start body content area -->
		<div id="ln_content" class="ln-content-wrapper container-fluid">
			<div class="row ln-content-minheight">
				<div id="ln_content_leftNav" class="">
					<jsp:include page="/WEB-INF/layouts/leftNav.jsp"></jsp:include>
				</div>
				<div class="hidden-lg hidden-md ln-below980-message">
					<!-- <h4>Your browser resolution is not supported. Please increase your browser resolution.</h4> -->
				</div>

				<div id="ln_content_area" class="ln-rightsidecontentcontainer">
				
					<div id="stiky-anchor"></div>
		            <div id="stiky">
						<jsp:include page="/WEB-INF/layouts/rightNav.jsp"></jsp:include>
		            </div>

					<!-- Inserts other pages in the layout on navigation -->
					<div class="ln-pad-top">
						<tiles:insertAttribute name="body" />
					</div>

				</div>
			</div>
		</div>
		<!-- End Content Area -->

		<!-- This is the container for the Footer Section -->
		<div class="col-xs-12 ln-noPad">
			<jsp:include page="/resources/default/jsp/layout/footer.jsp"></jsp:include>
		</div>
		<!-- End Footer Section -->



	</div>
	<!--  end ln_main -->


	<div id="hlpDialog" class="hlpDialog" style="display: none">
		<div class="container-liquid" style="margin: 0px; padding: 0px">
			<div class="ln-subTitle"></div>
			<div class="hrHeaderDlg"></div>
			<p class="hlpContent"></p>
			<div class="hrFooterDlg"></div>
		</div>
	</div>

	<jsp:include page="/resources/default/jsp/lnhccsession.jsp" />

	<script type="text/javascript">
	
		$(document).ready(
		    function() {  
		    	/*This below code handles the COMPATIBILITY mode issue*/
		        var userAgent=navigator.userAgent;
		        var browserIndex = userAgent.indexOf('Mozilla/') + 8;
		        var borwserMode = userAgent.substring(browserIndex, browserIndex + 1 );
		        if(borwserMode < 5) {
		        	$('#ln_browser_incompatibleModal').modal('show');		        	
		        }
		        
		        $('#ln-browser_incompatible-cancel').on('click', function(){
		        	window.open('','_parent').close();
		        	$('#ln_browser_incompatibleModal').modal('hide');
		        });	
		        $('#ln_browser_incompatibleModal .close').on('click', function(){
		        	window.open('','_parent').close();
		        	$('#ln_browser_incompatibleModal').modal('hide');
		        });
		        /*This above code handles the COMPATIBILITY mode issue*/
		    }
		);
		
		var mainControl = new lexisnexis.component.Main({
			data : {}
		});
		if (typeof lexisnexis.component.CreateTemplate === 'function') {
			var createTemplateJs = new lexisnexis.component.CreateTemplate();
		}
		if (typeof lexisnexis.component.CreateTemplateAction === 'function') {
			new lexisnexis.component.CreateTemplateAction({
				data : {
					saveTemplateUrl : '<c:url value="/saveTemplate"/>'
				}
			});
		}

		if (typeof lexisnexis.component.RightNav === 'function') {
			new lexisnexis.component.RightNav({
				data : {
					saveTemplateUrl : '<c:url value="/saveTemplate"/>',
					isEpisodeDetailsScreen:'${isEpisodeDetailsScreen}'
				}
			});
		}
		if (typeof lexisnexis.component.LineofBusiness === 'function') {
			new lexisnexis.component.LineofBusiness();
		}
		if (typeof lexisnexis.component.SubClient === 'function') {
			new lexisnexis.component.SubClient();
		}
		
		if (typeof lexisnexis.component.StackedGauge === 'function') {
			new lexisnexis.component.StackedGauge({
				data : {
					overallEfficiencyLow : '',
					overallEfficiencyHigh : ''
				}
			});
		}
		if (typeof lexisnexis.component.CreateTemplateGroup === 'function') {
			new lexisnexis.component.CreateTemplateGroup();
		}
		if (typeof lexisnexis.component.CreateTemplateProviders === 'function') {
			new lexisnexis.component.CreateTemplateProviders();
		}
		if (typeof lexisnexis.component.CreateTemplatePatient === 'function') {
			new lexisnexis.component.CreateTemplatePatient();
		}
		if (typeof lexisnexis.component.CreateTemplateCondition === 'function') {
			new lexisnexis.component.CreateTemplateCondition();
		}
		/*Story 206 Start */
		/*Story 206 End */
		LN.REFERERPAGE = '${sessionScope.REFERER_PAGE_URL}';
	</script>
	<input id="createTemplateIdHid" type="hidden"
		value="${model.templateCriteriaDTO.activeTemplate.templateId}">
	<input id="createTemplateNameHid" type="hidden"
		value="${model.templateCriteriaDTO.activeTemplate.templateName}">
	<input id="templateVersionHid" type="hidden"
		value="${model.templateCriteriaDTO.activeTemplate.templateVersionId}">


	<!-- Exclusions Modal -->
	<div class="modal fade" id="ln_exclusionModal" tabindex="-1"
		role="dialog" aria-hidden="true" data-keyboard="false"
		data-backdrop="static" >
		<div class="modal-dialog modal-lg">
			<div id="ln_modal-content" class="modal-content">
				<jsp:include page="/resources/default/jsp/exclusionsModal.jsp"></jsp:include>
			</div>
		</div>
	</div>	

<!-- Benchmarks Model -  ends  -->
	<jsp:include page="/WEB-INF/views/templateInclude.jsp" />
	<jsp:include page="/resources/default/jsp/exportModal.jsp"></jsp:include>
	<jsp:include page="/resources/default/jsp/browserIncompatibleModal.jsp"></jsp:include>
	<jsp:include page="/resources/default/jsp/ajaxErrorDialog.jsp"></jsp:include>
	<input type="hidden" value="${model.templateCriteriaDTO.phmUrl}" id="ln_phmUrl">
	<input type="hidden" value="${model.templateCriteriaDTO.portalUrl}" id="ln_portalUrl">
    <form id="ln_topMenuForm" action="" method="POST">
    	<input type="hidden" id="SAMLResponse" name="SAMLResponse" value="">    
    	<input type="hidden" id="saml" name="saml" value="">    
    </form>

<tiles:useAttribute id="modals" name="modals" classname="java.util.List" />
<c:if test="${not empty modals}">
		<c:forEach var="modal" items="${modals}">
		<jsp:include page="${modal}"></jsp:include>
	</c:forEach>
</c:if>
</body>
</html>