<%@ 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="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <form method="post" class="form-horizontal" action="update${Domain}.do" enctype="multipart/form-data">
            <#list fieldList as field>
                <#if field.nameHump!="pubtime" &&  field.nameHump!="add_time" &&field.nameHump!="*id"&& field.nameHump!="img"&& field.nameHump!="uname"&& field.nameHump!="name"
                && field.nameHump!="sex"&& field.nameHump!="note"&&field.nameHump!="id"&&field.nameHump!="fid"&&field.nameHump!="bid"&& field.nameHump!="pwd"
                && field.nameHump!="gid"&& field.nameHump!="bid"&& field.nameHump!="cid"&& field.nameHump!="uid">
                <div class="form-group">
                    <label class="col-sm-2 control-label">${field.nameCn}：</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="${field.nameHump}"
                               value="${r"${"}${domain}.${field.nameHump}${r"}"}" id="${field.nameHump}Txt"
                               placeholder="请输入${field.nameCn}"/>
                        <div class="help-block m-b-none" id='${field.nameHump}Check'></div>
                    </div>
                </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="name">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <input type="text" class="form-control" name="${field.nameHump}"
                             value="${r"${"}${domain}.${field.nameHump}${r"}"}" id="${field.nameHump}Txt"
                             placeholder="请输入${field.nameCn}" onblur="return checkName()"/>
                      <input type="hidden" value="${r"${"}${domain}.id${r"}"}" id="idTxt" name="id">
                      <div class="help-block m-b-none"  ></div>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="uname">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <input type="text" class="form-control" name="${field.nameHump}"
                             value="${r"${"}${domain}.${field.nameHump}${r"}"}" id="${field.nameHump}Txt"
                             placeholder="请输入${field.nameCn}" readonly/>
                      <input type="hidden" value="${r"${"}${domain}.id${r"}"}" id="idTxt" name="id">
                      <div class="help-block m-b-none"  ></div>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="pwd">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <input type="password" class="form-control" name="${field.nameHump}"
                             value="${r"${"}${domain}.${field.nameHump}${r"}"}" id="${field.nameHump}Txt"
                             placeholder="请输入${field.nameCn}"/>
                      <div class="help-block m-b-none"  ></div>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="fid">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <select name="${field.nameHump}" class="form-control">
                          <c:forEach items="${r"${"}flist${r"}"}" var="t">
                              <option value="${r"${"}t.id${r"}"}"
                              <c:if test="${r"${"}t.id==${domain}.${field.nameHump}${r"}"}">selected</c:if>
                              >${r"${"}t.name${r"}"}</option>
                          </c:forEach>
                      </select>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="tid">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <select name="${field.nameHump}" class="form-control">
                          <c:forEach items="${r"${"}tlist${r"}"}" var="t">
                              <option value="${r"${"}t.id${r"}"}"
                              <c:if test="${r"${"}t.id==${domain}.${field.nameHump}${r"}"}">selected</c:if>
                              >${r"${"}t.name${r"}"}</option>
                          </c:forEach>
                      </select>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="tid">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <select name="${field.nameHump}" class="form-control">
                          <c:forEach items="${r"${"}tlist${r"}"}" var="t">
                              <option value="${r"${"}t.id${r"}"}"
                              <c:if test="${r"${"}t.id==${domain}.${field.nameHump}${r"}"}">selected</c:if>
                              >${r"${"}t.name${r"}"}</option>
                          </c:forEach>
                      </select>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="bid">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <select name="${field.nameHump}" class="form-control" id="${field.nameHump}Txt">
                          <c:forEach items="${r"${"}blist${r"}"}" var="t">
                              <option value="${r"${"}t.id${r"}"}"
                              <c:if test="${r"${"}t.id==${domain}.${field.nameHump}${r"}"}">selected</c:if>
                              >${r"${"}t.name${r"}"}</option>
                          </c:forEach>
                      </select>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="uid">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <select name="${field.nameHump}" class="form-control">
                          <c:forEach items="${r"${"}ulist${r"}"}" var="t">
                              <option value="${r"${"}t.id${r"}"}"
                              <c:if test="${r"${"}t.id==${domain}.${field.nameHump}${r"}"}">selected</c:if>
                              >${r"${"}t.name${r"}"}</option>
                          </c:forEach>
                      </select>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="cid">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <select name="${field.nameHump}" class="form-control">
                          <c:forEach items="${r"${"}clist${r"}"}" var="t">
                              <option value="${r"${"}t.id${r"}"}"
                              <c:if test="${r"${"}t.id==${domain}.${field.nameHump}${r"}"}">selected</c:if>
                              >${r"${"}t.name${r"}"}</option>
                          </c:forEach>
                      </select>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="img">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <img src="../upload/${r"${"}${domain}.${field.nameHump}${r"}"}" width="50px;" height="50px;">
                      <input type="file" class="form-control" name="file"/>
                      <div class="help-block m-b-none"  ></div>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="upload">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <img src="../upload/${r"${"}${domain}.${field.nameHump}${r"}"}" width="50px;" height="50px;">
                      <input type="file" class="form-control" name="file2"/>
                      <div class="help-block m-b-none"  ></div>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="sex">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <select name="${field.nameHump}" class="form-control" id="${field.nameHump}Txt">
                          <option value="${r"${"}${domain}.${field.nameHump}${r"}"}">${r"${"}${domain}
                              .${field.nameHump}${r"}"}</option>
                          <option value="男">男</option>
                          <option value="女">女</option>
                      </select>
                      <div class="help-block m-b-none"  ></div>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
                <#if field.nameHump=="note">
              <div class="form-group">
                  <label class="col-sm-2 control-label">${field.nameCn}：</label>
                  <div class="col-sm-10">
                      <textarea class="form-control" id="note" rows="5" id="${field.nameHump}Txt" style="width: 680px;"
                                name="${field.nameHump}">${r"${"}${domain}.${field.nameHump}${r"}"}</textarea>
                      <div class="help-block m-b-none"  ></div>
                  </div>
              </div>
                 <div class="hr-line-dashed"></div>
                </#if>
            </#list>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-2">
                            <button class="btn btn-primary" type="submit" >保存</button>
                        <#--<button class="btn btn-white" type="submit">取消</button>-->
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>

