Browse Source

教育背景身份已取消

luyanan 8 years ago
parent
commit
1c373c254b

+ 8 - 1
src/main/webapp/account-set.html

19
<!-- <script type="text/javascript" src="js/account-set.js"></script> -->
19
<!-- <script type="text/javascript" src="js/account-set.js"></script> -->
20
<script type="text/javascript" >
20
<script type="text/javascript" >
21
	$(function(){
21
	$(function(){
22
		loginStatus();
22
			//loginStatus();
23
		var servPath = "http://121.42.53.174:81";
24
		var userid = $.cookie("userid");
25
	 	if(userid){
26
	 		$(".head-portrait").css("background","url("+servPath+"/images/head/"+userid+"_m.jpg)");
27
	 		$(".head-portrait").show();
28
			$(".unlogin").hide();
29
				}
23
		valUser();
30
		valUser();
24
		$("#hsearch").on("click",function (){
31
		$("#hsearch").on("click",function (){
25
	   		var searchContent = $("#hsearchContent").val();
32
	   		var searchContent = $("#hsearchContent").val();

+ 1 - 0
src/main/webapp/index.html

18
<script type="text/javascript">
18
<script type="text/javascript">
19
	$(function(){  
19
	$(function(){  
20
		loginStatus();
20
		loginStatus();
21

21
	   $("#search").on("click",function (){
22
	   $("#search").on("click",function (){
22
	   		var searchContent = $("#searchContent").val();
23
	   		var searchContent = $("#searchContent").val();
23
	   		location.href = "search.html?searchContent="+encodeURI(searchContent);
24
	   		location.href = "search.html?searchContent="+encodeURI(searchContent);

+ 9 - 9
src/main/webapp/information.html

366
			$data.school = $("#school").val();
366
			$data.school = $("#school").val();
367
			$data.college = $("#college").val();
367
			$data.college = $("#college").val();
368
			$data.major = $("#major").val();
368
			$data.major = $("#major").val();
369
			$data.degree = $("#degree").val();
369
			$data.degree = 0;
370
			$data.student = $("input[name='student']:checked").val();
370
			$data.student = $("input[name='student']:checked").val();
371
			$.ajax({
371
			$.ajax({
372
				"url" : "/ajax/edu",
372
				"url" : "/ajax/edu",
721
						<input type="text" class="input-txt edu-txt" id="school">
721
						<input type="text" class="input-txt edu-txt" id="school">
722
					</div>
722
					</div>
723
					<div class="infor edu btn-marL date-box">
723
					<div class="infor edu btn-marL date-box">
724
						<b class="star">&nbsp;</b>毕业年份
724
						<b class="star">&nbsp;</b> 毕业年份
725
                        <input type="text" class="form-control date-btn input-txt" id="year" value="08/05/2016" />
725
                        <input type="text" class="form-control date-btn input-txt" id="year" value="08/05/2016" />
726

726

727
						<!--<input type="text" class="date-btn input-txt" id="year" />-->
727
						<!--<input type="text" class="date-btn input-txt" id="year" />-->
735
						<input type="text" class="input-txt edu-txt" id="major">
735
						<input type="text" class="input-txt edu-txt" id="major">
736
					</div>
736
					</div>
737
					<div class="infor edu btn-marL edu-h">
737
					<div class="infor edu btn-marL edu-h">
738
						<div class="sf"><b class="star">*</b>身&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;份</div>
738
					<!--	<div class="sf"><b class="star">*</b>身&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;份</div>
739
						<div class="radiobox">
739
						<div class="radiobox">
740
							<input type="radio" name="student" id="a" value="0" class="radio edu-radio"><label for="a" class="radio edu-radio">学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;生</label>
740
							<input type="radio" name="student" id="a" value="0" class="radio edu-radio"><label for="a" class="radio edu-radio">学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;生</label>
741
							<input type="radio" name="student" id="b" value="1" class="radio edu-radio"><label for="b" class="radio edu-radio" >访问学者</label>
741
							<input type="radio" name="student" id="b" value="1" class="radio edu-radio"><label for="b" class="radio edu-radio" >访问学者</label>
742
						</div>
743
						<div class="edu-select">
744
							-----获得学位
745
							<div class="select edu-sel">
742
						</div>-->
743
						<div class="edu-select" style=" float:none;">
744
							获得学位
745
							<div class="select edu-sel" >
746
								<select id="degree">
746
								<select id="degree">
747
									<option value="">请选择您的学位</option>
747
									<option value="">请选择您的学位</option>
748
									<option value="学士">学士</option>
748
									<option value="学士">学士</option>
789
                        
789
                        
790
					</div>
790
					</div>
791
					<div class="infor edu btn-marL">
791
					<div class="infor edu btn-marL">
792
						<b class="star">*</b>头&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;衔
792
						<b class="star">*</b>头&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
793
						<input type="text" class="input-txt edu-txt" id="jobTitle" />
793
						<input type="text" class="input-txt edu-txt" id="jobTitle" />
794
					</div>
794
					</div>
795
					<input type="button" value="保存" class="infor-save btn btn-marL" id="timeJobSave">
795
					<input type="button" value="保存" class="infor-save btn btn-marL" id="timeJobSave">
823
                        <input type="text" class="form-control date-btn input-txt" id="projectStopMonth" value="08/05/2016" />
823
                        <input type="text" class="form-control date-btn input-txt" id="projectStopMonth" value="08/05/2016" />
824
					</div>
824
					</div>
825
					<div class="infor edu btn-marL">
825
					<div class="infor edu btn-marL">
826
						<b class="star">*</b>描&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;述
826
						<b class="star">*</b>描&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
827
						<!-- <textarea class="reedit" id="projectDescp"></textarea> -->
827
						<!-- <textarea class="reedit" id="projectDescp"></textarea> -->
828
						<input type="text" class="input-txt edu-txt" id="projectDescp">
828
						<input type="text" class="input-txt edu-txt" id="projectDescp">
829
					</div>
829
					</div>

+ 15 - 25
src/main/webapp/page/professor.html

100
							<input type="text" class="form-control" id="department" placeholder="部门">
100
							<input type="text" class="form-control" id="department" placeholder="部门">
101
						</div>
101
						</div>
102
					</div>
102
					</div>
103
					<div class="form-group">
104
						<label for="address" class="col-sm-2 control-label">住址</label>
105
						<div class="col-sm-10">
106
							<input type="text" class="form-control" id="address" placeholder="住址">
107
						</div>
108
					</div>
109
					<div class="col-sm-2"></div>
103
					<div class="col-sm-2"></div>
110
					<div class="col-sm-10">
104
					<div class="col-sm-10">
111
						<button id="saveProfessor" type="button" class="btn btn-default">保存</button>
105
						<button id="saveProfessor" type="button" class="btn btn-default">保存</button>
493
					</div>
487
					</div>
494
				</div>
488
				</div>
495
				<div class="modal-footer">
489
				<div class="modal-footer">
496
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
490
					
491
					<button  type="button" class="btn btn-default" id="closedd"data-dismiss="modal">关闭</button>
497
					<button id="raSubmit" type="button" class="btn btn-primary">提交更改</button>
492
					<button id="raSubmit" type="button" class="btn btn-primary">提交更改</button>
498
				</div>
493
				</div>
499
			</div>
494
			</div>
674
							$("#department").val($info.department);
669
							$("#department").val($info.department);
675
							$("#subject").val($info.subject);
670
							$("#subject").val($info.subject);
676
							$("#industry").val($info.industry);
671
							$("#industry").val($info.industry);
677
							$("#address").val($info.address);
678
							$("#descp").val($info.descp);
672
							$("#descp").val($info.descp);
679
							$("#headImage").attr("src","/images/head/"+professorId+"_l.jpg");
673
							$("#headImage").attr("src","/images/head/"+professorId+"_l.jpg");
680
							$("#orgImage").attr("src","/images/org/"+$info.orgId+".jpg");
674
							$("#orgImage").attr("src","/images/org/"+$info.orgId+".jpg");
727
									}
721
									}
728
								});
722
								});
729
							});
723
							});
730
							$("#saveAddress").on("click",function(){
731
								$.ajax({"url" : "../ajax/professor/address",
732
									"type" : "POST",
733
									"data" : {"id":professorId,"address":$("#address").val()},
734
									"contentType" : "application/x-www-form-urlencoded",
735
									"success" : function($data) {
736
										if ($data.success) {
737
											alert("save address ok");
738
										} else {
739
											alert($data.msg);
740
										}
741
									}
742
								});
743
							});
744
							$("#saveDescp").on("click",function(){
724
							$("#saveDescp").on("click",function(){
745
								$.ajax({"url" : "../ajax/professor/descp",
725
								$.ajax({"url" : "../ajax/professor/descp",
746
									"type" : "POST",
726
									"type" : "POST",
759
								$.get("../ajax/researchArea/"+professorId,function($data){
739
								$.get("../ajax/researchArea/"+professorId,function($data){
760
									if($data.success){
740
									if($data.success){
761
										if($data.data){
741
										if($data.data){
742
										$('#raLists').empty();
762
											var $ras = $data.data;
743
											var $ras = $data.data;
763
											for(var i = 0 ; i < $ras.length;++i){
744
											for(var i = 0 ; i < $ras.length;++i){
764
												fillRA($ras[i].caption,$ras[i].descp);
745
												fillRA($ras[i].caption,$ras[i].descp);
765
											}
746
											}
747
											
766
										}
748
										}
767
									}else{
749
									}else{
768
										alert($data.msg);
750
										alert($data.msg);
776
								$("#raDescp").val("");
758
								$("#raDescp").val("");
777
								return false;
759
								return false;
778
							});
760
							});
761
							
762
							
763
							
764
							
765
							
779
							$("#raSubmit").on("click",function(){
766
							$("#raSubmit").on("click",function(){
780
								var $data=[];
767
								var $data=[];
781
								$("#raLists > li").each(function(){
768
								$("#raLists > li").each(function(){
803
								});
790
								});
804
								
791
								
805
							});
792
							});
793
							setInterval(function(){
806
							$(".raClose").on("click",function(){
794
							$(".raClose").on("click",function(){
807
								alert(111);
795
								
808
								$this=$(this);
796
								$this=$(this);
809
								$this.parent().remove();
797
								$this.parent().remove();
810
								return false;
798
								return false;
811
							});
799
							})
800
							},1000);
801
							
802
							
812
							$("#jobLabel").on("click",function(){
803
							$("#jobLabel").on("click",function(){
813
								$("#jobModal").data("pid", "");
804
								$("#jobModal").data("pid", "");
814
								$("#job_startMonth").val("");
805
								$("#job_startMonth").val("");
1246
				$data.orgName = $("#orgName").val();
1237
				$data.orgName = $("#orgName").val();
1247
				$data.title = $("#title").val();
1238
				$data.title = $("#title").val();
1248
				$data.department = $("#department").val();
1239
				$data.department = $("#department").val();
1249
				$data.address = $("#address").val();
1250
				if (professorId) {
1240
				if (professorId) {
1251
					$data.id = professorId;
1241
					$data.id = professorId;
1252
				}
1242
				}

+ 13 - 6
src/main/webapp/search.html

17
<script type="text/javascript" src="js/common.js"></script>
17
<script type="text/javascript" src="js/common.js"></script>
18
<script type="text/javascript" src="js/jquery.cookie.js"></script>
18
<script type="text/javascript" src="js/jquery.cookie.js"></script>
19
<script src="js/jquery.page.js"></script>
19
<script src="js/jquery.page.js"></script>
20
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
20
<script type="text/javascript">
21
<script type="text/javascript">
21
var arr=[];
22
var arr=[];
22
var arr1=[];
23
var arr1=[];
31
	    });
32
	    });
32
						
33
						
33
	$(function(){
34
	$(function(){
34
		loginStatus();
35

35
		/*loginStatus();*/
36
		var servPath = "http://121.42.53.174:81";
37
		var userid = $.cookie("userid");
38
	 	if(userid){
39
	 		$(".head-portrait").css("background","url("+servPath+"/images/head/"+userid+"_m.jpg)");
40
	 		$(".head-portrait").show();
41
			$(".unlogin").hide();
42
		}
36
		$("#searchContent").val(GetQueryString("searchContent")); 
43
		$("#searchContent").val(GetQueryString("searchContent")); 
37
		$("#hsearchContent").val(GetQueryString("searchContent")); 
44
		$("#hsearchContent").val(GetQueryString("searchContent")); 
38
		var servPath = "http://121.42.53.174:81";
45
		var servPath = "http://121.42.53.174:81";
115
								}
122
								}
116
								
123
								
117
							} else {
124
							} else {
118
								alert($data.msg);
125
								$.MsgBox.Alert("消息",$data.msg);
119
							}
126
							}
120
						}
127
						}
121
					});
128
					});
130
    						break;
137
    						break;
131
    				}
138
    				}
132
    			}else{
139
    			}else{
133
    				alert(data.msg);
140
    				$.MsgBox.Alert("消息",data.msg);
134
    			}
141
    			}
135
    		})
142
    		})
136
 		}
143
 		}
143
    						break;
150
    						break;
144
    				}
151
    				}
145
    			}else{
152
    			}else{
146
    				alert(data.msg);
153
    				$.MsgBox.Alert("消息",data.msg);
147
    			}
154
    			}
148
    		})
155
    		})
149
 		}
156
 		}
190
				<!--<a href="index.html"><span class="icon icon1"></span>我的主页</a>-->
197
				<!--<a href="index.html"><span class="icon icon1"></span>我的主页</a>-->
191
				<a href="information.html"><span class="icon icon2"></span>修改资料</a>
198
				<a href="information.html"><span class="icon icon2"></span>修改资料</a>
192
				<a href="account-set.html"><span class="icon icon3"></span>账户设置</a>
199
				<a href="account-set.html"><span class="icon icon3"></span>账户设置</a>
193
				<a href="#" onclick="exit()"><span class="icon icon4" ></span>退出登录</a>
200
				<a href="#" onClick="exit()"><span class="icon icon4" ></span>退出登录</a>
194
			</div>
201
			</div>
195
		</div>
202
		</div>
196
	</div>
203
	</div>