2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {if !$printOnly} {* NO print section starts *}
28 <div class="crm-report-criteria"> {* criteria section starts *}
29 <div id="mainTabContainer">
30 {*tab navigation bar*}
33 <li class="ui-corner-all">
34 <a title="{ts}Columns{/ts}" href="#report-tab-col-groups">{ts}Columns{/ts}</a>
38 <li class="ui-corner-all">
39 <a title="{ts}Grouping{/ts}" href="#report-tab-group-by-elements">{ts}Grouping{/ts}</a>
43 <li class="ui-corner-all">
44 <a title="{ts}Sorting{/ts}" href="#report-tab-order-by-elements">{ts}Sorting{/ts}</a>
48 <li class="ui-corner-all">
49 <a title="{ts}Display Options{/ts}" href="#report-tab-other-options">{ts}Display{/ts}</a>
53 <li class="ui-corner-all">
54 <a title="{ts}Filters{/ts}" href="#report-tab-set-filters">{ts}Filters{/ts}</a>
57 {if $instanceForm OR $instanceFormError}
58 <li id="tab_settings" class="ui-corner-all">
59 <a title="{ts}Title and Format{/ts}" href="#report-tab-format">{ts}Title and Format{/ts}</a>
61 <li class="ui-corner-all">
62 <a title="{ts}Email Delivery{/ts}" href="#report-tab-email">{ts}Email Delivery{/ts}</a>
64 <li class="ui-corner-all">
65 <a title="{ts}Access{/ts}" href="#report-tab-access">{ts}Access{/ts}</a>
71 {include file="CRM/Report/Form/Criteria.tpl"}
74 {if $instanceForm OR $instanceFormError}
75 {include file="CRM/Report/Form/Instance.tpl"}
77 </div> {* end mainTabContainer *}
79 {assign var=save value="_qf_"|cat:$form.formName|cat:"_submit_save"}
80 {assign var=next value="_qf_"|cat:$form.formName|cat:"_submit_next"}
81 <div class="crm-submit-buttons">
86 {if $mode neq 'template' && $form.$next}
90 </div> {* criteria section ends *}
94 <script type="text/javascript">
98 active: {/literal}{if $rows}false{else}0{/if}{literal}
100 // If a tab contains an error, open it
101 if ($('.civireport-criteria .crm-error', '#mainTabContainer').length) {
102 tabSettings.active = $('.civireport-criteria').index($('.civireport-criteria:has(".crm-error")')[0]);
104 $("#mainTabContainer").tabs(tabSettings);
110 {/if} {* NO print section ends *}