<%@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" %>
		<link href="/css/glDatePicker.default.css" rel="stylesheet" />
		<script src="/js/html5.js"></script>
		<script src="/datePicker/WdatePicker.js"></script>
		<style>
.basic_msg { b
	font-size: 25px;
}

.subscribe_msg {
	font-size: 20px;
}

.issue_msg {
	font-size: 20px;
}

.performance_msg {
	font-size: 20px;
}
.commission_msg {
	font-size: 20px;
}
.description_msg {
	font-size: 20px;
}
.attachment_msg{
	font-size:20px;
}

div.tabs
{
    width:940px;
	height:35px;
	overflow:hidden;
	padding-left:10px;
	margin-top:10px;
}
div.tabs ul li
{
	float:left;
	padding:0 5px;
}
div.tabs ul li a
{
	display:block;
	width:101px;
	height:36px;
	overflow:hidden;
	line-height:36px;
	text-align:center;
}
div.fee_type input, div.fee_type label
{
    border-width: 0px;
    display: block;
    height: 30px;
    line-height: 27px;
    float: left;
    margin-left: 5px;
}
div.fee_type label
{
    margin-left: 3px;
    margin-right: 5px;
}
div.input_info
{
    width: 580px;
    text-align: left;
    margin-left: 10px;
    float: left;
    height: 40px;
}
div.input_info span.info
{
    display:inline-block;
    width:50px;
}
</style>
<script type="" src="/js/ajaxfileupload.js"></script>
		<script type="text/javascript">
		$(function(){
			$(".basic_msg").css({"fontSize":"25px","color":"#000"});
			$("#product_basic").show();
			$("#product_subscribe").hide();
			$("#product_issue").hide();
			$("#product_performance").hide();
			$("#product_commission").hide();
			$("#product_description").hide();
			$("#product_attachment").hide();
		});
		function product_basic(){
			$(".basic_msg").css({"fontSize":"25px","color":"#000"});
			$(".subscribe_msg").css({"fontSize":"20px","color":""});
			$(".issue_msg").css({"fontSize":"20px","color":""});
			$(".performance_msg").css({"fontSize":"20px","color":""});
			$(".commission_msg").css({"fontSize":"20px","color":""});
			$(".description_msg").css({"fontSize":"20px","color":""});
			$(".attachment_msg").css({"fontSize":"20px","color":""});
			$("#product_basic").show();
			$("#product_subscribe").hide();
			$("#product_issue").hide();
			$("#product_performance").hide();
			$("#product_commission").hide();
			$("#product_description").hide();
			$("#product_attachment").hide();
		}
		function product_subscribe(){
			$(".basic_msg").css({"fontSize":"20px","color":""});
			$(".subscribe_msg").css({"fontSize":"25px","color":"#000"});
			$(".issue_msg").css({"fontSize":"20px","color":""});
			$(".performance_msg").css({"fontSize":"20px","color":""});
			$(".commission_msg").css({"fontSize":"20px","color":""});
			$(".description_msg").css({"fontSize":"20px","color":""});
			$(".attachment_msg").css({"fontSize":"20px","color":""});
			$(".attachment_msg").css({"fontSize":"20px","color":""});
			$("#product_basic").hide();
			$("#product_subscribe").show();
			$("#product_issue").hide();
			$("#product_performance").hide();
			$("#product_commission").hide();
			$("#product_description").hide();
			$("#product_attachment").hide();
		}
		function product_issue(){
			$(".basic_msg").css({"fontSize":"20px","color":""});
			$(".subscribe_msg").css({"fontSize":"20px","color":""});
			$(".issue_msg").css({"fontSize":"25px","color":"#000"});
			$(".performance_msg").css({"fontSize":"20px","color":""});
			$(".commission_msg").css({"fontSize":"20px","color":""});
			$(".description_msg").css({"fontSize":"20px","color":""});
			$(".attachment_msg").css({"fontSize":"20px","color":""});
			$("#product_basic").hide();
			$("#product_subscribe").hide();
			$("#product_issue").show();
			$("#product_performance").hide();
			$("#product_commission").hide();
			$("#product_description").hide();
			$("#product_attachment").hide();
		}
		function product_attachment(){
			$(".basic_msg").css({"fontSize":"20px","color":""});
			$(".subscribe_msg").css({"fontSize":"20px","color":""});
			$(".issue_msg").css({"fontSize":"20px","color":""});
			$(".performance_msg").css({"fontSize":"20px","color":""});
			$(".commission_msg").css({"fontSize":"20px","color":""});
			$(".description_msg").css({"fontSize":"20px","color":""});
			$(".attachment_msg").css({"fontSize":"25px","color":"#000"});
			$("#product_basic").hide();
			$("#product_subscribe").hide();
			$("#product_issue").hide();
			$("#product_performance").hide();
			$("#product_commission").hide();
			$("#product_description").hide();
			$("#product_attachment").show();
		}
		function product_performance(){
			$(".basic_msg").css({"fontSize":"20px","color":""});
			$(".subscribe_msg").css({"fontSize":"20px","color":""});
			$(".issue_msg").css({"fontSize":"20px","color":""});
			$(".performance_msg").css({"fontSize":"25px","color":"#000"});
			$(".commission_msg").css({"fontSize":"20px","color":""});
			$(".description_msg").css({"fontSize":"20px","color":""});
			$(".attachment_msg").css({"fontSize":"20px","color":""});
			$("#product_basic").hide();
			$("#product_subscribe").hide();
			$("#product_issue").hide();
			$("#product_performance").show();
			$("#product_commission").hide();
			$("#product_description").hide();
			$("#product_attachment").hide();
			$("#product_attachment").hide();
		}
		
			function getMinorStrategy(){
				var id=$("#majorStrategy").val();
				
				$.post("findMinorStrategyByMajorStrategyId.do",{"majorStrategyId":id},function(data){
					var obj = document.form.minorStrategy;
					obj.length=0;
					if(data != null){
						for(i=0;i<data.length;i++){
							obj[i]=new Option(data[i].title, data[i].subclassId);
						}
					}
				});
				
			}
			function getManager(){
				var id=$("#company").val();
				
				$.post("findManagerByCompany.do",{"companyId":id},function(data){
					var obj = document.form.manager;
					obj.length=0;
					if(data != null){
						for(i=0;i<data.length;i++){
							obj[i]=new Option(data[i].realName, data[i].managerId);
						}
					}
				});
				
			}
			function checkExpectedProfit(){
				var reg = /^[1-9]\d*|0$/;
				var expectedProfit = $("#expectedProfit").val();
				if(!reg.test(expectedProfit)){
					$("#expectedProfit").val(0);
				}else{
					$("#expectedProfit").val(expectedProfit*1000)
				}
			}

		
			
			
		function ajaxFileUpload() {  
            $.ajaxFileUpload  
        (  
            {  
                url: '/imageUp.jsp',  
                secureuri: false,  
                fileElementId: 'netvalueFile',  
                dataType: 'json',  
                beforeSend: function() {  
                    $("#loading").show();  
                },  
                complete: function() {  
                    $("#loading").hide();  
                },  
                success: function(data, status) {  
                	//alert(data.url);
                    $('#netvalueUri').val(data.url);
                    $('#net').attr('src',"/"+data.url);
                },  
                error: function(data, status, e) {  
                    alert(e);  
                }  
            }  
        )  
            return false;  
        }  
		
		
		function ajaxFileUploads() {  
            $.ajaxFileUpload  
        (  
            {  
                url: '/ExcelUp.jsp',  
                secureuri: false,  
                fileElementId: 'excelFile',  
                dataType: 'json',  
                beforeSend: function() {  
                    $("#loading").show();  
                },  
                complete: function() {  
                    $("#loading").hide();  
                },  
                success: function(data, status) {  
                	//alert(data.url);
                    $('#excel').attr("onclick","location.href='/operation/ExcelToDb/toGetFile.do?uri="+data.physicalPath+"'");
                },  
                error: function(data, status, e) {  
                    alert(e);  
                }  
            }  
        )  
            return false;  
        }  

