parent
33df4327b5
commit
8d788fac45
@ -1,46 +1,34 @@
|
||||
<!--encoding: utf-8 -->
|
||||
<style type="text/css">
|
||||
#main *{
|
||||
/*border: 1px solid #eeeeee;*/
|
||||
}
|
||||
#content {
|
||||
max-width: 100%;
|
||||
}
|
||||
#top_field {
|
||||
max-width: 100%;
|
||||
margin: 20px auto;
|
||||
}
|
||||
</style>
|
||||
<% content_for :top_field do%>
|
||||
<div style="margin: 10px 5%;">
|
||||
<%= form_tag( search_stores_path, method: 'get') do %>
|
||||
<%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :value => params[:name] , :class => 'blueinputbar'%>
|
||||
<%= submit_tag l(:label_search), class:"whiteButton m3p10 h30"%>
|
||||
<%= submit_tag l(:label_search), :class => "enterprise"%>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% @searched_attach.each do |result| %>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
<span style="margin-left: 4px;"><%= link_to_attachment result, {:text => "下载"}%></span>
|
||||
</DIV>
|
||||
</div>
|
||||
<%= result.description %>
|
||||
<DIV class=c9>所属分类:<%=result_come_from result%>
|
||||
<div class="c9">所属分类:<%=result_come_from result%>
|
||||
上传时间:<%= format_time(result.created_on) %>
|
||||
</DIV>
|
||||
<SPAN class="gray">下载:<%= result.downloads%>
|
||||
</div>
|
||||
<span class="gray">下载:<%= result.downloads%>
|
||||
| 大小:<%= number_to_human_size(result.filesize) %>
|
||||
| 共享者:<A class="gray" ><%= link_to result.author%></A></SPAN>
|
||||
<DIV style="DISPLAY: none" id=f23680389></DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
</TBODY>
|
||||
</TABLE>
|
||||
<% end %>
|
||||
| 共享者:<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>
|
||||
|
Loading…
Reference in new issue