<%@ 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>
			<li class="active">保存</li>
		</ul><!-- .breadcrumb -->

		
	</div>
	<div class="page-content">
		<div class="row">
		
			<div class="col-xs-12">
				
				<form action="#" id="certificateForm" name="certificateForm" method="post" onsubmit="return false" class="form-horizontal" role="form">
				<input type="hidden" id="id" name="id" value="${certificate.id}"/>
				<input type="hidden" id="uploadImage" name="uploadImage" value="${certificate.uploadImage}"/>
				
				<div class="row">
					<div class="col-xs-5">
					
						
					
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> <font color="red">*</font> 证书名称 </label>
	
							<div class="col-sm-9">
								<input type="text" id="name" name="name" class="col-xs-10 col-sm-10" value="${certificate.name}"/>
							</div>
						</div>
						
	
						
	
						
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-input-readonly"> 状态 </label>
	
							<div class="col-sm-9">
								<select name="status" id="status" class="col-xs-10 col-sm-10">  
								    
									<option value="true" <c:if test="${certificate.status==true}">selected</c:if>>启用</option>
									<option value="false" <c:if test="${certificate.status==false}">selected</c:if>>停用</option>
									
								</select>  
								
							</div>
						</div>
						
						<c:if test="${certificate.id!=null}">
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> <font color="red">*</font> 位置坐标 </label>
							<div class="col-sm-9">
							<textarea rows="4" class="col-xs-10 col-sm-10" id="position" name="position">${certificate.position}</textarea>
							</div>
						</div>
						</c:if>
						
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right" for="form-field-1">图片</label>
	
							<div class="col-sm-9">
								
								<input type="file" id="input_file" name="file" >
							</div>
						</div>
						
						<div class="col-md-offset-3 col-md-9">
							<button class="btn btn-sm btn-success" type="submit">
								<i class="icon-save bigger-110"></i>
								保存
							</button>
	
							&nbsp; &nbsp; &nbsp;
							<a class="btn btn-sm btn-success" href="javascript:history.go(-1)">
								<i class="icon-reply bigger-110"></i>
								返回
							</a>
							<c:if test="${certificate.id!=null}">&nbsp; &nbsp; &nbsp;
							<a class="btn btn-sm btn-success" href="javascript:;" onclick="certificate.test('${certificate.id}')">
								<i class="icon-play bigger-110"></i>
								测试
							</a></c:if>
						</div>
					</div>
				
					<div class="col-xs-7">
					<c:if test="${certificate.uploadImage!='' && certificate.uploadImage!=null}">
									<a href="javascript:;" style="width:300px"><img id="pic" src="<webpath:path/>/wx/rainbowplan/loadResource?imageName=${certificate.uploadImage}" width="300" onclick="certificate.editpic()"/></a><br></c:if>
					</div>
				</div>
				
				
				
				
					
				
				
			</form>
			
			
											
											
										
			</div>
			
		</div>
	</div>
	
	
	
	
	
	
</div>
<script src="<webpath:path/>/resources/js/certificate/certificate.js" type="text/javascript"></script>