<commit_before><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/nlevelcombo.tld" prefix="ncombo" %>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>

<head>
<%
      String access = (String)session.getAttribute("Access");
	  String pageOf = request.getParameter("pageOf");
	  request.setAttribute(Constants.PAGEOF,pageOf);
	  boolean mac = false;
      Object os = request.getHeader("user-agent");
      if(os!=null && os.toString().toLowerCase().indexOf("mac")!=-1)
      {
          mac = true;
      }
	
	String frame1Ysize = "100%";
	String frame2Ysize = "200%";
	String frame3Ysize = "150%";
	String cpAndParticipantViewFrameHeight="50%";
	if(access != null && access.equals("Denied"))
	{
		cpAndParticipantViewFrameHeight="15%";
	}
	
	if(mac)
	{
		frame1Ysize = "180";
		frame2Ysize = "180";
		frame3Ysize = "600";
		if(access != null && access.equals("Denied"))
		{
			frame1Ysize = "80";
			frame2Ysize = "320";
		}
	}
%>

	<script src="jss/script.js" type="text/javascript"></script>
	<script language="JavaScript" type="text/javascript" src="jss/javaScript.js"></script>
	<script>
		function collectionProtocolPage()
		{
			var action ="CollectionProtocol.do?operation=add&pageOf=pageOfCollectionProtocol&invokeFunction=initCollectionProtocolPage";
			document.forms[0].action = action;
			document.forms[0].submit();
		}
		
		function consentPage()
		{
			var action ="CollectionProtocol.do?operation=add&pageOf=pageOfCollectionProtocol&invokeFunction=initCollectionProtocolPage&tab=consentTab";
			document.forms[0].action = action;
			document.forms[0].submit();
		}
		
		function addNewEvent()
		{
			window.parent.frames['SpecimenRequirementView'].location="ProtocolEventsDetails.do?pageOf=newEvent&operation=add";
		}
		
		function viewSummary()
		{
			var action="DefineEvents.do?Event_Id=dummyId&pageOf=ViewSummary";
			document.forms[0].action=action;
			document.forms[0].submit();
		}

		function defineEvents()
		{
			var action="DefineEvents.do?pageOf=collectionProtocol";
			document.forms[0].action=action;
			document.forms[0].submit();
		}
		
	</script>

</head>
<body>
<html:form action="CollectionProtocol.do">
	<table summary="" cellpadding="1" cellspacing="0" border="0" height="20" class="tabPage" width="700">
		<tr>
	 		<td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" id="consentTab" onclick="collectionProtocolPage()">
		     <bean:message key="cpbasedentry.collectionprotocol" />
	        </td>

	        <td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" id="consentTab" onclick="consentPage()">
			    <bean:message key="consents.consents" />        
	        </td>
			<logic:equal name="<%=Constants.PAGEOF%>" value="<%=Constants.VIEW_SUMMARY%>">
					<td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" 	onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" onclick="defineEvents()">
						<bean:message key="cpbasedentry.defineevents" />					
					</td>

					<td height="20" width="9%" nowrap class="tabMenuItemSelected">
						 <bean:message key="cpbasedentry.viewsummary" />
					</td>
			</logic:equal>
			<logic:notEqual name="<%=Constants.PAGEOF%>" value="<%=Constants.VIEW_SUMMARY%>">
				<td height="20" width="9%" nowrap class="tabMenuItemSelected" id="collectionProtocolTab">
					<bean:message key="cpbasedentry.defineevents" />
				</td>
				
				<td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" 	onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" id="consentTab" onclick="viewSummary()">
					 <bean:message key="cpbasedentry.viewsummary" />
				</td>
			</logic:notEqual>
						
	
	     <td width="600" class="tabMenuSeparator" colspan="1">&nbsp;</td>
	   </tr>
	   <tr>
		 <td class="tabField" colspan="6">
			<table border="0" height="100%" width="100%" cellpadding="0" cellspacing="0">
				<tr height="100%">
					<td width="22%" valign="top">
						<table border="0" width="250px" height="100%">
							<tr>
								<td align="left" valign="top">		
								<iframe id="SpecimenEvents" name="SpecimenEvents" src="showTree.do" scrolling="no" frameborder="0" width="250px" height="450px" marginheight=0 marginwidth=0 valign="top">
									Your Browser doesn't support IFrames.
								</iframe>

								</td>
							</tr>
							<tr>
								<td align="left" valign="top" nowrap>
									<html:button styleClass="actionButton" property="submitPage" onclick="addNewEvent()">
										 <bean:message key="cpbasedentry.addnewevent" />
									</html:button>
									<logic:equal name="<%=Constants.PAGEOF%>" value="<%=Constants.VIEW_SUMMARY%>">
										<html:button styleClass="actionButton" property="submitPage" onclick="defineEvents()">
											<< <bean:message key="cpbasedentry.defineevents" />
										</html:button>
									</logic:equal>
								</td>
							</tr>
                        </table>	<commit_msg>Changes related to CP based Entry<commit_after><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/nlevelcombo.tld" prefix="ncombo" %>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>

