Conflicts: app/views/layouts/new_base_user.html.erb config/locales/zh.yml db/schema.rbchenlw_dev
@ -0,0 +1 @@
|
|||||||
|
$("#blog-list").replaceWith('<%= escape_javascript( render :partial => 'blogs/article', :locals => {:topics => @topics} ) %>');
|
@ -1,5 +1,5 @@
|
|||||||
<% if @course %>
|
<% if @course %>
|
||||||
$("#show_more_course_topic").replaceWith("<%= escape_javascript( render :partial => 'boards/course_show_detail',:locals => {:topics => @topics, :page => @page} )%>");
|
$("#course-boardlist").replaceWith('<%= escape_javascript( render :partial => 'users/course_boardlist', :locals => {:topics => @topics, :is_course => 1, :is_board=>1}) %>');
|
||||||
<% else %>
|
<% else %>
|
||||||
$("#show_more_project_topic").replaceWith("<%= escape_javascript( render :partial => 'boards/project_show_detail',:locals => {:topics => @topics, :page => @page} )%>");
|
$("#project-boardlist").replaceWith('<%= escape_javascript( render :partial => 'users/project_boardlist', :locals => {:topics => @topics, :is_course => 1, :is_board=>1}) %>');
|
||||||
<% end %>
|
<% end %>
|
@ -0,0 +1,117 @@
|
|||||||
|
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<h2 class="h2-title">合作伙伴<a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
|
||||||
|
<div class="sn-index-partnerbox " >
|
||||||
|
<ul id="scrollPic" >
|
||||||
|
<li>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-dhyq.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-qhdx.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-jzdz.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-zgdz.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="partner-btnbox">
|
||||||
|
<div class="partner-prev partner-btn fl " id="LeftArr"><</div>
|
||||||
|
<div class="partner-next partner-btn fl" id="RightArr">></div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<p>暂无内容!</p>
|
||||||
|
<% when 'project' %>
|
||||||
|
<p>暂无内容!</p>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %> <%# 讨论类型 %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% unless org_acts.blank? %>
|
||||||
|
<% org_acts.each do |activity| %>
|
||||||
|
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<h2 class="h2-title">合作伙伴<a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
|
||||||
|
<div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "369", :height => "169"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% elsif activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<% iamge_path = get_image_path_from_content(message.content) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "369", :height => "169"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% iamge_path = get_image_path_from_content(message.content) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "370", :height => "220"), board_message_path(message.board,activity), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "370", :height => "220"), board_message_path(message.board,activity), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), news_path(news), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "369", :height => "169"), news_path(news), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<h2 class="h2-title">合作伙伴<a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
|
||||||
|
<div class="sn-index-partnerbox " >
|
||||||
|
<ul id="scrollPic" >
|
||||||
|
<li>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-dhyq.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-qhdx.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-jzdz.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-zgdz.jpg" width="363" height="43" alt=""/></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="partner-btnbox">
|
||||||
|
<div class="partner-prev partner-btn fl " id="LeftArr"><</div>
|
||||||
|
<div class="partner-next partner-btn fl" id="RightArr">></div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% elsif field.field_type == "Resource" %>
|
||||||
|
<% org_attachs = get_attach_org2(field) %>
|
||||||
|
<div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<% if !field.subfield_subdomain_dir.nil? %>
|
||||||
|
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), org_subfield_files_path(field), :class => "more-btn-center mt30", :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
@ -0,0 +1,256 @@
|
|||||||
|
<h2 class="h2-title"><%= field.name %><a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<% if @course_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM1_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @course_acts.first(1).each do |act| %>
|
||||||
|
<% if act.org_act_type == "HomeworkCommon" %>
|
||||||
|
<% activity = HomeworkCommon.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date activity.updated_at %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= activity.description.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date activity.updated_on %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= activity.content.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date activity.created_on %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= activity.description.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Poll" %>
|
||||||
|
<% activity = Poll.find(act.org_act_id) %>
|
||||||
|
<% has_commit = has_commit_poll?(activity.id ,User.current)%>
|
||||||
|
<% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.polls_description) %>
|
||||||
|
<% if ( activity.polls_status==2) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if has_commit %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date activity.published_at %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= activity.polls_description.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% when 'project' %>
|
||||||
|
<% if @project_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM1_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @project_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "Issue" %>
|
||||||
|
<% activity = Issue.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.subject.to_s, issue_url_in_org(activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date activity.updated_on %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= activity.description.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date activity.updated_on %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= activity.content.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.description.to_s.html_safe, news_url_in_org(activity.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey">2016-04-08</span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= activity.description.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% if org_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM1_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% org_acts.first(4).each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date document.created_at %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= document.content.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<% content = message.content%>
|
||||||
|
<% else %>
|
||||||
|
<% content = message.parent.content%>
|
||||||
|
<% end %>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date message.created_on %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= content.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_path(message.board,message), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_path(message.board,activity), :target => '_blank', :class => "h3-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date message.created_on %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= content.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "380", :height => "165"), news_path(news), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "380", :height => "165"), news_path(news), :target => "_blank", :class =>"sn-news-bigimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to news.title.to_s, news_path(news), :target => '_blank', :class => "h3-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey"><%= format_date news.created_on %></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p><%= news.description.to_s.html_safe %></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
<div class="sn-news-bigbox fl">
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="sn-news-bigimg"><img src="/images/news/img-news-big.jpg" width="380" height="165" alt=""/></a>
|
||||||
|
<h3><a href="javascript:void(0);" target="_blank" class="h3-title"></a></h3>
|
||||||
|
<span class="txt-grey"></span>
|
||||||
|
<div class="sn-news-txt">
|
||||||
|
<p></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,233 @@
|
|||||||
|
<div class="sn-news-smallbox fl" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<% if @course_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM2_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @course_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "HomeworkCommon" %>
|
||||||
|
<% activity = HomeworkCommon.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/right_top.jpg", :width => "85", :height => "85"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date activity.updated_at %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date activity.updated_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date activity.created_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Poll" %>
|
||||||
|
<% activity = Poll.find(act.org_act_id) %>
|
||||||
|
<% has_commit = has_commit_poll?(activity.id ,User.current)%>
|
||||||
|
<% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.polls_description) %>
|
||||||
|
<% if ( activity.polls_status==2) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if has_commit %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date activity.published_at %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% when 'project' %>
|
||||||
|
<% if @project_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM2_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @project_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "Issue" %>
|
||||||
|
<% activity = Issue.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.subject.to_s, issue_url_in_org(activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date activity.updated_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date activity.updated_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.description.to_s.html_safe, news_url_in_org(activity.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date activity.created_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% if org_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM2_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% org_acts.first(4).each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date document.created_at %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<% content = message.content%>
|
||||||
|
<% else %>
|
||||||
|
<% content = message.parent.content%>
|
||||||
|
<% end %>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date message.created_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_path(message.board,message), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_path(message.board,activity), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date message.created_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), news_path(news), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), news_path(news), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to news.title.to_s, news_path(news), :target => '_blank', :class => "h4-title fl mt10" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey fl "><%= format_date news.created_on %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
@ -0,0 +1,26 @@
|
|||||||
|
<div class="sn-news-smallbox fl">
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<a href="javascript:void()" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small01.jpg" width="85" height="85" alt=""/></a>
|
||||||
|
<h4><a href="javascript:void()" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
|
||||||
|
<span class="txt-grey fl">2016-04-08</span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<a href="javascript:void()" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small02.jpg" width="85" height="85" alt=""/></a>
|
||||||
|
<h4><a href="javascript:void()" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
|
||||||
|
<span class="txt-grey fl">2016-04-08</span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="sn-news-small mb18">
|
||||||
|
<a href="javascript:void()" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small03.jpg" width="85" height="85" alt=""/></a>
|
||||||
|
<h4><a href="javascript:void()" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
|
||||||
|
<span class="txt-grey fl">2016-04-08</span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="sn-news-small ">
|
||||||
|
<a href="javascript:void()" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small04.jpg" width="85" height="85" alt=""/></a>
|
||||||
|
<h4><a href="javascript:void()" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
|
||||||
|
<span class="txt-grey fl">2016-04-08</span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,258 @@
|
|||||||
|
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<h2 class="h2-title"><%= field.name %><a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
|
||||||
|
<div class="sn-index-resourcescon">
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<% if @course_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftMD_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @course_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "HomeworkCommon" %>
|
||||||
|
<% activity = HomeworkCommon.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to activity.description.to_s.html_safe, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to activity.content.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to activity.description.to_s.html_safe, news_url_in_org(activity.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Poll" %>
|
||||||
|
<% activity = Poll.find(act.org_act_id) %>
|
||||||
|
<% has_commit = has_commit_poll?(activity.id ,User.current)%>
|
||||||
|
<% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.polls_description) %>
|
||||||
|
<% if ( activity.polls_status==2) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if has_commit %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to activity.polls_description.to_s.html_safe, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% when 'project' %>
|
||||||
|
<% if @project_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftMD_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @project_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "Issue" %>
|
||||||
|
<% activity = Issue.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.subject.to_s, issue_url_in_org(activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to activity.description.to_s.html_safe, issue_url_in_org(activity.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to activity.content.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.description.to_s.html_safe, news_url_in_org(activity.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to activity.content.to_s.html_safe, news_url_in_org(activity.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% if org_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftMD_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% org_acts.first(4).each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to document.content.to_s.html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<% content = message.content%>
|
||||||
|
<% else %>
|
||||||
|
<% content = message.parent.content%>
|
||||||
|
<% end %>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to content.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_path(message.board,message), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_path(message.board,activity), :target => '_blank', :class => "resources-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to content.to_s.html_safe, board_message_path(message.board,activity), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "185", :height => "125"), news_path(news), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "185", :height => "125"), news_path(news), :target => "_blank", :class =>"sn-resourcesimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to news.title.to_s, news_path(news), :target => '_blank', :class => "resources-title" %>
|
||||||
|
</h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<%= link_to news.description.to_s.html_safe, news_path(news), :target => '_blank', :class => "resources-tag" %>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,11 @@
|
|||||||
|
<div class="sn-index-resourcesbox">
|
||||||
|
<a href="javascript:void()" target="_blank" class="sn-resourcesimg"><img src="/images/default_blank/files-default.jpg" width="185" height="125" alt=""/></a>
|
||||||
|
<h3><a href="javascript:void()" target="_blank" class="resources-title">仪器资源</a></h3>
|
||||||
|
<div class="resources-tagbox">
|
||||||
|
<a href="javascript:void()" target="_blank" class="resources-tag">测试服务</a>
|
||||||
|
<a href="javascript:void()" target="_blank" class="resources-tag">开放日</a>
|
||||||
|
<a href="javascript:void()" target="_blank" class="resources-tag">仪器共享</a>
|
||||||
|
<a href="javascript:void()" target="_blank" class="resources-tag">定制测试</a>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void()" target="_blank" class="more-btn">更多</a>
|
||||||
|
</div>
|
@ -0,0 +1,276 @@
|
|||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<% if @course_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftT_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-banner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<!-- 代码 开始 -->
|
||||||
|
<div id="fsD1" class="focus">
|
||||||
|
<div id="D1pic1" class="fPic">
|
||||||
|
<% @course_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "HomeworkCommon" %>
|
||||||
|
<% activity = HomeworkCommon.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), student_work_index_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), student_work_index_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow"><%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank' %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow">
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank' %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank' %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), news_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), news_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow">
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank' %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Poll" %>
|
||||||
|
<% activity = Poll.find(act.org_act_id) %>
|
||||||
|
<% has_commit = has_commit_poll?(activity.id ,User.current)%>
|
||||||
|
<% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.polls_description) %>
|
||||||
|
<% if ( activity.polls_status==2) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow">
|
||||||
|
<% if has_commit %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank' %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s, :target => '_blank' %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="fbg">
|
||||||
|
<div class="D1fBt" id="D1fBt">
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class="current"></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<span class="prev"></span>
|
||||||
|
<span class="next"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% when 'project' %>
|
||||||
|
<% if @project_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftT_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-banner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<!-- 代码 开始 -->
|
||||||
|
<div id="fsD1" class="focus">
|
||||||
|
<div id="D1pic1" class="fPic">
|
||||||
|
<% @project_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "Issue" %>
|
||||||
|
<% activity = Issue.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), issue_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), issue_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow"><%= link_to activity.subject.to_s, issue_url_in_org(activity.id), :target => '_blank' %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow">
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank' %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank' %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), news_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), news_url_in_org(activity.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow">
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank' %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="fbg">
|
||||||
|
<div class="D1fBt" id="D1fBt">
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class="current"></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<span class="prev"></span>
|
||||||
|
<span class="next"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% if org_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftT_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-banner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<!-- 代码 开始 -->
|
||||||
|
<div id="fsD1" class="focus">
|
||||||
|
<div id="D1pic1" class="fPic">
|
||||||
|
<% org_acts.first(4).each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow"><%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank' %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<% content = message.content%>
|
||||||
|
<% else %>
|
||||||
|
<% content = message.parent.content%>
|
||||||
|
<% end %>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow">
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank' %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank'%>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<% content = message.content%>
|
||||||
|
<% else %>
|
||||||
|
<% content = message.parent.content%>
|
||||||
|
<% end %>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), board_message_path(message.board,activity), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), board_message_path(message.board,activity), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow">
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_path(message.board,message), :class=> "postGrey" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_path(message.board,activity), :class=> "postGrey" %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<div class="fcon" style="display: none;">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/banner-default.jpg", :width => "820", :height => "435"), news_path(news), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "820", :height => "435"), news_path(news), :target => "_blank", :style =>"opacity: 1; " %>
|
||||||
|
<% end %>
|
||||||
|
<span class="shadow"><%= link_to news.title.to_s, news_path(news), :target => '_blank' %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="fbg">
|
||||||
|
<div class="D1fBt" id="D1fBt">
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class="current"></a>
|
||||||
|
<a href="javascript:void(0)" hidefocus="true" target="_self" class=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<span class="prev"></span>
|
||||||
|
<span class="next"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
Qfast.add('widgets', { path: "/javascripts/terminator2.2.min.js", type: "js", requires: ['fx'] });
|
||||||
|
Qfast(false, 'widgets', function () {
|
||||||
|
K.tabs({
|
||||||
|
id: 'fsD1', //焦点图包裹id
|
||||||
|
conId: "D1pic1", //** 大图域包裹id
|
||||||
|
tabId:"D1fBt",
|
||||||
|
tabTn:"a",
|
||||||
|
conCn: '.fcon', //** 大图域配置class
|
||||||
|
auto: 1, //自动播放 1或0
|
||||||
|
effect: 'fade', //效果配置
|
||||||
|
eType: 'click', //** 鼠标事件
|
||||||
|
pageBt:true, //是否有按钮切换页码
|
||||||
|
bns: ['.prev', '.next'],//** 前后按钮配置class
|
||||||
|
interval: 3000 //** 停顿时间
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
@ -0,0 +1,10 @@
|
|||||||
|
<div class="sn-index-banner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<!-- 代码 开始 -->
|
||||||
|
<div id="fsD1" class="focus">
|
||||||
|
<div class="fPic">
|
||||||
|
<div class="fcon-default">
|
||||||
|
<a target="_blank" href="javascript:void(0);"><img src="/images/default_blank/banner-default.jpg" alt="" ></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,73 @@
|
|||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<p>暂无内容!</p>
|
||||||
|
<% when 'project' %>
|
||||||
|
<p>暂无内容!</p>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %> <%# 讨论类型 %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% unless org_acts.blank? %>
|
||||||
|
<% activity = org_acts.first %>
|
||||||
|
<div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "369", :height => "169"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% elsif activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<% iamge_path = get_image_path_from_content(message.content) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "369", :height => "169"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% iamge_path = get_image_path_from_content(message.content) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "370", :height => "220"), board_message_path(message.board,activity), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "370", :height => "220"), board_message_path(message.board,activity), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), news_path(news), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "369", :height => "169"), news_path(news), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<a href="javascript:void(0);" target="_blank" ><img src="/images/default_blank/ad-default.jpg" width="369" height="169" alt=""/></a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% elsif field.field_type == "Resource" %>
|
||||||
|
<% org_attachs = get_attach_org2(field) %>
|
||||||
|
<div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<% if !field.subfield_subdomain_dir.nil? %>
|
||||||
|
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "369", :height => "169"), org_subfield_files_path(field), :class => "more-btn-center mt30", :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
@ -0,0 +1,98 @@
|
|||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<p>暂无内容!</p>
|
||||||
|
<% when 'project' %>
|
||||||
|
<p>暂无内容!</p>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %> <%# 讨论类型 %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% unless org_acts.blank? %>
|
||||||
|
<% activity = org_acts.first %>
|
||||||
|
<div class="sn-index-wxbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<h2 class="h2-title "><%= field.name %></h2>
|
||||||
|
<div class="sn-index-wx">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% end %>
|
||||||
|
<p class="fl sn-index-txt sn-w229"><%=link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id) %></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<% iamge_path = get_image_path_from_content(message.content) %>
|
||||||
|
<h2 class="h2-title "><%= field.name %></h2>
|
||||||
|
<div class="sn-index-wx">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% end %>
|
||||||
|
<p class="fl sn-index-txt"><%=link_to message.content.to_s.html_safe, board_message_url_in_org(message.board.id, message.id), :target => "_blank" %></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<% iamge_path = get_image_path_from_content(message.content) %>
|
||||||
|
<h2 class="h2-title "><%= field.name %></h2>
|
||||||
|
<div class="sn-index-wx">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), board_message_path(message.board, activity), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), board_message_path(message.board, activity), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% end %>
|
||||||
|
<p class="fl sn-index-txt"><%=link_to message.content.to_s.html_safe, board_message_path(message.board, activity), :target => "_blank" %></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<h2 class="h2-title "><%= field.name %></h2>
|
||||||
|
<div class="sn-index-wx">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), news_path(news), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), news_path(news), :target => "_blank", :class => "fl sn-index-wximg" %>
|
||||||
|
<% end %>
|
||||||
|
<p class="fl sn-index-txt"><%=link_to news.description.to_s.html_safe, news_path(news), :target => "_blank" %></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-wxbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<h2 class="h2-title "><%= field.name %></h2>
|
||||||
|
<div class="sn-index-wx">
|
||||||
|
<img class="fl sn-index-wximg" src="/images/wx.gif" width="104" height="104" alt=""/>
|
||||||
|
<p class="fl sn-index-txt">暂无内容!</p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% elsif field.field_type == "Resource" %>
|
||||||
|
<% org_attachs = get_attach_org2(field) %>
|
||||||
|
<div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<% if !field.subfield_subdomain_dir.nil? %>
|
||||||
|
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), org_subfield_files_path(field), :class => "more-btn-center mt30", :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
@ -0,0 +1,223 @@
|
|||||||
|
<div class="sn-index-activebox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<h2 class="h2-title mb18"><%= field.name %><a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<% if @course_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_rightT_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @course_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "HomeworkCommon" %>
|
||||||
|
<% activity = HomeworkCommon.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/right_top.jpg", :width => "330", :height => "210"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date activity.updated_at %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date activity.updated_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date activity.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Poll" %>
|
||||||
|
<% activity = Poll.find(act.org_act_id) %>
|
||||||
|
<% has_commit = has_commit_poll?(activity.id ,User.current)%>
|
||||||
|
<% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.polls_description) %>
|
||||||
|
<% if ( activity.polls_status==2) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if has_commit %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "active-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "active-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date activity.published_at %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% when 'project' %>
|
||||||
|
<% if @project_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftMD_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% @project_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "Issue" %>
|
||||||
|
<% activity = Issue.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.subject.to_s, issue_url_in_org(activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date activity.updated_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date activity.updated_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to activity.description.to_s.html_safe, news_url_in_org(activity.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date activity.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% if org_acts.blank? %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftMD_default', :locals => {:field => field} %>
|
||||||
|
<% else %>
|
||||||
|
<% org_acts.first(4).each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% flag = 2 %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date document.created_at %></span>
|
||||||
|
</div>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.parent_id.nil? %>
|
||||||
|
<% content = message.content%>
|
||||||
|
<% else %>
|
||||||
|
<% content = message.parent.content%>
|
||||||
|
<% end %>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date message.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to message.subject.to_s.html_safe, board_message_path(message.board,message), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to message.parent.subject.to_s.html_safe, board_message_path(message.board,activity), :target => '_blank', :class => "active-title" %>
|
||||||
|
<% end %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date message.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "330", :height => "210"), news_path(news), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "330", :height => "210"), news_path(news), :target => "_blank", :class =>"sn-activeimg" %>
|
||||||
|
<% end %>
|
||||||
|
<h3>
|
||||||
|
<%= link_to news.title.to_s, news_path(news), :target => '_blank', :class => "active-title" %>
|
||||||
|
</h3>
|
||||||
|
<span class="txt-grey "><%= format_date news.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
@ -0,0 +1,7 @@
|
|||||||
|
<div class="sn-index-active">
|
||||||
|
<div class="sn-index-active">
|
||||||
|
<a href="javascript:void()" target="_blank" class="sn-activeimg"><img src="images/active/img-active01.jpg" width="330" height="210" alt=""/></a>
|
||||||
|
<h3><a href="javascript:void()" target="_blank" class="active-title"></a></h3>
|
||||||
|
<span class="txt-grey "></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,5 @@
|
|||||||
|
<% if @notifiable.value == "0"%>
|
||||||
|
$("#hidden_courses").replaceWith("<%= escape_javascript(link_to '隐藏课程信息',settings_hidden_courses_path,:id => 'hidden_courses',:style => 'float: right;margin-right: 60px;margin-top: 9px;', :remote => true)%>");
|
||||||
|
<% else%>
|
||||||
|
$("#hidden_courses").replaceWith("<%= escape_javascript(link_to '显示课程信息',settings_hidden_courses_path,:id => 'hidden_courses',:style => 'float: right;margin-right: 60px;margin-top: 9px;', :remote => true)%>");
|
||||||
|
<% end%>
|
@ -0,0 +1,24 @@
|
|||||||
|
<div class="homepagePostIntro break_word upload_img list_style table_maxWidth lh18" id="activity_description_<%= user_activity_id%>">
|
||||||
|
<div id="intro_content_<%= user_activity_id%>">
|
||||||
|
<%= content.to_s.html_safe%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function(){
|
||||||
|
var heightType = <%= maxheight %>;
|
||||||
|
|
||||||
|
if (heightType > 0){
|
||||||
|
$("#activity_description_<%= user_activity_id%>").css("max-height",heightType+"px");
|
||||||
|
}
|
||||||
|
|
||||||
|
$("#intro_content_<%= user_activity_id%> p,#intro_content_<%= user_activity_id%> span,#intro_content_<%= user_activity_id%> em").each(function(){
|
||||||
|
var postContent = $(this).html();
|
||||||
|
postContent = postContent.replace(/ /g," ");
|
||||||
|
postContent= postContent.replace(/ {2}/g," ");
|
||||||
|
postContent=postContent.replace(/ /g," ");
|
||||||
|
postContent=postContent.replace(/ /g," ");
|
||||||
|
$(this).html(postContent);
|
||||||
|
});
|
||||||
|
description_show_hide(<%=user_activity_id %>);
|
||||||
|
});
|
||||||
|
</script>
|
@ -0,0 +1,78 @@
|
|||||||
|
<div class = "cl"> </div>
|
||||||
|
<div id="project-boardlist">
|
||||||
|
<div class="listbox mt10" >
|
||||||
|
<h2 class="list-h2">讨论区列表</h2>
|
||||||
|
<div class="category">
|
||||||
|
<span class="grayTxt ">排序:</span>
|
||||||
|
<%= link_to "时间", {:controller => 'boards', :action => 'index', :type => @type, :sort => @b_sort, :order => 1 }, :class => "sortTxt", :remote => true %>
|
||||||
|
<% if @type.to_i == 1 %>
|
||||||
|
<%= link_to "", {:controller => 'boards', :action => 'index', :type => @type, :sort => @b_sort, :order => 1 }, :class => "#{@b_sort.to_i == 1 ? 'sortupbtn' : 'sortdownbtn'} ", :remote => true %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to "人气", {:controller => 'boards', :action => 'index', :type => @type, :sort => @b_sort, :order => 2 }, :class => "sortTxt", :remote => true %>
|
||||||
|
<% if @type.to_i == 2 %>
|
||||||
|
<%= link_to "", {:controller => 'boards', :action => 'index', :type => @type, :sort => @b_sort, :order => 2 }, :class => "#{@b_sort.to_i == 1 ? 'sortupbtn' : 'sortdownbtn'} ", :remote => true %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="bloglistbox">
|
||||||
|
<% topics.each do |activity| %>
|
||||||
|
<div class="list-file">
|
||||||
|
<div><span class="item_list fl"></span>
|
||||||
|
<% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<%= link_to activity.subject.to_s.html_safe, board_message_path(activity.board_id, activity), :class=> "list-title fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to activity.parent.subject.to_s.html_safe, board_message_path(activity.board_id, activity), :class=> "list-title f1" %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.sticky == 1 %>
|
||||||
|
<span class="fl ml10 red-cir-btn">顶</span>
|
||||||
|
<% end%>
|
||||||
|
<% if activity.locked %>
|
||||||
|
<span class="fl ml10 green-cir-btn" title="已锁定">锁</span>
|
||||||
|
<% end %>
|
||||||
|
<% u = User.where("id=?",activity.author_id).first%>
|
||||||
|
<span class="fr grayTxt">
|
||||||
|
发帖人:<%=(u.try(:realname) != " " ? u.lastname + u.firstname : u.try(:login)) %>
|
||||||
|
</span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="massages-content ml15">
|
||||||
|
<% if activity.parent_id.nil? %>
|
||||||
|
<% content = activity.content %>
|
||||||
|
<% else %>
|
||||||
|
<% content = activity.parent.content %>
|
||||||
|
<% end %>
|
||||||
|
<p><%=render :partial =>"users/intro_content_ex", :locals=>{:user_activity_id =>activity.id, :content=>content, :maxheight=>54 } %></p>
|
||||||
|
</div>
|
||||||
|
<div class="ml15 mt10">
|
||||||
|
<span class="grayTxt">发帖时间:<%= format_time(activity.created_on) %></span>
|
||||||
|
<span class="grayTxt">更新时间:<%= format_time(ForgeActivity.where("forge_act_type='#{activity.class}' and forge_act_id =#{activity.id}").first.updated_at) %></span>
|
||||||
|
<% count=0 %>
|
||||||
|
<% if activity.parent %>
|
||||||
|
<% count=activity.parent.children.count%>
|
||||||
|
<% else %>
|
||||||
|
<% count=activity.children.count%>
|
||||||
|
<% end %>
|
||||||
|
<p class="list-info fr grayTxt"><span><%= count>0 ? "#{count}" : "0" %></span><span>回复</span><span>|</span><span><%= get_praise_num(activity) > 0 ? "#{get_praise_num(activity)}" : "0" %></span><span>赞</span></p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<div>
|
||||||
|
<ul class="wlist" id="pages" >
|
||||||
|
<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>
|
||||||
|
</ul>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
//如果右边的博客列表比左边的高度低则将右边的高度设为与左边对齐
|
||||||
|
var leftHeight = $("#LSide").height()-$(".fontGrey5").height()-20;
|
||||||
|
var rightHeight = $(".homepageRight").height();
|
||||||
|
if (rightHeight < leftHeight){
|
||||||
|
var diffHeight = leftHeight - rightHeight;
|
||||||
|
var tmpHeight = $(".listbox").height()+diffHeight;
|
||||||
|
$(".listbox").css("height",tmpHeight);
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,53 @@
|
|||||||
|
<div class="listbox" id="project-list">
|
||||||
|
<h2 class="list-h2">项目列表</h2>
|
||||||
|
<div class="category">
|
||||||
|
<span class="grayTxt ">排序:</span>
|
||||||
|
<%= link_to "时间", {:controller => 'users', :action => 'user_projectlist', :id =>@user, :type => @type, :sort => @c_sort, :order => 1 }, :class => "sortTxt", :remote => true %>
|
||||||
|
<% if @type.to_i == 1 %>
|
||||||
|
<%= link_to "", {:controller => 'users', :action => 'user_projectlist', :id =>@user, :type => @type, :sort => @c_sort, :order => 1 }, :class => "#{@c_sort.to_i == 1 ? 'sortupbtn' : 'sortdownbtn'} ", :remote => true %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to "人气", {:controller => 'users', :action => 'user_projectlist', :id =>@user, :type => @type, :sort => @c_sort, :order => 2 }, :class => "sortTxt", :remote => true %>
|
||||||
|
<% if @type.to_i == 2 %>
|
||||||
|
<%= link_to "", {:controller => 'users', :action => 'user_projectlist', :id =>@user, :type => @type, :sort => @c_sort, :order => 2 }, :class => "#{@c_sort.to_i == 1 ? 'sortupbtn' : 'sortdownbtn'} ", :remote => true %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bloglistbox">
|
||||||
|
<% @projects.each do |project|%>
|
||||||
|
<ul class="list-file">
|
||||||
|
<li>
|
||||||
|
<span class="item_list fl"></span>
|
||||||
|
<%= link_to project.name, project_path(project.id,:host=>Setting.host_name), :target => '_blank', :class => "course-title fl",:id => "show_project_#{project.id}", :title => (project.is_public? ? "公开项目:":"私有项目:") + project.name%>
|
||||||
|
<% projectUser = User.where("id=?",project.user_id).first%>
|
||||||
|
<span class="fr grayTxt">
|
||||||
|
<%='创建者:'+(projectUser.try(:realname) != " " ? projectUser.lastname + projectUser.firstname : projectUser.try(:login)) %>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<li class="ml15">
|
||||||
|
<span class="grayTxt">创建时间:<%= format_time(project.created_on) %></span>
|
||||||
|
<p class="list-info fr grayTxt"><span><%= project.project_score.issue_num %></span><span>问题</span><span>|</span><span> <%= project.project_score.attach_num %></span><span>资源</span></p>
|
||||||
|
</li>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
<div>
|
||||||
|
<ul class="wlist" id="pages" >
|
||||||
|
<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>
|
||||||
|
</ul>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
//如果右边的列表比左边的高度低则将右边的高度设为与左边对齐
|
||||||
|
var leftHeight = $("#LSide").height()-$(".fontGrey5").height()-20;
|
||||||
|
var rightHeight = $(".homepageRight").height();
|
||||||
|
if (rightHeight < leftHeight){
|
||||||
|
var diffHeight = leftHeight - rightHeight;
|
||||||
|
var tmpHeight = $(".listbox").height()+diffHeight;
|
||||||
|
$(".listbox").css("height",tmpHeight);
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1 @@
|
|||||||
|
<%= render :partial => 'users/user_course_list'%>
|
@ -0,0 +1 @@
|
|||||||
|
$("#course-list").replaceWith('<%= escape_javascript( render :partial => 'users/user_course_list') %>');
|
@ -0,0 +1 @@
|
|||||||
|
<%= render :partial => 'users/user_project_list'%>
|
@ -0,0 +1 @@
|
|||||||
|
$("#project-list").replaceWith('<%= escape_javascript( render :partial => 'users/user_project_list') %>');
|
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 220 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 272 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 233 B |
@ -0,0 +1,292 @@
|
|||||||
|
var sina = {
|
||||||
|
$ : function (objName) {
|
||||||
|
if (document.getElementById) {
|
||||||
|
return eval('document.getElementById("' + objName + '")')
|
||||||
|
} else {
|
||||||
|
return eval('document.all.' + objName)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
isIE : navigator.appVersion.indexOf("MSIE") != -1 ? true : false,
|
||||||
|
addEvent : function (l, i, I) {
|
||||||
|
if (l.attachEvent) {
|
||||||
|
l.attachEvent("on" + i, I)
|
||||||
|
} else {
|
||||||
|
l.addEventListener(i, I, false)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
delEvent : function (l, i, I) {
|
||||||
|
if (l.detachEvent) {
|
||||||
|
l.detachEvent("on" + i, I)
|
||||||
|
} else {
|
||||||
|
l.removeEventListener(i, I, false)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
readCookie : function (O) {
|
||||||
|
var o = "",
|
||||||
|
l = O + "=";
|
||||||
|
if (document.cookie.length > 0) {
|
||||||
|
var i = document.cookie.indexOf(l);
|
||||||
|
if (i != -1) {
|
||||||
|
i += l.length;
|
||||||
|
var I = document.cookie.indexOf(";", i);
|
||||||
|
if (I == -1)
|
||||||
|
I = document.cookie.length;
|
||||||
|
o = unescape(document.cookie.substring(i, I))
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return o
|
||||||
|
},
|
||||||
|
writeCookie : function (i, l, o, c) {
|
||||||
|
var O = "",
|
||||||
|
I = "";
|
||||||
|
if (o != null) {
|
||||||
|
O = new Date((new Date).getTime() + o * 3600000);
|
||||||
|
O = "; expires=" + O.toGMTString()
|
||||||
|
};
|
||||||
|
if (c != null) {
|
||||||
|
I = ";domain=" + c
|
||||||
|
};
|
||||||
|
document.cookie = i + "=" + escape(l) + O + I
|
||||||
|
},
|
||||||
|
readStyle : function (I, l) {
|
||||||
|
if (I.style[l]) {
|
||||||
|
return I.style[l]
|
||||||
|
} else if (I.currentStyle) {
|
||||||
|
return I.currentStyle[l]
|
||||||
|
} else if (document.defaultView && document.defaultView.getComputedStyle) {
|
||||||
|
var i = document.defaultView.getComputedStyle(I, null);
|
||||||
|
return i.getPropertyValue(l)
|
||||||
|
} else {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
//滚动图片构造函数
|
||||||
|
//UI&UE Dept. mengjia
|
||||||
|
//080623
|
||||||
|
function ScrollPic(scrollContId, arrLeftId, arrRightId, dotListId) {
|
||||||
|
this.scrollContId = scrollContId;
|
||||||
|
this.arrLeftId = arrLeftId;
|
||||||
|
this.arrRightId = arrRightId;
|
||||||
|
this.dotListId = dotListId;
|
||||||
|
this.dotClassName = "dotItem";
|
||||||
|
this.dotOnClassName = "dotItemOn";
|
||||||
|
this.dotObjArr = [];
|
||||||
|
this.pageWidth = 0;
|
||||||
|
this.frameWidth = 0;
|
||||||
|
this.speed = 10;
|
||||||
|
this.space = 10;
|
||||||
|
this.pageIndex = 0;
|
||||||
|
this.autoPlay = true;
|
||||||
|
this.autoPlayTime = 5;
|
||||||
|
var _autoTimeObj,
|
||||||
|
_scrollTimeObj,
|
||||||
|
_state = "ready";
|
||||||
|
this.stripDiv = document.createElement("DIV");
|
||||||
|
this.listDiv01 = document.createElement("DIV");
|
||||||
|
this.listDiv02 = document.createElement("DIV");
|
||||||
|
if (!ScrollPic.childs) {
|
||||||
|
ScrollPic.childs = []
|
||||||
|
};
|
||||||
|
this.ID = ScrollPic.childs.length;
|
||||||
|
ScrollPic.childs.push(this);
|
||||||
|
this.initialize = function () {
|
||||||
|
if (!this.scrollContId) {
|
||||||
|
throw new Error("必须指定scrollContId.");
|
||||||
|
return
|
||||||
|
};
|
||||||
|
this.scrollContDiv = sina.$(this.scrollContId);
|
||||||
|
if (!this.scrollContDiv) {
|
||||||
|
throw new Error("scrollContId不是正确的对象.(scrollContId = \"" + this.scrollContId + "\")");
|
||||||
|
return
|
||||||
|
};
|
||||||
|
this.scrollContDiv.style.width = this.frameWidth + "px";
|
||||||
|
this.scrollContDiv.style.overflow = "hidden";
|
||||||
|
this.listDiv01.innerHTML = this.listDiv02.innerHTML = this.scrollContDiv.innerHTML;
|
||||||
|
this.scrollContDiv.innerHTML = "";
|
||||||
|
this.scrollContDiv.appendChild(this.stripDiv);
|
||||||
|
this.stripDiv.appendChild(this.listDiv01);
|
||||||
|
this.stripDiv.appendChild(this.listDiv02);
|
||||||
|
this.stripDiv.style.overflow = "hidden";
|
||||||
|
this.stripDiv.style.zoom = "1";
|
||||||
|
this.stripDiv.style.width = "32766px";
|
||||||
|
if(-[1,]){
|
||||||
|
this.listDiv01.style.cssFloat = "left";
|
||||||
|
this.listDiv02.style.cssFloat = "left";
|
||||||
|
}else{
|
||||||
|
this.listDiv01.style.styleFloat = "left";
|
||||||
|
this.listDiv02.style.styleFloat = "left";
|
||||||
|
}
|
||||||
|
sina.addEvent(this.scrollContDiv, "mouseover", Function("ScrollPic.childs[" + this.ID + "].stop()"));
|
||||||
|
sina.addEvent(this.scrollContDiv, "mouseout", Function("ScrollPic.childs[" + this.ID + "].play()"));
|
||||||
|
if (this.arrLeftId) {
|
||||||
|
this.arrLeftObj = sina.$(this.arrLeftId);
|
||||||
|
if (this.arrLeftObj) {
|
||||||
|
sina.addEvent(this.arrLeftObj, "mousedown", Function("ScrollPic.childs[" + this.ID + "].rightMouseDown()"));
|
||||||
|
sina.addEvent(this.arrLeftObj, "mouseup", Function("ScrollPic.childs[" + this.ID + "].rightEnd()"));
|
||||||
|
sina.addEvent(this.arrLeftObj, "mouseout", Function("ScrollPic.childs[" + this.ID + "].rightEnd()"))
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (this.arrRightId) {
|
||||||
|
this.arrRightObj = sina.$(this.arrRightId);
|
||||||
|
if (this.arrRightObj) {
|
||||||
|
sina.addEvent(this.arrRightObj, "mousedown", Function("ScrollPic.childs[" + this.ID + "].leftMouseDown()"));
|
||||||
|
sina.addEvent(this.arrRightObj, "mouseup", Function("ScrollPic.childs[" + this.ID + "].leftEnd()"));
|
||||||
|
sina.addEvent(this.arrRightObj, "mouseout", Function("ScrollPic.childs[" + this.ID + "].leftEnd()"))
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (this.dotListId) {
|
||||||
|
this.dotListObj = sina.$(this.dotListId);
|
||||||
|
if (this.dotListObj) {
|
||||||
|
var pages = Math.round(this.listDiv01.offsetWidth / this.frameWidth + 0.4),
|
||||||
|
i,
|
||||||
|
tempObj;
|
||||||
|
for (i = 0; i < pages; i++) {
|
||||||
|
tempObj = document.createElement("span");
|
||||||
|
this.dotListObj.appendChild(tempObj);
|
||||||
|
this.dotObjArr.push(tempObj);
|
||||||
|
if (i == this.pageIndex) {
|
||||||
|
tempObj.className = this.dotClassName
|
||||||
|
} else {
|
||||||
|
tempObj.className = this.dotOnClassName
|
||||||
|
};
|
||||||
|
tempObj.title = "第" + (i + 1) + "页";
|
||||||
|
sina.addEvent(tempObj, "click", Function("ScrollPic.childs[" + this.ID + "].pageTo(" + i + ")"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (this.autoPlay) {
|
||||||
|
this.play()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.leftMouseDown = function () {
|
||||||
|
if (_state != "ready") {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
_state = "floating";
|
||||||
|
_scrollTimeObj = setInterval("ScrollPic.childs[" + this.ID + "].moveLeft()", this.speed)
|
||||||
|
};
|
||||||
|
this.rightMouseDown = function () {
|
||||||
|
if (_state != "ready") {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
_state = "floating";
|
||||||
|
_scrollTimeObj = setInterval("ScrollPic.childs[" + this.ID + "].moveRight()", this.speed)
|
||||||
|
};
|
||||||
|
this.moveLeft = function () {
|
||||||
|
if (this.scrollContDiv.scrollLeft + this.space >= this.listDiv01.scrollWidth) {
|
||||||
|
this.scrollContDiv.scrollLeft = this.scrollContDiv.scrollLeft + this.space - this.listDiv01.scrollWidth
|
||||||
|
} else {
|
||||||
|
this.scrollContDiv.scrollLeft += this.space
|
||||||
|
};
|
||||||
|
this.accountPageIndex()
|
||||||
|
};
|
||||||
|
this.moveRight = function () {
|
||||||
|
if (this.scrollContDiv.scrollLeft - this.space <= 0) {
|
||||||
|
this.scrollContDiv.scrollLeft = this.listDiv01.scrollWidth + this.scrollContDiv.scrollLeft - this.space
|
||||||
|
} else {
|
||||||
|
this.scrollContDiv.scrollLeft -= this.space
|
||||||
|
};
|
||||||
|
this.accountPageIndex()
|
||||||
|
};
|
||||||
|
this.leftEnd = function () {
|
||||||
|
if (_state != "floating") {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
_state = "stoping";
|
||||||
|
clearInterval(_scrollTimeObj);
|
||||||
|
var fill = this.pageWidth - this.scrollContDiv.scrollLeft % this.pageWidth;
|
||||||
|
this.move(fill)
|
||||||
|
};
|
||||||
|
this.rightEnd = function () {
|
||||||
|
if (_state != "floating") {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
_state = "stoping";
|
||||||
|
clearInterval(_scrollTimeObj);
|
||||||
|
var fill = -this.scrollContDiv.scrollLeft % this.pageWidth;
|
||||||
|
this.move(fill)
|
||||||
|
};
|
||||||
|
this.move = function (num, quick) {
|
||||||
|
var thisMove = num / 5;
|
||||||
|
if (!quick) {
|
||||||
|
if (thisMove > this.space) {
|
||||||
|
thisMove = this.space
|
||||||
|
};
|
||||||
|
if (thisMove < -this.space) {
|
||||||
|
thisMove = -this.space
|
||||||
|
}
|
||||||
|
};
|
||||||
|
if (Math.abs(thisMove) < 1 && thisMove != 0) {
|
||||||
|
thisMove = thisMove >= 0 ? 1 : -1
|
||||||
|
} else {
|
||||||
|
thisMove = Math.round(thisMove)
|
||||||
|
};
|
||||||
|
var temp = this.scrollContDiv.scrollLeft + thisMove;
|
||||||
|
if (thisMove > 0) {
|
||||||
|
if (this.scrollContDiv.scrollLeft + thisMove >= this.listDiv01.scrollWidth) {
|
||||||
|
this.scrollContDiv.scrollLeft = this.scrollContDiv.scrollLeft + thisMove - this.listDiv01.scrollWidth
|
||||||
|
} else {
|
||||||
|
this.scrollContDiv.scrollLeft += thisMove
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (this.scrollContDiv.scrollLeft - thisMove <= 0) {
|
||||||
|
this.scrollContDiv.scrollLeft = this.listDiv01.scrollWidth + this.scrollContDiv.scrollLeft - thisMove
|
||||||
|
} else {
|
||||||
|
this.scrollContDiv.scrollLeft += thisMove
|
||||||
|
}
|
||||||
|
};
|
||||||
|
num -= thisMove;
|
||||||
|
if (Math.abs(num) == 0) {
|
||||||
|
_state = "ready";
|
||||||
|
if (this.autoPlay) {
|
||||||
|
this.play()
|
||||||
|
};
|
||||||
|
this.accountPageIndex();
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
this.accountPageIndex();
|
||||||
|
setTimeout("ScrollPic.childs[" + this.ID + "].move(" + num + "," + quick + ")", this.speed)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
this.next = function () {
|
||||||
|
if (_state != "ready") {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
_state = "stoping";
|
||||||
|
this.move(this.pageWidth, true)
|
||||||
|
};
|
||||||
|
this.play = function () {
|
||||||
|
if (!this.autoPlay) {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
clearInterval(_autoTimeObj);
|
||||||
|
_autoTimeObj = setInterval("ScrollPic.childs[" + this.ID + "].next()", this.autoPlayTime * 1000)
|
||||||
|
};
|
||||||
|
this.stop = function () {
|
||||||
|
clearInterval(_autoTimeObj)
|
||||||
|
};
|
||||||
|
this.pageTo = function (num) {
|
||||||
|
if (_state != "ready") {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
_state = "stoping";
|
||||||
|
var fill = num * this.frameWidth - this.scrollContDiv.scrollLeft;
|
||||||
|
this.move(fill, true)
|
||||||
|
};
|
||||||
|
this.accountPageIndex = function () {
|
||||||
|
this.pageIndex = Math.round(this.scrollContDiv.scrollLeft / this.frameWidth);
|
||||||
|
if (this.pageIndex > Math.round(this.listDiv01.offsetWidth / this.frameWidth + 0.4) - 1) {
|
||||||
|
this.pageIndex = 0
|
||||||
|
};
|
||||||
|
var i;
|
||||||
|
for (i = 0; i < this.dotObjArr.length; i++) {
|
||||||
|
if (i == this.pageIndex) {
|
||||||
|
this.dotObjArr[i].className = this.dotClassName
|
||||||
|
} else {
|
||||||
|
this.dotObjArr[i].className = this.dotOnClassName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,220 @@
|
|||||||
|
/* CSS Document */
|
||||||
|
/* 样式重置 */
|
||||||
|
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{ margin:0; padding:0;}
|
||||||
|
body,table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:12px;line-height:1.9; background:#f2f2f2;}
|
||||||
|
div,img,tr,td,table{ border:0;}
|
||||||
|
table,tr,td{border:0;cellspacing:0; cellpadding:0;}
|
||||||
|
ol,ul,li{ list-style-type:none}
|
||||||
|
a:link,a:visited{color:#000;text-decoration:none;}
|
||||||
|
a:hover,a:active{color:#24366e;}
|
||||||
|
|
||||||
|
.sn-fl {float:left;}
|
||||||
|
.sn-fr {float:right;}
|
||||||
|
.sn-cl {clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}
|
||||||
|
.sn-container {width:100%; background-color:#fff;}
|
||||||
|
.sn-p-absolute {position:absolute;}
|
||||||
|
.sn-grey-opacity {background:rgba(230, 230, 230, 0.9)!important; filter:Alpha(opacity=90); background:#e6e6e6;}
|
||||||
|
.sn-border {border-top:1px solid #dfdfdf; border-bottom:1px solid #dfdfdf;}
|
||||||
|
/* 公共 */
|
||||||
|
.cl {clear:both;}
|
||||||
|
.fl {float:left;}
|
||||||
|
.fr {float:right;}
|
||||||
|
.mb18 {margin-bottom:18px;}
|
||||||
|
.mt10 {margin-top:10px;}
|
||||||
|
.mr20 {margin-right:20px;}
|
||||||
|
.mr10 {margin-right:10px;}
|
||||||
|
|
||||||
|
/*字体,链接颜色*/
|
||||||
|
.sn-font-black {color:#000;}
|
||||||
|
.sn-font-grey {color:#b4bbbf;}
|
||||||
|
.sn-font-grey2 {color:#5e5e5e;}
|
||||||
|
.sn-font-grey3 {color:#999;}
|
||||||
|
a.sn-link-blue {color:#24366e;}
|
||||||
|
a.sn-link-white {color:#fff;}
|
||||||
|
a.sn-link-grey {color:#999;}
|
||||||
|
a.sn-link-grey:hover {color:#24366e;}
|
||||||
|
a.sn-link-grey2 {color:#888;}
|
||||||
|
a.sn-link-select {color:#809df9;}
|
||||||
|
/*字体大小*/
|
||||||
|
.sn-f12 {font-size:12px;}
|
||||||
|
.sn-f14 {font-size:14px;}
|
||||||
|
.sn-f18 {font-size:18px;}
|
||||||
|
/*padding&margin&width*/
|
||||||
|
.sn-mt-10 {margin-left:-10px;}
|
||||||
|
.sn-mt4 {margin-top:4px;}
|
||||||
|
.sn-mt10 {margin-top:10px;}
|
||||||
|
.sn-mt13 {margin-top:13px;}
|
||||||
|
.sn-mt15 {margin-top:15px;}
|
||||||
|
.sn-mt28 {margin-top:28px;}
|
||||||
|
.sn-mb40 {margin-bottom:40px;}
|
||||||
|
.sn-ml15 {margin-left:15px;}
|
||||||
|
.sn-ml55 {margin-left:55px;}
|
||||||
|
.sn-mr0 {margin-right:0px !important;}
|
||||||
|
.sn-mr50 {margin-right:50px;}
|
||||||
|
.sn-w229 {width:229px;}
|
||||||
|
/*头部样式*/
|
||||||
|
.sn-header {}
|
||||||
|
.sn-row {width:100%;}
|
||||||
|
.sn-bg-grey {background-color:#f4f4f4;}
|
||||||
|
.sn-bg-grey2 {background-color:#a5a5a5;}
|
||||||
|
.sn-bg-white {background-color:#fff;}
|
||||||
|
.sn-bg-blue {background-color:#24366e;}
|
||||||
|
.sn-login {width:1200px; height:45px; line-height:45px; margin:0 auto; font-size:14px; color:#24366e; vertical-align:middle; text-align:right;}
|
||||||
|
.sn-login2 {width:1200px; height:54px; line-height:54px; margin:0 auto; font-size:14px; color:#24366e; vertical-align:middle; text-align:right;}
|
||||||
|
.sn-logo {width:1200px; height:90px; line-height:90px; margin:0 auto; vertical-align:middle;}
|
||||||
|
.sn-search-input {width:328px; height:40px; font-size:16px; color:#ccc; padding-left:10px; border:1px solid #ccc; border-right:none; float:right; background-color:#fff; outline:none;}
|
||||||
|
a.sn-search-button {width:53px; height:40px; border:1px solid #ccc; border-left:none; float:right; outline:none; background:url(../images/sn_search_icon.jpg) 0 3px no-repeat;}
|
||||||
|
.sn-nav {width:1200px; height:55px; margin:0 auto; font-size:16px; position:relative; line-height:1;}
|
||||||
|
.sn-nav li {float:left; padding-top:11px; padding-bottom:12px; margin-right:50px;}
|
||||||
|
.sn-nav li a {display:inline-block; padding:8px 6px; border-radius:5px;}
|
||||||
|
.sn-nav li a:hover {background-color:#809df9;}
|
||||||
|
.sn-sub-nav {width:1200px; margin:0 auto; font-size:14px; position:relative; line-height:1;}
|
||||||
|
.sn-sub-nav li {color:#999; float:left;}
|
||||||
|
.sn-sub-nav li a {height:40px; line-height:40px; vertical-align:middle; margin:0 5px; padding:0 5px; display:inline-block;}
|
||||||
|
.sn-sub-nav li a:hover {border-bottom:3px solid #ffbd18; height:37px;}
|
||||||
|
.sn-subnav-slice {margin:12px 5px;}
|
||||||
|
.sn-banner {width:1200px; height:210px; margin:0 auto;}
|
||||||
|
.sn-content-position {width:1200px; height:50px; line-height:50px; vertical-align:middle; font-size:14px; color:#888; margin:0 auto;}
|
||||||
|
/*footer样式*/
|
||||||
|
.sn-footer {width:1200px; height:220px; margin:0 auto; text-align:center; font-size:14px; color:#fff; line-height:normal;}
|
||||||
|
.sn-footer-link {padding:40px 0 30px 0;}
|
||||||
|
.sn-footer-link li {display:inline-block;}
|
||||||
|
.sn-contact {margin-bottom:30px;}
|
||||||
|
/* 首页内容 */
|
||||||
|
.sn-content{ width:1200px; margin:0 auto;}
|
||||||
|
.sn-content-left{ width:820px; margin-right:12px; margin-bottom:100px;}
|
||||||
|
.sn-content-right{ width:368px; margin-bottom:74px; }
|
||||||
|
/* index-banner */
|
||||||
|
.sn-index-banner{ width:820px; height:435px; margin-bottom:20px;}
|
||||||
|
.focus{ position:relative; width:820px; height:435px; background-color: #000; float: left;}
|
||||||
|
.focus img{ width:820px; height:435px;}
|
||||||
|
.focus .shadow .title{width: 260px; height: 65px;padding-left: 30px;padding-top: 20px;}
|
||||||
|
.focus .shadow .title a{ text-decoration:none; color:#fff; font-size:14px; font-weight:bolder; overflow:hidden; }
|
||||||
|
.focus .btn{ position:absolute; bottom:34px; left:510px; overflow:hidden; zoom:1;}
|
||||||
|
.focus .btn a{position:relative; display:inline; width:13px; height:13px; border-radius:7px; margin:0 5px;color:#B0B0B0; text-decoration:none; text-align:center; outline:0; float:left; background:#D9D9D9; }
|
||||||
|
.focus .btn a:hover,.focus .btn a.current{ cursor:pointer;background:#fc114a;}
|
||||||
|
.focus .fPic{ position:absolute; left:0px; top:0px; }
|
||||||
|
.focus .D1fBt{ overflow:hidden; zoom:1; height:16px; z-index:10; }
|
||||||
|
.focus .shadow{ width:100%; position:absolute; bottom:0; left:0px; z-index:10; height:80px; line-height: 80px; background:rgba(0,0,0,0.6);
|
||||||
|
filter:progid:DXImageTransform.Microsoft.gradient( GradientType = 0,startColorstr = '#80000000',endColorstr = '#80000000')\9; display:block; text-align:left; }
|
||||||
|
.focus .shadow a{ text-decoration:none; color:#fff; font-size:20px; overflow:hidden; margin-left:10px; }
|
||||||
|
.focus .fcon{ position:relative; width:100%; float:left; display:none; background:#000 }
|
||||||
|
.focus .fcon-default{ position:relative; width:100%; float:left; background:#fff }
|
||||||
|
.focus .fcon img{ display:block; }
|
||||||
|
.focus .fbg{bottom:25px; right:40px; position:absolute; height:21px; text-align:center; z-index: 200; }
|
||||||
|
.focus .fbg div{margin:4px auto 0;overflow:hidden;zoom:1;height:14px}
|
||||||
|
.focus .D1fBt a{position:relative; display:inline; width:12px; height:12px; border-radius:7px; margin:0 5px;color:#B0B0B0; text-decoration:none; text-align:center; outline:0; float:left; background:#D9D9D9; }
|
||||||
|
.focus .D1fBt .current,.focus .D1fBt a:hover{background:#fc114a;}
|
||||||
|
.focus .D1fBt img{display:none}
|
||||||
|
.focus .D1fBt i{display:none; font-style:normal; }
|
||||||
|
.focus .prev,.focus .next{position:absolute;width:40px;height:74px;background: url(../images/banner/focus_btn.png) no-repeat;}
|
||||||
|
.focus .prev{top: 50%;margin-top: -37px; left: 0;background-position:0 -74px; cursor:pointer; }
|
||||||
|
.focus .next{top: 50%;margin-top: -37px; right: 0; background-position:-40px -74px; cursor:pointer;}
|
||||||
|
.focus .prev:hover{ background-position:0 0; }
|
||||||
|
.focus .next:hover{ background-position:-40px 0;}
|
||||||
|
/* index-news */
|
||||||
|
.sn-index-leftbox{ width:820px; background:#fff; margin-bottom:20px;}
|
||||||
|
.h2-title{ padding:5px 0 3px; border-bottom:1px solid #ebebeb; font-size:18px; color:#777; font-weight:normal; padding-left:17px;}
|
||||||
|
.h2-title a.more{ font-size:12px; color:#777; float:right; margin-right:17px; line-height:2.8;}
|
||||||
|
.h2-title a:hover.more{ color:#24366e;}
|
||||||
|
.sn-news-bigbox{ padding:0px 26px 0px 18px; margin:18px 0 26px; border-right:1px solid #ebebeb;}
|
||||||
|
.sn-news-bigbox a.h3-title{ font-size:18px; width:380px; display:block;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;}
|
||||||
|
.sn-news-bigbox .sn-news-txt{ width:380px; color:#666;}
|
||||||
|
.sn-news-bigbox .sn-news-bigimg{ width:380px; height:165px;}
|
||||||
|
.txt-grey{ color:#999;}
|
||||||
|
.sn-news-smallbox{padding:0px 18px 0px 26px; margin:18px 0 26px; width:350px; }
|
||||||
|
.sn-news-smallbox .sn-news-smallimg{ width:85px; height:85px; margin-right:10px;}
|
||||||
|
.sn-news-smallbox a.h4-title{ font-size:14px; width:255px; float:left;}
|
||||||
|
/* index-resources */
|
||||||
|
.sn-index-resourcescon{ padding-top:12px;background:#f2f2f2;}
|
||||||
|
.sn-index-resourcesbox{ padding:10px; background:#f2f2f2; width:185px; float:left;}
|
||||||
|
.sn-index-resourcesbox:hover{ background:#fff;}
|
||||||
|
.sn-index-resourcesbox a.resources-title{ font-size:18px; font-weight:normal; line-height:2.0;width:185px; display:block; border-bottom:1px solid #ccc; margin-bottom:5px;}
|
||||||
|
.sn-hidden {overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
|
||||||
|
.sn-index-resourcesbox a.resources-tag{ font-size:14px; color:#999; margin-right:5px; line-height:1.5;}
|
||||||
|
.resources-tagbox {width:185px; height: 46px; overflow:hidden;}
|
||||||
|
.resources-tagbox img {max-width: 100%;}
|
||||||
|
a.more-btn{ display:block; width:185px; height:30px; text-align:center; background:#ccc; color:#666; line-height:30px;}
|
||||||
|
/* index-partner */
|
||||||
|
.sn-index-partnerbox{ padding:25px 30px; }
|
||||||
|
.sn-index-partnerbox{ width:775px;}
|
||||||
|
.sn-index-partnerbox ul li{ height:55px;}
|
||||||
|
.sn-index-partnerbox ul li a.partnerimg{ display:block; margin:0 10px 10px 0; border:1px solid #ccc; width:370px; height:43px; float:left;}
|
||||||
|
.partner-btnbox{ width:90px; margin:0 auto;}
|
||||||
|
.partner-btn{ width:35px; height:22px; background-color:#999; line-height:1.0; font-size:18px; color:#fff; text-align: center; margin-right:5px; cursor:pointer;}
|
||||||
|
.partner-btn:hover{ background-color:#172b65;}
|
||||||
|
/* index-active */
|
||||||
|
.sn-index-activebox{ margin-bottom:20px; background:#fff; padding-bottom:10px;}
|
||||||
|
.active-title{width:330px; display:block;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;}
|
||||||
|
.sn-index-active{ margin:0px 20px 5px 20px;}
|
||||||
|
.sn-index-active a.sn-activeimg{width:330px; height:210px;}
|
||||||
|
/* index-wx*/
|
||||||
|
.sn-index-wxbox{margin-bottom:20px; background:#fff;}
|
||||||
|
.sn-index-wximg{ margin:15px; margin-right:5px;}
|
||||||
|
.sn-index-txt{ font-size:16px; line-height:2.0; margin-top:30px;}
|
||||||
|
.sn-index-smallbanner img{ display:block; width:369px; height:169px; }
|
||||||
|
|
||||||
|
/* 内页新闻列表 */
|
||||||
|
.sn-inner-body{ width:100%; background-color:#fff;}
|
||||||
|
.sn-innner-content{ width:1200px; margin:0 auto;}
|
||||||
|
.sn-inner-newsh2{ font-size:20px; font-weight:normal; padding-bottom:5px; border-bottom:1px dashed #eee;}
|
||||||
|
.sn-circle{ margin:18px 5px 0 5px ;border:1px solid #24366e; width:5px; height:5px; -webkit-border-radius:50px; -moz-border-radius:50px; -o-border-radius:50px; border-radius:50px; }
|
||||||
|
.sn-inner-newslist ul li{ line-height:42px; font-size:15px; border-bottom:1px solid #eee;}
|
||||||
|
.sn-inner-newslist a{font-size:15px; color:#888;}
|
||||||
|
.sn-inner-newslist a:hover{ color:#24366e;}
|
||||||
|
a.sn-newslist-titile{ font-size:15px;width:840px; display:block;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;}
|
||||||
|
a:hover.sn-newslist-reply,a:hover.sn-newslist-zan{ color:#379be9;}
|
||||||
|
.sn-inner-pages a{ display:block; font-size:12px; border:1px solid #d1d1d1; color:#999; float:left; width:30px; text-align:center; padding:3px 0; line-height:1.9; margin-right:5px; -webkit-border-radius:3px; -moz-border-radius:3px; -o-border-radius:3px; border-radius:3px; }
|
||||||
|
.sn-inner-pages a:hover{ background-color:#24366e; color:#fff;}
|
||||||
|
a.sn-inner-pages-big{ width:50px;}
|
||||||
|
a.sn-pages-active{ background-color:#24366e; color:#fff;}
|
||||||
|
.sn-inner-pages{width:330px; margin:40px auto 100px;}
|
||||||
|
/* 内页新闻展示 */
|
||||||
|
.sn-inner-newscon{ width:1200px; padding:5px 0 50px; border-bottom:1px solid #e8e8e8; margin-bottom:30px; color:#999; font-size:14px; }
|
||||||
|
.sn-inner-pcon{text-indent:2em;}
|
||||||
|
.sn-inner-newscon img{ display:block; width:830px; margin:25px auto 5px;}
|
||||||
|
.sn-inner-psmall{ color:#999; font-size:12px; margin-bottom:15px;}
|
||||||
|
.sn-inner-imgp{ color:#000; text-align:center; margin-bottom:30px;}
|
||||||
|
a.sn-newslist-zan{ display:block; background:url(../images/zan.gif) 0 15px no-repeat; width:54px; height:28px; padding-left:12px; color:#999; }
|
||||||
|
a:hover.sn-newslist-zan{ background:url(../images/zan.gif) 0 -21px no-repeat; }
|
||||||
|
/* 留言 */
|
||||||
|
.sn-replybox{ margin-bottom:100px;}
|
||||||
|
.sn-reply-h2{ font-size:18px; font-weight:normal; color:#24366e; margin-bottom:6px;}
|
||||||
|
.sn-reply-form{ width:1200px;height:180px; border:1px solid #e8e8e8; -webkit-border-radius:3px; -moz-border-radius:3px; -o-border-radius:3px; border-radius:3px; background:#fff; margin-bottom:20px; }
|
||||||
|
.sn-reply-text{ width:1200px; height:130px; background:#fff; border:none; resize:none;}
|
||||||
|
.sn-reply-btnbox{border-top:1px solid #e8e8e8; height:48px;}
|
||||||
|
a.submit-btn{ display:block; color:#fff; text-align:center; font-size:14px; line-height:27px; width:79px; height:27px; -webkit-border-radius:3px; -moz-border-radius:3px; -o-border-radius:3px; border-radius:3px; background:#24366e; margin:8px 0 0 10px;}
|
||||||
|
a:hover.submit-btn{ color:#16275c; color:#fff;}
|
||||||
|
.sn-comment-h2{ color:#999; font-size:16px; font-weight:normal; border-bottom:1px solid #e8e8e8; padding-bottom:5px;}
|
||||||
|
.sn-reply-userpic{ height:65px; margin-right:15px;}
|
||||||
|
.sn-reply-userpic img{ width:40px; height:40px;-webkit-border-radius:50px; -moz-border-radius:50px; -o-border-radius:50px; border-radius:50px;}
|
||||||
|
a.sn-reply-zan{ display:block; background:url(../images/zan.gif) 0 4px no-repeat; width:54px; height:16px; padding-left:12px; color:#999; }
|
||||||
|
a:hover.sn-reply-zan{ background:url(../images/zan.gif) 0 -32px no-repeat; }
|
||||||
|
.sn-comment-listbox{ padding:23px 0; width:1200px;border-bottom:1px solid #e8e8e8;}
|
||||||
|
a.sn-reply-username { color:#24366e; margin-right:15px; }
|
||||||
|
.sn-reply-usertxt{ width:1145px; font-size:14px; }
|
||||||
|
.sn-reply-more{ width:1200px; height:25px; background:#ddd; text-align:center; line-height:25px;}
|
||||||
|
|
||||||
|
/*用户图像*/
|
||||||
|
.topnav_login_list{ border:1px solid #eaeaea; background:#fff; padding-left:10px; padding-bottom:10px; padding-top:8px; width:60px; left:-7px; position:absolute; z-index:9999; line-height:2; box-shadow: 0px 2px 8px rgba(146, 153, 169, 0.5); margin-top: 1px;}
|
||||||
|
.topnav_login_list a{color:#269ac9;}
|
||||||
|
.topnav_login_list li{ }
|
||||||
|
.homepageProfileMenuIcon {background:url(../images/nav_icon.png) 30px -155px no-repeat; width:65px; height:54px; position:relative; display:inline-block; line-height:0;}
|
||||||
|
.homepageLeft {width:240px; float:left; margin-right:10px; margin-bottom:10px;}
|
||||||
|
.none {display: none;}
|
||||||
|
.user-img,.user-img img{ margin-right:10px; -moz-border-radius: 50px; -webkit-border-radius: 50px;border-radius: 50px; display:block; width:40px; height:40px;}
|
||||||
|
.ml60{ margin-left:60px;}
|
||||||
|
.user-img img{border:2px solid #e6473b; }
|
||||||
|
.user-img img:hover{border:2px solid #29156f;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|