d3fce41e60
no functional change here, but familiar Rails users will see view files in the locations they expect. this also slightly simplifies controller code there is one attendant change in the wiki at `rails_3/A1-SQL-Injection-Interpolation.md` that I'm happy to make after the PR is merged.
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
<form action="">
|
|
Search by IP: <input type="text" name="ip"><br />
|
|
<input type="checkbox" value="" name="field[ip_address]"> IP Address<br />
|
|
<input type="checkbox" value="" name="field[referrer]"> Referrer<br />
|
|
<input type="checkbox" value="" name="field[user_agent]"> User Agent
|
|
</form>
|
|
|
|
<div id="dt_example" class="example_alt_pagination">
|
|
<table class="table table-striped table-hover table-bordered pull-left" id="data-table">
|
|
<thead>
|
|
<tr>
|
|
<%
|
|
count = (params[:field] ? params[:field].count : 3)
|
|
count.times do %>
|
|
<td> </td>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @analytics.each do |a|%>
|
|
<tr>
|
|
<% a.attributes.each do |k,v| %>
|
|
<td><%= v %></td>
|
|
<% end %>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<div id="editAcct" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel1" aria-hidden="true">
|
|
</div>
|
|
<div class="clearfix">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function dataTablePagination(){
|
|
$('#data-table').dataTable({
|
|
"sPaginationType": "full_numbers"
|
|
});
|
|
};
|
|
|
|
$(document).ready(dataTablePagination());
|
|
</script> |