2020-02-03 08:47:49 +00:00
|
|
|
<link href="/assets/admin/cancerpredict.css" media="print" rel="stylesheet">
|
|
|
|
<link href="/assets/admin/cancerpredict.css" media="screen" rel="stylesheet">
|
2019-12-11 15:59:17 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-12-27 05:49:20 +00:00
|
|
|
<% if !@results[0].nil? %>
|
2020-01-28 10:24:52 +00:00
|
|
|
<th><%=((I18n.locale=="en") ? 'submit time' : '提交時間') %></th>
|
2019-12-27 05:49:20 +00:00
|
|
|
<% @results[0].names.each do |key,name|%>
|
|
|
|
<th><%=name[I18n.locale.to_s].to_s.html_safe %></th>
|
|
|
|
<%end%>
|
2019-12-11 15:59:17 +00:00
|
|
|
<%end%>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-12-27 05:49:20 +00:00
|
|
|
<% @key_len = @results[0].names.length %>
|
2019-12-11 15:59:17 +00:00
|
|
|
<% @results.each do |result| %>
|
2019-12-27 05:49:20 +00:00
|
|
|
<% if result.names.length != @key_len %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-01-28 10:24:52 +00:00
|
|
|
<th><%=((I18n.locale=="en") ? 'submit time' : '提交時間') %></th>
|
2019-12-27 05:49:20 +00:00
|
|
|
<% result.names.each do |key,name|%>
|
|
|
|
<th><%=name[I18n.locale.to_s].to_s.html_safe %></th>
|
|
|
|
<%end%>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% end %>
|
2019-12-11 15:59:17 +00:00
|
|
|
<tr>
|
2020-01-28 10:24:52 +00:00
|
|
|
<td><%= result.created_at %></td>
|
2019-12-27 05:49:20 +00:00
|
|
|
<% result.result.each do |key,value| %>
|
|
|
|
<% @key_len %>
|
2019-12-11 15:59:17 +00:00
|
|
|
<% if key != "locale" %>
|
2019-12-27 05:49:20 +00:00
|
|
|
<% if result.values[key][I18n.locale.to_s].length == 0 %>
|
|
|
|
<td><%= value.to_s %></td>
|
2019-12-11 15:59:17 +00:00
|
|
|
<% else %>
|
2019-12-27 05:49:20 +00:00
|
|
|
<td><%= result.values[key][I18n.locale.to_s][value.to_i-1] rescue value %></td>
|
2019-12-11 15:59:17 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%end%>
|
|
|
|
</tr>
|
|
|
|
<%end%>
|
|
|
|
</tbody>
|
2019-12-27 05:49:20 +00:00
|
|
|
</table>
|
2020-02-03 08:47:49 +00:00
|
|
|
<%=@pagination.html_safe%>
|
2019-12-11 15:59:17 +00:00
|
|
|
<style type="text/css">
|
|
|
|
thead > tr > th{
|
|
|
|
border:1px solid;
|
|
|
|
background: bisque;
|
|
|
|
}
|
|
|
|
tbody{
|
|
|
|
background:white;
|
|
|
|
}
|
|
|
|
tbody > tr > td{
|
|
|
|
border:1px solid;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.show_li,.show_li *{
|
|
|
|
list-style:none;
|
|
|
|
color:balck;
|
|
|
|
}
|
|
|
|
.show_li ul{
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
#clicktosee{
|
|
|
|
color:blue;
|
|
|
|
cursor:pointer;
|
|
|
|
}
|
|
|
|
.checkbox{
|
|
|
|
left: 50%;
|
|
|
|
position: absolute;
|
|
|
|
transform: translate(-50%, -50%) !important;
|
|
|
|
top: 50%;
|
|
|
|
}
|
|
|
|
#updatebtn{
|
|
|
|
margin-top: 1em;
|
|
|
|
position: fixed;
|
|
|
|
right: 1em;
|
|
|
|
background-color: rgb(210, 105, 0);
|
|
|
|
color: white;
|
|
|
|
border: 0em;
|
|
|
|
padding: 0.125em 0.5em;
|
|
|
|
border-radius: 0.5em;
|
|
|
|
}
|
|
|
|
</style>
|