<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ taglib prefix="webpath" uri="/WEB-INF/tlds/path.tld"%>
<%@ taglib prefix="webpage" uri="/WEB-INF/tlds/pageview.tld"%>

<head>
	

</head>
		

<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		

		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
				<a href="#">首页</a>
			</li>
			<li class="active">证书管理</li>
		</ul><!-- .breadcrumb -->

		
	</div>
	<div class="page-content">
		<div class="row">
		
			<div class="col-xs-12">
			<div class="widget-toolbox">
				<div class="btn-group">
					<button class="btn btn-sm btn-success" onclick="window.location.href='<webpath:path/>/certificate/add'">
						<i class="icon-plus-sign-alt bigger-110"></i>
						新增
					</button>
					
					<!--  button class="btn btn-sm btn-success">
						<i class="icon-ban-circle bigger-110"></i>
						禁用
					</button-->
		
					
				</div>
				
				<div class="pull-right">
					
							
						
						
				</div>
			</div>
			
			<div class="pull-left"></div>
				<table id="table-data" class="table table-bordered ">
					<thead>
						<tr class="">
							<!-- <th class="center">
								<label>
									<input type="checkbox" class="ace">
									<span class="lbl"></span>
								</label>
							</th> -->
							<th width="">证书照片</th>
							<th width="15%">证书名称</th>
							<th width="8%">位置坐标</th>
							<th width="8%" class="">状态</th>
							<th width="100">操作</th>
						</tr>
					</thead>
		
					<tbody>
					
						<c:forEach var="list" items="${list}">
						<tr class="tr-highlight">
							<!-- <td class="center" width=10>
								<label>
									<input type="checkbox" class="ace">
									<span class="lbl"></span>
								</label>
							</td> -->
		
							<td title="" height="100">
							<c:if test="${list.uploadImage!='' && list.uploadImage!=null}">
							<img id="uploadImage" src="<webpath:path/>/wx/rainbowplan/loadResource?imageName=${list.uploadImage}" height="100%"/></c:if></td>
							<td title="">${list.name}</td>
							<td title="">${list.position}</td>
							<td title=""><c:if test="${list.status}"><span class="label label-sm label-success">启用</span></c:if><c:if test="${!list.status}"><span class="label label-sm label-danger">停用</span></c:if></td>
							
							<td>
								<div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
									
		
									<button class="btn btn-xs btn-info" onclick="window.location.href='<webpath:path/>/certificate/add?id=${list.id}'">
										<i class="icon-edit"></i>
									</button>
									&nbsp;
									<c:if test="${!list.status}">
									<button class="btn btn-xs btn-danger " onclick="certificate.remove('${list.id}')">
										<i class="icon-trash"></i>
									</button>
									</c:if>
		
									
									
									
								</div>
		
								
							</td>
						</tr>
						
						</c:forEach>
		
						
		
						
		
						
					</tbody>
				</table>
											
										
											
					
			</div>
			
		</div>
	</div>
	
	
	
	
	
	
</div>
<script src="<webpath:path/>/resources/js/certificate/certificate.js" type="text/javascript"></script>