<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html>
	<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">
					<h1>
						编辑基金经理
					</h1>
					
					<form id="new-project" class="form-horizontal" action="modifyManager.do?managerId=${manager.managerId }" method="post">
						<fieldset>
						<legend></legend>
							<div class="control-group">
								<label class="control-label" for="input01">基金经理姓名</label>
								<div class="controls">
									<input type="text" class="input-xlarge" id="input01" name="realName" value="${manager.realName }" />
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="select01">教育背景</label>
								<div class="controls">
									<select id="select01" name="education">
									<c:forEach items="${educations }" var="educations">
										<option value="${educations.subclassId }"  
										<c:if test="${educations.subclassId==manager.education }">selected</c:if>    >
										${educations.title }</option>
									</c:forEach>
										
									</select>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="input01">从业年限</label>
								<div class="controls">
									<!--  <input type="text" class="input-xlarge" id="input01" name="entirePeriod" value="${manager.entirePeriod }" />-->
									<select name="entirePeriod">
										<option value="0"></option>
										<c:forEach items="${entirePeriod}" var="entirePeriod">
											<option value="${entirePeriod.subclassId}"
											<c:if test="${manager.entirePeriod==entirePeriod.subclassId}">selected</c:if>>
											${entirePeriod.title}</option>
										</c:forEach>
									</select>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="select01">从业背景</label>
								<div class="controls">
									<select id="select01" name="practitioners">
									<c:forEach items="${practitioners }" var="practitioners">
										<option value="${practitioners.subclassId }"
										<c:if test="${manager.practitioners==practitioners.subclassId}">selected</c:if>>
										${practitioners.title }</option>
									</c:forEach>
									</select>
								</div>
							</div>
							
							<div class="control-group">
								<label class="control-label" for="select01">所属公司</label>
								<div class="controls">
									<select id="select01" name="companyId">
										<c:forEach items="${companys }" var="companys">
											 <option value="${companys.companyId }" 
											 <c:if test="${companys.companyId==manager.companyId }">selected</c:if> >
											 ${companys.shorterName }</option>
										</c:forEach>
									</select>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="textarea">基本介绍</label>
								<div class="controls">
									<textarea class="input-xlarge" id="textarea" rows="3" name="managerIntroduction">${manager.managerIntroduction }</textarea>
								</div>
							</div>
							<div class="form-actions">
								<button type="submit" class="btn btn-primary">保存</button> <button class="btn" type="reset" onclick="history.back()">取消</button>
							</div>
						</fieldset>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>
