<%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%if(testQuestion.getStudentSubQuestions().size()<=1 || (testQuestion.getItemId()!=null && subQuestion.getItemId()!=null && testQuestion.getItemId().equals(subQuestion.getItemId()))){%> <%if(testQuestion.getStudentSubQuestions().size()<=1 || itemIndex.equals(new Integer(0))){%> <%} if(testQuestion.getStudentSubQuestions().size()>1){ if(itemIndex.equals(new Integer(0))){%> <%} }%>

: 
<%if (((String)questionLabel).startsWith("image/")){%> <%} else if (((String)questionLabel).equals("image_label")){%>

<%}else if (((String)questionLabel).equals("flow")){%>
<%}else{%> <%}%>
<%if(testQuestion.getStudentSubQuestions().size()>1){%>
<%}%> <%if(((Integer)testType).intValue()!=3){%> "/> :  "/> :  <%}%> <%if (((String)questionLabel).startsWith("image/")){%> <%} else if (((String)questionLabel).equals("image_label")){%>

<%}else if (((String)questionLabel).equals("flow")){%>
<%}else{%> <%}%>
<%if (((String)optionLabel).startsWith("image/")){ %> <%}else if (((String)optionLabel).equals("image_label")){%> <%}%>

<%}else if (((String)optionLabel).equals("response_label")){ %> <%if(((Integer)testType).intValue()==1){%> <%} else if (((Integer)testType).intValue()==2 && testQuestion.getStudentSubQuestions().size()>1){%> <%}%> <%if(((Integer)questionType).intValue()==1 ){ %> <%--QuestionType.LID--%>
<%if(pageType.equals("correction") || correction.getAvailability()==2){%> <%-- show correction or CorrectionAvailability.ALWAYS--%> <%if(((Integer)testType).intValue()!=3 && ((Integer)formula).intValue()==1){%> <%-- Not TestType.INQUIRY and CorrectionFormula.FENIX--%> <bean:message key=" /> <bean:message key=" />
<%if(((Integer)cardinality).intValue()==1 ){ %> <%--CardinalityType.SINGLE--%> <bean:message key=" /> <bean:message key=" /> <%}else if(((Integer)cardinality).intValue()==2 ){ %> <%--CardinalityType.MULTIPLE--%> <bean:message key="" /> <bean:message key=" /> <%}%> <%}else{%>
<%}%> <%}%>
<%if(((Integer)cardinality).intValue()==1 ){ %> <%--CardinalityType.SINGLE--%>
<%}else if(((Integer)cardinality).intValue()==2 ){ %> <%--CardinalityType.MULTIPLE--%> <% Object object = request.getAttribute(questionValue); if(object!=null && object!=""){ String[] a = (String[])object; for(int i=0; i <% } } } %>
<%}%> <%}else{%> <%--QuestionType.STR or QuestionType.NUM --%> " maxlength="<%=maxchars.toString()%>" size="<%=cols.toString()%>" value="<%=questionValue.toString()%>" property='<%="question"+ optionOrder%>' disabled="<%=new Boolean(checkDisable).booleanValue()%>"/> " maxlength="<%=maxchars.toString()%>" size="<%=textBoxSize%>" value="<%=questionValue.toString()%>" property='<%="question"+ optionOrder%>' disabled="<%=new Boolean(checkDisable).booleanValue()%>"/> " rows="<%=rows.toString()%>" cols="<%=cols.toString()%>" value="<%=questionValue.toString()%>" property='<%="question"+ optionOrder%>' disabled="<%=new Boolean(checkDisable).booleanValue()%>"/> " rows="<%=rows.toString()%>" value="<%=questionValue.toString()%>" property='<%="question"+ optionOrder%>' disabled="<%=new Boolean(checkDisable).booleanValue()%>"/> " cols="<%=cols.toString()%>" value="<%=questionValue.toString()%>" property='<%="question"+ optionOrder%>' disabled="<%=new Boolean(checkDisable).booleanValue()%>"/> <%}%> <%}else if (((String)optionLabel).equals("flow")){%>
<%}else {%> <%}%> <%if(testQuestion.getStudentSubQuestions().size()>1){%>
<%if((((Integer)testType).intValue()!=3) &&(((Integer)formula).intValue()==1)){%> <%-- Not TestType.INQUIRY and CorrectionFormula.FENIX--%> <%if(((Integer)questionType).intValue()==1 ){ %> <%--QuestionType.LID--%> <%if(pageType.equals("correction") || correction.getAvailability()==2){%> <%-- show correction or CorrectionAvailability.ALWAYS--%> <bean:message key=" /> <bean:message key=" /> <%}%> <%}else{%> <%--QuestionType.STR or QuestionType.NUM --%> <%if(pageType.equals("correction") || correction.getAvailability()==2){%> <%-- show correction or CorrectionAvailability.ALWAYS--%> <bean:message key=" /> <bean:message key=" /> <%}%> <%}%> <%} else if((((Integer)testType).intValue()!=3) &&(((Integer)formula).intValue()!=1)){%> <%-- Not TestType.INQUIRY and CorrectionFormula.IMS--%> <%if(((Integer)questionType).intValue()==1 ){ %> <%--QuestionType.LID--%> <%}%> <%if (((String)feedbackLabel).startsWith("image/")){%> <%} else if (((String)feedbackLabel).equals("image_label")){%>

<%}else if (((String)feedbackLabel).equals("flow")){%>
<%}else{%> <%}%>
<%} else if(((Integer)testType).intValue()==3) {%> <%-- TestType.INQUIRY--%> <%if(((Integer)questionType).intValue()==1 ){ %> <%--QuestionType.LID--%> <%} }%> <%}%>