<%@ 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="giftForm" name="giftForm" method="post" onsubmit="return false" class="form-horizontal" role="form">
				<input type="hidden" id="id" name="id" value="${gift.id}"/>
				<div class="row">
				<div class="col-xs-12">
				<h3 class="header smaller lighter blue">礼物</h3></div>
				</div>
				
				
				<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="${gift.name}"/>
						</div>
					</div>
					
					
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 详细信息 </label>

						<div class="col-sm-9">
							<textarea rows="4" class="col-xs-10 col-sm-10" id="content" name="content">${gift.content}</textarea>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 积分</label>

						<div class="col-sm-9">
						
						<input type="text" id="point" name="point" class="col-xs-10 col-sm-10" value="${gift.point}"/>
					
						</div>
					</div>

					
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 总数</label>

						<div class="col-sm-9">
						
						<input type="text" id="total" name="total" class="col-xs-10 col-sm-10" value="${gift.total}"/>
					
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 库存</label>

						<div class="col-sm-9">
						
						<input type="text" id="stock" name="stock" class="col-xs-10 col-sm-10" value="${gift.stock}"/>
					
						</div>
					</div>
					
					
				
					<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">
						<c:if test="${gift.uploadImage!=null}">
							<img src="<webpath:path/>/wx/rainbowplan/loadResource?imageName=${gift.uploadImage}" /><br></c:if>
							<input type="file" id="input_file" name="file" >
						</div>
					</div>
				
				
				</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>
					</div>
				
				
			</form>
			
			
											
											
										
			</div>
			
		</div>
	</div>
	
	
	
	
	
	
</div>
<script src="<webpath:path/>/resources/js/gift/gift.js" type="text/javascript"></script>