049d556a30153c554e8f4953c125f3f86111df11.svn-base 3.61 KB
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<%@ include file="/WEB-INF/views/jsp/admin/public/publicjs.jsp"%>
		<script type="text/javascript">
		//全部选中/全部不选中
		   function checkAllUser(user){
			  var selectuser = document.getElementsByName("id");
		      for(var i=0;i<selectuser.length;i++){
		     	 selectuser[i].checked = user.checked;
		      }
		   }

 //批量删除
    function deleteAll(){
	 var selectuser = document.getElementsByName("id");
	 var flag = false;
     for(var i=0;i<selectuser.length;i++){
     	if(selectuser[i].checked){
     		flag = true;
     	} 
     }
     if(!flag){
     	alert("没有选择执行操作的选项!不能执行该操作");
     }
     else{
     $("#dialog").dialog("destroy");
		$("#dialog-confirm").dialog({
			resizable: false,
			height:140,
			modal: true,
			buttons: {
				'确定': function() {
					$(this).dialog('close');
					document.Form1.action = "/delLive.html";
     		document.Form1.submit();
				},
				'取消': function() {
					$(this).dialog('close');
				}
			}
		});
     }
   }
</script>
	</head>
	<body>
		<form:form action="${basePath }/level/list.html" modelAttribute="level" id="blackViewForm" name="Form1">
		    <input type="hidden" value="${page.page}" name="page" id="page"></input>
		    <input type="hidden" value="1" name="formsubmit" id="formsubmit"></input>
				<div class="main-title">
					<span style="float: left"><img src="<%=request.getContextPath()%>/images/admin/t_mt01.jpg" border="0" />
					</span>
					<span style="float: left; color: #353C44; font-weight: 600; font-size: 14px;">等级列表</span>
					<span style="float: left; margin-left: 20px; cursor: pointer;">
					<a href="<%=request.getContextPath()%>/level/edit.html" class="addbtn btn">添  加</a>
				   </span>
					<span style="float: right">
					<img src="<%=request.getContextPath()%>/images/admin/t_mt03.jpg" />
					</span>
				</div>
				<div style="padding: 5px;">

					<table width="100%" class="tablestyle" border="0" cellspacing="1"
						cellpadding="0" align="center" bgcolor="#cccccc">
						<tr bgcolor="#F2F2F2" align="center" style="font-weight: 600;"
							height="22">
							<td>
								序号
							</td>
							<td>
								名称
							</td>
							<td>
								等级
							</td>
							<td>
								起始经验值
							</td>
							<td>
								结束经验值
							</td>
							<td>
								操作
							</td>
						</tr>
                         <c:forEach  items="${levelList}" var="tmp" varStatus="statu">
							<tr bgcolor="#FFFFFF" align="center">
								<td>
									${statu.count }
								</td>
								<td>
									${tmp.name}
								</td>
								<td>
									${tmp.level}
								</td>
								<td>
									${tmp.expStart}
								</td>
								<td>
									${tmp.expEnd}
								</td>
								<td nowrap="nowrap">
									<a href="<%=request.getContextPath()%>/level/edit.html?id=${tmp.id}" class="handle btn"><i class="pencil"></i>编辑</a>
									<a href="javascript:submitAction('<%=request.getContextPath()%>/level/delete.html?id=${tmp.id}')" class="handle btn"><i class="pencil"></i>删除</a>
								</td>
							</tr>
						</c:forEach>
					</table>
                  <%@ include file="/WEB-INF/views/jsp/admin/system/keer_pager.jsp"%>
				</div>
		</form:form>
	</body>
</html>