commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / Report / Form / Campaign / SurveyCoverSheet.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26
27 {* Cover sheet for walklist survey *}
28
29 <h2>{ts 1=$reportTitle}Cover Sheet for %1{/ts}</h2>
30
31 {* print survey result set option value and label *}
32 {if $surveyResultFields}
33
34 <h4>{ts}Result Set{/ts}</h4>
35 <div id='survey_result_fields'>
36 <table class="report-layout">
37 {foreach from=$surveyResultFields key=surveyId item=result}
38 <tr><th scope="row">{ts 1=$result.title}Survey Title = %1{/ts}</th></tr>
39 <tr><td>
40 <div id='survey_result_fields_options'>
41 <table class="report-layout">
42 {foreach from=$result.options key=value item=label}
43 <tr><td>{$value} = {$label}</td></tr>
44 {/foreach}
45 </table>
46 </div>
47 </td>
48 </tr>
49
50 {/foreach}
51 </table>
52 </div>
53
54 {/if }
55
56
57 {* print survey response set option value and label *}
58 {if $surveyResponseFields}
59
60 <h4>{ts}Response Codes{/ts}</h4>
61 <div id='survey_response_fields'>
62 <table class="report-layout">
63
64 {assign var=resFldCnt value=1}
65 {foreach from=$surveyResponseFields key=id item=responseField}
66
67 <tr><th>{ts 1=$resFldCnt 2=$responseField.title}Q%1 = %2{/ts}</th></tr>
68
69 {if $responseField.options}
70 <tr><td>
71 <div id='survey_response_fields_codes'>
72 <table class="report-layout">
73 {foreach from=$responseField.options key=value item=label}
74 <tr><td>{$value} = {$label}</td></tr>
75 {/foreach}
76 </table>
77 </div>
78 </td>
79 </tr>
80 {/if}
81
82 {* clean separation of each response question *}
83 <tr><td><br /></td></tr>
84
85 {assign var=resFldCnt value=`$resFldCnt+1`}
86 {/foreach}
87
88 </table>
89 </div>
90 {/if}
91