Sha256: 33fa991bb239f51b837466f43d0df7b3c308c590278014cbad11df8efcc9dbd2

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 Bytes

Contents

<!-- TODO move these to the head -->
<%= stylesheet_link_tag "old_sql/jqgrid/ui.jqgrid.css" %>
<%= javascript_include_tag "old_sql/jqgrid/jquery.jqGrid.min.js" %>
<%= javascript_include_tag "old_sql/jqgrid/ui.multiselect.js" %>

<script>
jQuery(document).ready(function(){
  jQuery("#rowed1").jqGrid({
    url:"http://<%=@host%>:<%=@port%>/sql/reports/query.json/?report=<%=@report_name%>&report_sql=<%=@report_sql%>&generation=<%=@generation%>&start_date=<%=@start_date%>&end_date=<%=@end_date%>",
  	datatype: "json",
  	pager: false,
    colNames: <%=jqgrid_col_names%>,
    colModel: <%=jqgrid_col_model%>,
    rowNum:25,
    rowList:[10,20,30],
    width: 777,
	height: 650,
    caption: "<%=@reports[@report_name]['value']%> Report"
  });
});
</script>

<table id="rowed1"></table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
old_sql-0.49.0 app/views/old_sql/report/datagrid.html.erb
old_sql-0.48.0 app/views/old_sql/report/datagrid.html.erb