<%= f.text_field :login, :required => true, :size => 25, :name => "login", :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 => l(:label_account_identity_studentID) %>
<% else %>
<%= text_field_tag :no, nil, :placeholder => l(:label_account_identity_studentID) %>
<% 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? %>
<%= select_tag 'gender', "".html_safe, :class => 'gender' %>
<% else %>
<% if @user.user_extensions.gender == 0 %>
<%= select_tag 'gender', "".html_safe, :class => 'gender' %>
<% else %>
<%= select_tag 'gender', "".html_safe, :class => 'gender' %>
<% end %>
<% end %>
<% if User.current.user_extensions.nil? %>
readonly>
<% else %>
<% if User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %>
readonly>
<% elsif User.current.user_extensions.school.nil? %>
readonly>
<% 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? %>