<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>






<!DOCTYPE html>
<html lang="zh-cn" >

<jsp:include page="/admin/head.jsp"></jsp:include>

<body>
<div class="panel admin-panel">
    <div class="body-content">
        <form method="post" class="form-x" action="updateCapitals.do" enctype="multipart/form-data" >
              <div class="form-group">
                   <div class="label">
                       <label>图片：</label>
                   </div>
                  <div class="field">
                      <img src="../upload/${capitals.img}" width="50px;" height="50px;">
                      <input type="file" class="input" name="file"   />
                      <div class="tips"></div>
                  </div>
              </div>
              <div class="form-group">
                   <div class="label">
                       <label>名称：</label>
                   </div>
                  <div class="field">
                      <input type="text" class="input" name="name" value="${capitals.name}"  id="nameTxt"  placeholder="请输入名称"  onblur="return checkName()"  />
                      <input type="hidden" value="${capitals.id}" id="idTxt" name="id">
                      <div class="tips"></div>
                  </div>
              </div>
            <div class="form-group">
                <div class="label">
                    <label>金额：</label>
                </div>
                <div class="field">
                    <input type="text" class="input" name="price"  id="price" value="${capitals.price}"  placeholder="请输入金额"   />
                    <div class="tips"></div>
                </div>
            </div>
              <div class="form-group">
                   <div class="label">
                       <label>内容：</label>
                   </div>
                  <div class="field">
                      <textarea class="form-control" id="note" rows="5" id="noteTxt" style="width: 680px;" name="note">${capitals.note}</textarea>
                      <div class="tips"></div>
                  </div>
              </div>
                <%--<div class="form-group">
                    <div class="label">
                        <label>类型：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input"  name="btype" value="${news.btype}"  id="btypeTxt" placeholder="请输入类型"  />
                        <div id='btypeCheck' class="tips"></div>
                    </div>
                </div>--%>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit" onclick="return check()"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body>
</html>

