Merge pull request #5687 from relldoesphp/ckeditor_fix
[civicrm-core.git] / templates / CRM / Report / Form.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
6a488035
TO
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*}
46065582 26{if $outputMode neq 'print'}
7f7fa13a 27{/if}
6a488035 28{* this div is being used to apply special css *}
b69e578b
CW
29{if $section eq 1}
30 <div class="crm-block crm-content-block crm-report-layoutGraph-form-block">
31 {*include the graph*}
32 {include file="CRM/Report/Form/Layout/Graph.tpl"}
33 </div>
34{elseif $section eq 2}
35 <div class="crm-block crm-content-block crm-report-layoutTable-form-block">
36 {*include the table layout*}
37 {include file="CRM/Report/Form/Layout/Table.tpl"}
6a488035 38 </div>
b69e578b
CW
39{else}
40 {if $criteriaForm OR $instanceForm OR $instanceFormError}
6a488035 41 <div class="crm-block crm-form-block crm-report-field-form-block">
b69e578b 42 {include file="CRM/Report/Form/Fields.tpl"}
6a488035 43 </div>
b69e578b 44 {/if}
6a488035 45
b69e578b
CW
46 <div class="crm-block crm-content-block crm-report-form-block">
47 {*include actions*}
48 {include file="CRM/Report/Form/Actions.tpl"}
6a488035 49
b69e578b
CW
50 {*Statistics at the Top of the page*}
51 {include file="CRM/Report/Form/Statistics.tpl" top=true}
6a488035 52
b69e578b
CW
53 {*include the graph*}
54 {include file="CRM/Report/Form/Layout/Graph.tpl"}
6a488035 55
b69e578b
CW
56 {*include the table layout*}
57 {include file="CRM/Report/Form/Layout/Table.tpl"}
58 <br />
59 {*Statistics at the bottom of the page*}
60 {include file="CRM/Report/Form/Statistics.tpl" bottom=true}
6a488035 61
b69e578b
CW
62 {include file="CRM/Report/Form/ErrorMessage.tpl"}
63 </div>
64{/if}
65{if $outputMode == 'print'}
66 <script type="text/javascript">
67 window.print();
68 </script>
69{/if}