security/core#16 - Smarty - Fix XSS in crmMoney plugin
[civicrm-core.git] / templates / CRM / Report / Form.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
fee14197 3 | CiviCRM version 5 |
6a488035 4 +--------------------------------------------------------------------+
6b83d5bd 5 | Copyright CiviCRM LLC (c) 2004-2019 |
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*}
6a488035 26{* this div is being used to apply special css *}
b69e578b
CW
27{if $section eq 1}
28 <div class="crm-block crm-content-block crm-report-layoutGraph-form-block">
29 {*include the graph*}
30 {include file="CRM/Report/Form/Layout/Graph.tpl"}
31 </div>
32{elseif $section eq 2}
33 <div class="crm-block crm-content-block crm-report-layoutTable-form-block">
34 {*include the table layout*}
35 {include file="CRM/Report/Form/Layout/Table.tpl"}
6a488035 36 </div>
b69e578b
CW
37{else}
38 {if $criteriaForm OR $instanceForm OR $instanceFormError}
6a488035 39 <div class="crm-block crm-form-block crm-report-field-form-block">
b69e578b 40 {include file="CRM/Report/Form/Fields.tpl"}
6a488035 41 </div>
b69e578b 42 {/if}
6a488035 43
b69e578b
CW
44 <div class="crm-block crm-content-block crm-report-form-block">
45 {*include actions*}
46 {include file="CRM/Report/Form/Actions.tpl"}
6a488035 47
b69e578b
CW
48 {*Statistics at the Top of the page*}
49 {include file="CRM/Report/Form/Statistics.tpl" top=true}
6a488035 50
b69e578b
CW
51 {*include the graph*}
52 {include file="CRM/Report/Form/Layout/Graph.tpl"}
6a488035 53
b69e578b
CW
54 {*include the table layout*}
55 {include file="CRM/Report/Form/Layout/Table.tpl"}
56 <br />
57 {*Statistics at the bottom of the page*}
58 {include file="CRM/Report/Form/Statistics.tpl" bottom=true}
6a488035 59
b69e578b
CW
60 {include file="CRM/Report/Form/ErrorMessage.tpl"}
61 </div>
62{/if}
63{if $outputMode == 'print'}
64 <script type="text/javascript">
65 window.print();
66 </script>
67{/if}