<head>
<%
      String access = (String)session.getAttribute("Access");
	  String pageOf = request.getParameter("pageOf");
	  request.setAttribute(Constants.PAGEOF,pageOf);
	  boolean mac = false;
      Object os = request.getHeader("user-agent");
      if(os!=null && os.toString().toLowerCase().indexOf("mac")!=-1)
      {
          mac = true;
      }
	
	String frame1Ysize = "100%";
	String frame2Ysize = "200%";
	String frame3Ysize = "150%";
	String cpAndParticipantViewFrameHeight="50%";
	if(access != null && access.equals("Denied"))
	{
		cpAndParticipantViewFrameHeight="15%";
	}
	
	if(mac)
	{
		frame1Ysize = "180";
		frame2Ysize = "180";
		frame3Ysize = "600";
		if(access != null && access.equals("Denied"))
		{
			frame1Ysize = "80";
			frame2Ysize = "320";
		}
	}
%>

	<script src="jss/script.js" type="text/javascript"></script>
	<script language="JavaScript" type="text/javascript" src="jss/javaScript.js"></script>
	<script>
		function collectionProtocolPage()
		{
			var action ="CollectionProtocol.do?operation=add&pageOf=pageOfCollectionProtocol&invokeFunction=initCollectionProtocolPage";
			document.forms[0].action = action;
			document.forms[0].submit();
		}
		
		function consentPage()
		{
			var action ="CollectionProtocol.do?operation=add&pageOf=pageOfCollectionProtocol&invokeFunction=initCollectionProtocolPage&tab=consentTab";
			document.forms[0].action = action;
			document.forms[0].submit();
		}
		
		function addNewEvent()
		{
			window.parent.frames['SpecimenRequirementView'].location="ProtocolEventsDetails.do?pageOf=newEvent&operation=add";
		}
		
		function viewSummary()
		{
			var action="DefineEvents.do?Event_Id=dummyId&pageOf=ViewSummary";
			document.forms[0].action=action;
			document.forms[0].submit();
		}

		function defineEvents()
		{
			var action="DefineEvents.do?pageOf=collectionProtocol";
			document.forms[0].action=action;
			document.forms[0].submit();
		}
		
	</script>

</head>
<body>
<html:form action="CollectionProtocol.do">
	<table summary="" cellpadding="1" cellspacing="0" border="0" height="20" class="tabPage" width="700">
		<tr>
	 		<td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" id="consentTab" onclick="collectionProtocolPage()">
		     <bean:message key="cpbasedentry.collectionprotocol" />
	        </td>

	        <td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" id="consentTab" onclick="consentPage()">
			    <bean:message key="consents.consents" />        
	        </td>
			<logic:equal name="<%=Constants.PAGEOF%>" value="<%=Constants.VIEW_SUMMARY%>">
					<td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" 	onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" onclick="defineEvents()">
						<bean:message key="cpbasedentry.defineevents" />					
					</td>

					<td height="20" width="9%" nowrap class="tabMenuItemSelected">
						 <bean:message key="cpbasedentry.viewsummary" />
					</td>
			</logic:equal>
			<logic:notEqual name="<%=Constants.PAGEOF%>" value="<%=Constants.VIEW_SUMMARY%>">
				<td height="20" width="9%" nowrap class="tabMenuItemSelected" id="collectionProtocolTab">
					<bean:message key="cpbasedentry.defineevents" />
				</td>
				
				<td height="20" width="10%" class="tabMenuItem" onmouseover="changeMenuStyle(this,'tabMenuItemOver'),showCursor()" 	onmouseout="changeMenuStyle(this,'tabMenuItem'),hideCursor()" id="consentTab" onclick="viewSummary()">
					 <bean:message key="cpbasedentry.viewsummary" />
				</td>
			</logic:notEqual>
						
	
	     <td width="600" class="tabMenuSeparator" colspan="1">&nbsp;</td>
	   </tr>
	   <tr>
		 <td class="tabField" colspan="6">
			<table border="0" height="100%" width="100%" cellpadding="0" cellspacing="0">
				<tr height="100%">
					<td width="22%" valign="top">
						<table border="0" width="250px" height="100%">
							<tr>
								<td align="left" valign="top">		
								<iframe id="SpecimenEvents" name="SpecimenEvents" src="showTree.do" scrolling="no" frameborder="0" width="250px" height="450px" marginheight=0 marginwidth=0 valign="top">
									Your Browser doesn't support IFrames.
								</iframe>

								</td>
							</tr>
							<tr>
								<td align="left" valign="top" nowrap>
									<html:button styleClass="actionButton" property="submitPage" onclick="defineEvents()">
										 <bean:message key="cpbasedentry.addnewevent" />
									</html:button>
									<logic:equal name="<%=Constants.PAGEOF%>" value="<%=Constants.VIEW_SUMMARY%>">
										<html:button styleClass="actionButton" property="submitPage" onclick="defineEvents()">
											<< <bean:message key="cpbasedentry.defineevents" />
										</html:button>
									</logic:equal>
								</td>
							</tr>
                        </table>	
{'fraction_non_alphanumeric': 0.17665144880275785, 'fraction_numerical': 0.02031118978850275, 'mean_word_length': 4.504615384615384, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3951850', 'n_tokens_mistral': 4239, 'n_tokens_neox': 3380, 'n_words': 517}