<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ page import="java.util.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>用户信息</title>
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" href="<c:url value="/styles/jquery.autocomplete.css" />" type="text/css"/>
</head>
<body style="padding-top:1em">
<p class="container">
<h4 class="col-xs-offset-2" style="padding-left:0.5em;font-weight:bold;margin-bottom:1em;border-bottom:0.1em dotted #c0c0c0">用户信息</h4>
<form:form modelAttribute="webUser" cssClass="form-horizontal" action="save" method="post">
<form:hidden path="id"/>
<form:hidden path="address"/>
<form:hidden path="brief"/>
<form:hidden path="gender"/>
<form:hidden path="specialty"/>
<form:hidden path="degree"/>
<form:hidden path="telephone"/>
<form:hidden path="zipcode"/>
<form:hidden path="country"/>
<form:hidden path="city"/>
<form:hidden path="sections"/>
<form:hidden path="headImage"/>
<form:hidden path="originalImage"/>
<form:hidden path="doctorImage"/>
<form:hidden path="doctorOrigImage"/>
<form:hidden path="proj_owned"/>
<form:hidden path="proj_invited"/>
<form:hidden path="proj_staff"/>
<form:hidden path="proj_collecting"/>
<form:hidden path="proj_collected"/>
<form:hidden path="case_owned"/>
<form:hidden path="case_shared"/>
<form:hidden path="case_in_proj"/>
<form:hidden path="case_in_base"/>
<form:hidden path="case_disease"/>
<form:hidden path="img_owned"/>
<form:hidden path="related_pi"/>
<form:hidden path="staff_owned"/>
<form:hidden path="wx_qr_ticket"/>
<p class="form-group">
<form:label for="username" path="username" cssClass="col-xs-3 control-label" cssErrorClass="has-error">用户名</form:label>
<p class="col-xs-9">
<form:input path="username" cssClass="form-control" /> <form:errors path="username" />
</p>
</p>
<p class="form-group">
<form:label for="email" path="email" cssClass="col-xs-3 control-label" cssErrorClass="has-error">email</form:label>
<p class="col-xs-9">
<form:input path="email" cssClass="form-control" /> <form:errors path="email" />
</p>
</p>
<p class="form-group">
<form:label for="true_name" path="true_name" cssClass="col-xs-3 control-label" cssErrorClass="has-error">真实姓名</form:label>
<p class="col-xs-9">
<form:input path="true_name" cssClass="form-control"/> <form:errors path="true_name" />
</p>
</p>
<security:authorize access="hasRole('ROLE_SYS')">
<p class="form-group">
<form:label for="raw_pwd" path="raw_pwd" cssClass="col-xs-3 control-label" cssErrorClass="has-error">密码</form:label>
<p class="col-xs-9">
<form:input path="raw_pwd" cssClass="form-control"/> <form:errors path="raw_pwd" />
</p>
</p>
<p class="form-group">
<form:label for="status" path="status" cssClass="col-xs-3 control-label" cssErrorClass="has-error">可用</form:label>
<p class="col-xs-9">
<form:input path="status" cssClass="form-control" /> <form:errors path="status" />
</p>
</p>
<p class="form-group">
<form:label for="grade" path="grade" cssClass="col-xs-3 control-label" cssErrorClass="has-error">grade</form:label>
<p class="col-xs-9">
<form:input path="grade" cssClass="form-control" /> <form:errors path="grade" />
</p>
</p>
</security:authorize>
<p class="form-group">
<form:label for="mobile" path="mobile" cssClass="col-xs-3 control-label" cssErrorClass="has-error">手机号</form:label>
<p class="col-xs-9">
<form:input path="mobile" cssClass="form-control" /> <form:errors path="mobile" />
</p>
</p>
<p class="form-group">
<form:label for="title" path="title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">职称</form:label>
<p class="col-xs-9">
<form:input path="title" cssClass="form-control" /> <form:errors path="title" />
</p>
</p>
<p class="form-group">
<form:label for="job" path="job" cssClass="col-xs-3 control-label" cssErrorClass="has-error">单位</form:label>
<p class="col-xs-9">
<form:input path="job" cssClass="form-control" /> <form:errors path="job" />
</p>
</p>
<p class="form-group">
<form:label for="sectionsName" path="sectionsName" cssClass="col-xs-3 control-label" cssErrorClass="has-error">科别</form:label>
<p class="col-xs-9">
<form:input path="sectionsName" cssClass="form-control" /> <form:errors path="sectionsName" />
</p>
</p>
<p class="form-group">
<form:label for="profession" path="profession" cssClass="col-xs-3 control-label" cssErrorClass="has-error">职业</form:label>
<p class="col-xs-9">
<form:input path="profession" cssClass="form-control" /> <form:errors path="profession" />
</p>
</p>
<p class="form-group">
<form:label for="order_num" path="order_num" cssClass="col-xs-3 control-label" cssErrorClass="has-error">order_num</form:label>
<p class="col-xs-9">
<form:input path="order_num" cssClass="form-control" /> <form:errors path="order_num" />
</p>
</p>
<security:authorize access="hasRole('ROLE_SYS')">
<p class="form-group">
<form:label for="global_priv" path="global_priv" cssClass="col-xs-3 control-label" cssErrorClass="has-error">权限</form:label>
<p class="col-xs-9">
<form:select path="global_priv" cssClass="form-control">
<form:option value="1" label="未授权用户" />
<form:option value="2" label="授权用户"/>
<form:option value="3" label="科研版用户"/>
<form:option value="4" label="定制版用户"/>
<form:option value="9" label="后台管理员"/>
</form:select>
</p>
</p>
</security:authorize>
<p class="form-group">
<form:label for="interest_cnt" path="interest_cnt" cssClass="col-xs-3 control-label" cssErrorClass="has-error">interest_cnt</form:label>
<p class="col-xs-9">
<form:input path="interest_cnt" cssClass="form-control" /> <form:errors path="interest_cnt" />
</p>
</p>
<p class="form-group">
<form:label for="click_cnt" path="click_cnt" cssClass="col-xs-3 control-label" cssErrorClass="has-error">click_cnt</form:label>
<p class="col-xs-9">
<form:input path="click_cnt" cssClass="form-control" /> <form:errors path="click_cnt" />
</p>
</p>
<p class="form-group">
<form:label for="wx_title" path="wx_title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_title</form:label>
<p class="col-xs-9">
<form:input path="wx_title" cssClass="form-control" /> <form:errors path="wx_title" />
</p>
</p>
<p class="form-group">
<form:label for="wx_web_title" path="wx_web_title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_web_title</form:label>
<p class="col-xs-9">
<form:input path="wx_web_title" cssClass="form-control" /> <form:errors path="wx_web_title" />
</p>
</p>
<p class="form-group">
<form:label for="wx_pic_url" path="wx_pic_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_pic_url</form:label>
<p class="col-xs-9">
<form:input path="wx_pic_url" cssClass="form-control" /> <form:errors path="wx_pic_url" />
</p>
</p>
<p class="form-group">
<form:label for="wx_title_pic_url" path="wx_title_pic_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_title_pic_url</form:label>
<p class="col-xs-9">
<form:input path="wx_title_pic_url" cssClass="form-control" /> <form:errors path="wx_title_pic_url" />
</p>
</p>
<p class="form-group">
<form:label for="wx_resp_title" path="wx_resp_title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_resp_title</form:label>
<p class="col-xs-9">
<form:input path="wx_resp_title" cssClass="form-control" /> <form:errors path="wx_resp_title" />
</p>
</p>
<p class="form-group">
<form:label for="wx_resp_desc" path="wx_resp_desc" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_resp_desc</form:label>
<p class="col-xs-9">
<form:textarea path="wx_resp_desc" cssClass="form-control" rows="3" /> <form:errors path="wx_resp_desc" />
</p>
</p>
<p class="form-group">
<form:label for="wx_resp_full_desc" path="wx_resp_full_desc" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_resp_full_desc</form:label>
<p class="col-xs-9">
<form:textarea path="wx_resp_full_desc" cssClass="form-control" rows="5" /> <form:errors path="wx_resp_full_desc" />
</p>
</p>
<p class="form-group">
<form:label for="wx_big_pic_url" path="wx_big_pic_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_big_pic_url</form:label>
<p class="col-xs-9">
<form:input path="wx_big_pic_url" cssClass="form-control" /> <form:errors path="wx_big_pic_url" />
</p>
</p>
<p class="form-group">
<form:label for="wx_msg_prefix" path="wx_msg_prefix" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_msg_prefix</form:label>
<p class="col-xs-9">
<form:input path="wx_msg_prefix" cssClass="form-control" /> <form:errors path="wx_msg_prefix" />
</p>
</p>
<p class="form-group">
<form:label for="wx_clinic_time" path="wx_clinic_time" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_clinic_time</form:label>
<p class="col-xs-9">
<form:input path="wx_clinic_time" cssClass="form-control" /> <form:errors path="wx_clinic_time" />
</p>
</p>
<p class="form-group">
<form:label for="wx_hospital_section" path="wx_hospital_section" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_hospital_section</form:label>
<p class="col-xs-9">
<form:input path="wx_hospital_section" cssClass="form-control" /> <form:errors path="wx_hospital_section" />
</p>
</p>
<p class="form-group">
<form:label for="wx_portrait" path="wx_portrait" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_portrait</form:label>
<p class="col-xs-9">
<form:input path="wx_portrait" cssClass="form-control" /> <form:errors path="wx_portrait" />
</p>
</p>
<p class="form-group">
<form:label for="wx_openid" path="wx_openid" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_openid</form:label>
<p class="col-xs-9">
<form:input path="wx_openid" cssClass="form-control" /> <form:errors path="wx_openid" />
</p>
</p>
<p class="form-group">
<form:label for="wx_qr_bg_img_rel" path="wx_qr_bg_img_rel" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_qr_bg_img_rel</form:label>
<p class="col-xs-9">
<form:input path="wx_qr_bg_img_rel" cssClass="form-control" /> <form:errors path="wx_qr_bg_img_rel" />
</p>
</p>
<p class="form-group">
<form:label for="wx_qr_img_url" path="wx_qr_img_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">医生获得的二维码图(相对URL)</form:label>
<p class="col-xs-9">
<form:input path="wx_qr_img_url" cssClass="form-control" /> <form:errors path="wx_qr_img_url" />
</p>
</p>
<p class="form-group">
<form:label for="wx_qr_show_img_url" path="wx_qr_show_img_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">患者扫码图</form:label>
<p class="col-xs-9">
<form:input path="wx_qr_show_img_url" cssClass="form-control" /> <form:errors path="wx_qr_show_img_url" />
</p>
</p>
<p class="form-group">
<form:label for="wx_qr_url" path="wx_qr_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">二维码内容</form:label>
<p class="col-xs-9">
<form:input path="wx_qr_url" cssClass="form-control" /> <form:errors path="wx_qr_url" />
</p>
</p>
<p class="form-group">
<form:label for="known_names" path="known_names" cssClass="col-xs-3 control-label" cssErrorClass="has-error">已知专家姓名(,分割)</form:label>
<p class="col-xs-9">
<form:input path="known_names" cssClass="form-control" /> <form:errors path="known_names" />
</p>
</p>
<p class="form-group">
<form:label for="news_doclist_name" path="news_doclist_name" cssClass="col-xs-3 control-label" cssErrorClass="has-error">个人动态Code</form:label>
<p class="col-xs-9">
<form:input path="news_doclist_name" cssClass="form-control" /> <form:errors path="news_doclist_name" />
</p>
</p>
<p class="form-group">
<p class="col-xs-offset-3 col-xs-9">
<input type="submit" class="btn btn-primary" value="保存">
</p>
</p>
</form:form>
</p>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include inpidual files as needed -->
<script src="http://cdn.bootcss.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<c:url value="/scripts/jquery.autocomplete.min.js" />" charset="utf-8"></script>
<script type="text/javascript">
var acOptions = {
minChars: 0,
width: 310,
max: 100,
dataType: 'json',
extraParams: {
format: 'json' },
parse: function(data) {
// alert(data);
var parsed = [];
for (var i = 0; i < data.data.length; i++) {
parsed[parsed.length] = {
data: data.data[i],
//返回的json数据:{["kindname":"a"},["kindname":"b"]}
value: data.data[i].cnname,
result: data.data[i].cnname
};
}
return parsed;
},
formatItem: function(item) {
return item.cnname;
}
};
$("#job").autocomplete("<c:url value="/hospital/list/ajax"/>",acOptions);
</script>
</body>
</html>
Jika tidak ditulis, ia akan lalai ke halaman ini.
Tindakan biasanya diserahkan kepada pengawal Jika anda melihat penyerahan action=save, pengawal akan pergi ke URL yang mana Jika tidak, ia akan menjadi halaman ini.