Sha256: 98c2b1d84766bd9ec205b2d9587d4ec4babf6e9a8fc9614cac10026f8f932d19

Contents?: true

Size: 1.44 KB

Versions: 48

Compression:

Stored size: 1.44 KB

Contents

<% if @report.nil? %>
	The report has no data for this date range.
<% else %>
<script>
	print();
</script>

<style>
body {
	background-color: White;
	font-family:Verdana, Geneva, sans-serif;
	font-size:13px;
}
#report-name {
	font-weight:bold;
}
table {
	border-collapse: collapse;
}
td {
	border: 1px solid #000000;
}
.data {
	text-align:center; 
	vertical-align:top
}
th {
	border: 1px solid #000000;
	font-weight:normal;
}
</style>

<div class="print">
	<!-- DISPLAY FOR PRINTED PAGE -->
	
	<table border="0" style="margin-bottom:10px; border:0px;">
		<tr>
			<td colspan="3" style="border:0px;"><div id="report-name"><%=@desc%> Report</div></td>
		</tr>
		<tr>
			<td style="border:0px;">Start Date: <%=@start_date%></td>
			<td style="border:0px; padding-left:20px; padding-right:20px;">to</td>
			<td style="border:0px;">End Date: <%=@end_date%></td>
		</tr>
	</table>	

	<table border="1" cellspacing="5" cellpadding="0" width="700">
		<tr>
			<% @reports[@report_name]['fields'].each do |report_field| %>
				<td class="data"><%=report_field%></td>
			<% end %>
		</tr>
		
		<% @report[:rows].each do |row| %>
			<tr>
				<% first_cell=true %>
				<%row[:cell].each do |c|%>
					<% cleaned_cell = strip_html(c.to_s).gsub("\n","") %>
					<% if first_cell==true %>
						<td><%=cleaned_cell%></td>
					<% else %>
						<td class="data"><%=cleaned_cell%></td>
					<% end %>
					<% first_cell=false %>
				<%end%>
			</tr>
		<% end %>
	</table>
</div>
<% end %>

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
old_sql-1.65.0 app/views/old_sql/report/print.html.erb
old_sql-1.64.0 app/views/old_sql/report/print.html.erb
old_sql-1.63.0 app/views/old_sql/report/print.html.erb
old_sql-1.62.0 app/views/old_sql/report/print.html.erb
old_sql-1.61.0 app/views/old_sql/report/print.html.erb
old_sql-1.60.0 app/views/old_sql/report/print.html.erb
old_sql-1.59.0 app/views/old_sql/report/print.html.erb
old_sql-1.58.0 app/views/old_sql/report/print.html.erb
old_sql-1.57.0 app/views/old_sql/report/print.html.erb
old_sql-1.56.0 app/views/old_sql/report/print.html.erb
old_sql-1.55.0 app/views/old_sql/report/print.html.erb
old_sql-1.54.0 app/views/old_sql/report/print.html.erb
old_sql-1.53.0 app/views/old_sql/report/print.html.erb
old_sql-1.52.0 app/views/old_sql/report/print.html.erb
old_sql-1.51.0 app/views/old_sql/report/print.html.erb
old_sql-1.50.0 app/views/old_sql/report/print.html.erb
old_sql-1.49.0 app/views/old_sql/report/print.html.erb
old_sql-1.48.0 app/views/old_sql/report/print.html.erb
old_sql-1.47.0 app/views/old_sql/report/print.html.erb
old_sql-1.46.0 app/views/old_sql/report/print.html.erb