Blame view

WebRoot/WEB-INF/jsp/sunvote/school/en_school_edit2.jsp 5.16 KB
1ee08611   jack   1.英文翻译(2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <%@ 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" />
b638e17a   jack   1.英文翻译(三)
15
  <!-- <link
1ee08611   jack   1.英文翻译(2)
16
  	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
b638e17a   jack   1.英文翻译(三)
17
18
  	rel="stylesheet"> -->
  	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
1ee08611   jack   1.英文翻译(2)
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
  <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%;
  	}
b638e17a   jack   1.英文翻译(三)
57
58
  	.school_info .col-md-4{
  		
1ee08611   jack   1.英文翻译(2)
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  		padding-right:0;
  		line-height:34px;
  		font-size:16px;
  	}
  </style>
  </head>
  <body class="no-skin">
  <!-- /section:basics/navbar.layout -->
  	<form action="school/${msg }.do" name="Form" id="Form" method="post">
  		<input type="hidden" name="ID" id="ID" value="${pd.ID}"/>
  		<div class="head_box" style="position:relative;">
  			<div class="box_header">
  				<div class="head_box_l">
  					<p>
  						<span class="right_b"></span>School Management
  					</p>
  				</div>
  				<div class="head_box_r">
  					
  				</div>
  				<div class="clear"></div>
  			</div>
  		</div>
  					
b638e17a   jack   1.英文翻译(三)
83
  		<div class="col-md-8 school_info" style="margin-left:16.6%;margin-top:5%;">
1ee08611   jack   1.英文翻译(2)
84
  			<div class="form-group">
b638e17a   jack   1.英文翻译(三)
85
86
  			    <label for="enter_title" class="col-md-4 control-label">School name:</label>
  			    <div class="col-md-8">
1ee08611   jack   1.英文翻译(2)
87
88
89
90
91
92
  			      <input type="text" class="form-control" disabled placeholder="Enter the School name"  maxlength="100" minlength="1"  name="NAME" id="NAME" value="${pd.NAME}">
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  	       
  	        <div class="form-group">
b638e17a   jack   1.英文翻译(三)
93
94
  			    <label for="enter_time" class="col-md-4 control-label">School address:</label>
  			    <div class="col-md-8">
1ee08611   jack   1.英文翻译(2)
95
96
97
98
99
  			      <input type="text" class="form-control" disabled placeholder="Enter the school address"  name="ADDRESS" id="ADDRESS" value="${pd.ADDRESS}" maxlength="255" >
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			 <div class="form-group">
b638e17a   jack   1.英文翻译(三)
100
101
  			    <label for="enter_time" class="col-md-4 control-label">Headmaster:</label>
  			    <div class="col-md-8">
1ee08611   jack   1.英文翻译(2)
102
103
104
105
106
  			      <input type="text" class="form-control" disabled placeholder="Enter the Headmaster" name="PRESIDENT" id="PRESIDENT" value="${pd.PRESIDENT}" maxlength="255" >
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			 <div class="form-group">
b638e17a   jack   1.英文翻译(三)
107
108
  			    <label for="enter_time" class="col-md-4 control-label">Contact number:</label>
  			    <div class="col-md-8">
1ee08611   jack   1.英文翻译(2)
109
110
111
112
113
  			      <input type="text" class="form-control" disabled placeholder="Enter the Contact number" name="PHONE" id="PHONE" value="${pd.PHONE}" maxlength="255" >
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			 <div class="form-group">
b638e17a   jack   1.英文翻译(三)
114
115
  			    <label for="enter_time" class="col-md-4 control-label">Remarks:</label>
  			    <div class="col-md-8">
1ee08611   jack   1.英文翻译(2)
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
  			      <input type="text" class="form-control" disabled placeholder="Enter the Remarks"  name="REMARK" id="REMARK"  value="${pd.REMARK}" maxlength="255" >
  			    </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="Revise" />
  			</div>					
  		</form>
  
  
  
  	<!-- 页面底部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("Save");
  				$(this).attr({"class":"save_btn_sty","data-state":"save"});
  			}else if(state=="save"){
  				$("#Form").submit();
  				$(".form-control").attr("disabled","disabled");
  				$("#btn").val("Revise");
  				$(this).attr({"class":"edit_btn_sty","data-state":"edit"});
  			}
  		})
  			
  
  		</script>
  </body>
  </html>