Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
6a488035 | 10 | {* this div is being used to apply special css *} |
b69e578b CW |
11 | {if $section eq 1} |
12 | <div class="crm-block crm-content-block crm-report-layoutGraph-form-block"> | |
13 | {*include the graph*} | |
14 | {include file="CRM/Report/Form/Layout/Graph.tpl"} | |
15 | </div> | |
16 | {elseif $section eq 2} | |
17 | <div class="crm-block crm-content-block crm-report-layoutTable-form-block"> | |
18 | {*include the table layout*} | |
19 | {include file="CRM/Report/Form/Layout/Table.tpl"} | |
6a488035 | 20 | </div> |
b69e578b CW |
21 | {else} |
22 | {if $criteriaForm OR $instanceForm OR $instanceFormError} | |
6a488035 | 23 | <div class="crm-block crm-form-block crm-report-field-form-block"> |
b69e578b | 24 | {include file="CRM/Report/Form/Fields.tpl"} |
6a488035 | 25 | </div> |
b69e578b | 26 | {/if} |
6a488035 | 27 | |
b69e578b CW |
28 | <div class="crm-block crm-content-block crm-report-form-block"> |
29 | {*include actions*} | |
30 | {include file="CRM/Report/Form/Actions.tpl"} | |
6a488035 | 31 | |
b69e578b CW |
32 | {*Statistics at the Top of the page*} |
33 | {include file="CRM/Report/Form/Statistics.tpl" top=true} | |
6a488035 | 34 | |
b69e578b CW |
35 | {*include the graph*} |
36 | {include file="CRM/Report/Form/Layout/Graph.tpl"} | |
6a488035 | 37 | |
b69e578b CW |
38 | {*include the table layout*} |
39 | {include file="CRM/Report/Form/Layout/Table.tpl"} | |
40 | <br /> | |
41 | {*Statistics at the bottom of the page*} | |
42 | {include file="CRM/Report/Form/Statistics.tpl" bottom=true} | |
6a488035 | 43 | |
b69e578b CW |
44 | {include file="CRM/Report/Form/ErrorMessage.tpl"} |
45 | </div> | |
46 | {/if} | |
47 | {if $outputMode == 'print'} | |
48 | <script type="text/javascript"> | |
49 | window.print(); | |
50 | </script> | |
51 | {/if} |