<%= f.text_field :login, :required => true, :size => 25, :name => "login", :readonly => true, :style => 'border:1px solid #d3d3d3;'%>
<%= l(:label_max_number) %>
<% 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 => "请输入学号" %>
<% end %>
<%= f.text_field :lastname, :size => 25, :required => true %>
<%= l(:field_lastname_eg) %>
<%= f.text_field :firstname, :size => 25, :required => true %>
<%= l(:field_firstname_eg) %>
<%= l(:label_company_name)%> *
<%= text_field_tag :enterprise_name, @user.firstname %>
<% if @user.user_extensions.nil? %>
<%= l(:label_gender) %>
<%= select_tag 'gender', "".html_safe, :class => 'gender' %>
<% else %>
<% if @user.user_extensions.gender == 0 %>
<%= l(:label_gender) %>
<%= select_tag 'gender', "".html_safe, :class => 'gender' %>
<% else %>
<%= l(:label_gender) %>
<%= select_tag 'gender', "".html_safe, :class => 'gender' %>
<% end %>
<% end %>
<%= l(:field_occupation) %>
<% if User.current.user_extensions.nil? %>
<% else %>
<% if User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %>
<% elsif User.current.user_extensions.school.nil? %>
<% else %>
<% end %>
<% end %>
<%= l(:lable_school_list)%>
<% @ss = School.find_by_sql("select distinct province from schools") %>
<% @ss.each do |s| %>
-
<%= s.province %>
<% end %>
<%= f.text_field :mail, :required => true %>
<%= f.select :language, :Chinese => :zh, :English => :en %>
<% 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 %>
<% if Setting.openid? %>