Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | {* CiviMember DashBoard (launch page) *} | |
27 | <h3>{ts}Membership Summary{/ts} {help id="id-member-intro"}</h3> | |
28 | <table class="report"> | |
29 | <tr class="columnheader-dark"> | |
30 | <th scope="col" rowspan="2">{ts}Members by Type{/ts}</th> | |
31 | {if $preMonth} | |
32 | <th scope="col" colspan="3">{$premonth} – {ts}(Last Month){/ts}</th> | |
33 | {/if} | |
34 | <th scope="col" colspan="3">{$month}{if $isCurrent}{ts} (MTD){/ts}{/if}</th> | |
35 | <th scope="col" colspan="3"> | |
36 | {if $year eq $currentYear} | |
37 | {$year} {ts}(YTD){/ts} | |
38 | {else} | |
39 | {$year} {ts 1=$month}through %1{/ts} | |
40 | {/if} | |
41 | </th> | |
42 | <th scope="col" rowspan="2"> | |
43 | {if $isCurrent} | |
44 | {ts}Current #{/ts} | |
45 | {else} | |
46 | {ts 1=$month 2=$year}Members as of %1 %2{/ts} | |
47 | {/if} | |
48 | </th> | |
49 | </tr> | |
50 | ||
51 | <tr class="columnheader-dark"> | |
52 | {if $preMonth} | |
53 | <th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th> | |
54 | {/if} | |
55 | <th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th> | |
56 | <th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th> | |
57 | </tr> | |
58 | ||
59 | {foreach from=$membershipSummary item=row} | |
60 | <tr> | |
4e636a74 AH |
61 | <td><strong>{$row.month.total.name}</strong></td> |
62 | {if $preMonth} | |
63 | <td class="label"> | |
64 | {if $row.premonth.new.url}<a href="{$row.premonth.new.url}" title="view details">{$row.premonth.new.count}</a> | |
65 | {else}{$row.premonth.new.count}{/if} | |
66 | </td> | |
67 | <td class="label"> | |
68 | {if $row.premonth.renew.url}<a href="{$row.premonth.renew.url}" title="view details">{$row.premonth.renew.count}</a> | |
69 | {else}{$row.premonth.renew.count}{/if} | |
70 | </td> | |
71 | <td class="label"> | |
72 | {if $row.premonth.total.url} | |
73 | <a href="{$row.premonth.total.url}" title="view details">{$row.premonth.total.count}</a> | |
74 | {else} | |
75 | {$row.premonth.total.count} | |
76 | {/if} [ | |
77 | {if $row.premonth_owner.premonth_owner.url} | |
78 | <a href="{$row.premonth_owner.premonth_owner.url}" title="view details">{$row.premonth_owner.premonth_owner.count}</a> | |
79 | {else} | |
80 | {$row.premonth_owner.premonth_owner.count} | |
81 | {/if}] | |
82 | </td> | |
83 | {/if} | |
6a488035 | 84 | |
4e636a74 AH |
85 | <td class="label"> |
86 | {if $row.month.new.url}<a href="{$row.month.new.url}" title="view details">{$row.month.new.count}</a> | |
87 | {else}{$row.month.new.count}{/if} | |
88 | </td> | |
89 | <td class="label"> | |
90 | {if $row.month.renew.url}<a href="{$row.month.renew.url}" title="view details">{$row.month.renew.count}</a> | |
91 | {else}{$row.month.renew.count}{/if} | |
92 | </td> | |
93 | <td class="label"> | |
94 | {if $row.month.total.url} | |
95 | <a href="{$row.month.total.url}" title="view details">{$row.month.total.count}</a> | |
96 | {else} | |
97 | {$row.month.total.count} | |
98 | {/if} [ | |
99 | {if $row.month_owner.month_owner.url} | |
100 | <a href="{$row.month_owner.month_owner.url}" title="view details">{$row.month_owner.month_owner.count}</a> | |
101 | {else} | |
102 | {$row.month_owner.month_owner.count} | |
103 | {/if}] | |
104 | </td> | |
6a488035 | 105 | |
4e636a74 AH |
106 | <td class="label"> |
107 | {if $row.year.new.url}<a href="{$row.year.new.url}" title="view details">{$row.year.new.count}</a> | |
108 | {else}{$row.year.new.count}{/if} | |
109 | </td> | |
110 | <td class="label"> | |
111 | {if $row.year.renew.url}<a href="{$row.year.renew.url}" title="view details">{$row.year.renew.count}</a> | |
112 | {else}{$row.year.renew.count}{/if} | |
113 | </td> | |
114 | <td class="label"> | |
115 | {if $row.year.total.url} | |
116 | <a href="{$row.year.total.url}" title="view details">{$row.year.total.count}</a> | |
117 | {else} | |
118 | {$row.year.total.count} | |
119 | {/if} [ | |
120 | {if $row.year_owner.year_owner.url} | |
121 | <a href="{$row.year_owner.year_owner.url}" title="view details">{$row.year_owner.year_owner.count}</a> | |
122 | {else} | |
123 | {$row.year_owner.year_owner.count} | |
124 | {/if}] | |
125 | </td> | |
6a488035 TO |
126 | |
127 | <td class="label"> | |
4e636a74 AH |
128 | {if $isCurrent} |
129 | {if $row.current.total.url} | |
130 | <a href="{$row.current.total.url}" title="view details">{$row.current.total.count}</a> | |
131 | {else} | |
132 | {$row.current.total.count} | |
133 | {/if} [ | |
134 | {if $row.current_owner.current_owner.url} | |
135 | <a href="{$row.current_owner.current_owner.url}" title="view details">{$row.current_owner.current_owner.count}</a> | |
136 | {else} | |
137 | {$row.current_owner.current_owner.count} | |
138 | {/if} ] | |
139 | {else} | |
140 | {if $row.total.total.url} | |
141 | <a href="{$row.total.total.url}" title="view details">{$row.total.total.count}</a> | |
142 | {else} | |
143 | {$row.total.total.count} | |
144 | {/if} [ | |
145 | {if $row.total_owner.total_owner.url} | |
146 | <a href="{$row.total_owner.total_owner.url}" title="view details">{$row.total_owner.total_owner.count}</a> | |
6a488035 | 147 | {else} |
4e636a74 AH |
148 | {$row.total_owner.total_owner.count} |
149 | {/if} ] | |
150 | {/if} | |
6a488035 TO |
151 | </td> {* member/search?reset=1&force=1&membership_type_id=1¤t=1 *} |
152 | </tr> | |
153 | {/foreach} | |
154 | ||
155 | <tr class="columnfooter"> | |
156 | <td><strong>{ts}Totals (all types){/ts}</strong></td> | |
157 | {if $preMonth} | |
0370ad20 AH |
158 | <td class="label"> |
159 | {if $totalCount.premonth.new.url}<a href="{$totalCount.premonth.new.url}" title="view details">{$totalCount.premonth.new.count}</a> | |
160 | {else}{$totalCount.premonth.new.count}{/if} | |
161 | </td> | |
162 | <td class="label"> | |
163 | {if $totalCount.premonth.renew.url}<a href="{$totalCount.premonth.renew.url}" title="view details">{$totalCount.premonth.renew.count}</a> | |
164 | {else}{$totalCount.premonth.renew.count}{/if} | |
165 | </td> | |
166 | <td class="label"> | |
167 | {if $totalCount.premonth.total.url} | |
168 | <a href="{$totalCount.premonth.total.url}" title="view details">{$totalCount.premonth.total.count}</a> | |
169 | {else} | |
170 | {$totalCount.premonth.total.count} | |
171 | {/if} [ | |
172 | {if $totalCount.premonth_owner.premonth_owner.url} | |
173 | <a href="{$totalCount.premonth_owner.premonth_owner.url}" title="view details">{$totalCount.premonth_owner.premonth_owner.count}</a> | |
174 | {else} | |
175 | {$totalCount.premonth_owner.premonth_owner.count} | |
176 | {/if}] | |
177 | </td> | |
6a488035 TO |
178 | {/if} |
179 | ||
0370ad20 AH |
180 | <td class="label"> |
181 | {if $totalCount.month.new.url}<a href="{$totalCount.month.new.url}" title="view details">{$totalCount.month.new.count}</a> | |
182 | {else}{$totalCount.month.new.count}{/if} | |
183 | </td> | |
184 | <td class="label"> | |
185 | {if $totalCount.month.renew.url}<a href="{$totalCount.month.renew.url}" title="view details">{$totalCount.month.renew.count}</a> | |
186 | {else}{$totalCount.month.renew.count}{/if} | |
187 | </td> | |
188 | <td class="label"> | |
189 | {if $totalCount.month.total.url} | |
190 | <a href="{$totalCount.month.total.url}" title="view details">{$totalCount.month.total.count}</a> | |
191 | {else} | |
192 | {$totalCount.month.total.count} | |
193 | {/if} [ | |
194 | {if $totalCount.month_owner.month_owner.url} | |
195 | <a href="{$totalCount.month_owner.month_owner.url}" title="view details">{$totalCount.month_owner.month_owner.count}</a> | |
196 | {else} | |
197 | {$totalCount.month_owner.month_owner.count} | |
198 | {/if}] | |
199 | </td> | |
6a488035 | 200 | |
0370ad20 AH |
201 | <td class="label"> |
202 | {if $totalCount.year.new.url}<a href="{$totalCount.year.new.url}" title="view details">{$totalCount.year.new.count}</a> | |
203 | {else}{$totalCount.year.new.count}{/if} | |
204 | </td> | |
205 | <td class="label"> | |
206 | {if $totalCount.year.renew.url}<a href="{$totalCount.year.renew.url}" title="view details">{$totalCount.year.renew.count}</a> | |
207 | {else}{$totalCount.year.renew.count}{/if} | |
208 | </td> | |
209 | <td class="label"> | |
210 | {if $totalCount.year.total.url} | |
211 | <a href="{$totalCount.year.total.url}" title="view details">{$totalCount.year.total.count}</a> | |
212 | {else} | |
213 | {$totalCount.year.total.count} | |
214 | {/if} [ | |
215 | {if $totalCount.year_owner.year_owner.url} | |
216 | <a href="{$totalCount.year_owner.year_owner.url}" title="view details">{$totalCount.year_owner.year_owner.count}</a> | |
217 | {else} | |
218 | {$totalCount.year_owner.year_owner.count} | |
219 | {/if}] | |
220 | </td> | |
6a488035 | 221 | |
0370ad20 AH |
222 | <td class="label"> |
223 | {if $isCurrent} | |
224 | {if $row.total.total.url} | |
225 | <a href="{$row.total.total.url}" title="view details">{$totalCount.current.total.count}</a> | |
226 | {else} | |
227 | {$totalCount.current.total.count} | |
228 | {/if} [ | |
229 | {if $row.total_owner.total_owner.url} | |
230 | <a href="{$row.total_owner.total_owner.url}" title="view details">{$totalCount.current_owner.current_owner.count}</a> | |
231 | {else} | |
232 | {$totalCount.current_owner.current_owner.count} | |
233 | {/if} ] | |
234 | {else} | |
235 | {if $totalCount.total.url} | |
236 | <a href="{$totalCount.total.url}" title="view details">{$totalCount.total.total.count}</a> | |
237 | {else} | |
238 | {$totalCount.total.total.count} | |
239 | {/if} [ | |
240 | {if $totalCount.total_owner.total_owner.url} | |
241 | <a href="{$totalCount.total_owner.total_owner.url}" title="view details">{$totalCount.total_owner.total_owner.count}</a> | |
242 | {else} | |
243 | {$totalCount.total_owner.total_owner.count} | |
244 | {/if} ] | |
245 | {/if} | |
246 | </td> | |
6a488035 | 247 | |
6a488035 TO |
248 | </tr> |
249 | <tr><td colspan='11'> | |
250 | Primary member counts (those who "own" the membership rather than receiving via relationship) are in [brackets]. | |
251 | </td></tr> | |
252 | </table> | |
253 | ||
254 | <div class="spacer"></div> | |
255 | ||
256 | {if $rows} | |
257 | {* if $pager->_totalItems *} | |
258 | <h3>{ts}Recent Memberships{/ts}</h3> | |
259 | <div class="form-item"> | |
260 | { include file="CRM/Member/Form/Selector.tpl" context="dashboard" } | |
261 | </div> | |
262 | {* /if *} | |
263 | {/if} |