<div>
  <div class="homepageRightBanner mb10">
    <div class="NewsBannerName pr"><span id="mesLabel">留言</span></div>
    <ul class="resourcesSelect">
      <li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
        <ul class="mesType">
          <li><%= link_to "全部", {:controller => "users", :action => "user_newfeedback", :type => nil}, :class =>"resourcesTypeAll resourcesGrey"%></li>
          <li><%= link_to "留言", {:controller => "users", :action => "user_newfeedback", :type => "public"}, :class => "mesIcon resourcesGrey"%></li>
          <li><%= link_to "私信", {:controller => "users", :action => "user_newfeedback", :type => "private"}, :class => "personalIcon resourcesGrey"%></li>
        </ul>
      </li>
    </ul>
  </div>
  <div class="cl"></div>

  <div id="messageContent">
    <div class="resources"><%= link_to image_tag(url_to_avatar(User.current),:class=>"fl mr10", :width => "50", :height => "50"),  :alt => "用户头像" %>
      <div class="fl" style="width:658px;">
        <%= form_for('new_form',:url =>  leave_user_message_path(@user.id), :html =>{:id => "user_feedback_new"}, :method => "post") do |f|%>
            <%=render :partial => "jour_form", :locals => {:f => f} %>
            <input id="private_flag" name="private" type="hidden" value="0"/>
            <a href="javascript:void(0);" class="blue_n_btn fr mt5" id="submit_feedback_user" >留言</a>
            <a href="javascript:void(0);" class="greyBtn2 postReplySubmit mt5 mr15" id="private_submit_feedback_user">私信</a>
        <% end %>
      </div>
    </div>
    <%=render :partial => "users/user_jours_list", :locals => {:jours =>@jour, :page => 0, :type => @type, :count => @jour_count} %>
    <div class="cl"></div>
  </div><!--message_box end-->
</div>
<script type="text/javascript">
    $(function(){
        $("#submit_feedback_user").one('click',function() {
            jour_submit();
        });
        $("#private_submit_feedback_user").one('click',function() {
            private_jour_submit();
        });
    });
</script>