From a8331ebede8a4b3ef0415dc122bff9e8f6650870 Mon Sep 17 00:00:00 2001 From: Shane <shane.sammons@gmail.com> Date: Mon, 5 Mar 2012 22:16:09 -0500 Subject: [PATCH 1/2] Added a do not print SQL print link to reports Content-Type: text/plain; charset="utf-8" --- .../en/modules/reports/guided_reports_start.tt | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index caf27f1..2c86ce0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -19,6 +19,11 @@ <style type="text/css"> #sql { width: 90%; height: 9em;} </style> +<style type="text/css" media="print"> +/* ### FIX ME, PUT ME IN MAIN CSS IF USED OFTEN! */ +.noprint { +display: none; +} <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> @@ -493,6 +498,7 @@ canned reports and writing custom SQL reports.</p> [% END %] [% IF ( execute ) %] +<a href="javascript:window.print()" OnClick="document.getElementById('sql_output').className += ' noprint';" class="noprint">Print w/o SQL</a> <h1>[% name %]</h1> [% IF ( notes ) %]<p>[% notes %]</p>[% END %] [% IF ( unlimited_total ) %]<p>Total number of rows matching the (unlimited) query is [% unlimited_total %].</p>[% END %] -- 1.7.0.4