Blame view

WebRoot/WEB-INF/jsp/sunvote/school/school_edit2.jsp 5.07 KB
45e059db   =   1.模板设置优化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  <%
  	String path = request.getContextPath();
  	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  %>
  <!DOCTYPE html>
  <html lang="en">
  <head>
  <base href="<%=basePath%>">
  <!-- 下拉框 -->
  <link rel="stylesheet" href="static/ace/css/chosen.css" />
  <link
  	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  	rel="stylesheet">
  <link href="static/css/teach.css" rel="stylesheet">
  <!-- 日期框 -->
  <link rel="stylesheet" href="static/ace/css/datepicker.css" />
  <style>
  	.edit_btn{
  		width:20%;
  		margin:0 auto;
  	}
  	.edit_btn .edit_btn_sty{
  		outline-style: none;
  	    color: rgb(255, 255, 255);
  	    margin-right: 20px;
  	    margin-top:10%;
  	    font-size: 16px;
  	    background: #f29c9f;
  	    text-decoration: none;
  	    border-width: initial;
  	    border-style: none;
  	    border-color: initial;
  	    border-image: initial;
  	    padding: 10px 15px;
  	    width:100%;
  	}
  	.edit_btn .save_btn_sty{
  		outline-style: none;
  	    color: rgb(255, 255, 255);
  	    margin-right: 20px;
  	    margin-top:10%;
  	    font-size: 16px;
  	    background: rgb(59, 194, 214);
  	    text-decoration: none;
  	    border-width: initial;
  	    border-style: none;
  	    border-color: initial;
  	    border-image: initial;
  	    padding: 10px 15px;
  	    width:100%;
  	}
  	.school_info .col-sm-4{
  		width:100px;
  		padding-right:0;
  		line-height:34px;
  		font-size:16px;
  	}
  </style>
  </head>
  <body class="no-skin">
  <!-- /section:basics/navbar.layout -->
837ae11d   孙向锦   添加班長管理
66
67
  	<form action="school/${msg }.do" name="Form" id="Form" method="post">
  		<input type="hidden" name="ID" id="ID" value="${pd.ID}"/>
45e059db   =   1.模板设置优化
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
  		<div class="head_box" style="position:relative;">
  			<div class="box_header">
  				<div class="head_box_l">
  					<p>
  						<span class="right_b"></span>学校管理
  					</p>
  				</div>
  				<div class="head_box_r">
  					
  				</div>
  				<div class="clear"></div>
  			</div>
  		</div>
  					
  		<div class="col-md-6 school_info" style="margin-left:25%;margin-top:5%;">
  			<div class="form-group">
  			    <label for="enter_title" class="col-sm-4 control-label">学校名称:</label>
  			    <div class="col-sm-8">
837ae11d   孙向锦   添加班長管理
86
  			      <input type="text" class="form-control" disabled placeholder="输入学校名称"  maxlength="100" minlength="1"  name="NAME" id="NAME" value="${pd.NAME}">
45e059db   =   1.模板设置优化
87
88
89
90
91
92
93
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  	       
  	        <div class="form-group">
  			    <label for="enter_time" class="col-sm-4 control-label">学校地址:</label>
  			    <div class="col-sm-8">
837ae11d   孙向锦   添加班長管理
94
  			      <input type="text" class="form-control" disabled placeholder="输入学校地址"  name="ADDRESS" id="ADDRESS" value="${pd.ADDRESS}" maxlength="255" >
45e059db   =   1.模板设置优化
95
96
97
98
99
100
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			 <div class="form-group">
  			    <label for="enter_time" class="col-sm-4 control-label">校长:</label>
  			    <div class="col-sm-8">
837ae11d   孙向锦   添加班長管理
101
  			      <input type="text" class="form-control" disabled placeholder="输入校长名称" name="PRESIDENT" id="PRESIDENT" value="${pd.PRESIDENT}" maxlength="255" >
45e059db   =   1.模板设置优化
102
103
104
105
106
107
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			 <div class="form-group">
  			    <label for="enter_time" class="col-sm-4 control-label">联系电话:</label>
  			    <div class="col-sm-8">
837ae11d   孙向锦   添加班長管理
108
  			      <input type="text" class="form-control" disabled placeholder="输入联系电话" name="PHONE" id="PHONE" value="${pd.PHONE}" maxlength="255" >
45e059db   =   1.模板设置优化
109
110
111
112
113
114
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			 <div class="form-group">
  			    <label for="enter_time" class="col-sm-4 control-label">备注:</label>
  			    <div class="col-sm-8">
837ae11d   孙向锦   添加班長管理
115
  			      <input type="text" class="form-control" disabled placeholder="输入备注"  name="REMARK" id="REMARK"  value="${pd.REMARK}" maxlength="255" >
45e059db   =   1.模板设置优化
116
117
118
119
120
121
122
123
124
125
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			
  		</div>
  		<div class="clearfix"></div>
  	    
  			<div class="edit_btn">
  				<input type="button" class="edit_btn_sty" data-state="edit" id="btn" value="修改" />
  			</div>					
837ae11d   孙向锦   添加班長管理
126
  		</form>
45e059db   =   1.模板设置优化
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
  
  
  
  	<!-- 页面底部js¨ -->
  	<%@ include file="../../system/index/foot.jsp"%>
  	<!-- 下拉框 -->
  	<script src="static/ace/js/chosen.jquery.js"></script>
  	<!-- 日期框 -->
  	<script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  	<!--提示框-->
  	<script type="text/javascript" src="static/js/jquery.tips.js"></script>
  		<script type="text/javascript">
  		$(document).ready(function(){
  			window.top.loading.remove();	
  		});
  		
  		$("#btn").click(function(){
  			var state=$(this).attr("data-state");
  			if(state=="edit"){
  				$(".form-control").removeAttr("disabled");
  				$("#btn").val("保存");
  				$(this).attr({"class":"save_btn_sty","data-state":"save"});
  			}else if(state=="save"){
837ae11d   孙向锦   添加班長管理
150
  				$("#Form").submit();
45e059db   =   1.模板设置优化
151
152
153
154
155
156
157
158
159
160
  				$(".form-control").attr("disabled","disabled");
  				$("#btn").val("修改");
  				$(this).attr({"class":"edit_btn_sty","data-state":"edit"});
  			}
  		})
  			
  
  		</script>
  </body>
  </html>