First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
67
sites/all/modules/civicrm/templates/CRM/Report/Form.tpl
Normal file
67
sites/all/modules/civicrm/templates/CRM/Report/Form.tpl
Normal file
|
@ -0,0 +1,67 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this div is being used to apply special css *}
|
||||
{if $section eq 1}
|
||||
<div class="crm-block crm-content-block crm-report-layoutGraph-form-block">
|
||||
{*include the graph*}
|
||||
{include file="CRM/Report/Form/Layout/Graph.tpl"}
|
||||
</div>
|
||||
{elseif $section eq 2}
|
||||
<div class="crm-block crm-content-block crm-report-layoutTable-form-block">
|
||||
{*include the table layout*}
|
||||
{include file="CRM/Report/Form/Layout/Table.tpl"}
|
||||
</div>
|
||||
{else}
|
||||
{if $criteriaForm OR $instanceForm OR $instanceFormError}
|
||||
<div class="crm-block crm-form-block crm-report-field-form-block">
|
||||
{include file="CRM/Report/Form/Fields.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-block crm-content-block crm-report-form-block">
|
||||
{*include actions*}
|
||||
{include file="CRM/Report/Form/Actions.tpl"}
|
||||
|
||||
{*Statistics at the Top of the page*}
|
||||
{include file="CRM/Report/Form/Statistics.tpl" top=true}
|
||||
|
||||
{*include the graph*}
|
||||
{include file="CRM/Report/Form/Layout/Graph.tpl"}
|
||||
|
||||
{*include the table layout*}
|
||||
{include file="CRM/Report/Form/Layout/Table.tpl"}
|
||||
<br />
|
||||
{*Statistics at the bottom of the page*}
|
||||
{include file="CRM/Report/Form/Statistics.tpl" bottom=true}
|
||||
|
||||
{include file="CRM/Report/Form/ErrorMessage.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
{if $outputMode == 'print'}
|
||||
<script type="text/javascript">
|
||||
window.print();
|
||||
</script>
|
||||
{/if}
|
|
@ -0,0 +1,96 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if !$printOnly} {* NO print section starts *}
|
||||
|
||||
{* build the print pdf buttons *}
|
||||
<div class="crm-tasks">
|
||||
{assign var=group value="_qf_"|cat:$form.formName|cat:"_submit_group"}
|
||||
{assign var=chart value="_qf_"|cat:$form.formName|cat:"_submit_chart"}
|
||||
<table style="border:0;">
|
||||
<tr>
|
||||
<td>
|
||||
<table class="form-layout-compressed">
|
||||
<tr>
|
||||
{include file="CRM/common/tasks.tpl" location="botton"}
|
||||
{if $instanceUrl}
|
||||
<td> » <a href="{$instanceUrl}">{ts}Existing report(s) from this template{/ts}</a></td>
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table class="form-layout-compressed" align="right">
|
||||
{if $chartSupported}
|
||||
<tr>
|
||||
<td>{$form.charts.html|crmAddClass:big}</td>
|
||||
<td align="right">{$form.$chart.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $form.groups}
|
||||
<tr>
|
||||
<td>
|
||||
{$form.groups.html}{$form.$group.html}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
(function($) {
|
||||
$('#groups').val('').change(function() {
|
||||
CRM.confirm({
|
||||
message: ts({/literal}'{ts escape='js' 1='<em>%1</em>'}Add all contacts to %1 group?{/ts}'{literal}, {1: $('option:selected', '#groups').text()})
|
||||
})
|
||||
.on({
|
||||
'crmConfirm:yes': function() {
|
||||
$('#groups').siblings(':submit').click();
|
||||
},
|
||||
'crmConfirm:no dialogclose': function() {
|
||||
$('#groups').select2('val', '');
|
||||
}
|
||||
});
|
||||
});
|
||||
})(CRM.$);
|
||||
{/literal}
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
// Disable print/pdf output of charts
|
||||
$('select[name=charts]', 'form.crm-report-form').change(function() {
|
||||
var viewType = $(this).val(),
|
||||
flashChartType = '{/literal}{if $chartType}{$chartType}{else}{/if}{literal}';
|
||||
$('#_qf_Summary_submit_pdf, #_qf_Summary_submit_print').prop('disabled', (viewType && flashChartType != viewType));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{/if} {* NO print section ends *}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,91 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
{* Cover sheet for walklist survey *}
|
||||
|
||||
<h2>{ts 1=$reportTitle}Cover Sheet for %1{/ts}</h2>
|
||||
|
||||
{* print survey result set option value and label *}
|
||||
{if $surveyResultFields}
|
||||
|
||||
<h4>{ts}Result Set{/ts}</h4>
|
||||
<div id='survey_result_fields'>
|
||||
<table class="report-layout">
|
||||
{foreach from=$surveyResultFields key=surveyId item=result}
|
||||
<tr><th scope="row">{ts 1=$result.title}Survey Title = %1{/ts}</th></tr>
|
||||
<tr><td>
|
||||
<div id='survey_result_fields_options'>
|
||||
<table class="report-layout">
|
||||
{foreach from=$result.options key=value item=label}
|
||||
<tr><td>{$value} = {$label}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{/if }
|
||||
|
||||
|
||||
{* print survey response set option value and label *}
|
||||
{if $surveyResponseFields}
|
||||
|
||||
<h4>{ts}Response Codes{/ts}</h4>
|
||||
<div id='survey_response_fields'>
|
||||
<table class="report-layout">
|
||||
|
||||
{assign var=resFldCnt value=1}
|
||||
{foreach from=$surveyResponseFields key=id item=responseField}
|
||||
|
||||
<tr><th>{ts 1=$resFldCnt 2=$responseField.title}Q%1 = %2{/ts}</th></tr>
|
||||
|
||||
{if $responseField.options}
|
||||
<tr><td>
|
||||
<div id='survey_response_fields_codes'>
|
||||
<table class="report-layout">
|
||||
{foreach from=$responseField.options key=value item=label}
|
||||
<tr><td>{$value} = {$label}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{* clean separation of each response question *}
|
||||
<tr><td><br /></td></tr>
|
||||
|
||||
{assign var=resFldCnt value=`$resFldCnt+1`}
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,203 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this div is being used to apply special css *}
|
||||
{if !$section }
|
||||
<div class="crm-block crm-form-block crm-report-field-form-block">
|
||||
{include file="CRM/Report/Form/Fields.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-block crm-content-block crm-report-form-block">
|
||||
{include file="CRM/Report/Form/Actions.tpl"}
|
||||
{if !$section }
|
||||
{include file="CRM/Report/Form/Statistics.tpl" top=true}
|
||||
{/if}
|
||||
{if $rows}
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
</div>
|
||||
|
||||
{* pre-compile section header here, rather than doing it every time under foreach *}
|
||||
{capture assign=sectionHeaderTemplate}
|
||||
{assign var=columnCount value=$columnHeaders|@count}
|
||||
{assign var=l value=$smarty.ldelim}
|
||||
{assign var=r value=$smarty.rdelim}
|
||||
{foreach from=$sections item=section key=column name=sections}
|
||||
{counter assign="h"}
|
||||
{$l}isValueChange value=$row.{$column} key="{$column}" assign=isValueChanged{$r}
|
||||
{$l}if $isValueChanged{$r}
|
||||
|
||||
{$l}if $sections.{$column}.type & 4{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}|crmDate{$r}
|
||||
{$l}elseif $sections.{$column}.type eq 1024{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}|crmMoney{$r}
|
||||
{$l}else{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}{$r}
|
||||
{$l}/if{$r}
|
||||
|
||||
<tr><th colspan="{$columnCount}">
|
||||
<h{$h}>{$section.title}: {$l}$printValue|default:"<em>none</em>"{$r}
|
||||
({$l}sectionTotal key=$row.{$column} depth={$smarty.foreach.sections.index}{$r})
|
||||
</h{$h}>
|
||||
</th></tr>
|
||||
{if $smarty.foreach.sections.last}
|
||||
<tr>{$l}$tableHeader{$r}</tr>
|
||||
{/if}
|
||||
{$l}/if{$r}
|
||||
{/foreach}
|
||||
{/capture}
|
||||
|
||||
{foreach from=$rows item=row}
|
||||
<table class="report-layout crm-report_contact_civireport">
|
||||
{eval var=$sectionHeaderTemplate}
|
||||
<tr>
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
{if !$skip}
|
||||
{if $header.colspan}
|
||||
<th colspan={$header.colspan}>{$header.title}</th>
|
||||
{assign var=skip value=true}
|
||||
{assign var=skipCount value=`$header.colspan`}
|
||||
{assign var=skipMade value=1}
|
||||
{else}
|
||||
<th>{$header.title}</th>
|
||||
{assign var=skip value=false}
|
||||
{/if}
|
||||
{else} {* for skip case *}
|
||||
{assign var=skipMade value=`$skipMade+1`}
|
||||
{if $skipMade >= $skipCount}{assign var=skip value=false}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
<tr class="group-row crm-report">
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
{assign var=fieldLink value=$field|cat:"_link"}
|
||||
{assign var=fieldHover value=$field|cat:"_hover"}
|
||||
<td class="report-contents crm-report_{$field}">
|
||||
{if $row.$fieldLink}<a title="{$row.$fieldHover|escape}" href="{$row.$fieldLink}">{/if}
|
||||
|
||||
{if $row.$field eq 'Subtotal'}
|
||||
{$row.$field}
|
||||
{elseif $header.type eq 12 || $header.type eq 4}
|
||||
{if $header.group_by eq 'MONTH' or $header.group_by eq 'QUARTER'}
|
||||
{$row.$field|crmDate:$config->dateformatPartial}
|
||||
{elseif $header.group_by eq 'YEAR'}
|
||||
{$row.$field|crmDate:$config->dateformatYear}
|
||||
{else}
|
||||
{$row.$field|truncate:10:''|crmDate}
|
||||
{/if}
|
||||
{elseif $header.type eq 1024}
|
||||
{$row.$field|crmMoney}
|
||||
{else}
|
||||
{$row.$field}
|
||||
{/if}
|
||||
|
||||
{if $row.contactID} {/if}
|
||||
|
||||
{if $row.$fieldLink}</a>{/if}
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{if $columnHeadersComponent}
|
||||
{assign var=componentContactId value=$row.contactID}
|
||||
{foreach from=$columnHeadersComponent item=pheader key=component}
|
||||
{if $componentRows.$componentContactId.$component}
|
||||
<h3>{$component|replace:'_civireport':''|upper}</h3>
|
||||
<table class="report-layout crm-report_{$component}">
|
||||
{*add space before headers*}
|
||||
<tr>
|
||||
{foreach from=$pheader item=header}
|
||||
<th>{$header.title}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
|
||||
{foreach from=$componentRows.$componentContactId.$component item=row key=rowid}
|
||||
<tr class="{cycle values="odd-row,even-row"} crm-report" id="crm-report_{$rowid}">
|
||||
{foreach from=$columnHeadersComponent.$component item=header key=field}
|
||||
{assign var=fieldLink value=$field|cat:"_link"}
|
||||
{assign var=fieldHover value=$field|cat:"_hover"}
|
||||
<td class="report-contents crm-report_{$field}">
|
||||
{if $row.$fieldLink}
|
||||
<a title="{$row.$fieldHover|escape}" href="{$row.$fieldLink}">
|
||||
{/if}
|
||||
|
||||
{if $row.$field eq 'Sub Total'}
|
||||
{$row.$field}
|
||||
{elseif $header.type & 4}
|
||||
{if $header.group_by eq 'MONTH' or $header.group_by eq 'QUARTER'}
|
||||
{$row.$field|crmDate:$config->dateformatPartial}
|
||||
{elseif $header.group_by eq 'YEAR'}
|
||||
{$row.$field|crmDate:$config->dateformatYear}
|
||||
{else}
|
||||
{$row.$field|truncate:10:''|crmDate}
|
||||
{/if}
|
||||
{elseif $header.type eq 1024}
|
||||
{$row.$field|crmMoney}
|
||||
{else}
|
||||
{$row.$field}
|
||||
{/if}
|
||||
|
||||
{if $row.$fieldLink}</a>{/if}
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl"}
|
||||
</div>
|
||||
<br />
|
||||
{if $grandStat}
|
||||
<table class="report-layout">
|
||||
<tr>
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
<td>
|
||||
<strong>
|
||||
{if $header.type eq 1024}
|
||||
{$grandStat.$field|crmMoney}
|
||||
{else}
|
||||
{$grandStat.$field}
|
||||
{/if}
|
||||
</strong>
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{if !$section }
|
||||
{*Statistics at the bottom of the page*}
|
||||
{include file="CRM/Report/Form/Statistics.tpl" bottom=true}
|
||||
{/if}
|
||||
{/if}
|
||||
{include file="CRM/Report/Form/ErrorMessage.tpl"}
|
||||
</div>
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Logging/ReportDetail.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Logging/ReportSummary.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,35 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
$('#birth_date_from, #birth_date_to').attr({startOffset: '200', endoffset: '0'});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,70 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $criteriaForm OR $instanceForm OR $instanceFormError}
|
||||
<div class="crm-block crm-form-block crm-report-field-form-block">
|
||||
{include file="CRM/Report/Form/Fields.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-block crm-content-block crm-report-form-block">
|
||||
{*include actions*}
|
||||
{include file="CRM/Report/Form/Actions.tpl"}
|
||||
|
||||
{*Statistics at the Top of the page*}
|
||||
{include file="CRM/Report/Form/Statistics.tpl" top=true}
|
||||
|
||||
<table class="report-layout display">
|
||||
{foreach from=$rows item=row}
|
||||
<thead><th colspan=16><font color="black" size="3">{$row.label}</font></th></thead>
|
||||
|
||||
<thead class="sticky">
|
||||
<tr>
|
||||
{foreach from=$columnHeaders item=label key=header}
|
||||
<th>{$label.title}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$row.rows item=innerRow key=rowid}
|
||||
<tr>
|
||||
{foreach from=$columnHeaders item=ignore key=header}
|
||||
<td>{$innerRow.$header}</td>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<br />
|
||||
{*Statistics at the bottom of the page*}
|
||||
{include file="CRM/Report/Form/Statistics.tpl" bottom=true}
|
||||
|
||||
{include file="CRM/Report/Form/ErrorMessage.tpl"}
|
||||
</div>
|
||||
{if $outputMode == 'print'}
|
||||
<script type="text/javascript">
|
||||
window.print();
|
||||
</script>
|
||||
{/if}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Logging/ReportDetail.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Logging/ReportSummary.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,35 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
||||
|
||||
{literal}
|
||||
<style>
|
||||
.crm-report-civicrm_contribution_recur_start_date,
|
||||
.crm-report-civicrm_contribution_recur_cancel_date {
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
{/literal}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,78 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* Report form criteria section *}
|
||||
|
||||
{foreach from=$tabs item=tab}
|
||||
{assign var = 'region' value = "report-tab"|cat:$tab.div_label}
|
||||
{assign var = 'fileName' value = "CRM/Report/Form/Tabs/"|cat:$tab.tpl|cat:".tpl"}
|
||||
{crmRegion name=$region}
|
||||
{include file=$fileName}
|
||||
{/crmRegion}
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
{/literal}
|
||||
{foreach from=$filters item=table key=tableName}
|
||||
{foreach from=$table item=field key=fieldName}
|
||||
{literal}var val = "dnc";{/literal}
|
||||
{assign var=fieldOp value=$fieldName|cat:"_op"}
|
||||
{if !($field.operatorType & 4) && !$field.no_display && $form.$fieldOp.html}
|
||||
{literal}var val = document.getElementById("{/literal}{$fieldOp}{literal}").value;{/literal}
|
||||
{/if}
|
||||
{literal}showHideMaxMinVal( "{/literal}{$fieldName}{literal}", val );{/literal}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
|
||||
{literal}
|
||||
function showHideMaxMinVal( field, val ) {
|
||||
var fldVal = field + "_value_cell";
|
||||
var fldMinMax = field + "_min_max_cell";
|
||||
if ( val == "bw" || val == "nbw" ) {
|
||||
cj('#' + fldVal ).hide();
|
||||
cj('#' + fldMinMax ).show();
|
||||
} else if (val =="nll" || val == "nnll") {
|
||||
cj('#' + fldVal).hide() ;
|
||||
cj('#' + field + '_value').val('');
|
||||
cj('#' + fldMinMax ).hide();
|
||||
} else {
|
||||
cj('#' + fldVal ).show();
|
||||
cj('#' + fldMinMax ).hide();
|
||||
}
|
||||
}
|
||||
|
||||
CRM.$(function($) {
|
||||
$('.crm-report-criteria-groupby input:checkbox').click(function() {
|
||||
$('#fields_' + this.id.substr(10)).prop('checked', this.checked);
|
||||
});
|
||||
{/literal}{if $displayToggleGroupByFields}{literal}
|
||||
$('.crm-report-criteria-field input:checkbox').click(function() {
|
||||
$('#group_bys_' + this.id.substr(7)).prop('checked', this.checked);
|
||||
});
|
||||
{/literal}{/if}{literal}
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,30 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $outputMode eq 'html' && !$rows}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div> {ts}None found.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,93 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this div is being used to apply special css *}
|
||||
{if !$section }
|
||||
<div class="crm-block crm-form-block crm-report-field-form-block">
|
||||
{include file="CRM/Report/Form/Fields.tpl"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="crm-block crm-content-block crm-report-form-block">
|
||||
{include file="CRM/Report/Form/Actions.tpl"}
|
||||
{*Statistics at the Top of the page*}
|
||||
{if !$section }
|
||||
{include file="CRM/Report/Form/Statistics.tpl" top=true}
|
||||
{/if}
|
||||
|
||||
{if $events}
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
</div>
|
||||
{foreach from=$events item=eventID}
|
||||
<table class="report-layout">
|
||||
{foreach from=$summary.$eventID item=values key=keys}
|
||||
{if $keys == 'Title'}
|
||||
<tr>
|
||||
<th>{$keys}</th>
|
||||
<th colspan="3">{$values}</th>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="{cycle values="odd-row,even-row"} crm-report crm-report_event_summary" id="crm-report_{$eventID}_summary_{$keys}">
|
||||
<td class="report-contents crm-report_summary_title">{$keys}</td>
|
||||
<td class="report-contents crm-report_summary_details" colspan="3">{$values}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{foreach from=$rows item=row key=keys}
|
||||
{if $row.$eventID}
|
||||
<table class="report-layout">
|
||||
{if $row}
|
||||
<tr>
|
||||
<th width="34%">{ts 1=$keys}%1 Breakdown{/ts}</th>
|
||||
<th class="reports-header-right">{ts}Total{/ts}</th>
|
||||
<th class="reports-header-right">{ts}% of Total{/ts}</th>
|
||||
<th class="reports-header-right">{ts}Revenue{/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$row.$eventID item=row key=role}
|
||||
<tr class="{cycle values="odd-row,even-row"} crm-report crm-report_{$keys}_{$role}" id="crm-report_{$eventID}_{$keys}_{$role}">
|
||||
<td class="report-contents crm-report_{$keys}_breakdown" width="34%">{$role}</td>
|
||||
<td class="report-contents-right crm-report_{$keys}_total">{$row.total}</td>
|
||||
<td class="report-contents-right crm-report_{$keys}_percentage">{$row.round}</td>
|
||||
<td class="report-contents-right crm-report_{$keys}_revenue">{$row.amount}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl"}
|
||||
</div>
|
||||
{if !$section }
|
||||
{*Statistics at the bottom of the page*}
|
||||
{include file="CRM/Report/Form/Statistics.tpl" bottom=true}
|
||||
{/if}
|
||||
{/if}
|
||||
{include file="CRM/Report/Form/ErrorMessage.tpl"}
|
||||
</div>
|
|
@ -0,0 +1,27 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
$('#birth_date_from, #birth_date_to').attr({startOffset: '200', endoffset: '0'});
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,82 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if !$printOnly} {* NO print section starts *}
|
||||
{if $criteriaForm}
|
||||
<div class="crm-report-criteria"> {* criteria section starts *}
|
||||
<div id="mainTabContainer">
|
||||
{*tab navigation bar*}
|
||||
<ul>
|
||||
{foreach from=$tabs item='tab'}
|
||||
<li class="ui-corner-all">
|
||||
<a title="{$tab.title|escape}" href="#report-tab-{$tab.div_label}">{$tab.title}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
{if $instanceForm OR $instanceFormError}
|
||||
<li id="tab_settings" class="ui-corner-all">
|
||||
<a title="{ts}Title and Format{/ts}" href="#report-tab-format">{ts}Title and Format{/ts}</a>
|
||||
</li>
|
||||
<li class="ui-corner-all">
|
||||
<a title="{ts}Email Delivery{/ts}" href="#report-tab-email">{ts}Email Delivery{/ts}</a>
|
||||
</li>
|
||||
<li class="ui-corner-all">
|
||||
<a title="{ts}Access{/ts}" href="#report-tab-access">{ts}Access{/ts}</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
{*criteria*}
|
||||
{include file="CRM/Report/Form/Criteria.tpl"}
|
||||
|
||||
{*settings*}
|
||||
{if $instanceForm OR $instanceFormError}
|
||||
{include file="CRM/Report/Form/Tabs/Instance.tpl"}
|
||||
{/if}
|
||||
</div> {* end mainTabContainer *}
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{$form.buttons.html}
|
||||
</div>
|
||||
</div> {* criteria section ends *}
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
var tabSettings = {
|
||||
collapsible: true,
|
||||
active: {/literal}{if $rows}false{else}0{/if}{literal}
|
||||
};
|
||||
// If a tab contains an error, open it
|
||||
if ($('.civireport-criteria .crm-error', '#mainTabContainer').length) {
|
||||
tabSettings.active = $('.civireport-criteria').index($('.civireport-criteria:has(".crm-error")')[0]);
|
||||
}
|
||||
$("#mainTabContainer").tabs(tabSettings);
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
{/if} {* NO print section ends *}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,121 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $section eq 1}
|
||||
<div class="crm-block crm-content-block crm-report-layoutGraph-form-block">
|
||||
{*include the graph*}
|
||||
{include file="CRM/Report/Form/Layout/Graph.tpl"}
|
||||
</div>
|
||||
{else}
|
||||
<div class="crm-block crm-form-block crm-report-field-form-block">
|
||||
{include file="CRM/Report/Form/Fields.tpl" componentName='Grant'}
|
||||
</div>
|
||||
|
||||
<div class="crm-block crm-content-block crm-report-form-block">
|
||||
{*include actions*}
|
||||
{include file="CRM/Report/Form/Actions.tpl"}
|
||||
|
||||
{*include the graph*}
|
||||
{include file="CRM/Report/Form/Layout/Graph.tpl"}
|
||||
|
||||
{if $printOnly}
|
||||
<h1>{$reportTitle}</h1>
|
||||
<div id="report-date">{$reportDate}</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($totalStatistics)}
|
||||
<h3>{ts}Report Filters{/ts}</h3>
|
||||
<table class="report-layout statistics-table">
|
||||
{if $totalStatistics.filters}
|
||||
{foreach from=$totalStatistics.filters item=row}
|
||||
<tr>
|
||||
<th class="statistics">{$row.title}</th>
|
||||
<td>{$row.value}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
( {ts}All Grants{/ts} )
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
<h3>{ts}Summary Statistics{/ts}</h2>
|
||||
<table class="report-layout display">
|
||||
<tr>
|
||||
<th class="statistics" scope="row"></th>
|
||||
<th class="statistics right" scope="row">{ts}Count{/ts}</th>
|
||||
<th class="statistics right" scope="row">{ts}Amount{/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$totalStatistics.total_statistics key=key item=val}
|
||||
<tr>
|
||||
<td>{$val.title}</td>
|
||||
<td class="right">{$val.count}</td>
|
||||
<td class="right">{$val.amount|crmMoney}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{if !empty($grantStatistics)}
|
||||
<h3>{ts}Statistics Breakdown{/ts}</h3>
|
||||
<table class="report-layout display">
|
||||
{foreach from=$grantStatistics item=values key=key}
|
||||
<tr>
|
||||
<th class="statistics" scope="row">{$values.title}</th>
|
||||
<th class="statistics right" scope="row">{ts}Number of Grants (%){/ts}</th>
|
||||
<th class="statistics right" scope="row">{ts}Total Amount (%){/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$values.value item=row key=field}
|
||||
<tr>
|
||||
<td>{$field}</td>
|
||||
<td class="right">{if $row.count}{$row.count} ({$row.percentage}%){/if}</td>
|
||||
<td class="right">
|
||||
{foreach from=$row.currency key=fld item=val}
|
||||
{$val.value|crmMoney:$fld} ({$val.percentage}%)
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{if $row.unassigned_count}
|
||||
<tr>
|
||||
<td>{$field} ({ts}Unassigned{/ts})</td>
|
||||
<td class="right">{if $row.unassigned_count}{$row.unassigned_count} ({$row.unassigned_percentage}%){/if}</td>
|
||||
<td class="right">
|
||||
{foreach from=$row.unassigned_currency key=fld item=val}
|
||||
{$val.value|crmMoney:$fld} ({$val.percentage}%)
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<tr><td colspan="3" style="border: none;"> </td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
<br />
|
||||
{if empty($totalStatistics)}
|
||||
{include file="CRM/Report/Form/ErrorMessage.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,79 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{assign var=uploadURL value=$config->imageUploadURL|replace:'/persist/contribute/':'/persist/'|cat:'openFlashChart/'}
|
||||
{* Display weekly,Quarterly,monthly and yearly contributions using pChart (Bar and Pie) *}
|
||||
{if $chartEnabled and $chartSupported}
|
||||
<div class='crm-flashchart'>
|
||||
<table class="chart">
|
||||
<tr>
|
||||
<td>
|
||||
{if $outputMode eq 'print' OR $outputMode eq 'pdf'}
|
||||
<img src="{$uploadURL|cat:$chartId}.png" />
|
||||
{else}
|
||||
<div id="open_flash_chart_{$uniqueId}"></div>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{if !$printOnly} {* NO print section starts *}
|
||||
{if !$section}
|
||||
{include file="CRM/common/openFlashChart.tpl" divId="open_flash_chart_$uniqueId"}
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
buildChart( );
|
||||
|
||||
$("input[id$='submit_print'],input[id$='submit_pdf']").bind('click', function(e){
|
||||
// image creator php file path and append image name
|
||||
var url = CRM.url('civicrm/report/chart', 'name=' + '{/literal}{$chartId}{literal}' + '.png');
|
||||
|
||||
//fetch object and 'POST' image
|
||||
swfobject.getObjectById("open_flash_chart_{/literal}{$uniqueId}{literal}").post_image(url, true, false);
|
||||
});
|
||||
|
||||
function buildChart( ) {
|
||||
var chartData = {/literal}{$openFlashChartData}{literal};
|
||||
$.each( chartData, function( chartID, chartValues ) {
|
||||
var divName = {/literal}"open_flash_chart_{$uniqueId}"{literal};
|
||||
var loadDataFunction = {/literal}"loadData{$uniqueId}"{literal};
|
||||
|
||||
createSWFObject( chartID, divName, chartValues.size.xSize, chartValues.size.ySize, loadDataFunction );
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function loadData{/literal}{$uniqueId}{literal}( chartID ) {
|
||||
var allData = {/literal}{$openFlashChartData}{literal};
|
||||
return JSON.stringify(allData[chartID].object);
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
{/if}
|
|
@ -0,0 +1,153 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if (!$chartEnabled || !$chartSupported )&& $rows}
|
||||
{if $pager and $pager->_response and $pager->_response.numPages > 1}
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="crm-report-overlay form-layout-compressed">
|
||||
<table class="crm-table-group-summary form-layout-compressed">
|
||||
{capture assign="tableHeader"}
|
||||
<tr>
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
{if !$skip}
|
||||
{if $header.colspan}
|
||||
<td colspan={$header.colspan}>{$header.title}</td>
|
||||
{assign var=skip value=true}
|
||||
{assign var=skipCount value=`$header.colspan`}
|
||||
{assign var=skipMade value=1}
|
||||
{else}
|
||||
<td>{$header.title}</td>
|
||||
{assign var=skip value=false}
|
||||
{/if}
|
||||
{else} {* for skip case *}
|
||||
{assign var=skipMade value=`$skipMade+1`}
|
||||
{if $skipMade >= $skipCount}{assign var=skip value=false}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/capture}
|
||||
|
||||
{if !$sections} {* section headers and sticky headers aren't playing nice yet *}
|
||||
<thead>
|
||||
<tr>
|
||||
{$tableHeader}
|
||||
</tr>
|
||||
</thead>
|
||||
{/if}
|
||||
|
||||
{* pre-compile section header here, rather than doing it every time under foreach *}
|
||||
{capture assign=sectionHeaderTemplate}
|
||||
{assign var=columnCount value=$columnHeaders|@count}
|
||||
{assign var=l value=$smarty.ldelim}
|
||||
{assign var=r value=$smarty.rdelim}
|
||||
{foreach from=$sections item=section key=column name=sections}
|
||||
{counter assign="h"}
|
||||
{$l}isValueChange value=$row.{$column} key="{$column}" assign=isValueChanged{$r}
|
||||
{$l}if $isValueChanged{$r}
|
||||
|
||||
{$l}if $sections.{$column}.type & 4{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}|crmDate{$r}
|
||||
{$l}elseif $sections.{$column}.type eq 1024{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}|crmMoney{$r}
|
||||
{$l}else{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}{$r}
|
||||
{$l}/if{$r}
|
||||
|
||||
<tr><th colspan="{$columnCount}">
|
||||
<h{$h}>{$section.title}: {$l}$printValue|default:"<em>none</em>"{$r}
|
||||
({$l}sectionTotal key=$row.{$column} depth={$smarty.foreach.sections.index}{$r})
|
||||
</h{$h}>
|
||||
</th></tr>
|
||||
{if $smarty.foreach.sections.last}
|
||||
<tr>{$l}$tableHeader{$r}</tr>
|
||||
{/if}
|
||||
{$l}/if{$r}
|
||||
{/foreach}
|
||||
{/capture}
|
||||
|
||||
{foreach from=$rows item=row key=rowid}
|
||||
{eval var=$sectionHeaderTemplate}
|
||||
<tr class="{$row.class}" id="crm-report_{$rowid}">
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
{assign var=fieldLink value=$field|cat:"_link"}
|
||||
{assign var=fieldHover value=$field|cat:"_hover"}
|
||||
{assign var=fieldClass value=$field|cat:"_class"}
|
||||
<td class="crm-report-{$field}{if $header.type eq 1024 OR $header.type eq 1} report-contents-right{elseif $row.$field eq 'Subtotal'} report-label{/if}">
|
||||
{if $row.$fieldLink}
|
||||
<a title="{$row.$fieldHover|escape}" href="{$row.$fieldLink}" {$row.$fieldClass}>
|
||||
{/if}
|
||||
|
||||
{if $row.$field eq 'Subtotal'}
|
||||
{$row.$field}
|
||||
{elseif $header.type & 4 OR $header.type & 256}
|
||||
{if $header.group_by eq 'MONTH' or $header.group_by eq 'QUARTER'}
|
||||
{$row.$field|crmDate:$config->dateformatPartial}
|
||||
{elseif $header.group_by eq 'YEAR'}
|
||||
{$row.$field|crmDate:$config->dateformatYear}
|
||||
{else}
|
||||
{if $header.type == 4}
|
||||
{$row.$field|truncate:10:''|crmDate}
|
||||
{else}
|
||||
{$row.$field|crmDate}
|
||||
{/if}
|
||||
{/if}
|
||||
{elseif $header.type eq 1024}
|
||||
<span class="nowrap">{$row.$field|crmMoney}</span>
|
||||
{else}
|
||||
{$row.$field}
|
||||
{/if}
|
||||
|
||||
{if $row.$fieldLink}</a>{/if}
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{if $grandStat}
|
||||
{* foreach from=$grandStat item=row*}
|
||||
<tr class="total-row">
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
<td class="report-label">
|
||||
{if $header.type eq 1024}
|
||||
{$grandStat.$field|crmMoney}
|
||||
{else}
|
||||
{$grandStat.$field}
|
||||
{/if}
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{* /foreach*}
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
{if $pager and $pager->_response and $pager->_response.numPages > 1}
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl" }
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
|
@ -0,0 +1,170 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if (!$chartEnabled || !$chartSupported )&& $rows}
|
||||
{if $pager and $pager->_response and $pager->_response.numPages > 1}
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
</div>
|
||||
{/if}
|
||||
<table class="report-layout display">
|
||||
{capture assign="tableHeader"}
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
{assign var=class value=""}
|
||||
{if $header.type eq 1024 OR $header.type eq 1 OR $header.type eq 512}
|
||||
{assign var=class value="class='reports-header-right'"}
|
||||
{else}
|
||||
{assign var=class value="class='reports-header'"}
|
||||
{/if}
|
||||
{if !$skip}
|
||||
{if $header.colspan}
|
||||
<th colspan={$header.colspan}>{$header.title}</th>
|
||||
{assign var=skip value=true}
|
||||
{assign var=skipCount value=`$header.colspan`}
|
||||
{assign var=skipMade value=1}
|
||||
{else}
|
||||
<th {$class}>{$header.title}</th>
|
||||
{assign var=skip value=false}
|
||||
{/if}
|
||||
{else} {* for skip case *}
|
||||
{assign var=skipMade value=`$skipMade+1`}
|
||||
{if $skipMade >= $skipCount}{assign var=skip value=false}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/capture}
|
||||
|
||||
{if !$sections} {* section headers and sticky headers aren't playing nice yet *}
|
||||
<thead class="sticky">
|
||||
<tr>
|
||||
{$tableHeader}
|
||||
</tr>
|
||||
</thead>
|
||||
{/if}
|
||||
|
||||
{* pre-compile section header here, rather than doing it every time under foreach *}
|
||||
{capture assign=sectionHeaderTemplate}
|
||||
{assign var=columnCount value=$columnHeaders|@count}
|
||||
{assign var=l value=$smarty.ldelim}
|
||||
{assign var=r value=$smarty.rdelim}
|
||||
{assign var=pageBroke value=0}
|
||||
{foreach from=$sections item=section key=column name=sections}
|
||||
{counter assign="h"}
|
||||
{$l}isValueChange value=$row.{$column} key="{$column}" assign=isValueChanged{$r}
|
||||
{$l}if $isValueChanged{$r}
|
||||
|
||||
{$l}if $sections.{$column}.type & 4{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}|crmDate{$r}
|
||||
{$l}elseif $sections.{$column}.type eq 1024{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}|crmMoney{$r}
|
||||
{$l}else{$r}
|
||||
{$l}assign var=printValue value=$row.{$column}{$r}
|
||||
{$l}/if{$r}
|
||||
{$l}if $rowid neq 0{$r}
|
||||
{if $section.pageBreak}
|
||||
{$l}if $pageBroke >= {$h} or $pageBroke == 0{$r}
|
||||
</table>
|
||||
<div class="page-break"></div>
|
||||
<table class="report-layout display">
|
||||
{$l}/if{$r}
|
||||
{$l}assign var=pageBroke value={$h}{$r}
|
||||
{/if}
|
||||
{$l}/if{$r}
|
||||
<tr class="crm-report-sectionHeader crm-report-sectionHeader-{$h}"><th colspan="{$columnCount}">
|
||||
|
||||
<h{$h}>{$section.title}: {$l}$printValue|default:"<em>none</em>"{$r}
|
||||
({$l}sectionTotal key=$row.{$column} depth={$smarty.foreach.sections.index}{$r})
|
||||
</h{$h}>
|
||||
</th></tr>
|
||||
{if $smarty.foreach.sections.last}
|
||||
<tr class="crm-report-sectionCols">{$l}$tableHeader{$r}</tr>
|
||||
{/if}
|
||||
{$l}/if{$r}
|
||||
{/foreach}
|
||||
{/capture}
|
||||
|
||||
{foreach from=$rows item=row key=rowid}
|
||||
{eval var=$sectionHeaderTemplate}
|
||||
<tr class="{cycle values="odd-row,even-row"} {$row.class} crm-report" id="crm-report_{$rowid}">
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
{assign var=fieldLink value=$field|cat:"_link"}
|
||||
{assign var=fieldHover value=$field|cat:"_hover"}
|
||||
{assign var=fieldClass value=$field|cat:"_class"}
|
||||
<td class="crm-report-{$field}{if $header.type eq 1024 OR $header.type eq 1 OR $header.type eq 512} report-contents-right{elseif $row.$field eq 'Subtotal'} report-label{/if}">
|
||||
{if $row.$fieldLink}
|
||||
<a title="{$row.$fieldHover|escape}" href="{$row.$fieldLink}" {if $row.$fieldClass} class="{$row.$fieldClass}"{/if}>
|
||||
{/if}
|
||||
|
||||
{if $row.$field eq 'Subtotal'}
|
||||
{$row.$field}
|
||||
{elseif $header.type & 4 OR $header.type & 256}
|
||||
{if $header.group_by eq 'MONTH' or $header.group_by eq 'QUARTER'}
|
||||
{$row.$field|crmDate:$config->dateformatPartial}
|
||||
{elseif $header.group_by eq 'YEAR'}
|
||||
{$row.$field|crmDate:$config->dateformatYear}
|
||||
{else}
|
||||
{if $header.type == 4}
|
||||
{$row.$field|truncate:10:''|crmDate}
|
||||
{else}
|
||||
{$row.$field|crmDate}
|
||||
{/if}
|
||||
{/if}
|
||||
{elseif $header.type eq 1024}
|
||||
{if $currencyColumn}
|
||||
<span class="nowrap">{$row.$field|crmMoney:$row.$currencyColumn}</span>
|
||||
{else}
|
||||
<span class="nowrap">{$row.$field|crmMoney}</span>
|
||||
{/if}
|
||||
{else}
|
||||
{$row.$field}
|
||||
{/if}
|
||||
|
||||
{if $row.$fieldLink}</a>{/if}
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{if $grandStat}
|
||||
{* foreach from=$grandStat item=row*}
|
||||
<tr class="total-row">
|
||||
{foreach from=$columnHeaders item=header key=field}
|
||||
<td class="report-label">
|
||||
{if $header.type eq 1024}
|
||||
{$grandStat.$field|crmMoney}
|
||||
{else}
|
||||
{$grandStat.$field}
|
||||
{/if}
|
||||
</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{* /foreach*}
|
||||
{/if}
|
||||
</table>
|
||||
{if $pager and $pager->_response and $pager->_response.numPages > 1}
|
||||
<div class="report-pager">
|
||||
{include file="CRM/common/pager.tpl" }
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,97 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $action eq 8}
|
||||
<h3>{ts}Delete Report Template{/ts}</h3>
|
||||
{elseif $action eq 2}
|
||||
<h3>{ts}Edit Report Template{/ts}</h3>
|
||||
{else}
|
||||
<h3>{ts}New Report Template{/ts}</h3>
|
||||
{/if}
|
||||
<div class="crm-block crm-form-block crm-report-register-form-block">
|
||||
{if $action eq 8}
|
||||
<table class="form-layout">
|
||||
<tr class="buttons">
|
||||
<td><div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2>
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{ts}WARNING: Deleting this option will result in the loss of all Report related records which use the option. This may mean the loss of a substantial amount of data, and the action cannot be undone. Do you want to continue?{/ts}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
|
||||
<table class="form-layout">
|
||||
<tr class="buttons crm-report-register-form-block-buttons">
|
||||
<td><div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr class="crm-report-register-form-block-label">
|
||||
<td class="label">{$form.label.label}</td>
|
||||
<td class="view-value">{$form.label.html} <br /><span class="description">{ts}Report title appear in the display screen.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-register-form-block-description">
|
||||
<td class="label">{$form.description.label}</td>
|
||||
<td class="view-value">{$form.description.html} <br /><span class="description">{ts}Report description appear in the display screen.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-register-form-block-url">
|
||||
<td class="label">{$form.value.label}</td>
|
||||
<td class="view-value">{$form.value.html} <br /><span class="description">{ts}Report Url must be like "contribute/summary"{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-register-form-block-class">
|
||||
<td class="label">{$form.name.label}</td>
|
||||
<td class="view-value">{$form.name.html} <br /><span class="description">{ts}Report Class must be present before adding the report here, e.g. 'CRM_Report_Form_Contribute_Summary'{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-register-form-block-weight">
|
||||
<td class="label">{$form.weight.label}</td>
|
||||
<td class="view-value">{$form.weight.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-register-form-block-component">
|
||||
<td class="label">{$form.component_id.label}</td>
|
||||
<td class="view-value">{$form.component_id.html} <br /><span class="description">{ts}Specify the Report if it is belongs to any component like "CiviContribute"{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-register-form-block-is_active">
|
||||
<td class="label">{$form.is_active.label}</td>
|
||||
<td class="view-value">{$form.is_active.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="buttons crm-report-register-form-block-buttons">
|
||||
<td><div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
|
@ -0,0 +1,67 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $top}
|
||||
{if $printOnly}
|
||||
<h1>{$reportTitle}</h1>
|
||||
<div id="report-date">{$reportDate}</div>
|
||||
{/if}
|
||||
{if $statistics}
|
||||
<table class="report-layout statistics-table">
|
||||
{foreach from=$statistics.groups item=row}
|
||||
<tr>
|
||||
<th class="statistics" scope="row">{$row.title}</th>
|
||||
<td>{$row.value}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{foreach from=$statistics.filters item=row}
|
||||
<tr>
|
||||
<th class="statistics" scope="row">{$row.title}</th>
|
||||
<td>{$row.value}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $bottom and $rows and $statistics}
|
||||
<table class="report-layout">
|
||||
{foreach from=$statistics.counts item=row}
|
||||
<tr>
|
||||
<th class="statistics" scope="row">{$row.title}</th>
|
||||
<td>
|
||||
{if $row.type eq 1024}
|
||||
{$row.value|crmMoney}
|
||||
{elseif $row.type eq 2}
|
||||
{$row.value}
|
||||
{else}
|
||||
{$row.value|crmNumberFormat}
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
|
@ -0,0 +1,4 @@
|
|||
<div id="report-tab-set-developer" class="civireport-criteria">
|
||||
<p><b>{ts}Class used{/ts}: {$report_class}</b></p>
|
||||
<pre>{$sql}</pre>
|
||||
</div>
|
|
@ -0,0 +1,57 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div id="report-tab-col-groups" class="civireport-criteria">
|
||||
{foreach from=$colGroups item=grpFields key=dnc}
|
||||
{assign var="count" value="0"}
|
||||
{* Wrap custom field sets in collapsed accordion pane. *}
|
||||
{if $grpFields.use_accordian_for_field_selection}
|
||||
<div class="crm-accordion-wrapper crm-accordion collapsed">
|
||||
<div class="crm-accordion-header">
|
||||
{$grpFields.group_title}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
{/if}
|
||||
<table class="criteria-group">
|
||||
<tr class="crm-report crm-report-criteria-field crm-report-criteria-field-{$dnc}">
|
||||
{foreach from=$grpFields.fields item=title key=field}
|
||||
{assign var="count" value=`$count+1`}
|
||||
<td width="25%">{$form.fields.$field.html}</td>
|
||||
{if $count is div by 4}
|
||||
</tr><tr class="crm-report crm-report-criteria-field crm-report-criteria-field_{$dnc}">
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $count is not div by 4}
|
||||
<td colspan="4 - ($count % 4)"></td>
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
{if $grpFields.use_accordian_for_field_selection}
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
|
@ -0,0 +1,80 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div id="report-tab-set-filters" class="civireport-criteria">
|
||||
<table class="report-layout">
|
||||
{assign var="counter" value=1}
|
||||
{foreach from=$filters item=table key=tableName}
|
||||
{assign var="filterCount" value=$table|@count}
|
||||
{* Wrap custom field sets in collapsed accordion pane. *}
|
||||
{if $filterGroups.$tableName.group_title and $filterCount gte 1}
|
||||
{* we should close table that contains other filter elements before we start building custom group accordion
|
||||
*}
|
||||
{if $counter eq 1}
|
||||
</table>
|
||||
{assign var="counter" value=0}
|
||||
{/if}
|
||||
<div class="crm-accordion-wrapper crm-accordion collapsed">
|
||||
<div class="crm-accordion-header">
|
||||
{$filterGroups.$tableName.group_title}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
<table class="report-layout">
|
||||
{/if}
|
||||
{foreach from=$table item=field key=fieldName}
|
||||
{assign var=fieldOp value=$fieldName|cat:"_op"}
|
||||
{assign var=filterVal value=$fieldName|cat:"_value"}
|
||||
{assign var=filterMin value=$fieldName|cat:"_min"}
|
||||
{assign var=filterMax value=$fieldName|cat:"_max"}
|
||||
{if $field.operatorType & 4}
|
||||
<tr class="report-contents crm-report crm-report-criteria-filter crm-report-criteria-filter-{$tableName}">
|
||||
<td class="label report-contents">{$field.title}</td>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName=$fieldName from='_from' to='_to'}
|
||||
</tr>
|
||||
{elseif $form.$fieldOp.html}
|
||||
<tr class="report-contents crm-report crm-report-criteria-filter crm-report-criteria-filter-{$tableName}" {if $field.no_display} style="display: none;"{/if}>
|
||||
<td class="label report-contents">{$field.title}</td>
|
||||
<td class="report-contents">{$form.$fieldOp.html}</td>
|
||||
<td>
|
||||
<span id="{$filterVal}_cell">{$form.$filterVal.label} {$form.$filterVal.html}</span>
|
||||
<span id="{$filterMin}_max_cell">{$form.$filterMin.label} {$form.$filterMin.html} {$form.$filterMax.label} {$form.$filterMax.html}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $filterGroups.$tableName.group_title}
|
||||
</table>
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
{assign var=closed value="1"} {*-- ie table tags are closed-- *}
|
||||
{else}
|
||||
{assign var=closed value="0"} {*-- ie table tags are not closed-- *}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $closed eq 0 }
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
|
@ -0,0 +1,47 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div id="report-tab-group-by-elements" class="civireport-criteria">
|
||||
{assign var="count" value="0"}
|
||||
<table class="report-layout">
|
||||
<tr class="crm-report crm-report-criteria-groupby">
|
||||
{foreach from=$groupByElements item=gbElem key=dnc}
|
||||
{assign var="count" value=`$count+1`}
|
||||
<td width="25%" {if $form.fields.$gbElem}"{/if}>
|
||||
{$form.group_bys[$gbElem].html}
|
||||
{if $form.group_bys_freq[$gbElem].html}:<br>
|
||||
{$form.group_bys_freq[$gbElem].label} {$form.group_bys_freq[$gbElem].html}
|
||||
{/if}
|
||||
</td>
|
||||
{if $count is div by 4}
|
||||
</tr><tr class="crm-report crm-report-criteria-groupby">
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $count is not div by 4}
|
||||
<td colspan="4 - ($count % 4)"></td>
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
|
@ -0,0 +1,143 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div id="report-tab-format" class="civireport-criteria">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-report-instanceForm-form-block-title">
|
||||
<td class="report-label" width="20%">{$form.title.label} {help id="id-report_title" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td >{$form.title.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-description">
|
||||
<td class="report-label" width="20%">{$form.description.label}</td>
|
||||
<td>{$form.description.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-report_header">
|
||||
<td class="report-label" width="20%">{$form.report_header.label}{help id="id-report_header" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td>{$form.report_header.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-report_footer">
|
||||
<td class="report-label" width="20%">{$form.report_footer.label}</td>
|
||||
<td>{$form.report_footer.html}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="report-tab-email" class="civireport-criteria">
|
||||
<h3 class="email-delivery-settings-title">{ts}Email Delivery Settings{/ts} {help id="id-email_settings" file="CRM/Report/Form/Tabs/Settings.hlp"}</h3>
|
||||
<table class="form-layout email-delivery-settings-fields">
|
||||
<tr class="crm-report-instanceForm-form-block-email_subject">
|
||||
<td class="report-label" width="20%">{$form.email_subject.label}</td>
|
||||
<td>{$form.email_subject.html|crmAddClass:huge}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-email_to">
|
||||
<td class="report-label">{$form.email_to.label}</td>
|
||||
<td>{$form.email_to.html|crmAddClass:huge}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-email_cc">
|
||||
<td class="report-label">{$form.email_cc.label}</td>
|
||||
<td>{$form.email_cc.html|crmAddClass:huge}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="report-tab-access" class="civireport-criteria">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-report-instanceForm-form-block-is_navigation">
|
||||
<td class="report-label">{$form.is_navigation.label}</td>
|
||||
<td>{$form.is_navigation.html} {ts}Link to {/ts} {$form.view_mode.html}<br />
|
||||
<span class="description">{ts}All report instances are automatically included in the Report Listing page. Check this box to also add this report to the navigation menu.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-parent_id" id="navigation_menu">
|
||||
<td class="report-label">{$form.parent_id.label} {help id="id-parent" file="CRM/Admin/Form/Navigation.hlp"}</td>
|
||||
<td>{$form.parent_id.html|crmAddClass:huge}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-drilldown">
|
||||
<td class="report-label">{$form.drilldown_id.label}</td>
|
||||
<td>{$form.drilldown_id.html}</td>
|
||||
</tr>
|
||||
{if $config->userFramework neq 'Joomla'}
|
||||
<tr class="crm-report-instanceForm-form-block-permission">
|
||||
<td class="report-label" width="20%">{$form.permission.label} {help id="id-report_perms" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td>{$form.permission.html|crmAddClass:huge}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-role">
|
||||
<td class="report-label" width="20%">{$form.grouprole.label}</td>
|
||||
<td>{$form.grouprole.html|crmAddClass:huge}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-report-instanceForm-form-block-add-to-my-reports">
|
||||
<td class="report-label">{$form.add_to_my_reports.label} {help id="id-add_to_my_reports" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td>{$form.add_to_my_reports.html}
|
||||
<span class="description">{ts}If set to Yes, this report will appear in the My Reports section of the reports listing page and will only be visible by you.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-isReserved">
|
||||
<td class="report-label">{$form.is_reserved.label} {help id="id-is_reserved" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td>{$form.is_reserved.html}
|
||||
<span class="description">{ts}If reserved, only users with 'administer reserved reports' permission can modify this report instance.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-addToDashboard">
|
||||
<td class="report-label">{$form.addToDashboard.label} {help id="id-dash_avail" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td>{$form.addToDashboard.html}
|
||||
<span class="description">{ts}Users with appropriate permissions can add this report to their dashboard.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-limitUser">
|
||||
<td class="report-label">{$form.row_count.label} {help id="id-dash_limit" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td>{$form.row_count.html} {ts}rows{/ts}</td>
|
||||
</tr>
|
||||
<tr class="crm-report-instanceForm-form-block-cache_minutes">
|
||||
<td class="report-label">{$form.cache_minutes.label} {help id="cache_minutes" file="CRM/Report/Form/Tabs/Settings.hlp"}</td>
|
||||
<td>{$form.cache_minutes.html} {ts}minutes{/ts}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{include file="CRM/common/showHideByFieldValue.tpl"
|
||||
trigger_field_id ="is_navigation"
|
||||
trigger_value =""
|
||||
target_element_id ="navigation_menu"
|
||||
target_element_type ="table-row"
|
||||
field_type ="radio"
|
||||
invert = 0
|
||||
}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
function showHideDashletControls() {
|
||||
$('.crm-report-instanceForm-form-block-limitUser, .crm-report-instanceForm-form-block-cache_minutes').toggle($(this).is(':checked'));
|
||||
}
|
||||
$('#addToDashboard').each(showHideDashletControls).change(showHideDashletControls);
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
{if $is_navigation}
|
||||
<script type="text/javascript">
|
||||
document.getElementById('is_navigation').checked = true;
|
||||
showHideByValue('is_navigation','','navigation_menu','table-row','radio',false);
|
||||
</script>
|
||||
{/if}
|
|
@ -0,0 +1,93 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
|
||||
<div id="report-tab-order-by-elements" class="civireport-criteria">
|
||||
<table id="optionField">
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th> {ts}Column{/ts}</th>
|
||||
<th> {ts}Order{/ts}</th>
|
||||
<th> {ts}Section Header / Group By{/ts}</th>
|
||||
<th> {ts}Page Break{/ts}</th>
|
||||
</tr>
|
||||
|
||||
{section name=rowLoop start=1 loop=6}
|
||||
{assign var=index value=$smarty.section.rowLoop.index}
|
||||
<tr id="optionField_{$index}" class="form-item {cycle values="odd-row,even-row"}">
|
||||
<td>
|
||||
{if $index GT 1}
|
||||
<a onclick="hideRow({$index}); return false;" name="orderBy_{$index}" href="#" class="form-link"><img src="{$config->resourceBase}i/TreeMinus.gif" class="action-icon" alt="{ts}hide field or section{/ts}"/></a>
|
||||
{/if}
|
||||
</td>
|
||||
<td> {$form.order_bys.$index.column.html}</td>
|
||||
<td> {$form.order_bys.$index.order.html}</td>
|
||||
<td> {$form.order_bys.$index.section.html}</td>
|
||||
<td> {$form.order_bys.$index.pageBreak.html}</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</table>
|
||||
<div id="optionFieldLink" class="add-remove-link">
|
||||
<a onclick="showHideRow(); return false;" name="optionFieldLink" href="#" class="form-link"><img src="{$config->resourceBase}i/TreePlus.gif" class="action-icon" alt="{ts}show field or section{/ts}"/>{ts}another column{/ts}</a>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var showRows = new Array({$showBlocks});
|
||||
var hideBlocks = new Array({$hideBlocks});
|
||||
var rowcounter = 0;
|
||||
{literal}
|
||||
if (navigator.appName == "Microsoft Internet Explorer") {
|
||||
for ( var count = 0; count < hideBlocks.length; count++ ) {
|
||||
var r = document.getElementById(hideBlocks[count]);
|
||||
r.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// hide and display the appropriate blocks as directed by the php code
|
||||
on_load_init_blocks( showRows, hideBlocks, '');
|
||||
|
||||
cj('input[id^="order_by_section_"]').click(disPageBreak).each(disPageBreak);
|
||||
|
||||
function disPageBreak() {
|
||||
if (!cj(this).prop('checked')) {
|
||||
cj(this).parent('td').next('td').children('input[id^="order_by_pagebreak_"]').prop({checked: false, disabled: true});
|
||||
}
|
||||
else {
|
||||
cj(this).parent('td').next('td').children('input[id^="order_by_pagebreak_"]').prop({disabled: false});
|
||||
}
|
||||
}
|
||||
|
||||
function hideRow(i) {
|
||||
showHideRow(i);
|
||||
// clear values on hidden field, so they're not saved
|
||||
cj('select#order_by_column_'+ i).val('');
|
||||
cj('select#order_by_order_'+ i).val('ASC');
|
||||
cj('input#order_by_section_'+ i).prop('checked', false);
|
||||
cj('input#order_by_pagebreak_'+ i).prop('checked', false);
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</script>
|
||||
</div>
|
|
@ -0,0 +1,44 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $otherOptions}
|
||||
<div id="report-tab-other-options" class="civireport-criteria">
|
||||
<table class="report-layout">
|
||||
{assign var="optionCount" value=0}
|
||||
<tr class="crm-report crm-report-criteria-field">
|
||||
{foreach from=$otherOptions item=optionField key=optionName}
|
||||
{assign var="optionCount" value=`$optionCount+1`}
|
||||
<td>{if $form.$optionName.label}{$form.$optionName.label} {/if}{$form.$optionName.html}</td>
|
||||
{if $optionCount is div by 2}
|
||||
</tr><tr class="crm-report crm-report-criteria-field">
|
||||
{/if}
|
||||
{/foreach}
|
||||
{if $optionCount is not div by 2}
|
||||
<td colspan="2 - ($count % 2)"></td>
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,98 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="id-email_settings-title"}
|
||||
{ts}Email Settings{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-email_settings"}
|
||||
<p>
|
||||
{ts}A copy of this report can be automatically generated and delivered via email to specified recipients. Use the settings in this section to control Subject of the email containing the report, as well as the recipient list (To and Cc fields). Separate multiple 'To' or 'CC' email addresses with commas.{/ts}
|
||||
</p>
|
||||
<p>
|
||||
{ts}Your site administrator will need to setup an instance of the Scheduled Job "Mail Reports" to trigger creation and delivery of each report. When invoked, this job will deliver email to the recipients specified for the report. The report can be attached to the email as a PDF file (default), as a CSV file, or included in HTML format.{/ts} {docURL page="Managing Scheduled Jobs" resource="wiki"}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-report_title-title"}
|
||||
{ts}Title{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-report_title"}
|
||||
{ts}This title and the description below will be displayed to users in the reports list when they click the 'Reports Listing' menu. The title should reflect the report's default criteria. EXAMPLE: Activity Report - Current Month{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-report_header-title"}
|
||||
{ts}Header{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-report_header"}
|
||||
<p>{ts}The Report Header contains HTML code that will be output at the beginning of the document whenever this report is printed or downloaded in PDF format. The default values will work for most situations. However you may want to enter the actual report title in the <title> tag (replacing 'CiviCRM Report'). You can include a logo by adding an <img> tag. You can also modify the look and feel of the printed report by including a custom CSS file (instead of print.css).{/ts}</p>
|
||||
<p>{ts}The Report Footer HTML code will be output at the end of the document. You can add any additional footer text, replace the CiviCRM logo, or make other changes as needed.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-report_perms-title"}
|
||||
{ts}Permission{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-report_perms"}
|
||||
{ts}You can control access to this report by selecting a 'Permission' from the list, or selecting one or more Roles. For example, you might select <em>access CiviContribute</em> for contribution reports (e.g. the same people who can see contribution data would also have access to the report). You can also prevent users from modifying the default report criteria and filters for reports by NOT giving them <em>access Report Criteria</em> permission. Those users will be able to run the report - but only with the criteria and filters that you've established for them.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-dash_avail-title"}
|
||||
{ts}Dashboard{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-dash_avail"}
|
||||
{ts}You can make this report instance available for users to include in their CiviCRM 'Home Dashboard' by checking this box. Users with appropriate permissions will see the report in the 'Available Dashlets' box when they 'Configure' their dashboard. If you want to make a graphic version of the report available, select the desired 'View' and click 'Update Report'. You may want to create a set of report instances specifically for use as dashlets (and you can choose to NOT include them in the navigation menu if you want to distinguish these from the reports that users typically utilize in full screen mode).{/ts}
|
||||
<p>
|
||||
{ts}If you need to make a dashlet NOT available, AND remove it from existing user dashboards - you can do that from the 'Configure' screen on your dashboard. Click the 'x' on the right side of the dashlet's icon.{/ts}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-dash_limit-title"}
|
||||
{ts}Limit Rows per Page in Dashboard{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-dash_limit"}
|
||||
{ts}The default number of rows per page for most reports is 50. However, this may be too many for a report which is included in the 'Home Dashboard'. You can reduce the number of rows included in each page when the report is part of the Dashboard by entering the desired row count here. Users will still be able to navigate through the full report using a pager.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="cache_minutes-title"}
|
||||
{ts}Dashboard Caching{/ts}
|
||||
{/htxt}
|
||||
{htxt id="cache_minutes"}
|
||||
{ts}How often should the contents of this dashlet be automatically refreshed? Users can manually reload by clicking the refresh button on their dashboards.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-is_reserved-title"}
|
||||
{ts}Reserved{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-is_reserved"}
|
||||
{ts}Users with 'administer reserved reports' permission can mark a report instance as reserved, which prevents other users from accessing or modifying Report Criteria and Report Settings. This is particularly useful for report instances whose criteria affect the data available on non-report screens. For example, the display columns configured for the Contact Logging Summary affect the columns shown under each contact's Change Log tab.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-add_to_my_reports-title"}
|
||||
{ts}Add to My Reports{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-add_to_my_reports"}
|
||||
{ts}Selecting Yes will set the report to be visible only to the user
|
||||
that clicked this option and saved the report settings form. If this is
|
||||
enabled, the permissions configuration for this report will be disabled.{/ts}
|
||||
{/htxt}
|
|
@ -0,0 +1,26 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/Report/Form.tpl"}
|
|
@ -0,0 +1,97 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{strip}
|
||||
<div class="action-link">
|
||||
{if $templateUrl}
|
||||
<a href="{$templateUrl}" class="button"><span><i class="crm-i fa-plus-circle"></i> {$newButton}</span></a>
|
||||
{/if}
|
||||
{if $reportUrl}
|
||||
<a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a>
|
||||
{/if}
|
||||
</div>
|
||||
{if $list}
|
||||
<div class="crm-block crm-form-block crm-report-instanceList-form-block">
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$list item=rows key=report}
|
||||
<div class="crm-accordion-wrapper crm-accordion_{$report}-accordion ">
|
||||
<div class="crm-accordion-header">
|
||||
{if $title}{$title}{elseif $report EQ 'Contribute'}{ts}Contribution Reports{/ts}{else}{ts}{$report} Reports{/ts}{/if}</a>
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
<div id="{$report}" class="boxBlock">
|
||||
<table class="report-layout">
|
||||
{foreach from=$rows item=row}
|
||||
<tr id="row_{counter}" class="crm-report-instanceList">
|
||||
<td class="crm-report-instanceList-title" style="width:35%"><a href="{$row.url}" title="{ts}Run this report{/ts}">» <strong>{$row.title}</strong></a></td>
|
||||
<td class="crm-report-instanceList-description">{$row.description}</td>
|
||||
<td>
|
||||
<a href="{$row.viewUrl}" class="action-item crm-hover-button">{ts}View Results{/ts}</a>
|
||||
<span class="btn-slide crm-hover-button">more
|
||||
<ul class="panel">
|
||||
{foreach from=$row.actions item=action key=action_name}
|
||||
<li><a href="{$action.url}" class="{$action_name} action-item crm-hover-button small-popup"
|
||||
{if $action.confirm_message}onclick="return window.confirm({$action.confirm_message|json_encode|htmlspecialchars})"{/if}
|
||||
title="{$action.label|escape}">{$action.label}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
<div class="action-link">
|
||||
{if $templateUrl}
|
||||
<a href="{$templateUrl}" class="button"><span><i class="crm-i fa-plus-circle"></i> {$newButton}</span></a>
|
||||
{/if}
|
||||
{if $reportUrl}
|
||||
<a href="{$reportUrl}" class="button"><span>{ts}View All Reports{/ts}</span></a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="crm-content-block">
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{if $myReports}
|
||||
{ts}You do not have any private reports. To add a report to this section, edit the Report Settings for a report and set 'Add to My Reports' to Yes.{/ts}
|
||||
{else}
|
||||
{ts 1=$compName}No %1 reports have been created.{/ts}
|
||||
{if $templateUrl}
|
||||
{ts 1=$templateUrl}You can create reports by selecting from the <a href="%1">list of report templates here.</a>{/ts}
|
||||
{else}
|
||||
{ts}Contact your site administrator for help creating reports.{/ts}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/strip}
|
|
@ -0,0 +1,85 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="help">
|
||||
{ts 1=$GName}The existing option choices for %1 group are listed below. You can add, edit or delete them from this screen.{/ts}
|
||||
</div>
|
||||
{if $action ne 1 and $action ne 2}
|
||||
<div class="action-link">
|
||||
<a href="{$newReport}" id="new"|cat:$GName class="button"><span><i class="crm-i fa-plus-circle"></i> {ts 1=$GName}Register New %1{/ts}</span></a>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
{/if}
|
||||
{if $rows}
|
||||
<div id="optionList">
|
||||
{strip}
|
||||
{* handle enable/disable actions*}
|
||||
{include file="CRM/common/enableDisableApi.tpl"}
|
||||
<table id="options" class="row-highlight">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{ts}Label{/ts}</th>
|
||||
<th>{ts}URL{/ts}</th>
|
||||
<th>{ts}Description{/ts}</th>
|
||||
<th>{ts}Order{/ts}</th>
|
||||
{if $showIsDefault}
|
||||
<th>{ts}Default{/ts}</th>
|
||||
{/if}
|
||||
<th>{ts}Reserved{/ts}</th>
|
||||
<th>{ts}Enabled?{/ts}</th>
|
||||
<th>{ts}Component{/ts}</th>
|
||||
<th></th>
|
||||
<th class="hiddenElement"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$rows item=row}
|
||||
<tr id="option_value-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{$row.class}{if NOT $row.is_active} crm-report-optionList crm-report-optionList-status_disable disabled{else} crm-report-optionList crm-report-optionList-status_enable{/if}">
|
||||
<td class="crm-report-optionList-label crm-editable" data-field="label">{$row.label}</td>
|
||||
<td class="crm-report-optionList-value">{$row.value}</td>
|
||||
<td class="crm-report-optionList-description">{$row.description}</td>
|
||||
<td class="nowrap crm-report-optionList-order">{$row.weight}</td>
|
||||
{if $showIsDefault}
|
||||
<td class="crm-report-optionList-default_value">{$row.default_value}</td>
|
||||
{/if}
|
||||
<td class="crm-report-optionList-is_reserved">{if $row.is_reserved eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td class="crm-report-optionList-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td class="crm-report-optionList-component_name">{$row.component_name}</td>
|
||||
<td class="crm-report-optionList-action">{$row.action}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
{if $action ne 1 and $action ne 2}
|
||||
<div class="action-link">
|
||||
<a href="{$newReport}" id="new"|cat:$GName class="button"><span><i class="crm-i fa-plus-circle"></i> {ts 1=$GName}Register New %1{/ts}</span></a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> {ts 1=$newReport}There are no option values entered. You can <a href="%1">add one</a>.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,68 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="crm-block crm-form-block crm-report-templateList-form-block">
|
||||
<div class="help">
|
||||
{ts}Create reports for your users from any of the report templates listed below. Click on a template title to get started. Click Existing Report(s) to see any reports that have already been created from that template.{/ts}
|
||||
</div>
|
||||
{strip}
|
||||
{if $list}
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$list item=rows key=report}
|
||||
<div class="crm-accordion-wrapper crm-accordion_{$report}-accordion ">
|
||||
<div class="crm-accordion-header">
|
||||
{if $report}{if $report EQ 'Contribute'}{ts}Contribution{/ts}{else}{$report}{/if}{else}Contact{/if} Report Templates
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
<div id="{$report}" class="boxBlock">
|
||||
<table class="report-layout">
|
||||
{foreach from=$rows item=row}
|
||||
<tr id="row_{counter}" class="crm-report-templateList">
|
||||
<td class="crm-report-templateList-title" style="width:35%;">
|
||||
<a href="{$row.url}" title="{ts}Create report from this template{/ts}">» <strong>{$row.title}</strong></a>
|
||||
{if $row.instanceUrl}
|
||||
<div style="font-size:10px;text-align:right;margin-top:3px;">
|
||||
<a href="{$row.instanceUrl}">{ts}Existing Report(s){/ts}</a>
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td style="cursor:help;" class="crm-report-templateList-description">
|
||||
{$row.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div> {ts}There are currently no Report Templates.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
{/strip}
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue