|
@ -1,7 +1,7 @@
|
1
|
1
|
$(function() {
|
2
|
|
loginStatus();//判断个人是否登录
|
|
2
|
loginStatus(); //判断个人是否登录
|
3
|
3
|
//1获取数据
|
4
|
|
var authSD;
|
|
4
|
var authSD, osty, opName, orgName,osyp,ofl=false;
|
5
|
5
|
var userid = $.cookie("userid");
|
6
|
6
|
if(userid) {
|
7
|
7
|
//获取数据,填充页面
|
|
@ -10,56 +10,64 @@ $(function() {
|
10
|
10
|
location.href = "login.html";
|
11
|
11
|
return;
|
12
|
12
|
}
|
13
|
|
function getInfo(InfoId){
|
|
13
|
|
|
14
|
function getInfo(InfoId) {
|
14
|
15
|
$.get("/ajax/professor/info/" + InfoId, function($data) {
|
15
|
16
|
if($data.success) {
|
16
|
|
console.log($data);
|
17
|
17
|
var $info = $data.data;
|
18
|
18
|
authSD = $info.orgAuth;
|
19
|
19
|
if($info) {
|
20
|
20
|
//展示专家的信息
|
21
|
|
if($info.hasHeadImage){
|
22
|
|
$("#proHead").css("background-image","url(/images/head/"+ $info.id +"_l.jpg)");
|
|
21
|
if($info.hasHeadImage) {
|
|
22
|
$("#proHead").css("background-image", "url(/images/head/" + $info.id + "_l.jpg)");
|
23
|
23
|
}
|
24
|
24
|
$("#proName").text($info.name);
|
25
|
|
var oStyS=autho($info.authType,$info.orgAuth,$info.authStatus);
|
26
|
|
$("#proAuth").addClass(oStyS.sty); $("#proAuth").attr("title",oStyS.title);
|
27
|
|
if($info.address){
|
|
25
|
var oStyS = autho($info.authType, $info.orgAuth, $info.authStatus);
|
|
26
|
osyp=oStyS.sty
|
|
27
|
if(oStyS.sty == "e") {
|
|
28
|
osty = "e";
|
|
29
|
$("#name").replaceWith('<input type="text" class="frmcontype" placeholder="请填写您的姓名" id="name" value="' + $info.name + '">')
|
|
30
|
opName = $info.name;
|
|
31
|
}
|
|
32
|
$("#proAuth").addClass(oStyS.sty);
|
|
33
|
$("#proAuth").attr("title", oStyS.title);
|
|
34
|
if($info.address) {
|
28
|
35
|
$("#proAddress").html($info.address);
|
29
|
36
|
}
|
30
|
|
var proOther="";
|
31
|
|
if($info.orgName){
|
32
|
|
if($info.department){
|
33
|
|
if($info.office){
|
|
37
|
var proOther = "";
|
|
38
|
if($info.orgName) {
|
|
39
|
orgName = $info.orgName;
|
|
40
|
if($info.department) {
|
|
41
|
if($info.office) {
|
34
|
42
|
proOther = $info.orgName + "," + $info.department + "," + $info.office
|
35
|
|
}else{
|
|
43
|
} else {
|
36
|
44
|
proOther = $info.orgName + "," + $info.department
|
37
|
45
|
}
|
38
|
|
}else{
|
39
|
|
if($info.office){
|
40
|
|
proOther = $info.orgName +"," + $info.office
|
41
|
|
}else{
|
|
46
|
} else {
|
|
47
|
if($info.office) {
|
|
48
|
proOther = $info.orgName + "," + $info.office
|
|
49
|
} else {
|
42
|
50
|
proOther = $info.orgName
|
43
|
51
|
}
|
44
|
52
|
}
|
45
|
|
}else{
|
46
|
|
if($info.department){
|
47
|
|
if($info.office){
|
48
|
|
proOther = $info.department + "," + $info.office
|
49
|
|
}else{
|
50
|
|
proOther = $info.department
|
|
53
|
} else {
|
|
54
|
if($info.department) {
|
|
55
|
if($info.office) {
|
|
56
|
proOther = $info.department + "," + $info.office
|
|
57
|
} else {
|
|
58
|
proOther = $info.department
|
51
|
59
|
}
|
52
|
|
}else{
|
53
|
|
if($info.office){
|
|
60
|
} else {
|
|
61
|
if($info.office) {
|
54
|
62
|
proOther = $info.office
|
55
|
63
|
}
|
56
|
64
|
}
|
57
|
65
|
}
|
58
|
66
|
$("#proOther").text(proOther);
|
59
|
|
var llqtitle=$info.name + "-" + proOther.replace(/,/gi,"-") + "-科袖网";//修改浏览器title信息
|
60
|
|
if($info.title){
|
|
67
|
var llqtitle = $info.name + "-" + proOther.replace(/,/gi, "-") + "-科袖网"; //修改浏览器title信息
|
|
68
|
if($info.title) {
|
61
|
69
|
$("#proTit").html($info.title + "<span style='margin-right:10px;'></span>");
|
62
|
|
llqtitle = $info.name + "-" + $info.title + "-" + proOther.replace(/,/gi,"-") + "-科袖网";
|
|
70
|
llqtitle = $info.name + "-" + $info.title + "-" + proOther.replace(/,/gi, "-") + "-科袖网";
|
63
|
71
|
}
|
64
|
72
|
document.title = llqtitle;
|
65
|
73
|
|
|
@ -79,31 +87,31 @@ $(function() {
|
79
|
87
|
$("#department").val($info.department);
|
80
|
88
|
$("#officeRevise").val($info.office);
|
81
|
89
|
//省
|
82
|
|
if(!$info.province){
|
|
90
|
if(!$info.province) {
|
83
|
91
|
$("#Province .mr_show").text("请选择省/直辖市");
|
84
|
|
}else{
|
|
92
|
} else {
|
85
|
93
|
$("#Province .mr_show").text($info.province);
|
86
|
94
|
}
|
87
|
95
|
//市
|
88
|
|
if(!$info.address){
|
|
96
|
if(!$info.address) {
|
89
|
97
|
$("#City .mr_show").text("请选择城市");
|
90
|
|
}else{
|
|
98
|
} else {
|
91
|
99
|
$("#City .mr_show").text($info.address);
|
92
|
100
|
}
|
93
|
101
|
//省份城市颜色
|
94
|
|
if($("#oprovince").text()=="请选择省/直辖市"){
|
|
102
|
if($("#oprovince").text() == "请选择省/直辖市") {
|
95
|
103
|
$("#oprovince").removeClass("mr_select");
|
96
|
|
}else{
|
|
104
|
} else {
|
97
|
105
|
$("#oprovince").addClass("mr_select");
|
98
|
106
|
}
|
99
|
|
if($("#ocity").text()=="请选择城市"){
|
|
107
|
if($("#ocity").text() == "请选择城市") {
|
100
|
108
|
$("#ocity").removeClass("mr_select");
|
101
|
|
}else{
|
|
109
|
} else {
|
102
|
110
|
$("#ocity").addClass("mr_select");
|
103
|
111
|
}
|
104
|
112
|
$("#descp").val($info.descp);
|
105
|
113
|
$("#descp").siblings().find("em").text($("#descp").val().length);
|
106
|
|
|
|
114
|
|
107
|
115
|
if($info.subject) {
|
108
|
116
|
subjectShow($info.subject);
|
109
|
117
|
}
|
|
@ -135,82 +143,122 @@ $(function() {
|
135
|
143
|
$(".StopMonth").next(".mr_calendar_ym").find(".mr_year li:first-child").before('<li class="ymli">至今</li>');
|
136
|
144
|
$("#eduUl").find(".full_year li:first-child").before('<li class="ymli">至今</li>');
|
137
|
145
|
//month();
|
138
|
|
|
|
146
|
|
139
|
147
|
}
|
140
|
148
|
}
|
141
|
149
|
});
|
142
|
150
|
}
|
143
|
|
hotKey(".oinput");//
|
|
151
|
hotKey(".oinput"); //
|
144
|
152
|
//////////////////基本信息增删改查相关开始//////////////
|
145
|
153
|
//头像旁保存
|
146
|
154
|
$("#saveProfessor").on("click", function() {
|
147
|
|
var Str1=trim($("#title").val());//职称
|
148
|
|
var Str2=trim($("#officeRevise").val());//职位
|
149
|
|
var Str3=trim($("#orgName").val());//所在机构
|
150
|
|
var Str4=trim($("#department").val());//所在部门
|
151
|
|
if(Str1.length>20){$.MsgBox.Alert("提示", "职称不得超过20个字");return;}
|
152
|
|
if(Str2.length>20){$.MsgBox.Alert("提示", "职位不得超过20个字");return;}
|
153
|
|
if(Str3.length>50){$.MsgBox.Alert("提示", "所在机构不得超过50个字");return;}
|
154
|
|
if(Str4.length>20){$.MsgBox.Alert("提示", "所在部门不得超过20个字");return;}
|
155
|
|
|
156
|
|
var loginName=$("#mobilePhone").val();
|
|
155
|
var Str1 = trim($("#title").val()); //职称
|
|
156
|
var Str2 = trim($("#officeRevise").val()); //职位
|
|
157
|
var Str3 = trim($("#orgName").val()); //所在机构
|
|
158
|
var Str4 = trim($("#department").val()); //所在部门
|
|
159
|
if(osty=="e") {
|
|
160
|
if($("#name").val().trim()=='') {
|
|
161
|
$.MsgBox.Alert("提示", "姓名不能为空");
|
|
162
|
return;
|
|
163
|
}else if($("#name").val().trim().length>10) {
|
|
164
|
$.MsgBox.Alert("提示", "姓名不得超过10个字");
|
|
165
|
return;
|
|
166
|
}
|
|
167
|
}
|
|
168
|
if(Str1.length > 20) {
|
|
169
|
$.MsgBox.Alert("提示", "职称不得超过20个字");
|
|
170
|
return;
|
|
171
|
}
|
|
172
|
if(Str2.length > 20) {
|
|
173
|
$.MsgBox.Alert("提示", "职位不得超过20个字");
|
|
174
|
return;
|
|
175
|
}
|
|
176
|
if(Str3.length > 50) {
|
|
177
|
$.MsgBox.Alert("提示", "所在机构不得超过50个字");
|
|
178
|
return;
|
|
179
|
}
|
|
180
|
if(Str4.length > 20) {
|
|
181
|
$.MsgBox.Alert("提示", "所在部门不得超过20个字");
|
|
182
|
return;
|
|
183
|
}
|
|
184
|
|
|
185
|
var loginName = $("#mobilePhone").val();
|
157
|
186
|
if(trim(loginName)) {
|
158
|
187
|
if(loginName.length > 50) {
|
159
|
188
|
$.MsgBox.Alert('提示', '联系电话不得超过50个字');
|
160
|
189
|
return;
|
161
|
190
|
}
|
162
|
191
|
}
|
163
|
|
var mail=$("#moileMail").val();
|
|
192
|
var mail = $("#moileMail").val();
|
164
|
193
|
if(mail.trim()) {
|
165
|
|
if(mail.trim().indexOf("@")==-1) {
|
|
194
|
if(mail.trim().indexOf("@") == -1) {
|
166
|
195
|
$.MsgBox.Alert('提示', '联系邮箱格式有误,请检查后重新填写');
|
167
|
196
|
return;
|
168
|
197
|
}
|
169
|
198
|
}
|
170
|
|
if(authSD==1) {
|
171
|
|
$.MsgBox.Confirm("提示", "您修改了所在机构,员工认证即将失效,确认修改?", personUpdata);
|
172
|
|
return;
|
|
199
|
console.log(orgName);
|
|
200
|
console.log($("#orgName").val())
|
|
201
|
if(orgName != $("#orgName").val()) {
|
|
202
|
|
|
203
|
if(authSD == 1) {
|
|
204
|
$.MsgBox.Confirm("提示", "您修改了所在机构,认证员工身份将失效,为企业发布的需求也将关闭,确定修改 ?", function() {
|
|
205
|
ofl=true
|
|
206
|
setTimeout(function() {
|
|
207
|
if(osty == "e") {
|
|
208
|
if($("#name").val() != opName) {
|
|
209
|
$.MsgBox.Confirm("提示", "您修改了姓名,您的专利和论文将取消关联,确定修改?", personUpdata);
|
|
210
|
}
|
|
211
|
}else{
|
|
212
|
personUpdata();
|
|
213
|
}
|
|
214
|
}, 100)
|
|
215
|
|
|
216
|
});
|
|
217
|
} else {
|
|
218
|
$.MsgBox.Confirm("提示", "您修改了所在机构,您为企业发布的需求将关闭,确定修改?", function() {
|
|
219
|
setTimeout(function() {
|
|
220
|
alert(11)
|
|
221
|
if(osty == "e") {
|
|
222
|
if($("#name").val() != opName) {
|
|
223
|
$.MsgBox.Confirm("提示", "您修改了姓名,您的专利和论文将取消关联,确定修改?", personUpdata);
|
|
224
|
}else {
|
|
225
|
personUpdata();
|
|
226
|
}
|
|
227
|
}else{
|
|
228
|
personUpdata();
|
|
229
|
}
|
|
230
|
}, 100)
|
|
231
|
});
|
|
232
|
}
|
173
|
233
|
} else {
|
174
|
|
personUpdata();
|
|
234
|
if(osty == "e") {
|
|
235
|
if($("#name").val() != opName) {
|
|
236
|
$.MsgBox.Confirm("提示", "您修改了姓名,您的专利和论文将取消关联,确定修改?", personUpdata);
|
|
237
|
}else{
|
|
238
|
personUpdata();
|
|
239
|
}
|
|
240
|
}else{
|
|
241
|
personUpdata();
|
|
242
|
}
|
175
|
243
|
}
|
|
244
|
|
176
|
245
|
});
|
177
|
|
function upStatus() {
|
178
|
|
$.ajax({
|
179
|
|
url:"/ajax/professor/removeOrgAuth",
|
180
|
|
dataType: 'json', //数据格式类型
|
181
|
|
type: 'post', //http请求类型
|
182
|
|
data: {
|
183
|
|
id: userid
|
184
|
|
},
|
185
|
|
timeout: 10000, //超时设置
|
186
|
|
success: function(data) {
|
187
|
|
console.log(data);
|
188
|
|
if(data.success) {
|
189
|
|
|
190
|
|
} else {
|
191
|
246
|
|
192
|
|
}
|
193
|
|
}
|
194
|
|
})
|
195
|
|
}
|
196
|
247
|
function personUpdata() {
|
197
|
248
|
var $data = {};
|
198
|
|
$data.name = $("#name").text();
|
|
249
|
$data.name = (osty == "e") ? $("#name").val() : $("#name").text();
|
199
|
250
|
$data.orgName = $("#orgName").val();
|
200
|
251
|
$data.title = $("#title").val();
|
201
|
252
|
$data.department = $("#department").val();
|
202
|
253
|
$data.office = $("#officeRevise").val();
|
203
|
|
$data.phone=$("#mobilePhone").val();
|
204
|
|
$data.email=$("#moileMail").val();
|
|
254
|
$data.phone = $("#mobilePhone").val();
|
|
255
|
$data.email = $("#moileMail").val();
|
205
|
256
|
if($("#Province input[name=cho_Province]").val() != "请选择省/直辖市") {
|
206
|
257
|
$data.province = $("#Province input[name=cho_Province]").val(); //省
|
207
|
258
|
}
|
208
|
259
|
if($("#City input[name=cho_City]").val() != "请选择城市") {
|
209
|
260
|
$data.address = $("#City input[name=cho_City]").val(); //市
|
210
|
261
|
}
|
211
|
|
if(authSD==1) {
|
212
|
|
upStatus();
|
213
|
|
}
|
214
|
262
|
var userid = $.cookie("userid");
|
215
|
263
|
if(userid) {
|
216
|
264
|
$data.id = userid;
|
|
@ -224,88 +272,103 @@ $(function() {
|
224
|
272
|
$.get("/ajax/professor/info/" + userid, function($data) {
|
225
|
273
|
if($data.success) {
|
226
|
274
|
var $info = $data.data;
|
|
275
|
if(osyp=="authicon-staff-ok") {
|
|
276
|
if(ofl) {
|
|
277
|
$("#proAuth")[0].className="authiconNew e";
|
|
278
|
$("#proAuth").attr("title","")
|
|
279
|
}
|
|
280
|
|
|
281
|
}
|
|
282
|
$("#proName").text($info.name);
|
|
283
|
authSD = $info.orgAuth;
|
|
284
|
opName = $info.name;
|
227
|
285
|
if($info) {
|
228
|
286
|
//展示专家的信息
|
229
|
287
|
$(".modifybox").css("display", "none");
|
230
|
288
|
$(".coninfocon").css("display", "block");
|
231
|
289
|
|
232
|
|
if($info.phone){
|
233
|
|
$("#phone").text("联系电话:" +$info.phone);
|
|
290
|
if($info.phone) {
|
|
291
|
$("#phone").text("联系电话:" + $info.phone);
|
234
|
292
|
$("#mobilePhone").val($info.phone);
|
235
|
|
}else{
|
|
293
|
} else {
|
236
|
294
|
$("#phone").text("");
|
237
|
295
|
$("#mobilePhone").val("");
|
238
|
296
|
}
|
239
|
|
if($info.email){
|
240
|
|
$("#mail").text("联系邮箱:" +$info.email);
|
|
297
|
if($info.email) {
|
|
298
|
$("#mail").text("联系邮箱:" + $info.email);
|
241
|
299
|
$("#moileMail").val($info.email);
|
242
|
|
}else{
|
|
300
|
} else {
|
243
|
301
|
$("#mail").text("");
|
244
|
302
|
$("#moileMail").val("");
|
245
|
303
|
}
|
246
|
304
|
if($info.title) {
|
247
|
305
|
$("#proTit").html($info.title + "<span style='margin-right:10px;'></span>");
|
248
|
|
}else{
|
|
306
|
} else {
|
249
|
307
|
$("#proTit").html("")
|
250
|
308
|
}
|
251
|
309
|
if($info.address) {
|
252
|
310
|
$("#proAddress").html($info.address + "<span style='margin-right:10px;'></span>");
|
253
|
|
}else{
|
|
311
|
} else {
|
254
|
312
|
$("#proAddress").html('')
|
255
|
313
|
}
|
256
|
|
var proOther="";
|
257
|
|
if($info.orgName){
|
258
|
|
if($info.department){
|
259
|
|
if($info.office){
|
|
314
|
var proOther = "";
|
|
315
|
if($info.orgName) {
|
|
316
|
if($info.department) {
|
|
317
|
if($info.office) {
|
260
|
318
|
proOther = $info.orgName + "," + $info.department + "," + $info.office
|
261
|
|
}else{
|
|
319
|
} else {
|
262
|
320
|
proOther = $info.orgName + "," + $info.department
|
263
|
321
|
}
|
264
|
|
}else{
|
265
|
|
if($info.office){
|
266
|
|
proOther = $info.orgName +"," + $info.office
|
267
|
|
}else{
|
|
322
|
} else {
|
|
323
|
if($info.office) {
|
|
324
|
proOther = $info.orgName + "," + $info.office
|
|
325
|
} else {
|
268
|
326
|
proOther = $info.orgName
|
269
|
327
|
}
|
270
|
328
|
}
|
271
|
|
}else{
|
272
|
|
if($info.department){
|
273
|
|
if($info.office){
|
274
|
|
proOther = $info.department + "," + $info.office
|
275
|
|
}else{
|
276
|
|
proOther = $info.department
|
|
329
|
} else {
|
|
330
|
if($info.department) {
|
|
331
|
if($info.office) {
|
|
332
|
proOther = $info.department + "," + $info.office
|
|
333
|
} else {
|
|
334
|
proOther = $info.department
|
277
|
335
|
}
|
278
|
|
}else{
|
279
|
|
if($info.office){
|
|
336
|
} else {
|
|
337
|
if($info.office) {
|
280
|
338
|
proOther = $info.office
|
281
|
339
|
}
|
282
|
340
|
}
|
283
|
341
|
}
|
284
|
342
|
$("#proOther").text(proOther);
|
285
|
343
|
//显示专家信息到保存数据
|
286
|
|
$("#name").text($info.name);
|
|
344
|
if(osty == "e") {
|
|
345
|
$("#name").val($info.name);
|
|
346
|
} else {
|
|
347
|
$("#name").text($info.name);
|
|
348
|
}
|
287
|
349
|
$("#title").val($info.title);
|
|
350
|
orgName = $info.orgName
|
288
|
351
|
$("#orgName").val($info.orgName);
|
289
|
352
|
$("#department").val($info.department);
|
290
|
353
|
$("#officeRevise").val($info.office);
|
291
|
354
|
//省
|
292
|
|
if(!$info.province){
|
|
355
|
if(!$info.province) {
|
293
|
356
|
$("#Province .mr_show").text("请选择省/直辖市");
|
294
|
|
}else{
|
|
357
|
} else {
|
295
|
358
|
$("#Province .mr_show").text("");
|
296
|
359
|
$("#Province input[name=cho_Province]").val($info.province);
|
297
|
360
|
$("#Province .mr_show").text($info.province);
|
298
|
361
|
}
|
299
|
|
|
|
362
|
|
300
|
363
|
//市
|
301
|
|
if(!$info.address){
|
|
364
|
if(!$info.address) {
|
302
|
365
|
$("#City .mr_show").text("请选择城市");
|
303
|
|
}else{
|
|
366
|
} else {
|
304
|
367
|
$("#City .mr_show").text("");
|
305
|
368
|
$("#City input[name=cho_City]").val($info.address);
|
306
|
369
|
$("#City .mr_show").text($info.address);
|
307
|
370
|
}
|
308
|
|
|
|
371
|
|
309
|
372
|
//省份城市颜色
|
310
|
373
|
if($("#oprovince").text() == "请选择省/直辖市") {
|
311
|
374
|
$("#oprovince").removeClass("mr_select");
|
|
@ -335,33 +398,33 @@ $(function() {
|
335
|
398
|
});
|
336
|
399
|
}
|
337
|
400
|
//////////////////基本信息增删改查相关结束//////////////
|
338
|
|
|
|
401
|
|
339
|
402
|
//////////////////个人简介增删改查相关开始//////////////
|
340
|
|
limitObj("#descp",500)
|
|
403
|
limitObj("#descp", 500)
|
341
|
404
|
//个人简介保存
|
342
|
405
|
$("#saveDescp").on("click", function() {
|
343
|
|
$.ajax({
|
344
|
|
"url": "../ajax/professor/descp",
|
345
|
|
"type": "POST",
|
346
|
|
"data": {
|
347
|
|
"id": userid,
|
348
|
|
"descp": $("#descp").val()
|
349
|
|
},
|
350
|
|
"contentType": "application/x-www-form-urlencoded",
|
351
|
|
"success": function($data) {
|
352
|
|
//debugger;;
|
353
|
|
if($data.success) {
|
354
|
|
$(".coninfocon").css("display", "block");
|
355
|
|
$(".modifybox").css("display", "none");
|
356
|
|
$("#descpS").text($("#descp").val());
|
357
|
|
} else {
|
358
|
|
$.MsgBox.Alert("提示", $data.msg);
|
359
|
|
}
|
|
406
|
$.ajax({
|
|
407
|
"url": "../ajax/professor/descp",
|
|
408
|
"type": "POST",
|
|
409
|
"data": {
|
|
410
|
"id": userid,
|
|
411
|
"descp": $("#descp").val()
|
|
412
|
},
|
|
413
|
"contentType": "application/x-www-form-urlencoded",
|
|
414
|
"success": function($data) {
|
|
415
|
//debugger;;
|
|
416
|
if($data.success) {
|
|
417
|
$(".coninfocon").css("display", "block");
|
|
418
|
$(".modifybox").css("display", "none");
|
|
419
|
$("#descpS").text($("#descp").val());
|
|
420
|
} else {
|
|
421
|
$.MsgBox.Alert("提示", $data.msg);
|
360
|
422
|
}
|
361
|
|
})
|
|
423
|
}
|
362
|
424
|
})
|
|
425
|
})
|
363
|
426
|
//////////////////个人简介增删改查相关结束//////////////
|
364
|
|
|
|
427
|
|
365
|
428
|
//////////////////学术领域增删改查相关开始//////////////
|
366
|
429
|
//填充学术领域
|
367
|
430
|
var subjectShow = function(data) {
|
|
@ -376,11 +439,11 @@ $(function() {
|
376
|
439
|
}
|
377
|
440
|
if(subs.length > 0) {
|
378
|
441
|
for(var i = 0; i < subs.length; i++) {
|
379
|
|
$("#subjectList").append('<li>'+ subs[i] + '<div class="closeThis"></div></li>');
|
380
|
|
$("#subjectShow").append('<li>'+ subs[i] + '</li>');
|
|
442
|
$("#subjectList").append('<li>' + subs[i] + '<div class="closeThis"></div></li>');
|
|
443
|
$("#subjectShow").append('<li>' + subs[i] + '</li>');
|
381
|
444
|
};
|
382
|
445
|
}
|
383
|
|
if( $("#subjectShow").find("li").length >= 20) {
|
|
446
|
if($("#subjectShow").find("li").length >= 20) {
|
384
|
447
|
$("#subjectList").parents(".keyResult").siblings("div.col-w-12").hide();
|
385
|
448
|
}
|
386
|
449
|
}
|
|
@ -428,7 +491,7 @@ $(function() {
|
428
|
491
|
});
|
429
|
492
|
})
|
430
|
493
|
//////////////////学术领域增删改查相关结束//////////////
|
431
|
|
|
|
494
|
|
432
|
495
|
//////////////////应用行业增删改查相关开始//////////////
|
433
|
496
|
//填充应用行业
|
434
|
497
|
var industryShow = function(data) {
|
|
@ -448,7 +511,7 @@ $(function() {
|
448
|
511
|
|
449
|
512
|
};
|
450
|
513
|
}
|
451
|
|
if( $("#industryShow").find("li").length >= 20) {
|
|
514
|
if($("#industryShow").find("li").length >= 20) {
|
452
|
515
|
$("#industryList").parents(".keyResult").siblings("div.col-w-12").hide();
|
453
|
516
|
}
|
454
|
517
|
}
|
|
@ -497,7 +560,7 @@ $(function() {
|
497
|
560
|
});
|
498
|
561
|
})
|
499
|
562
|
//////////////////应用行业增删改查相关结束//////////////
|
500
|
|
|
|
563
|
|
501
|
564
|
//////////////////研究方向增删改查相关开始//////////////
|
502
|
565
|
//填充研究方向
|
503
|
566
|
var researchAreaShow = function($datas, $datarecords) {
|
|
@ -512,11 +575,11 @@ $(function() {
|
512
|
575
|
if($datarecords.length > 0) {
|
513
|
576
|
$photos = getRecords($datarecords, $data.caption);
|
514
|
577
|
}
|
515
|
|
var showDiv = '<li><div class="favorBox" caption="'+ $data.caption +'"><span class="like">'+ $data.count +'</span>'+ $data.caption +'</div><div class="favorCount" caption="'+ $data.caption +'">';
|
|
578
|
var showDiv = '<li><div class="favorBox" caption="' + $data.caption + '"><span class="like">' + $data.count + '</span>' + $data.caption + '</div><div class="favorCount" caption="' + $data.caption + '">';
|
516
|
579
|
if($photos.length < 6) {
|
517
|
580
|
for(var j = 0; j < $photos.length; ++j) {
|
518
|
581
|
if($photos[j].img) {
|
519
|
|
showDiv += '<span class="like-people" style="background-image: url(../images/head/'+ $photos[j].id +'_s.jpg);"></span>';
|
|
582
|
showDiv += '<span class="like-people" style="background-image: url(../images/head/' + $photos[j].id + '_s.jpg);"></span>';
|
520
|
583
|
} else {
|
521
|
584
|
showDiv += '<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>';
|
522
|
585
|
}
|
|
@ -524,7 +587,7 @@ $(function() {
|
524
|
587
|
} else {
|
525
|
588
|
for(var j = $photos.length - 5; j < $photos.length; ++j) {
|
526
|
589
|
if($photos[j].img) {
|
527
|
|
showDiv +='<span class="like-people" style="background-image: url(../images/head/'+ $photos[j].id +'_s.jpg);"></span>';
|
|
590
|
showDiv += '<span class="like-people" style="background-image: url(../images/head/' + $photos[j].id + '_s.jpg);"></span>';
|
528
|
591
|
} else {
|
529
|
592
|
showDiv += '<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>';
|
530
|
593
|
}
|
|
@ -532,12 +595,12 @@ $(function() {
|
532
|
595
|
showDiv += '<span class="like-people like-more"></span>';
|
533
|
596
|
}
|
534
|
597
|
showDiv += "</div></li>";
|
535
|
|
|
|
598
|
|
536
|
599
|
$("#researchAreaShow").append(showDiv);
|
537
|
600
|
$("#researchAreaList").append("<li class='yjlist'><div><span class='like'>" + $data.count + "</span><span class='ra'>" + $data.caption + "</span><span class='closeThis'></span></div></li>");
|
538
|
601
|
|
539
|
602
|
}
|
540
|
|
if( $("#researchAreaShow").find("li").length >= 10) {
|
|
603
|
if($("#researchAreaShow").find("li").length >= 10) {
|
541
|
604
|
$("#researchAreaList").parents(".keyResult").siblings("div.col-w-12").hide();
|
542
|
605
|
}
|
543
|
606
|
}
|
|
@ -557,7 +620,7 @@ $(function() {
|
557
|
620
|
}
|
558
|
621
|
return ret;
|
559
|
622
|
}
|
560
|
|
hotKey(".oinputM",1);
|
|
623
|
hotKey(".oinputM", 1);
|
561
|
624
|
//研究方向添加
|
562
|
625
|
$("#researchAreaAdd").click(function() {
|
563
|
626
|
var researchArea = $("#researchArea").val();
|
|
@ -565,7 +628,10 @@ $(function() {
|
565
|
628
|
$.MsgBox.Alert("提示", "内容不能为空");
|
566
|
629
|
return;
|
567
|
630
|
}
|
568
|
|
if(researchArea.length>30){$.MsgBox.Alert("提示", "研究方向不得超过30个字");return;}
|
|
631
|
if(researchArea.length > 30) {
|
|
632
|
$.MsgBox.Alert("提示", "研究方向不得超过30个字");
|
|
633
|
return;
|
|
634
|
}
|
569
|
635
|
var inV = $("#researchAreaList .ra");
|
570
|
636
|
for(var i = 0; i < inV.length; i++) {
|
571
|
637
|
if(inV[i].innerText == researchArea) {
|
|
@ -573,10 +639,10 @@ $(function() {
|
573
|
639
|
return;
|
574
|
640
|
}
|
575
|
641
|
}
|
576
|
|
if(inV.length == 9){
|
|
642
|
if(inV.length == 9) {
|
577
|
643
|
$("#researchAreaList").parents(".keyResult").siblings("div.col-w-12").hide();
|
578
|
644
|
}
|
579
|
|
|
|
645
|
|
580
|
646
|
$("#researchAreaList").append("<li class='yjlist'><div><span class='like'>0</span><span class='ra'>" + researchArea + "</span><span class='closeThis'></span></div></li>");
|
581
|
647
|
$("#researchArea").val("");
|
582
|
648
|
});
|
|
@ -625,7 +691,7 @@ $(function() {
|
625
|
691
|
});
|
626
|
692
|
})
|
627
|
693
|
//////////////////研究方向增删改查相关结束//////////////
|
628
|
|
|
|
694
|
|
629
|
695
|
//////////////////教育背景增删改查相关开始//////////////
|
630
|
696
|
//填充教育背景
|
631
|
697
|
var eduBgShow = function(data) {
|
|
@ -633,113 +699,114 @@ $(function() {
|
633
|
699
|
eduFil("#eduUl");
|
634
|
700
|
if(data.length > 0) {
|
635
|
701
|
for(var i = 0; i < data.length; i++) {
|
636
|
|
var college="",major="",degree=""
|
637
|
|
if(data[i].college){
|
638
|
|
college =' - ' + data[i].college
|
639
|
|
}else{
|
640
|
|
data[i].college="";
|
|
702
|
var college = "",
|
|
703
|
major = "",
|
|
704
|
degree = ""
|
|
705
|
if(data[i].college) {
|
|
706
|
college = ' - ' + data[i].college
|
|
707
|
} else {
|
|
708
|
data[i].college = "";
|
641
|
709
|
}
|
642
|
|
if(data[i].major){
|
643
|
|
major =' - ' + data[i].major
|
644
|
|
}else{
|
645
|
|
data[i].major="";
|
|
710
|
if(data[i].major) {
|
|
711
|
major = ' - ' + data[i].major
|
|
712
|
} else {
|
|
713
|
data[i].major = "";
|
646
|
714
|
}
|
647
|
|
if(data[i].degree){
|
648
|
|
degree =' - ' + data[i].degree
|
649
|
|
if(data[i].degree==0){
|
650
|
|
|
651
|
|
degree =""
|
652
|
|
}
|
653
|
|
}else{
|
654
|
|
data[i].degree=0;
|
|
715
|
if(data[i].degree) {
|
|
716
|
degree = ' - ' + data[i].degree
|
|
717
|
if(data[i].degree == 0) {
|
|
718
|
|
|
719
|
degree = ""
|
|
720
|
}
|
|
721
|
} else {
|
|
722
|
data[i].degree = 0;
|
655
|
723
|
}
|
656
|
|
var timebiye="";
|
657
|
|
if(data[i].year){
|
658
|
|
if(trim(data[i].year)=="至今"){
|
659
|
|
timebiye=data[i].year;
|
660
|
|
}else{
|
661
|
|
timebiye=data[i].year+'年';
|
|
724
|
var timebiye = "";
|
|
725
|
if(data[i].year) {
|
|
726
|
if(trim(data[i].year) == "至今") {
|
|
727
|
timebiye = data[i].year;
|
|
728
|
} else {
|
|
729
|
timebiye = data[i].year + '年';
|
662
|
730
|
}
|
663
|
|
}else{
|
664
|
|
timebiye="";
|
665
|
|
data[i].year="";
|
|
731
|
} else {
|
|
732
|
timebiye = "";
|
|
733
|
data[i].year = "";
|
666
|
734
|
}
|
667
|
|
|
668
|
735
|
|
669
|
736
|
var string = '<li>'
|
670
|
|
string += '<div class="showBx"> <div class="h4Font h4tit">'
|
671
|
|
string += data[i].school + college + major + degree
|
672
|
|
string += '<small class="h6Font">' + timebiye + '</small><em class="btnClick exitlist">编辑</em></div></div>'
|
|
737
|
string += '<div class="showBx"> <div class="h4Font h4tit">'
|
|
738
|
string += data[i].school + college + major + degree
|
|
739
|
string += '<small class="h6Font">' + timebiye + '</small><em class="btnClick exitlist">编辑</em></div></div>'
|
673
|
740
|
string += '<div class="modifybox"><ul class="cmpFrmList">'
|
674
|
741
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>学校名称:</span><div class="col-w-10">'
|
675
|
|
string += '<input type="text" class="frmcontype school" placeholder="请填写就读的学校" value="' + data[i].school + '" /><input type="hidden" class="eduId" value="' + data[i].id + '"></div></li>'
|
|
742
|
string += '<input type="text" class="frmcontype school" placeholder="请填写就读的学校" value="' + data[i].school + '" /><input type="hidden" class="eduId" value="' + data[i].id + '"></div></li>'
|
676
|
743
|
string += '<li><span class="col-w-2 lableSpan">院系名称:</span><div class="col-w-10">'
|
677
|
|
string += '<input type="text" class="frmcontype college" placeholder="请填写就读的院系" value="' + data[i].college + '" /></div></li>'
|
|
744
|
string += '<input type="text" class="frmcontype college" placeholder="请填写就读的院系" value="' + data[i].college + '" /></div></li>'
|
678
|
745
|
string += '<li><span class="col-w-2 lableSpan">专业名称:</span><div class="col-w-10">'
|
679
|
|
string += '<input type="text" class="frmcontype major" placeholder="请填写就读的专业" value="' + data[i].major + '" /></div></li>'
|
|
746
|
string += '<input type="text" class="frmcontype major" placeholder="请填写就读的专业" value="' + data[i].major + '" /></div></li>'
|
680
|
747
|
string += '<li><span class="col-w-2 lableSpan">学位:</span><div class="col-w-5"><em class="mr_sj"></em>'
|
681
|
|
string += '<select class="frmcontype mr_btn" onchange="seleCo(this)">'
|
682
|
|
string +='<option value="0">请选择获得的学位</option>'
|
683
|
|
string +='<option value="博士">博士</option>'
|
684
|
|
string +='<option value="硕士">硕士</option>'
|
685
|
|
string +='<option value="学士">学士</option>'
|
686
|
|
string +='<option value="大专">大专</option>'
|
687
|
|
string +='<option value="其他">其他</option>'
|
688
|
|
string +='</select></div></li>'
|
|
748
|
string += '<select class="frmcontype mr_btn" onchange="seleCo(this)">'
|
|
749
|
string += '<option value="0">请选择获得的学位</option>'
|
|
750
|
string += '<option value="博士">博士</option>'
|
|
751
|
string += '<option value="硕士">硕士</option>'
|
|
752
|
string += '<option value="学士">学士</option>'
|
|
753
|
string += '<option value="大专">大专</option>'
|
|
754
|
string += '<option value="其他">其他</option>'
|
|
755
|
string += '</select></div></li>'
|
689
|
756
|
string += '<li><span class="col-w-2 lableSpan">毕业时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
690
|
|
string +='<div class="col-w-5" style="position:relative"><em class="mr_sj"></em><input type="text" class="date-btn frmcontype year" flag="1" placeholder="请选择毕业时间" value="' + data[i].year + '" readonly />'
|
691
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
692
|
|
string +='</form></div></li>'
|
693
|
|
string +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
694
|
|
string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
695
|
|
string +='<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
696
|
|
string +='<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
697
|
|
string +='</ul></div><li>';
|
698
|
|
var $string=$(string)
|
|
757
|
string += '<div class="col-w-5" style="position:relative"><em class="mr_sj"></em><input type="text" class="date-btn frmcontype year" flag="1" placeholder="请选择毕业时间" value="' + data[i].year + '" readonly />'
|
|
758
|
string += '<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
|
759
|
string += '</form></div></li>'
|
|
760
|
string += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
761
|
string += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
762
|
string += '<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
|
763
|
string += '<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
|
764
|
string += '</ul></div><li>';
|
|
765
|
var $string = $(string)
|
699
|
766
|
$("#eduUl").append($string);
|
700
|
|
if(data[i].degree!=0 ||data[i].degree!="" ){
|
701
|
|
$string.find(".mr_btn").css("color","#666");
|
|
767
|
if(data[i].degree != 0 || data[i].degree != "") {
|
|
768
|
$string.find(".mr_btn").css("color", "#666");
|
702
|
769
|
}
|
703
|
770
|
$string.find(".mr_btn").val(data[i].degree);
|
704
|
771
|
yearAdd();
|
705
|
772
|
month();
|
706
|
773
|
$(".full_year li:first-child").before('<li class="yearli">至今</li>');
|
707
|
774
|
}
|
708
|
|
|
|
775
|
|
709
|
776
|
}
|
710
|
777
|
}
|
711
|
778
|
//教育背景填充函数
|
712
|
779
|
var eduFil = function(select) {
|
713
|
|
var string ='<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
714
|
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>学校名称:</span><div class="col-w-10">'
|
715
|
|
string += '<input type="text" class="frmcontype school" placeholder="请填写就读的学校" /><input type="hidden" class="eduId"></div></li>'
|
716
|
|
string += '<li><span class="col-w-2 lableSpan">院系名称:</span><div class="col-w-10">'
|
717
|
|
string += '<input type="text" class="frmcontype college" placeholder="请填写就读的院系" /></div></li>'
|
718
|
|
string += '<li><span class="col-w-2 lableSpan">专业名称:</span><div class="col-w-10">'
|
719
|
|
string += '<input type="text" class="frmcontype major" placeholder="请填写就读的专业" /></div></li>'
|
720
|
|
string += '<li><span class="col-w-2 lableSpan">学位:</span><div class="col-w-5"><em class="mr_sj"></em>'
|
721
|
|
string += '<select class="frmcontype mr_btn" onchange="seleCo(this)">'
|
722
|
|
string +='<option value="0">请选择获得的学位</option>'
|
723
|
|
string +='<option value="博士">博士</option>'
|
724
|
|
string +='<option value="硕士">硕士</option>'
|
725
|
|
string +='<option value="学士">学士</option>'
|
726
|
|
string +='<option value="大专">大专</option>'
|
727
|
|
string +='<option value="其他">其他</option>'
|
728
|
|
string +='</select></div></li>'
|
729
|
|
string += '<li><span class="col-w-2 lableSpan">毕业时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
730
|
|
string +='<div class="col-w-5" style="position:relative"><em class="mr_sj"></em><input type="text" class="date-btn frmcontype year" flag="1" placeholder="请选择毕业时间" readonly/>'
|
731
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
732
|
|
string +='</form></div></li>'
|
733
|
|
string +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
734
|
|
string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
735
|
|
string +='<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
736
|
|
string +='</ul></div><li>';
|
|
780
|
var string = '<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
|
781
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>学校名称:</span><div class="col-w-10">'
|
|
782
|
string += '<input type="text" class="frmcontype school" placeholder="请填写就读的学校" /><input type="hidden" class="eduId"></div></li>'
|
|
783
|
string += '<li><span class="col-w-2 lableSpan">院系名称:</span><div class="col-w-10">'
|
|
784
|
string += '<input type="text" class="frmcontype college" placeholder="请填写就读的院系" /></div></li>'
|
|
785
|
string += '<li><span class="col-w-2 lableSpan">专业名称:</span><div class="col-w-10">'
|
|
786
|
string += '<input type="text" class="frmcontype major" placeholder="请填写就读的专业" /></div></li>'
|
|
787
|
string += '<li><span class="col-w-2 lableSpan">学位:</span><div class="col-w-5"><em class="mr_sj"></em>'
|
|
788
|
string += '<select class="frmcontype mr_btn" onchange="seleCo(this)">'
|
|
789
|
string += '<option value="0">请选择获得的学位</option>'
|
|
790
|
string += '<option value="博士">博士</option>'
|
|
791
|
string += '<option value="硕士">硕士</option>'
|
|
792
|
string += '<option value="学士">学士</option>'
|
|
793
|
string += '<option value="大专">大专</option>'
|
|
794
|
string += '<option value="其他">其他</option>'
|
|
795
|
string += '</select></div></li>'
|
|
796
|
string += '<li><span class="col-w-2 lableSpan">毕业时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
|
797
|
string += '<div class="col-w-5" style="position:relative"><em class="mr_sj"></em><input type="text" class="date-btn frmcontype year" flag="1" placeholder="请选择毕业时间" readonly/>'
|
|
798
|
string += '<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
|
799
|
string += '</form></div></li>'
|
|
800
|
string += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
801
|
string += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
802
|
string += '<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
|
803
|
string += '</ul></div><li>';
|
737
|
804
|
$("" + select + "").prepend(string);
|
738
|
805
|
}
|
739
|
|
var eduThis=""
|
740
|
|
$("#eduUl").on("click", ".fontLink", function() {//编辑各个列表中的删除
|
|
806
|
var eduThis = ""
|
|
807
|
$("#eduUl").on("click", ".fontLink", function() { //编辑各个列表中的删除
|
741
|
808
|
eduThis = $(this).parents(".modifybox").find(".eduId").val();
|
742
|
|
$.MsgBox.Confirm("提示", "确认删除该教育背景?",delEdu);
|
|
809
|
$.MsgBox.Confirm("提示", "确认删除该教育背景?", delEdu);
|
743
|
810
|
});
|
744
|
811
|
//教育背景,对已经添加的背景删除
|
745
|
812
|
var delEdu = function() {
|
|
@ -755,55 +822,67 @@ $(function() {
|
755
|
822
|
}
|
756
|
823
|
});
|
757
|
824
|
} else {
|
758
|
|
$.MsgBox.Alert("提示",$data.msg);
|
|
825
|
$.MsgBox.Alert("提示", $data.msg);
|
759
|
826
|
}
|
760
|
827
|
}
|
761
|
828
|
});
|
762
|
829
|
}
|
763
|
830
|
//教育背景保存
|
764
|
831
|
$("#eduUl").on("click", ".saveGo", function() {
|
765
|
|
var length = trim($(this).parents(".modifybox").find(".school").val());
|
766
|
|
var length2 = trim($(this).parents(".modifybox").find(".college").val());
|
767
|
|
var length3 = trim($(this).parents(".modifybox").find(".major").val());
|
|
832
|
var length = trim($(this).parents(".modifybox").find(".school").val());
|
|
833
|
var length2 = trim($(this).parents(".modifybox").find(".college").val());
|
|
834
|
var length3 = trim($(this).parents(".modifybox").find(".major").val());
|
768
|
835
|
|
769
|
|
if(!length){ $.MsgBox.Alert("提示", "请填写学校名称");return;}
|
770
|
|
if(length.length>50){ $.MsgBox.Alert("提示", "学校名称不得超过50个字");return;}
|
771
|
|
if(length2.length>20){ $.MsgBox.Alert("提示", "院系名称不得超过20个字");return;}
|
772
|
|
if(length3.length>20){ $.MsgBox.Alert("提示", "专业名称不得超过20个字");return;}
|
773
|
|
|
774
|
|
var $data = {};
|
775
|
|
var $id = $(this).parents(".modifybox").find(".eduId").val();
|
776
|
|
if($id) {
|
777
|
|
$data.id = $id;
|
778
|
|
}
|
779
|
|
$data.professorId = userid;
|
780
|
|
$data.year = $(this).parents(".modifybox").find(".year").val();
|
781
|
|
$data.school = $(this).parents(".modifybox").find(".school").val();
|
782
|
|
$data.college = $(this).parents(".modifybox").find(".college").val();
|
783
|
|
$data.major = $(this).parents(".modifybox").find(".major").val();
|
784
|
|
if($(this).parents(".modifybox").find(".mr_btn").val()!=0){
|
785
|
|
$data.degree = $(this).parents(".modifybox").find(".mr_btn").val();
|
786
|
|
}
|
787
|
|
|
788
|
|
$.ajax({
|
789
|
|
"url": "/ajax/edu",
|
790
|
|
"type": $id ? "PUT" : "POST",
|
791
|
|
"data": $id ? JSON.stringify($data) : $data,
|
792
|
|
"contentType": $id ? "application/json" : "application/x-www-form-urlencoded",
|
793
|
|
"success": function($data) {
|
794
|
|
if($data.success) {
|
795
|
|
$.get("/ajax/professor/info/" + userid, function($data) {
|
796
|
|
if($data.success) {
|
797
|
|
$("#eduUl").empty("");
|
798
|
|
eduBgShow($data.data.edus);
|
799
|
|
}
|
800
|
|
});
|
801
|
|
} else {
|
802
|
|
$.MsgBox.Alert("提示", $data.msg);
|
803
|
|
}
|
|
836
|
if(!length) {
|
|
837
|
$.MsgBox.Alert("提示", "请填写学校名称");
|
|
838
|
return;
|
|
839
|
}
|
|
840
|
if(length.length > 50) {
|
|
841
|
$.MsgBox.Alert("提示", "学校名称不得超过50个字");
|
|
842
|
return;
|
|
843
|
}
|
|
844
|
if(length2.length > 20) {
|
|
845
|
$.MsgBox.Alert("提示", "院系名称不得超过20个字");
|
|
846
|
return;
|
|
847
|
}
|
|
848
|
if(length3.length > 20) {
|
|
849
|
$.MsgBox.Alert("提示", "专业名称不得超过20个字");
|
|
850
|
return;
|
|
851
|
}
|
|
852
|
|
|
853
|
var $data = {};
|
|
854
|
var $id = $(this).parents(".modifybox").find(".eduId").val();
|
|
855
|
if($id) {
|
|
856
|
$data.id = $id;
|
|
857
|
}
|
|
858
|
$data.professorId = userid;
|
|
859
|
$data.year = $(this).parents(".modifybox").find(".year").val();
|
|
860
|
$data.school = $(this).parents(".modifybox").find(".school").val();
|
|
861
|
$data.college = $(this).parents(".modifybox").find(".college").val();
|
|
862
|
$data.major = $(this).parents(".modifybox").find(".major").val();
|
|
863
|
if($(this).parents(".modifybox").find(".mr_btn").val() != 0) {
|
|
864
|
$data.degree = $(this).parents(".modifybox").find(".mr_btn").val();
|
|
865
|
}
|
|
866
|
|
|
867
|
$.ajax({
|
|
868
|
"url": "/ajax/edu",
|
|
869
|
"type": $id ? "PUT" : "POST",
|
|
870
|
"data": $id ? JSON.stringify($data) : $data,
|
|
871
|
"contentType": $id ? "application/json" : "application/x-www-form-urlencoded",
|
|
872
|
"success": function($data) {
|
|
873
|
if($data.success) {
|
|
874
|
$.get("/ajax/professor/info/" + userid, function($data) {
|
|
875
|
if($data.success) {
|
|
876
|
$("#eduUl").empty("");
|
|
877
|
eduBgShow($data.data.edus);
|
|
878
|
}
|
|
879
|
});
|
|
880
|
} else {
|
|
881
|
$.MsgBox.Alert("提示", $data.msg);
|
804
|
882
|
}
|
805
|
|
});
|
806
|
|
})
|
|
883
|
}
|
|
884
|
});
|
|
885
|
})
|
807
|
886
|
//////////////////教育背景增删改查相关结束///////////////
|
808
|
887
|
|
809
|
888
|
//////////////////工作经历增删改查相关开始///////////////
|
|
@ -813,8 +892,10 @@ $(function() {
|
813
|
892
|
jobFil("#timeJobShow");
|
814
|
893
|
if(data.length > 0) {
|
815
|
894
|
for(var i = 0; i < data.length; i++) {
|
816
|
|
var sDate = "",sDateV="";
|
817
|
|
var eDate = "",eDateV="";
|
|
895
|
var sDate = "",
|
|
896
|
sDateV = "";
|
|
897
|
var eDate = "",
|
|
898
|
eDateV = "";
|
818
|
899
|
if(data[i].department) {
|
819
|
900
|
var dep = " - " + data[i].department;
|
820
|
901
|
var depart = data[i].department;
|
|
@ -833,30 +914,30 @@ $(function() {
|
833
|
914
|
eDateV = "至今";
|
834
|
915
|
}
|
835
|
916
|
}
|
836
|
|
var string ='<li>'
|
837
|
|
string += ' <div class="showBx"><div class="h4Font h4tit">' + data[i].company + dep + ' - ' + data[i].title + '<small class="h6Font">';
|
838
|
|
string += sDate;
|
839
|
|
if(eDate) string += (" - " + eDate);
|
840
|
|
string += '</small><em class="btnClick exitlist">编辑</em></div></div>';
|
|
917
|
var string = '<li>'
|
|
918
|
string += ' <div class="showBx"><div class="h4Font h4tit">' + data[i].company + dep + ' - ' + data[i].title + '<small class="h6Font">';
|
|
919
|
string += sDate;
|
|
920
|
if(eDate) string += (" - " + eDate);
|
|
921
|
string += '</small><em class="btnClick exitlist">编辑</em></div></div>';
|
841
|
922
|
string += '<div class="modifybox"><ul class="cmpFrmList">'
|
842
|
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>机构名称:</span><div class="col-w-10">'
|
843
|
|
string += '<input type="text" class="frmcontype jobCompany" placeholder="请填写就职的机构" value="' + data[i].company + '" /><input type="hidden" class="jobId" value="' + data[i].id + '"></div></li>'
|
844
|
|
string += '<li><span class="col-w-2 lableSpan">所在部门:</span><div class="col-w-10">'
|
845
|
|
string += '<input type="text" class="frmcontype jobdepartment" placeholder="请填写就职的部门" value="' + depart + '" /></div></li>'
|
846
|
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>职位:</span><div class="col-w-10">'
|
847
|
|
string += '<input type="text" class="frmcontype jobTitle" placeholder="请填写担任的职位" value="' + data[i].title + '" /></div></li>'
|
848
|
|
string += '<li><span class="col-w-2 lableSpan">任职时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
849
|
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StartMonth" flag="2" difference="1" placeholder="请选择起始时间" readonly value="' + sDateV + '" />'
|
850
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
851
|
|
string +='<div class="col-w-1 alignCenter">至</div>'
|
852
|
|
string +='<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StopMonth" flag="2" difference="2" placeholder="请选择结束时间" readonly value="' + eDateV + '" />'
|
853
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
854
|
|
string +='</form></div></li>'
|
855
|
|
string +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
856
|
|
string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
857
|
|
string +='<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
858
|
|
string +='<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
859
|
|
string +='</ul></div><li>';
|
|
923
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>机构名称:</span><div class="col-w-10">'
|
|
924
|
string += '<input type="text" class="frmcontype jobCompany" placeholder="请填写就职的机构" value="' + data[i].company + '" /><input type="hidden" class="jobId" value="' + data[i].id + '"></div></li>'
|
|
925
|
string += '<li><span class="col-w-2 lableSpan">所在部门:</span><div class="col-w-10">'
|
|
926
|
string += '<input type="text" class="frmcontype jobdepartment" placeholder="请填写就职的部门" value="' + depart + '" /></div></li>'
|
|
927
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>职位:</span><div class="col-w-10">'
|
|
928
|
string += '<input type="text" class="frmcontype jobTitle" placeholder="请填写担任的职位" value="' + data[i].title + '" /></div></li>'
|
|
929
|
string += '<li><span class="col-w-2 lableSpan">任职时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
|
930
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StartMonth" flag="2" difference="1" placeholder="请选择起始时间" readonly value="' + sDateV + '" />'
|
|
931
|
string += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
|
932
|
string += '<div class="col-w-1 alignCenter">至</div>'
|
|
933
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StopMonth" flag="2" difference="2" placeholder="请选择结束时间" readonly value="' + eDateV + '" />'
|
|
934
|
string += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
|
935
|
string += '</form></div></li>'
|
|
936
|
string += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
937
|
string += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
938
|
string += '<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
|
939
|
string += '<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
|
940
|
string += '</ul></div><li>';
|
860
|
941
|
$("#timeJobShow").append(string);
|
861
|
942
|
yearAdd();
|
862
|
943
|
month();
|
|
@ -864,30 +945,30 @@ $(function() {
|
864
|
945
|
}
|
865
|
946
|
}
|
866
|
947
|
var jobFil = function(select) {
|
867
|
|
var string ='<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
868
|
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>机构名称:</span><div class="col-w-10">'
|
869
|
|
string += '<input type="text" class="frmcontype jobCompany" placeholder="请填写就职的机构" /><input type="hidden" class="jobId"></div></li>'
|
870
|
|
string += '<li><span class="col-w-2 lableSpan">所在部门:</span><div class="col-w-10">'
|
871
|
|
string += '<input type="text" class="frmcontype jobdepartment" placeholder="请填写就职的部门" /></div></li>'
|
872
|
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>职位:</span><div class="col-w-10">'
|
873
|
|
string += '<input type="text" class="frmcontype jobTitle" placeholder="请填写担任的职位" /></div></li>'
|
874
|
|
string += '<li><span class="col-w-2 lableSpan">任职时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
875
|
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StartMonth" flag="2" difference="1" placeholder="请选择起始时间" readonly />'
|
876
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
877
|
|
string +='<div class="col-w-1 alignCenter">至</div>'
|
878
|
|
string +='<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StopMonth" flag="2" difference="2" placeholder="请选择结束时间" readonly />'
|
879
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"> </ul><ul class="mr_month"></ul></div></div>'
|
880
|
|
string +='</form></div></li>'
|
881
|
|
string +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
882
|
|
string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
883
|
|
string +='<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
884
|
|
string +='</ul></div><li>';
|
|
948
|
var string = '<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
|
949
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>机构名称:</span><div class="col-w-10">'
|
|
950
|
string += '<input type="text" class="frmcontype jobCompany" placeholder="请填写就职的机构" /><input type="hidden" class="jobId"></div></li>'
|
|
951
|
string += '<li><span class="col-w-2 lableSpan">所在部门:</span><div class="col-w-10">'
|
|
952
|
string += '<input type="text" class="frmcontype jobdepartment" placeholder="请填写就职的部门" /></div></li>'
|
|
953
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>职位:</span><div class="col-w-10">'
|
|
954
|
string += '<input type="text" class="frmcontype jobTitle" placeholder="请填写担任的职位" /></div></li>'
|
|
955
|
string += '<li><span class="col-w-2 lableSpan">任职时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
|
956
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StartMonth" flag="2" difference="1" placeholder="请选择起始时间" readonly />'
|
|
957
|
string += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
|
958
|
string += '<div class="col-w-1 alignCenter">至</div>'
|
|
959
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype StopMonth" flag="2" difference="2" placeholder="请选择结束时间" readonly />'
|
|
960
|
string += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"> </ul><ul class="mr_month"></ul></div></div>'
|
|
961
|
string += '</form></div></li>'
|
|
962
|
string += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
963
|
string += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
964
|
string += '<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
|
965
|
string += '</ul></div><li>';
|
885
|
966
|
$("" + select + "").prepend(string);
|
886
|
967
|
}
|
887
|
|
var jobThis=""
|
888
|
|
$("#timeJobShow").on("click", ".fontLink", function() {//编辑各个列表中的删除
|
|
968
|
var jobThis = ""
|
|
969
|
$("#timeJobShow").on("click", ".fontLink", function() { //编辑各个列表中的删除
|
889
|
970
|
jobThis = $(this).parents(".modifybox").find(".jobId").val();
|
890
|
|
$.MsgBox.Confirm("提示", "确认删除该工作经历?",delTimeJob);
|
|
971
|
$.MsgBox.Confirm("提示", "确认删除该工作经历?", delTimeJob);
|
891
|
972
|
});
|
892
|
973
|
//社会兼职,对添加的兼职删除
|
893
|
974
|
var delTimeJob = function() {
|
|
@ -903,7 +984,7 @@ $(function() {
|
903
|
984
|
}
|
904
|
985
|
});
|
905
|
986
|
} else {
|
906
|
|
$.MsgBox.Alert("提示",$data.msg);
|
|
987
|
$.MsgBox.Alert("提示", $data.msg);
|
907
|
988
|
}
|
908
|
989
|
}
|
909
|
990
|
});
|
|
@ -915,10 +996,16 @@ $(function() {
|
915
|
996
|
var length3 = trim($(this).parents(".modifybox").find(".StartMonth").val());
|
916
|
997
|
var length4 = trim($(this).parents(".modifybox").find(".StopMonth").val());
|
917
|
998
|
var length5 = trim($(this).parents(".modifybox").find(".jobdepartment").val());
|
918
|
|
|
919
|
|
if(length1.length>50){ $.MsgBox.Alert("提示", "机构名称不得超过50个字");return;}
|
920
|
|
if(length5.length>20){ $.MsgBox.Alert("提示", "部门名称不得超过20个字");return;}
|
921
|
|
|
|
999
|
|
|
1000
|
if(length1.length > 50) {
|
|
1001
|
$.MsgBox.Alert("提示", "机构名称不得超过50个字");
|
|
1002
|
return;
|
|
1003
|
}
|
|
1004
|
if(length5.length > 20) {
|
|
1005
|
$.MsgBox.Alert("提示", "部门名称不得超过20个字");
|
|
1006
|
return;
|
|
1007
|
}
|
|
1008
|
|
922
|
1009
|
if(!length3 && length4) {
|
923
|
1010
|
$.MsgBox.Alert("提示", "请选择工作的开始时间");
|
924
|
1011
|
return;
|
|
@ -990,8 +1077,10 @@ $(function() {
|
990
|
1077
|
if(!data[i].descp) {
|
991
|
1078
|
data[i].descp = "";
|
992
|
1079
|
}
|
993
|
|
var sDate = "",sDateV="";
|
994
|
|
var eDate = "",eDateV="";
|
|
1080
|
var sDate = "",
|
|
1081
|
sDateV = "";
|
|
1082
|
var eDate = "",
|
|
1083
|
eDateV = "";
|
995
|
1084
|
if(data[i].startMonth) {
|
996
|
1085
|
sDate = data[i].startMonth.substr(0, 4) + "年" + data[i].startMonth.substr(4, 6) + "月";
|
997
|
1086
|
sDateV = data[i].startMonth.substr(0, 4) + "-" + data[i].startMonth.substr(4, 6);
|
|
@ -1003,33 +1092,33 @@ $(function() {
|
1003
|
1092
|
eDateV = "至今";
|
1004
|
1093
|
}
|
1005
|
1094
|
}
|
1006
|
|
|
|
1095
|
|
1007
|
1096
|
var stringHtml = '<li>';
|
1008
|
1097
|
stringHtml += '<div class="showBx"><div class="h4Font h4tit">' + data[i].name + '<small class="h6Font">'
|
1009
|
1098
|
stringHtml += sDate;
|
1010
|
1099
|
if(eDate) stringHtml += (" - " + eDate);
|
1011
|
|
stringHtml +='</small><em class="btnClick exitlist">编辑</em></div>';
|
|
1100
|
stringHtml += '</small><em class="btnClick exitlist">编辑</em></div>';
|
1012
|
1101
|
stringHtml += '<div class="h5Font">' + data[i].descp + '</div>';
|
1013
|
1102
|
stringHtml += '</div>';
|
1014
|
1103
|
stringHtml += '<div class="modifybox"><ul class="cmpFrmList">'
|
1015
|
1104
|
stringHtml += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>项目名称:</span><div class="col-w-10">'
|
1016
|
|
stringHtml += '<input type="text" class="frmcontype projectName" placeholder="请填写项目名称" value="' + data[i].name + '" /><input type="hidden" class="projectId" value="' + data[i].id + '"></div></li>'
|
|
1105
|
stringHtml += '<input type="text" class="frmcontype projectName" placeholder="请填写项目名称" value="' + data[i].name + '" /><input type="hidden" class="projectId" value="' + data[i].id + '"></div></li>'
|
1017
|
1106
|
stringHtml += '<li><span class="col-w-2 lableSpan">项目时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
1018
|
|
stringHtml += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StartMonth" flag="2" difference="1" placeholder="请选择起始时间" readonly value="' +sDateV + '" />'
|
1019
|
|
stringHtml +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
1020
|
|
stringHtml +='<div class="col-w-1 alignCenter">至</div>'
|
1021
|
|
stringHtml +='<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StopMonth" flag="2" difference="2" placeholder="请选择结束时间" readonly value="' + eDateV + '" />'
|
1022
|
|
stringHtml +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"> </ul><ul class="mr_month"></ul></div></div>'
|
1023
|
|
stringHtml +='</form></div></li>'
|
|
1107
|
stringHtml += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StartMonth" flag="2" difference="1" placeholder="请选择起始时间" readonly value="' + sDateV + '" />'
|
|
1108
|
stringHtml += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
|
1109
|
stringHtml += '<div class="col-w-1 alignCenter">至</div>'
|
|
1110
|
stringHtml += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StopMonth" flag="2" difference="2" placeholder="请选择结束时间" readonly value="' + eDateV + '" />'
|
|
1111
|
stringHtml += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"> </ul><ul class="mr_month"></ul></div></div>'
|
|
1112
|
stringHtml += '</form></div></li>'
|
1024
|
1113
|
stringHtml += '<li><span class="col-w-2 lableSpan">项目描述:</span><div class="col-w-10">'
|
1025
|
|
stringHtml += '<div class="msgContbox"><textarea class="frmcontype msgCont projectDescp" placeholder="请填写项目描述">' + data[i].descp + '</textarea><span class="msgconNum"><em class="limitNum">'+ data[i].descp.length +'</em>/200</span></div></div></li>'
|
1026
|
|
stringHtml +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
1027
|
|
stringHtml +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
1028
|
|
stringHtml +='<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
1029
|
|
stringHtml +='<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
1030
|
|
var $stringHtml=$(stringHtml);
|
|
1114
|
stringHtml += '<div class="msgContbox"><textarea class="frmcontype msgCont projectDescp" placeholder="请填写项目描述">' + data[i].descp + '</textarea><span class="msgconNum"><em class="limitNum">' + data[i].descp.length + '</em>/200</span></div></div></li>'
|
|
1115
|
stringHtml += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
1116
|
stringHtml += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
1117
|
stringHtml += '<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
|
1118
|
stringHtml += '<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
|
1119
|
var $stringHtml = $(stringHtml);
|
1031
|
1120
|
$("#projectShow").append($stringHtml);
|
1032
|
|
limitObj($stringHtml.find(".projectDescp"),200)
|
|
1121
|
limitObj($stringHtml.find(".projectDescp"), 200)
|
1033
|
1122
|
yearAdd();
|
1034
|
1123
|
month();
|
1035
|
1124
|
}
|
|
@ -1037,30 +1126,30 @@ $(function() {
|
1037
|
1126
|
}
|
1038
|
1127
|
//项目经历添加填充
|
1039
|
1128
|
var projectFil = function(select) {
|
1040
|
|
var string ='<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
1041
|
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>项目名称:</span><div class="col-w-10">'
|
1042
|
|
string += '<input type="text" class="frmcontype projectName" placeholder="请填写项目名称" /><input type="hidden" class="projectId"></div></li>'
|
1043
|
|
string += '<li><span class="col-w-2 lableSpan">项目时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
1044
|
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StartMonth" flag="2" difference="1" readonly placeholder="请选择起始时间" />'
|
1045
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
1046
|
|
string +='<div class="col-w-1 alignCenter">至</div>'
|
1047
|
|
string +='<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StopMonth" flag="2" difference="2" readonly placeholder="请选择结束时间" />'
|
1048
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="mr_year"> </ul><ul class="mr_month"></ul></div></div>'
|
1049
|
|
string +='</form></div></li>'
|
1050
|
|
string += '<li><span class="col-w-2 lableSpan">项目描述:</span><div class="col-w-10">'
|
1051
|
|
string += '<div class="msgContbox"><textarea class="frmcontype msgCont projectDescp" placeholder="请填写项目描述"></textarea><span class="msgconNum"><em class="limitNum">0</em>/200</span></div></div></li>'
|
1052
|
|
string +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
1053
|
|
string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
1054
|
|
string +='<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
1055
|
|
string +='</ul></div><li>';
|
1056
|
|
var $ostr=$(string);
|
|
1129
|
var string = '<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
|
1130
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>项目名称:</span><div class="col-w-10">'
|
|
1131
|
string += '<input type="text" class="frmcontype projectName" placeholder="请填写项目名称" /><input type="hidden" class="projectId"></div></li>'
|
|
1132
|
string += '<li><span class="col-w-2 lableSpan">项目时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
|
1133
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StartMonth" flag="2" difference="1" readonly placeholder="请选择起始时间" />'
|
|
1134
|
string += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"></ul><ul class="mr_month"></ul></div></div>'
|
|
1135
|
string += '<div class="col-w-1 alignCenter">至</div>'
|
|
1136
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project StopMonth" flag="2" difference="2" readonly placeholder="请选择结束时间" />'
|
|
1137
|
string += '<div class="mr_calendar_ym clearfix"><ul class="mr_year"> </ul><ul class="mr_month"></ul></div></div>'
|
|
1138
|
string += '</form></div></li>'
|
|
1139
|
string += '<li><span class="col-w-2 lableSpan">项目描述:</span><div class="col-w-10">'
|
|
1140
|
string += '<div class="msgContbox"><textarea class="frmcontype msgCont projectDescp" placeholder="请填写项目描述"></textarea><span class="msgconNum"><em class="limitNum">0</em>/200</span></div></div></li>'
|
|
1141
|
string += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
1142
|
string += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
1143
|
string += '<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
|
1144
|
string += '</ul></div><li>';
|
|
1145
|
var $ostr = $(string);
|
1057
|
1146
|
$("" + select + "").prepend($ostr);
|
1058
|
|
limitObj($ostr.find(".projectDescp"),200)
|
|
1147
|
limitObj($ostr.find(".projectDescp"), 200)
|
1059
|
1148
|
}
|
1060
|
|
var projectThis=""
|
1061
|
|
$("#projectShow").on("click", ".fontLink", function() {//编辑各个列表中的删除
|
|
1149
|
var projectThis = ""
|
|
1150
|
$("#projectShow").on("click", ".fontLink", function() { //编辑各个列表中的删除
|
1062
|
1151
|
projectThis = $(this).parents(".modifybox").find(".projectId").val();
|
1063
|
|
$.MsgBox.Confirm("提示", "确认删除该项目经历?",delProject);
|
|
1152
|
$.MsgBox.Confirm("提示", "确认删除该项目经历?", delProject);
|
1064
|
1153
|
});
|
1065
|
1154
|
//项目经历,对添加的项目删除
|
1066
|
1155
|
var delProject = function() {
|
|
@ -1076,25 +1165,37 @@ $(function() {
|
1076
|
1165
|
}
|
1077
|
1166
|
});
|
1078
|
1167
|
} else {
|
1079
|
|
$.MsgBox.Alert("提示",$data.msg);
|
|
1168
|
$.MsgBox.Alert("提示", $data.msg);
|
1080
|
1169
|
}
|
1081
|
1170
|
}
|
1082
|
1171
|
});
|
1083
|
1172
|
}
|
1084
|
|
|
|
1173
|
|
1085
|
1174
|
//项目经历保存
|
1086
|
1175
|
$("#projectShow").on("click", ".saveGo", function() {
|
1087
|
1176
|
var length = trim($(this).parents(".modifybox").find(".projectName").val());
|
1088
|
1177
|
var length1 = trim($(this).parents(".modifybox").find(".StartMonth").val());
|
1089
|
1178
|
var length2 = trim($(this).parents(".modifybox").find(".StopMonth").val());
|
1090
|
1179
|
var lengthDescp = trim($(this).parents(".modifybox").find(".projectDescp").val());
|
1091
|
|
|
1092
|
|
// if(lengthDescp.length>200){$.MsgBox.Alert("提示", "项目描述不得超过200个字");return;}
|
1093
|
|
if(!length){ $.MsgBox.Alert("提示", "请填写项目名称");return;}
|
1094
|
|
if(length.length>50){ $.MsgBox.Alert("提示", "项目名称不得超过50个字");return;}
|
1095
|
|
|
1096
|
|
if(length1 && !length2) { $.MsgBox.Alert("提示", "没有选结束时间");return;}
|
1097
|
|
if(!length1 && length2) {$.MsgBox.Alert("提示", "没有选开始时间");return;}
|
|
1180
|
|
|
1181
|
// if(lengthDescp.length>200){$.MsgBox.Alert("提示", "项目描述不得超过200个字");return;}
|
|
1182
|
if(!length) {
|
|
1183
|
$.MsgBox.Alert("提示", "请填写项目名称");
|
|
1184
|
return;
|
|
1185
|
}
|
|
1186
|
if(length.length > 50) {
|
|
1187
|
$.MsgBox.Alert("提示", "项目名称不得超过50个字");
|
|
1188
|
return;
|
|
1189
|
}
|
|
1190
|
|
|
1191
|
if(length1 && !length2) {
|
|
1192
|
$.MsgBox.Alert("提示", "没有选结束时间");
|
|
1193
|
return;
|
|
1194
|
}
|
|
1195
|
if(!length1 && length2) {
|
|
1196
|
$.MsgBox.Alert("提示", "没有选开始时间");
|
|
1197
|
return;
|
|
1198
|
}
|
1098
|
1199
|
var $data = {};
|
1099
|
1200
|
var $id = $(this).parents(".modifybox").find(".projectId").val();
|
1100
|
1201
|
if($id) {
|
|
@ -1125,8 +1226,8 @@ $(function() {
|
1125
|
1226
|
if($data.success) {
|
1126
|
1227
|
$("#projectShow").empty("");
|
1127
|
1228
|
projectShow($data.data.projects);
|
1128
|
|
// yearAdd();
|
1129
|
|
// month();
|
|
1229
|
// yearAdd();
|
|
1230
|
// month();
|
1130
|
1231
|
}
|
1131
|
1232
|
});
|
1132
|
1233
|
} else {
|
|
@ -1136,71 +1237,71 @@ $(function() {
|
1136
|
1237
|
});
|
1137
|
1238
|
})
|
1138
|
1239
|
//////////////////项目经历增删改查相关结束///////////////
|
1139
|
|
|
|
1240
|
|
1140
|
1241
|
//////////////////荣誉奖项增删改查相关开始///////////////
|
1141
|
1242
|
var honorShow = function(data) {
|
1142
|
1243
|
$("#honorShow").html("");
|
1143
|
1244
|
hounerFil("#honorShow");
|
1144
|
1245
|
if(data.length > 0) {
|
1145
|
1246
|
for(var i = 0; i < data.length; i++) {
|
1146
|
|
var timeho="";
|
1147
|
|
if(data[i].year){
|
1148
|
|
timeho=data[i].year+'年';
|
1149
|
|
}else{
|
1150
|
|
data[i].year="";
|
|
1247
|
var timeho = "";
|
|
1248
|
if(data[i].year) {
|
|
1249
|
timeho = data[i].year + '年';
|
|
1250
|
} else {
|
|
1251
|
data[i].year = "";
|
1151
|
1252
|
}
|
1152
|
1253
|
if(!data[i].descp) {
|
1153
|
1254
|
data[i].descp = "";
|
1154
|
1255
|
}
|
1155
|
1256
|
var stringHtml = '<li>';
|
1156
|
|
stringHtml += '<div class="showBx"><div class="h4Font h4tit">' + data[i].name + '<small class="h6Font">' + timeho + '</small><em class="btnClick exitlist">编辑</em></div>';
|
1157
|
|
stringHtml += '<div class="h5Font">' + data[i].descp + '</div>';
|
1158
|
|
stringHtml += '</div>';
|
1159
|
|
stringHtml += '<div class="modifybox"><ul class="cmpFrmList">'
|
1160
|
|
stringHtml += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>奖项名称:</span><div class="col-w-10">'
|
1161
|
|
stringHtml += '<input type="text" class="frmcontype honorName" placeholder="请填写奖项名称" value="' + data[i].name + '" /><input type="hidden" class="honorId" value="' + data[i].id + '"></div></li>'
|
1162
|
|
stringHtml += '<li><span class="col-w-2 lableSpan">获奖时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
1163
|
|
stringHtml +='<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project honorYear" placeholder="请填写奖项时间" readonly flag="1" value="' + data[i].year + '" />'
|
1164
|
|
stringHtml +='<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
1165
|
|
stringHtml +='</form></div></li>'
|
1166
|
|
stringHtml += '<li><span class="col-w-2 lableSpan">获奖描述:</span><div class="col-w-10">'
|
1167
|
|
stringHtml += '<div class="msgContbox"><textarea class="frmcontype msgCont honorDescp" placeholder="请填写获奖描述">' + data[i].descp + '</textarea><span class="msgconNum"><em class="limitNum">' + data[i].descp.length + '</em>/200</span></div></div></li>'
|
1168
|
|
stringHtml +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
1169
|
|
stringHtml +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
1170
|
|
stringHtml +='<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
1171
|
|
stringHtml +='<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
1172
|
|
var $stringHtml=$(stringHtml)
|
|
1257
|
stringHtml += '<div class="showBx"><div class="h4Font h4tit">' + data[i].name + '<small class="h6Font">' + timeho + '</small><em class="btnClick exitlist">编辑</em></div>';
|
|
1258
|
stringHtml += '<div class="h5Font">' + data[i].descp + '</div>';
|
|
1259
|
stringHtml += '</div>';
|
|
1260
|
stringHtml += '<div class="modifybox"><ul class="cmpFrmList">'
|
|
1261
|
stringHtml += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>奖项名称:</span><div class="col-w-10">'
|
|
1262
|
stringHtml += '<input type="text" class="frmcontype honorName" placeholder="请填写奖项名称" value="' + data[i].name + '" /><input type="hidden" class="honorId" value="' + data[i].id + '"></div></li>'
|
|
1263
|
stringHtml += '<li><span class="col-w-2 lableSpan">获奖时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
|
1264
|
stringHtml += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype project honorYear" placeholder="请填写奖项时间" readonly flag="1" value="' + data[i].year + '" />'
|
|
1265
|
stringHtml += '<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
|
1266
|
stringHtml += '</form></div></li>'
|
|
1267
|
stringHtml += '<li><span class="col-w-2 lableSpan">获奖描述:</span><div class="col-w-10">'
|
|
1268
|
stringHtml += '<div class="msgContbox"><textarea class="frmcontype msgCont honorDescp" placeholder="请填写获奖描述">' + data[i].descp + '</textarea><span class="msgconNum"><em class="limitNum">' + data[i].descp.length + '</em>/200</span></div></div></li>'
|
|
1269
|
stringHtml += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
1270
|
stringHtml += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
1271
|
stringHtml += '<button type="button" class="frmcontype btnModel btnCancel cancelList">取消</button>'
|
|
1272
|
stringHtml += '<button type="button" class="frmcontype btnModel fontLink">删除本条</button></div></li>'
|
|
1273
|
var $stringHtml = $(stringHtml)
|
1173
|
1274
|
$("#honorShow").append($stringHtml);
|
1174
|
1275
|
yearAdd();
|
1175
|
|
limitObj($stringHtml.find(".honorDescp"),200)
|
|
1276
|
limitObj($stringHtml.find(".honorDescp"), 200)
|
1176
|
1277
|
}
|
1177
|
1278
|
}
|
1178
|
1279
|
}
|
1179
|
1280
|
var hounerFil = function(select) {
|
1180
|
|
var string ='<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
1181
|
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>奖项名称:</span><div class="col-w-10">'
|
1182
|
|
string += '<input type="text" class="frmcontype honorName" placeholder="请填写奖项名称" /><input type="hidden" class="honorId"></div></li>'
|
1183
|
|
string += '<li><span class="col-w-2 lableSpan">项目时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
1184
|
|
string +='<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype honorYear" flag="1" readonly placeholder="请选择获奖时间" />'
|
1185
|
|
string +='<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
1186
|
|
string +='</form></div></li>'
|
1187
|
|
string += '<li><span class="col-w-2 lableSpan">获奖描述:</span><div class="col-w-10">'
|
1188
|
|
string += '<div class="msgContbox"><textarea class="frmcontype msgCont honorDescp" placeholder="请填写获奖描述"></textarea><span class="msgconNum"><em class="limitNum">0</em>/200</span></div></div></li>'
|
1189
|
|
string +='<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
1190
|
|
string +='<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
1191
|
|
string +='<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
1192
|
|
string +='</ul></div><li>';
|
1193
|
|
var $ostr=$(string);
|
1194
|
|
$("" + select + "").prepend($ostr);
|
1195
|
|
limitObj($ostr.find(".honorDescp"),200)
|
1196
|
|
|
|
1281
|
var string = '<li class="listnone1" style="display:none;"><div class="modifybox" style="display:block;"><ul class="cmpFrmList">'
|
|
1282
|
string += '<li><span class="col-w-2 lableSpan"><span class="requiredcon">* </span>奖项名称:</span><div class="col-w-10">'
|
|
1283
|
string += '<input type="text" class="frmcontype honorName" placeholder="请填写奖项名称" /><input type="hidden" class="honorId"></div></li>'
|
|
1284
|
string += '<li><span class="col-w-2 lableSpan">项目时间:</span><div class="col-w-9"><form action="" class="col-w-12" name="formT">'
|
|
1285
|
string += '<div class="col-w-5" style="position:relative"><input type="text" class="date-btn frmcontype honorYear" flag="1" readonly placeholder="请选择获奖时间" />'
|
|
1286
|
string += '<div class="mr_calendar_ym clearfix"><ul class="full_year"></ul></div></div>'
|
|
1287
|
string += '</form></div></li>'
|
|
1288
|
string += '<li><span class="col-w-2 lableSpan">获奖描述:</span><div class="col-w-10">'
|
|
1289
|
string += '<div class="msgContbox"><textarea class="frmcontype msgCont honorDescp" placeholder="请填写获奖描述"></textarea><span class="msgconNum"><em class="limitNum">0</em>/200</span></div></div></li>'
|
|
1290
|
string += '<li class="saveBtn"><span class="col-w-2"> </span><div class="col-w-10">'
|
|
1291
|
string += '<button type="button" class="frmcontype btnModel saveGo">保存</button>'
|
|
1292
|
string += '<button type="button" class="frmcontype btnModel btnCancel cancelO">取消</button></div></li>'
|
|
1293
|
string += '</ul></div><li>';
|
|
1294
|
var $ostr = $(string);
|
|
1295
|
$("" + select + "").prepend($ostr);
|
|
1296
|
limitObj($ostr.find(".honorDescp"), 200)
|
|
1297
|
|
1197
|
1298
|
}
|
1198
|
|
var honorThis=""
|
|
1299
|
var honorThis = ""
|
1199
|
1300
|
$("#honorShow").on("click", ".fontLink", function() {
|
1200
|
1301
|
honorThis = $(this).parents(".modifybox").find(".honorId").val();
|
1201
|
|
$.MsgBox.Confirm("提示", "确认删除该荣誉奖项?",delHonor);
|
|
1302
|
$.MsgBox.Confirm("提示", "确认删除该荣誉奖项?", delHonor);
|
1202
|
1303
|
});
|
1203
|
|
var delHonor = function() {//荣誉及奖项 ,对添加的专利删除
|
|
1304
|
var delHonor = function() { //荣誉及奖项 ,对添加的专利删除
|
1204
|
1305
|
$.ajax({
|
1205
|
1306
|
"url": "/ajax/honor/" + honorThis,
|
1206
|
1307
|
"type": "DELETE",
|
|
@ -1218,18 +1319,26 @@ $(function() {
|
1218
|
1319
|
}
|
1219
|
1320
|
});
|
1220
|
1321
|
}
|
1221
|
|
|
|
1322
|
|
1222
|
1323
|
//荣誉及奖项保存
|
1223
|
1324
|
$("#honorShow").on("click", ".saveGo", function() {
|
1224
|
1325
|
var length = trim($(this).parents(".modifybox").find(".honorName").val());
|
1225
|
1326
|
var lengthDescp = trim($(this).parents(".modifybox").find(".honorDescp").val());
|
1226
|
|
|
1227
|
|
if(!length) { $.MsgBox.Alert("提示", "请填写奖项名称");return;}
|
1228
|
|
if(length.length>50){$.MsgBox.Alert("提示", "奖项名称不得超过50个字");return;}
|
1229
|
|
// if(lengthDescp.length>200){$.MsgBox.Alert("提示", "获奖描述不得超过200个字");return;}
|
|
1327
|
|
|
1328
|
if(!length) {
|
|
1329
|
$.MsgBox.Alert("提示", "请填写奖项名称");
|
|
1330
|
return;
|
|
1331
|
}
|
|
1332
|
if(length.length > 50) {
|
|
1333
|
$.MsgBox.Alert("提示", "奖项名称不得超过50个字");
|
|
1334
|
return;
|
|
1335
|
}
|
|
1336
|
// if(lengthDescp.length>200){$.MsgBox.Alert("提示", "获奖描述不得超过200个字");return;}
|
1230
|
1337
|
var $data = {};
|
1231
|
1338
|
var $id = $(this).parents(".modifybox").find(".honorId").val();
|
1232
|
|
if($id) { $data.id = $id;}
|
|
1339
|
if($id) {
|
|
1340
|
$data.id = $id;
|
|
1341
|
}
|
1233
|
1342
|
$data.professorId = userid;
|
1234
|
1343
|
$data.year = $(this).parents(".modifybox").find(".honorYear").val();
|
1235
|
1344
|
$data.name = $(this).parents(".modifybox").find(".honorName").val();
|
|
@ -1259,13 +1368,13 @@ $(function() {
|
1259
|
1368
|
|
1260
|
1369
|
//////////////////相关操作按钮///////////////
|
1261
|
1370
|
//用户基本信息编辑
|
1262
|
|
$(".headconBox").on("click",".proEdit",function() {
|
|
1371
|
$(".headconBox").on("click", ".proEdit", function() {
|
1263
|
1372
|
$(this).parents(".coninfocon").siblings(".modifybox").show();
|
1264
|
1373
|
$(this).parents(".coninfocon").hide();
|
1265
|
|
$(".head-left").css("top","100px");
|
|
1374
|
$(".head-left").css("top", "100px");
|
1266
|
1375
|
//点击取消的操作
|
1267
|
1376
|
$(".btnCancel").click(function() {
|
1268
|
|
$(".head-left").css("top","");
|
|
1377
|
$(".head-left").css("top", "");
|
1269
|
1378
|
$(this).parents(".modifybox").siblings(".coninfocon").show();
|
1270
|
1379
|
$(this).parents(".modifybox").hide();
|
1271
|
1380
|
getInfo(userid);
|
|
@ -1273,7 +1382,7 @@ $(function() {
|
1273
|
1382
|
});
|
1274
|
1383
|
});
|
1275
|
1384
|
//获取点击那个编辑
|
1276
|
|
$(".leftconBox").on("click",".edit",function() {
|
|
1385
|
$(".leftconBox").on("click", ".edit", function() {
|
1277
|
1386
|
$(this).parents(".coninfobox").find(".modifybox").show();
|
1278
|
1387
|
$(this).parents(".coninfobox").find(".coninfocon").hide();
|
1279
|
1388
|
//点击取消的操作
|
|
@ -1284,34 +1393,31 @@ $(function() {
|
1284
|
1393
|
|
1285
|
1394
|
});
|
1286
|
1395
|
});
|
1287
|
|
$(".addedit").on("click", function() {//点击添加按钮
|
|
1396
|
$(".addedit").on("click", function() { //点击添加按钮
|
1288
|
1397
|
$(this).parents(".coninfobox").find(".listnone1").toggle(100);
|
1289
|
1398
|
$(this).parents(".coninfobox").find(".showBx").show();
|
1290
|
1399
|
$(this).parents(".coninfobox").find(".showBx + .modifybox").hide();
|
1291
|
1400
|
$(this).parents(".coninfobox").find(".listnone1").find(".frmcontype").val("");
|
1292
|
1401
|
$(this).parents(".coninfobox").find(".listnone1").find(".mr_btn").val("0");
|
1293
|
1402
|
});
|
1294
|
|
$(".coninfobox").on("click", ".cancelO", function() {//添加模块的取消
|
|
1403
|
$(".coninfobox").on("click", ".cancelO", function() { //添加模块的取消
|
1295
|
1404
|
$(this).parents(".listnone1").toggle(100);
|
1296
|
1405
|
});
|
1297
|
|
$(".coninfobox").on("click", ".exitlist", function() {//编辑列表模块
|
|
1406
|
$(".coninfobox").on("click", ".exitlist", function() { //编辑列表模块
|
1298
|
1407
|
$(this).parents(".showBx").hide().siblings(".modifybox").show();
|
1299
|
1408
|
$(this).parents("li").siblings().find(".showBx").show().siblings(".modifybox").hide();
|
1300
|
1409
|
});
|
1301
|
|
$(".coninfobox").on("click", ".cancelList", function() {//编辑各个列表中的取消
|
|
1410
|
$(".coninfobox").on("click", ".cancelList", function() { //编辑各个列表中的取消
|
1302
|
1411
|
$(this).parents(".modifybox").hide();
|
1303
|
1412
|
$(this).parents(".modifybox").siblings(".showBx").show();
|
1304
|
1413
|
getInfo(userid);
|
1305
|
1414
|
});
|
1306
|
1415
|
//点击查看自己的主页
|
1307
|
|
$("#showMyself").click(function(){
|
1308
|
|
$(this).attr("href","userInforShow.html?professorId=" + userid);
|
|
1416
|
$("#showMyself").click(function() {
|
|
1417
|
$(this).attr("href", "userInforShow.html?professorId=" + userid);
|
1309
|
1418
|
})
|
1310
|
|
|
|
1419
|
|
1311
|
1420
|
function trim(str) { //删除左右两端的空格
|
1312
|
1421
|
return str.replace(/(^\s*)|(\s*$)/g, "");
|
1313
|
1422
|
}
|
1314
|
|
})
|
1315
|
|
|
1316
|
|
|
1317
|
|
|
|
1423
|
})
|