Bladeren bron

教育背景身份已取消

luyanan 8 jaren geleden
bovenliggende
commit
1c373c254b

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

@ -19,7 +19,14 @@
19 19
<!-- <script type="text/javascript" src="js/account-set.js"></script> -->
20 20
<script type="text/javascript" >
21 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 30
		valUser();
24 31
		$("#hsearch").on("click",function (){
25 32
	   		var searchContent = $("#hsearchContent").val();

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

@ -18,6 +18,7 @@
18 18
<script type="text/javascript">
19 19
	$(function(){  
20 20
		loginStatus();
21

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

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

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

727 727
						<!--<input type="text" class="date-btn input-txt" id="year" />-->
@ -735,14 +735,14 @@
735 735
						<input type="text" class="input-txt edu-txt" id="major">
736 736
					</div>
737 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 739
						<div class="radiobox">
740 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 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 746
								<select id="degree">
747 747
									<option value="">请选择您的学位</option>
748 748
									<option value="学士">学士</option>
@ -789,7 +789,7 @@
789 789
                        
790 790
					</div>
791 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 793
						<input type="text" class="input-txt edu-txt" id="jobTitle" />
794 794
					</div>
795 795
					<input type="button" value="保存" class="infor-save btn btn-marL" id="timeJobSave">
@ -823,7 +823,7 @@
823 823
                        <input type="text" class="form-control date-btn input-txt" id="projectStopMonth" value="08/05/2016" />
824 824
					</div>
825 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 827
						<!-- <textarea class="reedit" id="projectDescp"></textarea> -->
828 828
						<input type="text" class="input-txt edu-txt" id="projectDescp">
829 829
					</div>

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

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

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

@ -17,6 +17,7 @@
17 17
<script type="text/javascript" src="js/common.js"></script>
18 18
<script type="text/javascript" src="js/jquery.cookie.js"></script>
19 19
<script src="js/jquery.page.js"></script>
20
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
20 21
<script type="text/javascript">
21 22
var arr=[];
22 23
var arr1=[];
@ -31,8 +32,14 @@ $.get("/ajax/org/qa",function($da) {
31 32
	    });
32 33
						
33 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 43
		$("#searchContent").val(GetQueryString("searchContent")); 
37 44
		$("#hsearchContent").val(GetQueryString("searchContent")); 
38 45
		var servPath = "http://121.42.53.174:81";
@ -115,7 +122,7 @@ $.get("/ajax/org/qa",function($da) {
115 122
								}
116 123
								
117 124
							} else {
118
								alert($data.msg);
125
								$.MsgBox.Alert("消息",$data.msg);
119 126
							}
120 127
						}
121 128
					});
@ -130,7 +137,7 @@ $.get("/ajax/org/qa",function($da) {
130 137
    						break;
131 138
    				}
132 139
    			}else{
133
    				alert(data.msg);
140
    				$.MsgBox.Alert("消息",data.msg);
134 141
    			}
135 142
    		})
136 143
 		}
@ -143,7 +150,7 @@ $.get("/ajax/org/qa",function($da) {
143 150
    						break;
144 151
    				}
145 152
    			}else{
146
    				alert(data.msg);
153
    				$.MsgBox.Alert("消息",data.msg);
147 154
    			}
148 155
    		})
149 156
 		}
@ -190,7 +197,7 @@ $.get("/ajax/org/qa",function($da) {
190 197
				<!--<a href="index.html"><span class="icon icon1"></span>我的主页</a>-->
191 198
				<a href="information.html"><span class="icon icon2"></span>修改资料</a>
192 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 201
			</div>
195 202
		</div>
196 203
	</div>