</script>
</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">
			
				<div class="tabs">
					<ul style="list-style-type: none">
						<li><a href="javascript:;" onclick="product_basic()"> <span class="basic_msg">基本信息</span></a></li>
						<li><a href="javascript:;" onclick="product_subscribe()"> <span class="subscribe_msg">认购信息</span></a> </li>
						<li><a href="javascript:;" onclick="product_issue()"><span class="issue_msg">发行信息 </span></a></li>
						<li><a href="javascript:;" onclick="product_performance()"><span class="performance_msg">业绩表现</a></span></li>
						<li><a href="toProductCommission.do?productId=${product.productId}" ><span class="commission_msg">产品返佣 </span></a></li>
						<li><a href="toProductDescription.do?productId=${product.productId}"><span class="description_msg">产品其他信息</a></span></li>
						<li><a href="toProductAttachment.do?relationId=${product.productId}"><span class="attachment_msg">附件</a></span></li>
					</ul>
				</div>
				<form id="edit-profile" class="form-horizontal" method="post" action="modifyProduct.do?productId=${product.productId }" name="form" onsubmit="checkExpectedProfit()">
					<legend style="margin-top:15px"></legend>
					<div id="product_basic">
						<div class="control-group">
								<label class="control-label" for="select01">基金类型</label>
								<div class="controls">
									<select id="select01" name="productType">
									<option value="0">--选择基金类型--</option>
									<c:forEach items="${productTypes }" var="productTypes">
										<option value="${productTypes.subclassId }" <c:if test="${product.productType==productTypes.subclassId }">selected</c:if>>${productTypes.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"  value="${product.productName }" name="productName"/>
							</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="shorterName" value="${product.shorterName}" />
								</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="productCode" value="${product.productCode}" />
							</div>
						</div>
						
							<div class="control-group">
								<label class="control-label" for="company">所属公司</label>
								<div class="controls">
									<select id="company" name="companyId" onchange="getManager()">
									<c:forEach items="${companys }" var="companys">
										<option value="${companys.companyId }" <c:if test="${product.companyId==companys.companyId }">selected</c:if>>${companys.shorterName }</option>
									</c:forEach>
									
									</select>
								</div>
							</div>
						<div class="control-group">
								<label class="control-label" for="mananger">所属经理</label>
								<div class="controls">
									<select id="mananger" name="managerId">
									<c:forEach items="${managers }" var="managers">
										<option value="${managers.managerId }" <c:if test="${product.managerId==managers.managerId }">selected</c:if>>${managers.realName }</option>
									</c:forEach>
								
									</select>
								</div>
							</div>
						
						<div class="control-group">
								<label class="control-label" for="select01">发行平台</label>
								<div class="controls">
									<select id="select01" name="issuePortal">
									<c:forEach items="${issuePortals }" var="issuePortals">
										<option value="${issuePortals.subclassId }" <c:if test="${product.issuePortal==issuePortals.subclassId }">selected</c:if>>${issuePortals.title }</option>
									</c:forEach>
									
										
									</select>
								</div>
							</div>
						<div class="control-group">
								<label class="control-label" for="yes">结构化</label>
								<div class="input_info fee_type">
									<input type="radio" name="isStructured" <c:if test="${product.isStructured==1 }">checked</c:if>  id="yes" value="1"/>
                        			<label for="yes">是</label>
                        			<input type="radio" name="isStructured" <c:if test="${product.isStructured==0 }">checked</c:if> id="no" value="0"/>
                       		 		<label for="no">否</label>
								</div>
							</div>
						<div class="control-group">
								<label class="control-label" for="yes">备案</label>
								<div class="input_info fee_type">
									<input type="radio" name="isFiling"  <c:if test="${product.isFiling==1 }">checked</c:if> id="yes" value="1" />
                        			<label for="yes">是</label>
                        			<input type="radio" name="isFiling" <c:if test="${product.isFiling==0 }">checked</c:if> id="no" value="0"  />
                       		 		<label for="no">否</label>
								</div>
								
							</div>
						<div class="control-group">
								<label class="control-label" for="select01">监管单位</label>
								<div class="controls">
									<select id="select01" name="supervisionUnits">
									<c:forEach items="${supervisionUnits }" var="supervisionUnits">
										<option value="${supervisionUnits.subclassId }" <c:if test="${product.supervisionUnits==supervisionUnits.subclassId }">selected</c:if>>${supervisionUnits.title }</option>
									</c:forEach>									
										
									</select>
								</div>
							</div>
						<div class="control-group">
							<label class="control-label" for="input07">基金托管人</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input07"
									name="custody" value="${product.custody }" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input08">证券经纪机构</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input08"
									name="primeBroker">${product.primeBroker }</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input08">期货经纪机构</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input08"
									name="futureBroker">${product.futureBroker }</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input09">基金行政管理人</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input09"
									name="administrator">${product.administrator }</textarea>
							</div>
						</div>
						
						<div class="control-group">
								<label class="control-label" for="select01">MIHF评级</label>
								<div class="controls">
									<select id="select01" name="mihfRating">
									<c:forEach items="${mihfs }" var="mihfs">
										<option value="${mihfs.subclassId }" <c:if test="${product.mihfRating==mihfs.subclassId }">selected</c:if>>${mihfs.title }</option>
									</c:forEach>
									
										
									</select>
								</div>
							</div>
						<div class="control-group">
							<label class="control-label" for="majorStrategy">投资主策略</label>
							<div class="controls">								
								<select id="majorStrategy" name="majorStrategy" onchange="getMinorStrategy()">
									<option value="0"></option>
									<c:forEach items="${majorStrategys }" var="majorStrategys">
										<option value="${majorStrategys.subclassId }" <c:if test="${product.majorStrategy==majorStrategys.subclassId }">selected</c:if>>${majorStrategys.title }</option>
									</c:forEach>
	
								</select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="minorStrategy">投资子策略</label>
							<div class="controls">								
								<select id="minorStrategy" name="minorStrategy" >
									<c:forEach items="${minorStrategys }" var="minorStrategys">
										<option value="${minorStrategys.subclassId }" <c:if test="${product.majorStrategy==minorStrategys.subclassId }">selected</c:if>>${minorStrategys.title }</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input14">投资策略描述</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input14"
									name="strategyDescription">${product.strategyDescription }</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input15">投资范围</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input15"
									name="investmentScope">${product.investmentScope }</textarea>
							</div>
						</div>
						<div class="control-group">
								<label class="control-label" for="select01">主投资地区</label>
								<div class="controls">
									<select id="select01" name="investmentRegion">
									<c:forEach items="${investmentRegions }" var="investmentRegions">
										<option value="${investmentRegions.subclassId }" <c:if test="${product.investmentRegion==investmentRegions.subclassId }">selected</c:if>>${investmentRegions.title }</option>
									</c:forEach>
										
									</select>
								</div>
							</div>
							<div class="control-group">
							<label class="control-label" for="expectedProfit">预计收益(%)</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="expectedProfit"
									name="expectedProfit" <c:if test="${product.expectedProfit!=0 }">value="${product.expectedProfit }"</c:if> <c:if test="${product.expectedProfit==0 }">value="浮动"</c:if>   />
							</div>
						</div>
						<div class="control-group">
								<label class="control-label" for="netvalueUri">产品净值图</label>
								<div class="controls">
									<input id="netvalueFile" type="file" name="netvalueFile" class="fimg1"/>
									<input id="netvalueUri" type="hidden" name="netvalueUri" value="${product.netvalueUri}"/>
									<button type="button" class="btn btn-primary" onclick="return ajaxFileUpload();">上传图片</button>
									<img id="net"/>
								</div>
								
							</div>
							<div class="control-group">
							<label class="control-label" for="input07">产品亮点</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input07"
									name="brightPoint" value="${product.brightPoint }" />
							</div>
						</div>
						<div class="control-group">
								<label class="control-label" for="select01">产品状态</label>
								<div class="controls">
									<select id="select01" name="status">
										<option value="0" <c:if test="${product.status==0 }">selected</c:if> >已清盘</option>	
										<option value="1" <c:if test="${product.status==1 }">selected</c:if> >热销中</option>	
										<option value="2" <c:if test="${product.status==2 }">selected</c:if> >运行中</option>										
									</select>
								</div>
							</div>
							<div class="control-group">
							<label class="control-label" for="showStatus">前台显示</label>
								<div class="controls">
									<input type="checkbox"  id="showStatus" name="showStatus" 
										<c:if test="${product.showStatus==1}">checked</c:if>  value="1"/>
							</div>
						</div>
							
						<div class="form-actions">
							<button type="submit" class="btn btn-primary">保存</button>
							<button class="btn" type="reset" onclick="history.back()">取消</button>
						</div>
					</div>
					<div id="product_subscribe">
						<div class="control-group">
								<label class="control-label" for="select01">货币类型</label>
								<div class="controls">
									<select id="select01" name="currencyType">
									<c:forEach items="${currencyTypes }" var="currencyTypes">
										<option value="${currencyTypes.subclassId }" <c:if test="${product.currencyType==currencyTypes.subclassId }">selected</c:if>>${currencyTypes.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="leastAmount" value="${product.leastAmount }" />
							</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="leastAddto" value="${product.leastAddto }"  />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input02">申购费率（%）</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input02"
									name="purchaseRate" value="${product.purchaseRate }" placeholder="仅输入数字" />
									<input type="text" class="input-xlarge" id="input02"
									name="purchaseFeeDescription" value="${product.purchaseFeeDescription }"  placeholder="申购费率说明"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input03">管理费率(%)</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input03"
									name="managementFeeRate"  value="${product.managementFeeRate }" placeholder="仅输入数字"/>
									<input type="text" class="input-xlarge" id="input02"
									name="managementFeeDescription" value="${product.managementFeeDescription }" placeholder="管理费率说明"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input04">业绩费率(%)</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input04"
									name="performancePayRate" value="${product.performancePayRate }" placeholder="仅输入数字"/>
									<input type="text" class="input-xlarge" id="input02"
									name="performancePayDescription" value="${product.performancePayDescription }" placeholder="业绩费率说明"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input05">赎回费率(%)</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input05"
									name="redemptionRate" value="${product.redemptionRate }" placeholder="仅输入数字"/>
									<input type="text" class="input-xlarge" id="input02"
									name="redemptionFeeDescription" value="${product.redemptionFeeDescription }"  placeholder="赎回费率说明"/>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input06">其它费率</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input06"
									name="otherFeeRate">${product.otherFeeRate }</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="yes">设置业绩报酬费起征线</label>
							<div class="input_info fee_type">
								<input type="radio" name="isSetThreshold" <c:if test="${product.isSetThreshold==1 }">checked</c:if> id="yes" value="1" />
                        		<label for="yes">是</label>
                        		<input type="radio" name="isSetThreshold" <c:if test="${product.isSetThreshold==0 }">checked</c:if> id="no" value="0"  />
                       		 	<label for="no">否</label>
							</div>

						</div>
						<div class="control-group">
							<label class="control-label" for="yes">设置保底业绩</label>
							<div class="input_info fee_type">
								<input type="radio" name="isSetGuaranteed" <c:if test="${product.isSetGuaranteed==1 }">checked</c:if> id="yes" value="1" />
                        		<label for="yes">是</label>
                        		<input type="radio" name="isSetGuaranteed" <c:if test="${product.isSetGuaranteed==0 }">checked</c:if> id="no" value="0"  />
                       		 	<label for="no">否</label>
							</div>
						</div>
						
						<div class="control-group">
							<label class="control-label" for="input09">申购赎回说明</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input09"
									name="purchaseDescription">${product.purchaseDescription }</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input11">封闭期</label>
							<div class="controls">
								<select id="input11" name="closedPeriod">
								<c:forEach items="${closedPeriods }" var="closedPeriods">
									<option value="${closedPeriods.subclassId }" <c:if test="${product.closedPeriod==closedPeriods.subclassId }">selected</c:if>>${closedPeriods.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="investorScope">
									<c:forEach items="${investorScopes }" var="investorScopes">
										<option value="${investorScopes.subclassId }" <c:if test="${product.investorScope==investorScopes.subclassId }">selected</c:if>>${investorScopes.title }</option>
									</c:forEach>
										
									</select>
								</div>
							</div>
							
							<div class="control-group">
							<label class="control-label" for="input09">业绩报酬：</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input09"
									name="remuneration">${product.remuneration}</textarea>
							</div>
						</div>

						<div class="control-group">
							<label class="control-label" for="input09">账户名：</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input09"
									name="accountName">${product.accountName}</textarea>
							</div>
						</div>
						
						<div class="control-group">
							<label class="control-label" for="input09">账号：</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input09"
									name="accountNumber">${product.accountNumber}</textarea>
							</div>
						</div>
						
						<div class="control-group">
							<label class="control-label" for="input09">开户行：</label>
							<div class="controls">
								<textarea type="text" class="input-xlarge" id="input09"
									name="accountOpenBank">${product.accountOpenBank}</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>
					</div>
					<div id="product_issue">
						<div class="control-group">
							<label class="control-label" for="input01">推介起始日期</label>
							<div class="controls">
								<input type="text" class="input-xlarge Wdate" id="input01"
									name="recommendStartDate" value="${product.recommendStartDate }" onclick="WdatePicker()" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">推介终止日期</label>
							<div class="controls">
								<input type="text" class="input-xlarge Wdate" id="input01"
									name="recommendEndDate" value="${product.recommendEndDate }" onclick="WdatePicker()"  />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">成立日期</label>
							<div class="controls">
								<input type="text" class="input-xlarge Wdate" id="input01"
									name="startupDate"  value="${product.startupDate }" onclick="WdatePicker()"  />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input02">终止日期</label>
							<div class="controls">
								<input type="text" class="input-xlarge Wdate" id="input02"
									name="endDate"  value="${product.endDate }"  onclick="WdatePicker()"  />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input03">存续期</label>
							<div class="controls">
								<select id="input03" name="duration">
								<c:forEach items="${durations }" var="durations">
									<option value="${durations.subclassId }" <c:if test="${product.duration==durations.subclassId }">selected</c:if>>${durations.title }</option>
								</c:forEach>
								</select>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input04">预计最大发行规模(万元) </label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input04"
									name="maximumExpectedIssuance"  value="${product.maximumExpectedIssuance }"  />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input05">实际发行规模(万元)</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input05"
									name="maximumActualIssuance"  value="${product.maximumActualIssuance }"   />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input06">发行地</label>
							<div class="controls">
								<select id="select01" name="issuancePlace">
										<option value="0"  <c:if test="${product.issuancePlace==0 }">selected</c:if>  >国外</option>	
										<option value="1" <c:if test="${product.issuancePlace==1 }">selected</c:if>>大陆</option>	
										<option value="2" <c:if test="${product.issuancePlace==2 }">selected</c:if>>港澳台</option>	
									</select>
							</div>
						</div>
						<div class="form-actions">
							<button type="submit" class="btn btn-primary">保存</button>
							<button class="btn" type="reset" onclick="history.back()">取消</button>
						</div>
					</div>
					<div id="product_performance">
						<div class="control-group">
							<label class="control-label" for="input01">基金规模（万元）</label>
							<div class="controls">
								<input type="text" class="input-xlarge" id="input01"
									name="productScale"  value="${product.productScale }" />
							</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="accumulativeValue"  value="${product.accumulativeValue }"/>
							</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="netValue" value="${product.netValue }" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input02">截止日期</label>
							<div class="controls">
								<input type="text" class="input-xlarge Wdate" id="input02"
									name="expiryDate" value="${product.expiryDate }"  onclick="WdatePicker()" />
							</div>
						</div>
						
						<div class="control-group">
							<label class="control-label" >选择Excel表</label>
							<div class="controls">
									<input id="excelFile" type="file" name="excelFile" class="fimg1"/>
									<input id="excelUri" type="hidden" name="excelUri" />
									<button type="button" class="btn btn-primary" onclick="return ajaxFileUploads();">上传EXCEL</button>
								</div>
							<div class="control-group">
							<label class="control-label" >将Excel上传至数据库</label>
							<a id="excel">&nbsp;&nbsp;&nbsp;&nbsp;上传至数据库</a>
						</div>
							
						</div>
						
						<div class="form-actions">
							<button type="submit" class="btn btn-primary">保存</button>
							<button type="button" class="btn btn-primary" onclick="location.href='findProductPerformance.do?productId=${product.productId}&expiryDate=${product.expiryDate }'">查看往期业绩</button>
							<button class="btn" type="reset" onclick="history.back()">取消</button>
						</div>
					</div>
					
				</form>
			</div>
		</div>
	</div>
</body>
</html>
