socialforge/app/views/stores/search.html.erb

35 lines
1.4 KiB
Plaintext
Raw Normal View History

2014-01-14 16:18:48 +08:00
<% content_for :top_field do%>
<div style="margin: 10px 5%;">
<%= form_tag( search_stores_path, method: 'post') do %>
2014-01-15 16:02:41 +08:00
<%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :value => params[:name] , :class => 'blueinputbar'%>
2014-01-15 20:38:58 +08:00
<%= submit_tag l(:label_search), :class => "enterprise"%>
2014-01-14 16:18:48 +08:00
<% end %>
</div>
<% end %>
<% @searched_attach.each do |result| %>
2014-01-15 20:38:58 +08:00
<table border=0 cellSpacing=0 cellPadding=0>
<tbody>
<tr>
<td class="r1">
<div class="cb">
<span style="color: #c03; font-size: 14px;"><%= result.filename %></span>
2014-01-15 20:05:13 +08:00
<span style="margin-left: 4px;"><%= link_to_attachment result, {:text => "下载"}%></span>
2014-01-15 20:38:58 +08:00
</div>
2014-01-15 20:05:13 +08:00
<%= result.description %>
2014-01-15 20:38:58 +08:00
<div class="c9">所属分类:<%=result_come_from result%>
上传时间:<%= format_time(result.created_on) %>
</div>
<span class="gray">下载:<%= result.downloads%>
2014-01-15 20:05:13 +08:00
| 大小:<%= number_to_human_size(result.filesize) %>
2014-01-15 20:38:58 +08:00
| 共享者:<a class="gray" ><%= link_to result.author%></a></span>
<div style="display: none"></div>
</td>
</tr>
</tbody>
</table>
<% end %>
<div class="pagination"><%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %></div>