2016-01-20 18:37:47 +08:00
|
|
|
<div>
|
2015-09-02 14:15:26 +08:00
|
|
|
<div class="homepageRightBanner mb10">
|
2016-01-20 18:37:47 +08:00
|
|
|
<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>
|
2015-08-28 17:27:51 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
|
2016-01-20 18:37:47 +08:00
|
|
|
<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"/>
|
2016-07-01 13:54:00 +08:00
|
|
|
<a href="javascript:void(0);" class="blue_n_btn fr mt5" id="submit_feedback_user" >留言</a>
|
2016-01-20 18:37:47 +08:00
|
|
|
<a href="javascript:void(0);" class="greyBtn2 postReplySubmit mt5 mr15" id="private_submit_feedback_user">私信</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2015-07-29 17:41:10 +08:00
|
|
|
</div>
|
2016-01-20 18:37:47 +08:00
|
|
|
<%=render :partial => "users/user_jours_list", :locals => {:jours =>@jour, :page => 0, :type => @type, :count => @jour_count} %>
|
2015-07-29 17:41:10 +08:00
|
|
|
<div class="cl"></div>
|
2015-07-29 10:34:04 +08:00
|
|
|
</div><!--message_box end-->
|
2015-12-11 10:53:14 +08:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$("#submit_feedback_user").one('click',function() {
|
2016-01-20 18:37:47 +08:00
|
|
|
jour_submit();
|
2016-01-06 16:22:13 +08:00
|
|
|
});
|
|
|
|
$("#private_submit_feedback_user").one('click',function() {
|
2016-01-20 18:37:47 +08:00
|
|
|
private_jour_submit();
|
2015-12-11 10:53:14 +08:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|