<% if @force %> <% message = AppliedMessage.where(:status => 3, :user_id => User.current.id, :viewed => 0).first %> <% unless message.nil? %>
  消息:  您添加新的单位“<%= message.name %>”的申请,经确认为无效的单位信息,已被删除,请重新编辑您的单位资料。谢谢!
<% message.update_attribute(:viewed, true)%>
<% end %>
  提示:  您尚未完善您的基本资料,完善后可使用更多功能
<% end %>
<%= 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,:style => "color:grey", :nh_required => "1",:disabled => 'disabled', :name => "login",:class => "w210"%>
  • <% if @force %>
  • <%= f.text_field :mail,:no_label=>true, :required => true,:nh_required => "1",:class=>"w210",:disabled=>'disabled'%>
  • <% else %>
  • <%= f.text_field :mail,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210"%>
  • <% end %>
  • <% 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 %>
  • <%= text_field_tag :lastname, @user.lastname+@user.firstname, :no_label => true, :required => true, :nh_required => "1",:class => "w210" %>姓名不能为空
  • <% if User.current.user_extensions && User.current.user_extensions.gender && User.current.user_extensions.gender == 1 %> <% else %> <% end %>
  • <% if User.current.user_extensions.nil? %>

    <% elsif User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %> <% if User.current.user_extensions.school_id.nil? %> <% else %> <% end %>

    <% elsif User.current.user_extensions.school.nil? %>

    <% 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 %>
  • 原始密码 : 
  • 新密码 : 
  • 确认密码 : 
  • 请输入8-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 %> <% gender = User.current.user_extensions.gender %> <% language = User.current.language %> <% else %> <% province = "湖南省" %> <% city = "长沙"%> <% identity = ""%> <% occupation1 = ""%> <% title = "" %> <% language = ""%> <% end %>