日期:2014-05-16 浏览次数:20420 次
<c:forEach items="${deptsList }" var="per" varStatus="varStatus"> <tr> <td align="center">${varStatus.count }</td> <td style="display:none" align="center" id="deptId_${per.id }">${per.id }</td> <td > <a href="#" class="handLink" onclick="showDiv('${per.id }','${per.name }');"><span>${per.name }</span></a></td> <td>${per.creator }</td> <td><fmt:formatDate value="${per.creationTime }" type="both" /></td> <td> <c:choose> <c:when test="${per.latestUpdater!=null }">${per.latestUpdater }</c:when> <c:otherwise>NO Modification</c:otherwise> </c:choose> </td> <td> <c:choose> <c:when test="${per.latestUpdateTime!=null }"><fmt:formatDate value="${per.latestUpdateTime }" type="both" /></c:when> <c:otherwise>NO Modification</c:otherwise> </c:choose> </td> <td align="center"> <a href="#toUpdateDiv" id="skipToUpdateDiv"><input type="button" class="btn span-2" value="Update" onclick="showDiv('${per.id }','${per.name }');" /></a> <input type="button" class="btn span-2" value="Delete" onclick="deleteDept(${per.id})"/> </td> </tr> </c:forEach>
<s:iterator value="deptsList" id="per" status="status"> <tr> <td align="center">${status.count }</td> <td style="display:none" align="center" id="deptId_${per.id }">${per.id }</td> <td > <a href="#" class="handLink" onclick="showDiv('${per.id }','${per.name }');"><span>${per.name }</span></a></td> <td>${per.creator }</td> <td><s:date name="#per.creationTime" /></td> <td> <s:if test="%{#per.latestUpdater!=null }">${per.latestUpdater }</s:if> <s:else>NO Modification</s:else> </td> <td> <s:if test="%{#per.latestUpdateTime!=null }"><s:date name="#per.latestUpdateTime"/></s:if> <s:else>NO Modification</s:else> </td> <td align="center"> <a href="#toUpdateDiv" id="skipToUpdateDiv"><input type="button" class="btn span-2" value="Update" onclick="showDiv('${per.id }','${per.name }');" /></a> <input type="button" class="btn span-2" value="Delete" onclick="deleteDept(${per.id})"/> </td> </tr> </s:iterator>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <fmt:formatDate value="${per.latestUpdateTime }" type="both" />