• 基本资料
  • 账号管理
<%= labelled_form_for :user, @user, :url => {:action => "account"}, :html => {:id => 'my_account_form', :method => :post} do |f| %>
<% if( @act.nil? || @act != 'password') %> <%= render_flash_messages %> <%= error_messages_for 'user',@user.user_extensions %> <% end %>
  • 登录名 : *
  • 邮箱 : *
  • 身份 : 
  • 姓氏 : *
  • 名字 : *
  • 组织名 : *
  • 性别 : 
  • 工作单位 : 
  • 地区 : 
  • 邮件通知 : 
  • 个人签名 : 
  • 个人简介 : 
  •   
  • <%= f.text_field :login,:no_label=>true, :required => true, :nh_required=>"1", :name => "login",:class=>"w210"%>
  • <%= f.text_field :mail,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210"%>
  • <% 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),:style=>"width:127px;" %> <% else %> <%= text_field_tag :no, nil, :placeholder => l(:label_account_identity_studentID),:style=>"60px" %> <% end %>
  • <%= f.text_field :lastname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
  • <%= f.text_field :firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
  • <%= text_field_tag :enterprise_name,@user.firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
  • <% if User.current.user_extensions.nil? %> readonly> <% elsif User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %> readonly> <% elsif User.current.user_extensions.school.nil? %> readonly> <% else %> <% end %>
  • <%= select_tag( 'user[mail_notification]', options_for_select( user_mail_notification_options(@user), @user.mail_notification) ) %>
  • <%= f.select :language, :Chinese => :zh, :English => :en %>
  • 确认
<% end %> <%= form_tag({:action => "password"},:id => 'my_password_form') do %>
<% if( !@act.nil? && @act == 'password') %> <%= render_flash_messages %> <%= error_messages_for 'user' %> <% end %>
  • 原始密码 : 
  • 新密码 : 
  • 确认密码 : 
  • 请输入6-12个字符
  • 确认
<% end %>

<%= l(:lable_school_list)%>

  
<%= stylesheet_link_tag 'nyan' %> <%= javascript_include_tag '/javascripts/jquery.leanModal.min.js' %> <% 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 %>