modified searching result for stores

This commit is contained in:
nieguanghui 2014-01-14 16:18:48 +08:00
parent 997b90c3b2
commit 6a7a6b1be6
2 changed files with 39 additions and 2 deletions

View File

@ -74,7 +74,7 @@
<% @attach_array.each do |k|%>
<div class="line_block">
<p>
<%=@str_arr.shift%>
<%= @str_arr.shift %>
</p>
<table style="width: 100%">
<thead>

View File

@ -1 +1,38 @@
<%= @searched_attach.to_s %>
<% 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:'请输入要搜索的关键字' %>
<%= submit_tag l(:label_search), class:"whiteButton m3p10 h30"%>
<% end %>
</div>
<% end %>
<% @searched_attach.each do |result| %>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD class=r1>
<DIV class=cb><!-- <IMG alt=Exe文档 align=absMiddle
src="http://www.sinaimg.cn/pfp/ask/images/exe.gif" width=16 height=14> --><A
class=f16 href="http://ishare.iask.sina.com.cn/f/23680389.html"
target=_blank><SPAN style="COLOR: #c03"><%= result.filename %></SPAN></A> </DIV><%= result.description %> <!-- <SPAN
style="COLOR: #c03">Java</SPAN> ... -->
<DIV class=c9>所属分类:<A class=c9ul
href="http://ishare.iask.sina.com.cn/c/1822.html">IT资料</A>&nbsp;&gt;&nbsp;<A
class=c9ul
href="http://ishare.iask.sina.com.cn/c/1909.html">常用软件</A>&nbsp;&gt;&nbsp;<A
class=c9ul href="http://ishare.iask.sina.com.cn/c/1918.html">下载软件</A>
上传时间:<%= format_time(result.created_on) %></DIV><SPAN style="WIDTH: 50em"><SPAN
class=gray>星级:<IMG src="http://www.sinaimg.cn/pfp/ishare/gx_xing.gif"><IMG
src="http://www.sinaimg.cn/pfp/ishare/gx_xing.gif"><IMG
src="http://www.sinaimg.cn/pfp/ishare/gx_xing.gif"><IMG
src="http://www.sinaimg.cn/pfp/ishare/gx_xing.gif"> | 下载:<%= result.downloads%> | 大小:<%= number_to_human_size(result.filesize) %>
| 共享者:<A class=gray
href="http://iask.sina.com.cn/u/1280876123/ish"><%= result.author%></A></SPAN>
<SPAN class=pl10></SPAN></SPAN>
<DIV style="DISPLAY: none" id=f23680389></DIV></TD></TR></TBODY></TABLE>
<% end %>
<!-- <%= @searched_attach.to_s %> -->