2015-01-19 14:07:31 +08:00
|
|
|
<% @nav_dispaly_home_path_label = 1
|
|
|
|
@nav_dispaly_main_course_label = 1
|
|
|
|
@nav_dispaly_main_project_label = 1
|
|
|
|
@nav_dispaly_main_contest_label = 1 %>
|
|
|
|
<% @nav_dispaly_forum_label = 1%>
|
2015-01-30 12:07:07 +08:00
|
|
|
<style type="text/css">
|
|
|
|
body {
|
|
|
|
color: #333333;
|
|
|
|
font-family: lucida grande, Lucida Sans Unicode, Arial, Helvetica, sans-serif;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
table {border:2px solid !important;
|
|
|
|
}
|
|
|
|
tr {border:2px solid !important;
|
|
|
|
}
|
|
|
|
td {border:2px solid !important;
|
|
|
|
}
|
|
|
|
</style>
|
2015-01-19 14:07:31 +08:00
|
|
|
<div id='tool'>
|
|
|
|
|
2015-01-22 16:45:18 +08:00
|
|
|
<div id='tool-bar' style="float: left">
|
|
|
|
<%=link_to l(:label_log_detail), system_log_path %> |
|
|
|
|
<%=link_to l(:label_log_delete_log), system_log_clear_path, {:confirm => l(:label_log_delete_confirm),:day=>params[:day].nil? ? Time.now.strftime("%Y-%m-%d") : params[:day]}%> |
|
|
|
|
<%=link_to l(:label_log_access_analysis), system_log_access_analysis_path %> |
|
|
|
|
<%=link_to l(:label_log_time_analysis), system_log_time_analysis_path %> |
|
|
|
|
<%=link_to_function l(:label_log_refresh), 'redo()' %>
|
|
|
|
</div>
|
|
|
|
<div id="search-bar" style="float: right">
|
|
|
|
|
|
|
|
<form action="/system_log" style="float:right" >
|
|
|
|
<p>
|
|
|
|
<%= l(:label_log_key) %><input type="text" name="search" size="36" value="<%= params[:search] %>" maxlength="100" style="margin-right: 12px" />
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%=l(:label_log_time)%><input name="day" type="text" id="day" size="36" value="<%= params[:day].nil? ? Time.now.strftime("%Y-%m-%d") : params[:day] %>" maxlength="100" readonly="true" onclick="HS_setDate(this)"/>
|
|
|
|
<input type="submit" value="<%=l(:label_search_member)%>" size="30" id="search"/>
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
|
2015-01-19 14:07:31 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-01-22 16:45:18 +08:00
|
|
|
<div style="clear: both"> </div>
|
|
|
|
<div>
|
|
|
|
<%= paginate @logs unless @logs.empty? %><br/>
|
2015-01-19 14:07:31 +08:00
|
|
|
|
2015-01-22 16:45:18 +08:00
|
|
|
<% unless @logs.empty? %>
|
2015-01-30 12:07:07 +08:00
|
|
|
<table >
|
2015-01-22 16:45:18 +08:00
|
|
|
<caption font-size="30px"><%=l(:label_log_detail)%></caption>
|
2015-01-19 14:07:31 +08:00
|
|
|
<% @logs.each do |log| %>
|
|
|
|
<% unless log.blank? %>
|
2015-01-22 16:45:18 +08:00
|
|
|
<tr><td><%= raw log %></td></tr>
|
2015-01-19 14:07:31 +08:00
|
|
|
<% end %>
|
|
|
|
<%end %>
|
2015-01-22 16:45:18 +08:00
|
|
|
</table>
|
|
|
|
<%end %>
|
|
|
|
<%= paginate @logs unless @logs.empty? %>
|
|
|
|
</div>
|