87 lines
1.9 KiB
Plaintext
87 lines
1.9 KiB
Plaintext
|
<link href="/assets/admin/hnc_cancer_predict.css" media="print" rel="stylesheet">
|
||
|
<link href="/assets/admin/hnc_cancer_predict.css" media="screen" rel="stylesheet">
|
||
|
<% if !@results[0].nil? %>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th><%=((I18n.locale=="en") ? 'submit time' : '提交時間') %></th>
|
||
|
<% @results[0].names.each do |key,name|%>
|
||
|
<th><%=name[I18n.locale.to_s].to_s.html_safe %></th>
|
||
|
<%end%>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @key_len = @results[0].names.length %>
|
||
|
<% @results.each do |result| %>
|
||
|
<% if result.names.length != @key_len %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th><%=((I18n.locale=="en") ? 'submit time' : '提交時間') %></th>
|
||
|
<% result.names.each do |key,name|%>
|
||
|
<th><%=name[I18n.locale.to_s].to_s.html_safe %></th>
|
||
|
<%end%>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% end %>
|
||
|
<tr>
|
||
|
<td><%= result.created_at %></td>
|
||
|
<% result.result.each do |key,value| %>
|
||
|
<% @key_len %>
|
||
|
<% if key != "locale" %>
|
||
|
<% if (result.values[key][I18n.locale.to_s].length == 0 rescue true) %>
|
||
|
<td><%= value.to_s %></td>
|
||
|
<% else %>
|
||
|
<td><% v = result.values[key][I18n.locale.to_s][value.to_i-1] rescue nil %><%= v.nil? ? value : v %></td>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
<%end%>
|
||
|
</tr>
|
||
|
<%end%>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<% end %>
|
||
|
<%=@pagination.html_safe%>
|
||
|
<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>
|