|  |  |  | @ -9,6 +9,47 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             function () { | 
			
		
	
		
			
				
					|  |  |  |  |                 $("#province").attr("href", "#WOpenWindow") | 
			
		
	
		
			
				
					|  |  |  |  |                 $("#province").leanModal({top: 100, closeButton: ".modal_close"}); | 
			
		
	
		
			
				
					|  |  |  |  |                 var $lastname = $('#user_lastname') | 
			
		
	
		
			
				
					|  |  |  |  |                 var $firstname = $('#user_firstname') | 
			
		
	
		
			
				
					|  |  |  |  |                 var $enterprise = $('#enterprise_name') | 
			
		
	
		
			
				
					|  |  |  |  |                 $lastname.blur(function () { | 
			
		
	
		
			
				
					|  |  |  |  |                     var pas1 = document.getElementById("user_lastname").value; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     if (pas1 == "") { | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#valid_lastname').html('<span class="red">' + "<%= l(:lastname_empty) %>"+ "</span>"); | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#lastname_limit').hide(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     else { | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#valid_lastname').html('<span class="red">' + "</span>"); | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#lastname_limit').show(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |                 $firstname.blur(function () { | 
			
		
	
		
			
				
					|  |  |  |  |                     var pas1 = document.getElementById("user_firstname").value; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     if (pas1 == "") { | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#valid_firstname').html('<span class="red">' + "<%= l(:firstname_empty) %>"+ "</span>"); | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#firstname_limit').hide(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     else { | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#valid_firstname').html('<span class="red">' + "</span>"); | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#firstname_limit').show(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |                 $enterprise.blur(function () { | 
			
		
	
		
			
				
					|  |  |  |  |                     var pas1 = document.getElementById("enterprise_name").value; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     if (pas1 == "") { | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#valid_companyname').html('<span class="red">' + "<%= l(:enterprise_empty) %>"+ "</span>"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                     else { | 
			
		
	
		
			
				
					|  |  |  |  |                         $('#valid_lastname').html('<span class="red">' + "</span>"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |     ); | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
	
		
			
				
					|  |  |  | @ -61,16 +102,19 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       <%= l(:label_information_plural) %> | 
			
		
	
		
			
				
					|  |  |  |  |     </legend> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <div> | 
			
		
	
		
			
				
					|  |  |  |  |     <!-- 昵称 --> | 
			
		
	
		
			
				
					|  |  |  |  |     <p style="width:630px;padding-left: 40px;"> | 
			
		
	
		
			
				
					|  |  |  |  |       <%= f.text_field :login, :required => true, :size => 25, :name => "login"%> | 
			
		
	
		
			
				
					|  |  |  |  |       <%= f.text_field :login, :required => true, :size => 25, :name => "login", :readonly => true %> | 
			
		
	
		
			
				
					|  |  |  |  |       <span class='font_lighter'><%= l(:label_max_number) %></span> | 
			
		
	
		
			
				
					|  |  |  |  |       <br/> | 
			
		
	
		
			
				
					|  |  |  |  |     </p> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <p style="width:400px;padding-left: 54px;"> | 
			
		
	
		
			
				
					|  |  |  |  |       <%= l(:label_identity) %><span style="color: #ff0000"> *</span> | 
			
		
	
		
			
				
					|  |  |  |  |       <select onchange="showtechnical_title(this.value, $('#userTechnical_title'));" name="identity" id="userIdentity" class="location"> | 
			
		
	
		
			
				
					|  |  |  |  |     <p style="width:400px;padding-left: 52px;"> | 
			
		
	
		
			
				
					|  |  |  |  |       <label style="margin-right: 1px;"> | 
			
		
	
		
			
				
					|  |  |  |  |         <%= l(:label_identity) %><span style="color: #bb0000;"> *</span></label> | 
			
		
	
		
			
				
					|  |  |  |  |       <select onchange="showtechnical_title(this.value, $('#userTechnical_title'));" name="identity" id="userIdentity" class="location" style="margin: 0px;"> | 
			
		
	
		
			
				
					|  |  |  |  |         <option value=""> | 
			
		
	
		
			
				
					|  |  |  |  |           <%= l(:label_account_identity_choose) %> | 
			
		
	
		
			
				
					|  |  |  |  |         </option> | 
			
		
	
	
		
			
				
					|  |  |  | @ -93,34 +137,38 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </span> | 
			
		
	
		
			
				
					|  |  |  |  |             <span id='no' style='display:none'> | 
			
		
	
		
			
				
					|  |  |  |  |               <!-- modified by fq --> | 
			
		
	
		
			
				
					|  |  |  |  |               <% unless User.current.user_extensions.student_id.nil? %> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |               <% if !User.current.user_extensions.nil? && !User.current.user_extensions.student_id.nil? %> | 
			
		
	
		
			
				
					|  |  |  |  |                 <%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %> | 
			
		
	
		
			
				
					|  |  |  |  |               <% else %> | 
			
		
	
		
			
				
					|  |  |  |  |                 <%= text_field_tag :no, nil, :placeholder => "请输入学号" %></span> | 
			
		
	
		
			
				
					|  |  |  |  |               <% end %> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |               <!-- end --> | 
			
		
	
		
			
				
					|  |  |  |  |               </span> | 
			
		
	
		
			
				
					|  |  |  |  |               </p> | 
			
		
	
		
			
				
					|  |  |  |  |     <div> | 
			
		
	
		
			
				
					|  |  |  |  |         <span id='name' style='display:none'> | 
			
		
	
		
			
				
					|  |  |  |  |             <p style="width:530px;padding-left: 54px;"> | 
			
		
	
		
			
				
					|  |  |  |  |             <p style="width:530px;padding-left: 53px;"> | 
			
		
	
		
			
				
					|  |  |  |  |               <%= f.text_field :lastname, :size => 25,  :required => true %> | 
			
		
	
		
			
				
					|  |  |  |  |               <span class='font_lighter'> | 
			
		
	
		
			
				
					|  |  |  |  |               <span class='font_lighter' id="lastname_limit"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <%= l(:field_lastname_eg) %> | 
			
		
	
		
			
				
					|  |  |  |  |               </span> | 
			
		
	
		
			
				
					|  |  |  |  |               <span id="valid_lastname"></span> | 
			
		
	
		
			
				
					|  |  |  |  |             </p> | 
			
		
	
		
			
				
					|  |  |  |  |             <p style="width:530px;padding-left: 54px;"> | 
			
		
	
		
			
				
					|  |  |  |  |             <p style="width:530px;padding-left: 53px;"> | 
			
		
	
		
			
				
					|  |  |  |  |               <%= f.text_field :firstname, :size => 25, :required => true %> | 
			
		
	
		
			
				
					|  |  |  |  |               <span class='font_lighter'> | 
			
		
	
		
			
				
					|  |  |  |  |               <span class='font_lighter' id="firstname_limit"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <%= l(:field_firstname_eg) %> | 
			
		
	
		
			
				
					|  |  |  |  |               </span> | 
			
		
	
		
			
				
					|  |  |  |  |               <span id="valid_firstname"></span> | 
			
		
	
		
			
				
					|  |  |  |  |             </p> | 
			
		
	
		
			
				
					|  |  |  |  |         </span> | 
			
		
	
		
			
				
					|  |  |  |  |          | 
			
		
	
		
			
				
					|  |  |  |  |         <span id='enterprise' style='display:none'> | 
			
		
	
		
			
				
					|  |  |  |  |         <p style="width:400px;padding-left: 40px;"> | 
			
		
	
		
			
				
					|  |  |  |  |           <%= l(:label_company_name)%><span style="color: red"> *</span> | 
			
		
	
		
			
				
					|  |  |  |  |         <p style="width:400px;padding-left: 39px;"> | 
			
		
	
		
			
				
					|  |  |  |  |           <%= l(:label_company_name)%><span style="color: #bb0000"> *</span> | 
			
		
	
		
			
				
					|  |  |  |  |           <%= text_field_tag :enterprise_name, @user.firstname %> | 
			
		
	
		
			
				
					|  |  |  |  |           <span id="valid_companyname"></span> | 
			
		
	
		
			
				
					|  |  |  |  |         </p> | 
			
		
	
		
			
				
					|  |  |  |  |         </span> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -152,11 +200,16 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <!-- added by Wen --> | 
			
		
	
		
			
				
					|  |  |  |  |       <p id="occupation_detail" style="padding-left: 26px; display: none"> | 
			
		
	
		
			
				
					|  |  |  |  |       <p id="occupation_detail" style="padding-left: 24px; display: none"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <%= l(:field_occupation) %> | 
			
		
	
		
			
				
					|  |  |  |  |             <span class="required"> </span> | 
			
		
	
		
			
				
					|  |  |  |  |         <% if User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% if User.current.user_extensions.nil? %> | 
			
		
	
		
			
				
					|  |  |  |  |             <input id="province" name="province" style="display: none" type="text" value="请单击选择省份及学校" readonly> | 
			
		
	
		
			
				
					|  |  |  |  |             <input id="occupation" name="occupation" style="display: none"  type="text" value="" /> | 
			
		
	
		
			
				
					|  |  |  |  |             <input id="occupation_name" type="text" style="display: none" readonly/> | 
			
		
	
		
			
				
					|  |  |  |  |         <% else %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% if User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <input id="province" name="province" style="display: none" type="text" value="请单击选择省份及学校" readonly> | 
			
		
	
		
			
				
					|  |  |  |  |                 <input id="occupation" name="occupation" style="display: none"  type="text" value="<%= @user.user_extensions.occupation %>" /> | 
			
		
	
	
		
			
				
					|  |  |  | @ -172,7 +225,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <input id="occupation" name="occupation" type="text"  style="display: none" value="<%= User.current.user_extensions.school.id %>"/> | 
			
		
	
		
			
				
					|  |  |  |  |             <input id="occupation_name" type="text"  style="display: none" value="<%= User.current.user_extensions.school.name %>" readonly="true" style="background-color: #E2E2E2;"/> | 
			
		
	
		
			
				
					|  |  |  |  |         <% end %> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <% end %> | 
			
		
	
		
			
				
					|  |  |  |  |       </p> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <div id="WOpenWindow"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -213,7 +266,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <!-- end --> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <p style="width:357px;padding-left: 26px;"> | 
			
		
	
		
			
				
					|  |  |  |  |       <p style="width:357px;padding-left: 27px;"> | 
			
		
	
		
			
				
					|  |  |  |  |         <%= f.text_field :mail, :required => true %> | 
			
		
	
		
			
				
					|  |  |  |  |       </p> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -222,14 +275,22 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       </p> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <% province = User.current.user_extensions.location %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% city = User.current.user_extensions.location_city %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% identity = User.current.user_extensions.identity %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% occupation1 = User.current.user_extensions.occupation %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% occupation = User.current.user_extensions.occupation %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% title = User.current.user_extensions.technical_title %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% language = User.current.language %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% if  !User.current.user_extensions.nil? %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% province = User.current.user_extensions.location %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% city = User.current.user_extensions.location_city %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% identity = User.current.user_extensions.identity %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% occupation1 = User.current.user_extensions.occupation %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% occupation = User.current.user_extensions.occupation %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% title = User.current.user_extensions.technical_title %> | 
			
		
	
		
			
				
					|  |  |  |  |             <% language = User.current.language %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% else %> | 
			
		
	
		
			
				
					|  |  |  |  |            <% province = "湖南省" %> | 
			
		
	
		
			
				
					|  |  |  |  |            <% city = "长沙"%> | 
			
		
	
		
			
				
					|  |  |  |  |            <% identity = ""%> | 
			
		
	
		
			
				
					|  |  |  |  |            <% occupation1 = ""%> | 
			
		
	
		
			
				
					|  |  |  |  |            <% title = "" %> | 
			
		
	
		
			
				
					|  |  |  |  |            <% language = ""%> | 
			
		
	
		
			
				
					|  |  |  |  |          <% end %> | 
			
		
	
		
			
				
					|  |  |  |  |       <script type="text/javascript" language="javascript"> | 
			
		
	
		
			
				
					|  |  |  |  |           $().ready(function () { | 
			
		
	
		
			
				
					|  |  |  |  |               var province = "<%= "#{province}" %>" | 
			
		
	
	
		
			
				
					|  |  |  | @ -245,7 +306,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |  |       </script> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <p style="width:400px;padding-left: 58px;"><%= l(:label_location) %> | 
			
		
	
		
			
				
					|  |  |  |  |       <p style="width:400px;padding-left: 57px;"><label style="margin-right: 5px;"><%= l(:label_location) %></label> | 
			
		
	
		
			
				
					|  |  |  |  |         <select onchange="showcity(this.value, document.getElementById('userCity'));" name="province" id="userProvince" class="location"> | 
			
		
	
		
			
				
					|  |  |  |  |           <option value="">--请选择省份--</option> | 
			
		
	
		
			
				
					|  |  |  |  |           <option value="北京">北京</option> | 
			
		
	
	
		
			
				
					|  |  |  | @ -648,7 +709,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 $('#name').show() | 
			
		
	
		
			
				
					|  |  |  |  |                 $('#enterprise').hide() | 
			
		
	
		
			
				
					|  |  |  |  |                 $('#gender').show() | 
			
		
	
		
			
				
					|  |  |  |  |                 $('#occupation_detail').show() | 
			
		
	
		
			
				
					|  |  |  |  |                 $('#occupation_detail').hide() | 
			
		
	
		
			
				
					|  |  |  |  |                 var technical_titleOptions = new Array( | 
			
		
	
		
			
				
					|  |  |  |  |                     "<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |