8d12879b1dc35beb01fa5ccc7fcbaa71e10f4d0a.svn-base 4.41 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" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>${config.id !=null ?'编辑':'添加' }</title>
		<%@ include file="/WEB-INF/views/jsp/admin/public/publicjs.jsp"%>
	 	<%@ include file="/WEB-INF/views/jsp/admin/public/validate.jsp"%>
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/js/webuploader/webuploader.css">
		<script type="text/javascript" src="<%=request.getContextPath() %>/js/webuploader/webuploader.js"></script>
	</head>
	<body>
		<div class="center-main-ss" style="margin-bottom: 5px;">
			<div class="main-title">
				<span style="float: left;"><img src="<%=request.getContextPath() %>/images/admin/t_mt01.jpg" />
				</span>
				<span class="main-tt">${gift.id !=null ?'编辑':'添加' }</span>
				<span style="float: right;"><img src="<%=request.getContextPath() %>/images/admin/t_mt03.jpg" />
				</span>
			</div>
			<div class="main-add">
				<form:form action="${basePath}/gift/saveUpdategift.html" id="validateForm" method="post" enctype="multipart/form-data" modelAttribute="gift">
				<form:hidden path="id"/>
					<table width="80%" align="center" border="0" cellpadding="0"
						cellspacing="1" bgcolor="#CCCCCC" class="productTable">
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								名称:
							</td>
							<td bgcolor="#ffffff">
							<form:input path="name" cssClass="required"/>
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								经验值: 
							</td>
							<td bgcolor="#ffffff">
							<form:input path="exp" cssClass="required number"/>
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								支持度: 
							</td>
							<td bgcolor="#ffffff">
								<form:input path="supportDegree" cssClass="required number"/>
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								售价: 
							</td>
							<td bgcolor="#ffffff">
								<form:input path="price" cssClass="required number"/>
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								gif图地址: 
							</td>
							<td bgcolor="#ffffff">
								<form:input path="gif" cssStyle="width:300px;" />
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								选择gif图片上传: 
							</td>
							<td bgcolor="#ffffff">
								<input name="giffile" type="file" title="只能上传.gif格式" filetype="gif">
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								图标地址: 
							</td>
							<td bgcolor="#ffffff">
								<form:input path="icon" cssStyle="width:300px;"/>
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								选择图标上传: 
							</td>
							<td bgcolor="#ffffff">
								<input name="picfile" type="file"  title="只能上传.png,.jpg格式"  filetype="png,jpg">
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								是否显示'连': 
							</td>
							<td bgcolor="#ffffff">
								<form:radiobutton checked="true" value="0" path="type" />显示
								<form:radiobutton value="1" path="type"/>不显示
							</td>
						</tr>
						<tr>
							<td align="right" nowrap="nowrap" class="productTable_title">
								是否启用: 
							</td>
							<td bgcolor="#ffffff">
								<form:radiobutton checked="true"  value="Y" path="active" />启用
								<form:radiobutton value="N" path="active"/>停用
							</td>
						</tr>
						<tr>
							<td colspan="2" align="center" height="40" bgcolor="#ffffff">
							<input type="submit" value="保 存" class="admin_again"></input>
							&nbsp;
							<input type="reset" value="取 消" class="admin_again" onClick="javascript:history.go(-1);"></input>
							&nbsp;
							<input type="button" value="返 回" class="admin_again" onClick="javascript:history.go(-1);"/>
							</td>
						</tr>
					</table>
				</form:form>
			</div>
		</div>
	</body>
</html>