2011-04-30 5 views
0
<%@include file="/WEB-INF/jsp/include/pagedirectives.jsp"%> 

<div style="background: #D6E8FF; padding: 10px;" class="advanced_search"> 
<%@include file="/WEB-INF/jsp/include/page.topmessagebox.jsp"%> 

<table class="form" cellspacing="0" id="requestSubmissionEform"> 
    <tbody> 
     <tr> 
      <td class="label"><b>Label</b></td> 
      <td class="label" align="left"><b>Form 1</b></td> 
      <td class="label" align="left"><b>Form 2</b></td> 
      <td class="label" align="left"><b>Form 3</b></td> 
      <td class="label" align="left"><b>Form 4</b></td> 
      <td class="label" align="left"><b>Form 5</b></td> 
     </tr> 
     <c:forEach items="${eformDetailsList}" var="eformDetails" 
      varStatus="status"> 

      <tr id="serviceTypeWithEform"> 
       <td class="label"><label for="${eformDetails.id}_0"><c:out 
        value="${eformDetails.label}" /></label> <input type="hidden" 
        id="label_${eformDetails.id}_0" value="${eformDetails.label}" 
        name="label_0"></input> <input type="hidden" 
        id="index_${eformDetails.id}_0" value="${eformDetails.id}" 
        name="index_0"></input></td> 
       <c:if test="${eformDetails.controlType==1}"> 
        <td id="Col0" style="visibility: visible;"><input 
         id="eformDetail_${eformDetails.id}_0" class="eformDetail" 
         type="text" value="" name="form_0"></input></td> 
        <td id="Col1" style="visibility: visible;"><input 
         id="eformDetail_${eformDetails.id}_1" class="eformDetail" 
         type="text" value="" name="form_1"></input></td> 
        <td id="Col2" style="visibility: visible;"><input 
         id="eformDetail_${eformDetails.id}_2" class="eformDetail" 
         type="text" value="" name="form_2"></input></td> 
        <td id="Col3" style="visibility: visible;"><input 
         id="eformDetail_${eformDetails.id}_3" class="eformDetail" 
         type="text" value="" name="form_3"></input></td> 
        <td id="Col4" style="visibility: visible;"><input 
         id="eformDetail_${eformDetails.id}_4" class="eformDetail" 
         type="text" value="" name="form_4"></input></td> 
       </c:if> 
      </tr> 

     </c:forEach> 
     <c:if test="${empty eformDetailsList}"> 
      <tr id="serviceTypeWithNoEform"> 
       <td><b>There is no eform associated with this Service Type</b></td> 
      </tr> 
     </c:if> 

    </tbody> 
</table> 

이 페이지에는 2 개의 버튼 (이전 및 다음)이 있습니다. 다음에 클릭 할 때 6,7,8,9,10 등의 형태로 열 머리글을 변경하여 추가 클릭을 할 수 있습니다. 도와주세요!버튼 클릭시 테이블 열 머리글 변경

+0

코드가 게시됩니다. 기본적으로 나는 textboxes, 5 열 양식이 있습니다. 열에는 양식 1, 양식 2 등과 같은 제목이 있습니다.이 페이지에는 2 개의 버튼 (이전 및 다음)이 있습니다. 다음 번 클릭시 추가 클릭을 위해 6,7,8,9,10 등의 형태로 열 제목을 변경하고 싶습니다. 도와주세요! – user732362

답변

0

단지 (1

<tr> 
    <th>Label</th> 
    <th>Form ${(page * 5) + 1}</th> 
    <th>Form ${(page * 5) + 2}</th> 
    <th>Form ${(page * 5) + 3}</th> 
    <th>Form ${(page * 5) + 4}</th> 
    <th>Form ${(page * 5) + 5}</th> 
</tr> 

에 의해 모든 다음 버튼을 눌러 증가에 페이지 인덱스 0으로 페이지 인덱스를 시작, 동적 현재 페이지에 의존하여 인쇄 해당 테이블 헤더 셀은 유의하시기 바랍니다 <th>이 아닌 <td>)