<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html lang="en" class="ie6 ielt7 ielt8 ielt9"><![endif]--><!--[if IE 7 ]><html lang="en" class="ie7 ielt8 ielt9"><![endif]--><!--[if IE 8 ]><html lang="en" class="ie8 ielt9"><![endif]--><!--[if IE 9 ]><html lang="en" class="ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!--> 
<html lang="en"><!--<![endif]--> 
	<head>
		<%@include file="/WEB-INF/navigation/JsAndCss.jsp" %>
	</head>
	<body>
		<div class="container">
			<div class="navbar">
				<div class="navbar-inner">
					<%@include file="../navigation/menu.jsp"%>
				</div>
			</div>
			<div class="row">
				<%@include file="../navigation/navigation.jsp"%>
				<div class="span9">
					<form method="post" action="updateCategory.do">
						<fieldset>
						   <legend>编辑${category.title}</legend>
							<div class="control-group">
							<input name="categoryId" value="${category.categoryId}" type="hidden"/>
								<label class="control-label" for="input01">类别名称</label>
								<div class="controls">
									<input type="text" class="input-xlarge" id="input01" name="title" value="${category.title}"/>
								</div>
							</div>
							
							<div class="control-group">
								<label class="control-label" for="textarea">说明</label>
								<div class="controls">
									<textarea class="input-xlarge" id="textarea" rows="5" name="description">${category.description}</textarea>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input02">是否有效</label>
								<div class="controls">
									<input type="checkbox" class="input-xlarge" id="input02" name="status" value="1"
									<c:if test="${category.status==1}">checked</c:if>
									/>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input03">是否允许多层子类</label>
								<div class="controls">
									<input type="checkbox" class="input-xlarge" id="input03" name="multiHierarchy" value="1"
									<c:if test="${category.multiHierarchy==1}">checked</c:if>
									/>是 &nbsp;&nbsp;
								</div>
							</div>
							<div >
								<input type="submit" value="确定"/>
							</div>
						</fieldset>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>