2014-01-11 09:08:15 +08:00
|
|
|
<style type="text/css">
|
|
|
|
#main *{
|
|
|
|
/*border: 1px solid #eeeeee;*/
|
|
|
|
}
|
|
|
|
#content {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
#top_field {
|
|
|
|
max-width: 100%;
|
|
|
|
margin: 20px auto;
|
|
|
|
}
|
|
|
|
.line_block{
|
|
|
|
display: inline-block;
|
|
|
|
width: 49%;
|
|
|
|
margin: 10px auto;
|
|
|
|
padding: 0px 2%;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
-box-sizing: border-box;
|
|
|
|
}
|
|
|
|
.resource_sum{
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
.line_block p{
|
|
|
|
margin: 1em 0px auto;
|
2014-01-13 16:29:02 +08:00
|
|
|
/*background: linear-gradient(#ffffff, #e5e5e5) repeat scroll 0% 0% transparent;*/
|
2014-01-11 09:08:15 +08:00
|
|
|
border-bottom: 1px solid rgb(226,226,226);
|
|
|
|
border-top-left-radius : 6px;
|
|
|
|
border-top-right-radius : 6px;
|
|
|
|
box-shadow: 0px 1px 0px white, 0px, -1px 0px rgb(245,245,245);
|
|
|
|
height: 39px;
|
|
|
|
font-size: 15px;
|
|
|
|
line-height: 26px;
|
|
|
|
height: 30px;
|
|
|
|
font-size: 1.5em;
|
|
|
|
padding-left: 4%;
|
2014-01-13 16:29:02 +08:00
|
|
|
border-bottom: 1px solid rgb(21, 165, 200);
|
2014-01-11 09:08:15 +08:00
|
|
|
}
|
|
|
|
.resource_sum, .line_blo{
|
|
|
|
border: 1px solid #eeeeee;
|
|
|
|
}
|
|
|
|
.line_block table{
|
|
|
|
border: 1px solid #eeeeee;
|
|
|
|
}
|
|
|
|
.line_block table thead tr{
|
2014-01-13 16:29:02 +08:00
|
|
|
/*background-color: #d1d1d1;*/
|
2014-01-11 09:08:15 +08:00
|
|
|
}
|
|
|
|
.line_block table td{
|
|
|
|
height: 2em;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<% content_for :top_field do%>
|
|
|
|
<div style="margin: 10px 5%;">
|
|
|
|
<%= form_for('#', :remote => true) do |f| %>
|
|
|
|
<%= f.text_field :name, size:"100", placeholder:'请输入要搜索的关键字' %>
|
|
|
|
<%= f.submit value:"search", class:"whiteButton m3p10 h30"%>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="resource_sum">
|
2014-01-13 20:46:27 +08:00
|
|
|
<% @attach_array.each do |c|%>
|
2014-01-11 09:08:15 +08:00
|
|
|
<div class="line_block">
|
2014-01-13 20:46:27 +08:00
|
|
|
<p>
|
|
|
|
</p>
|
2014-01-11 09:08:15 +08:00
|
|
|
<table style="width: 100%">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>文件名</td>
|
|
|
|
<td>下载次数</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2014-01-13 20:46:27 +08:00
|
|
|
<% c.each do |c1|%>
|
2014-01-11 09:08:15 +08:00
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
2014-01-13 20:46:27 +08:00
|
|
|
<td style="width:62%;"><%= link_to_attachment c1 %></td>
|
|
|
|
<td style="width:38%;"><%= c1.downloads %> </td>
|
2014-01-11 09:08:15 +08:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<% reset_cycle; end %>
|
|
|
|
</div>
|