Examination_system/Examination_system-1/.svn/pristine/cd/cdb0f4022919fe9dbdaf5a2e9c9...

37 lines
1.7 KiB
Plaintext

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:choose>
<c:when test="${page.totalRecord > 0}">
<c:forEach items="${page.results}" var="role" varStatus="index">
<tr ondblclick="setChecked(${role.id})">
<th style="vertical-align: middle;" class="center">
<label>
<input type="checkbox" id="inp${role.id}" value="${role.id}" class="ace inp" >
<span class="lbl">
</span>
</label>
</th>
<th style="vertical-align: middle;" class="center hidden-480">${(page.pageNum-1)*page.pageSize+index.index+1}</th>
<th style="vertical-align: middle;" class="center ">${role.name}</th>
<th style="vertical-align: middle;" class="center ">${role.describtion}</th>
<th style="vertical-align: middle;" class="center">${role.creator.name}</th>
<th style="vertical-align: middle;" class="center">${fn:substringBefore(role.createTime,'.')}</th>
<th style="vertical-align: middle;" class="center">${role.remarks}</th>
<th style="vertical-align: middle;" class="center">
<a href='#' title='修改' onclick='updateRole(&apos;${role.id}&apos;)' class='aBtnNoTD' ><i class='icon-edit color-p bigger-140'></i></a>
<a href='#' title='删除' onclick='del(&apos;${role.id}&apos;)' class='aBtnNoTD' ><i class='icon-remove-sign color-blue bigger-140'></i></a>
</th>
</tr>
</c:forEach>
<tr>
<td colspan="8" class="center" >
<%@include file="../paging.jsp" %>
</td>
</tr>
</c:when>
<c:otherwise>
<tr><td colspan='8' class='center'>没有相关数据</td></tr>
</c:otherwise>
</c:choose>