Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* CiviMember DashBoard (launch page) *} | |
46c91013 | 27 | {if $membershipSummary} |
e4068d5e E |
28 | <h3>{ts}Membership Summary{/ts} {help id="id-member-intro"}</h3> |
29 | <table class="report"> | |
6a488035 TO |
30 | <tr class="columnheader-dark"> |
31 | <th scope="col" rowspan="2">{ts}Members by Type{/ts}</th> | |
32 | {if $preMonth} | |
33 | <th scope="col" colspan="3">{$premonth} – {ts}(Last Month){/ts}</th> | |
34 | {/if} | |
35 | <th scope="col" colspan="3">{$month}{if $isCurrent}{ts} (MTD){/ts}{/if}</th> | |
36 | <th scope="col" colspan="3"> | |
37 | {if $year eq $currentYear} | |
38 | {$year} {ts}(YTD){/ts} | |
39 | {else} | |
40 | {$year} {ts 1=$month}through %1{/ts} | |
41 | {/if} | |
42 | </th> | |
e4068d5e E |
43 | <th scope="col" rowspan="2"> |
44 | {if $isCurrent} | |
45 | {ts}Current #{/ts} | |
46 | {else} | |
47 | {ts 1=$month 2=$year}Members as of %1 %2{/ts} | |
48 | {/if} | |
49 | </th> | |
6a488035 TO |
50 | </tr> |
51 | ||
52 | <tr class="columnheader-dark"> | |
53 | {if $preMonth} | |
54 | <th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th> | |
55 | {/if} | |
56 | <th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th> | |
57 | <th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th> | |
58 | </tr> | |
59 | ||
60 | {foreach from=$membershipSummary item=row} | |
61 | <tr> | |
4e636a74 AH |
62 | <td><strong>{$row.month.total.name}</strong></td> |
63 | {if $preMonth} | |
64 | <td class="label"> | |
65 | {if $row.premonth.new.url}<a href="{$row.premonth.new.url}" title="view details">{$row.premonth.new.count}</a> | |
66 | {else}{$row.premonth.new.count}{/if} | |
67 | </td> | |
68 | <td class="label"> | |
69 | {if $row.premonth.renew.url}<a href="{$row.premonth.renew.url}" title="view details">{$row.premonth.renew.count}</a> | |
70 | {else}{$row.premonth.renew.count}{/if} | |
71 | </td> | |
72 | <td class="label"> | |
73 | {if $row.premonth.total.url} | |
74 | <a href="{$row.premonth.total.url}" title="view details">{$row.premonth.total.count}</a> | |
75 | {else} | |
76 | {$row.premonth.total.count} | |
12e6c315 | 77 | {/if} [ |
4e636a74 AH |
78 | {if $row.premonth_owner.premonth_owner.url} |
79 | <a href="{$row.premonth_owner.premonth_owner.url}" title="view details">{$row.premonth_owner.premonth_owner.count}</a> | |
80 | {else} | |
81 | {$row.premonth_owner.premonth_owner.count} | |
82 | {/if}] | |
83 | </td> | |
84 | {/if} | |
6a488035 | 85 | |
4e636a74 AH |
86 | <td class="label"> |
87 | {if $row.month.new.url}<a href="{$row.month.new.url}" title="view details">{$row.month.new.count}</a> | |
88 | {else}{$row.month.new.count}{/if} | |
89 | </td> | |
90 | <td class="label"> | |
91 | {if $row.month.renew.url}<a href="{$row.month.renew.url}" title="view details">{$row.month.renew.count}</a> | |
92 | {else}{$row.month.renew.count}{/if} | |
93 | </td> | |
94 | <td class="label"> | |
95 | {if $row.month.total.url} | |
96 | <a href="{$row.month.total.url}" title="view details">{$row.month.total.count}</a> | |
97 | {else} | |
98 | {$row.month.total.count} | |
12e6c315 | 99 | {/if} [ |
4e636a74 AH |
100 | {if $row.month_owner.month_owner.url} |
101 | <a href="{$row.month_owner.month_owner.url}" title="view details">{$row.month_owner.month_owner.count}</a> | |
102 | {else} | |
103 | {$row.month_owner.month_owner.count} | |
104 | {/if}] | |
105 | </td> | |
6a488035 | 106 | |
4e636a74 AH |
107 | <td class="label"> |
108 | {if $row.year.new.url}<a href="{$row.year.new.url}" title="view details">{$row.year.new.count}</a> | |
109 | {else}{$row.year.new.count}{/if} | |
110 | </td> | |
111 | <td class="label"> | |
112 | {if $row.year.renew.url}<a href="{$row.year.renew.url}" title="view details">{$row.year.renew.count}</a> | |
113 | {else}{$row.year.renew.count}{/if} | |
114 | </td> | |
115 | <td class="label"> | |
116 | {if $row.year.total.url} | |
117 | <a href="{$row.year.total.url}" title="view details">{$row.year.total.count}</a> | |
118 | {else} | |
119 | {$row.year.total.count} | |
12e6c315 | 120 | {/if} [ |
4e636a74 AH |
121 | {if $row.year_owner.year_owner.url} |
122 | <a href="{$row.year_owner.year_owner.url}" title="view details">{$row.year_owner.year_owner.count}</a> | |
123 | {else} | |
124 | {$row.year_owner.year_owner.count} | |
125 | {/if}] | |
126 | </td> | |
6a488035 TO |
127 | |
128 | <td class="label"> | |
4e636a74 AH |
129 | {if $isCurrent} |
130 | {if $row.current.total.url} | |
131 | <a href="{$row.current.total.url}" title="view details">{$row.current.total.count}</a> | |
132 | {else} | |
133 | {$row.current.total.count} | |
134 | {/if} [ | |
135 | {if $row.current_owner.current_owner.url} | |
136 | <a href="{$row.current_owner.current_owner.url}" title="view details">{$row.current_owner.current_owner.count}</a> | |
137 | {else} | |
138 | {$row.current_owner.current_owner.count} | |
139 | {/if} ] | |
140 | {else} | |
141 | {if $row.total.total.url} | |
142 | <a href="{$row.total.total.url}" title="view details">{$row.total.total.count}</a> | |
143 | {else} | |
144 | {$row.total.total.count} | |
145 | {/if} [ | |
146 | {if $row.total_owner.total_owner.url} | |
147 | <a href="{$row.total_owner.total_owner.url}" title="view details">{$row.total_owner.total_owner.count}</a> | |
6a488035 | 148 | {else} |
4e636a74 AH |
149 | {$row.total_owner.total_owner.count} |
150 | {/if} ] | |
151 | {/if} | |
6a488035 TO |
152 | </td> {* member/search?reset=1&force=1&membership_type_id=1¤t=1 *} |
153 | </tr> | |
154 | {/foreach} | |
155 | ||
156 | <tr class="columnfooter"> | |
157 | <td><strong>{ts}Totals (all types){/ts}</strong></td> | |
158 | {if $preMonth} | |
0370ad20 AH |
159 | <td class="label"> |
160 | {if $totalCount.premonth.new.url}<a href="{$totalCount.premonth.new.url}" title="view details">{$totalCount.premonth.new.count}</a> | |
161 | {else}{$totalCount.premonth.new.count}{/if} | |
162 | </td> | |
163 | <td class="label"> | |
164 | {if $totalCount.premonth.renew.url}<a href="{$totalCount.premonth.renew.url}" title="view details">{$totalCount.premonth.renew.count}</a> | |
165 | {else}{$totalCount.premonth.renew.count}{/if} | |
166 | </td> | |
167 | <td class="label"> | |
168 | {if $totalCount.premonth.total.url} | |
169 | <a href="{$totalCount.premonth.total.url}" title="view details">{$totalCount.premonth.total.count}</a> | |
170 | {else} | |
171 | {$totalCount.premonth.total.count} | |
12e6c315 | 172 | {/if} [ |
0370ad20 AH |
173 | {if $totalCount.premonth_owner.premonth_owner.url} |
174 | <a href="{$totalCount.premonth_owner.premonth_owner.url}" title="view details">{$totalCount.premonth_owner.premonth_owner.count}</a> | |
175 | {else} | |
176 | {$totalCount.premonth_owner.premonth_owner.count} | |
177 | {/if}] | |
178 | </td> | |
6a488035 TO |
179 | {/if} |
180 | ||
0370ad20 AH |
181 | <td class="label"> |
182 | {if $totalCount.month.new.url}<a href="{$totalCount.month.new.url}" title="view details">{$totalCount.month.new.count}</a> | |
183 | {else}{$totalCount.month.new.count}{/if} | |
184 | </td> | |
185 | <td class="label"> | |
186 | {if $totalCount.month.renew.url}<a href="{$totalCount.month.renew.url}" title="view details">{$totalCount.month.renew.count}</a> | |
187 | {else}{$totalCount.month.renew.count}{/if} | |
188 | </td> | |
189 | <td class="label"> | |
190 | {if $totalCount.month.total.url} | |
191 | <a href="{$totalCount.month.total.url}" title="view details">{$totalCount.month.total.count}</a> | |
192 | {else} | |
193 | {$totalCount.month.total.count} | |
12e6c315 | 194 | {/if} [ |
0370ad20 AH |
195 | {if $totalCount.month_owner.month_owner.url} |
196 | <a href="{$totalCount.month_owner.month_owner.url}" title="view details">{$totalCount.month_owner.month_owner.count}</a> | |
197 | {else} | |
198 | {$totalCount.month_owner.month_owner.count} | |
199 | {/if}] | |
200 | </td> | |
6a488035 | 201 | |
0370ad20 AH |
202 | <td class="label"> |
203 | {if $totalCount.year.new.url}<a href="{$totalCount.year.new.url}" title="view details">{$totalCount.year.new.count}</a> | |
204 | {else}{$totalCount.year.new.count}{/if} | |
205 | </td> | |
206 | <td class="label"> | |
207 | {if $totalCount.year.renew.url}<a href="{$totalCount.year.renew.url}" title="view details">{$totalCount.year.renew.count}</a> | |
208 | {else}{$totalCount.year.renew.count}{/if} | |
209 | </td> | |
210 | <td class="label"> | |
211 | {if $totalCount.year.total.url} | |
212 | <a href="{$totalCount.year.total.url}" title="view details">{$totalCount.year.total.count}</a> | |
213 | {else} | |
214 | {$totalCount.year.total.count} | |
12e6c315 | 215 | {/if} [ |
0370ad20 AH |
216 | {if $totalCount.year_owner.year_owner.url} |
217 | <a href="{$totalCount.year_owner.year_owner.url}" title="view details">{$totalCount.year_owner.year_owner.count}</a> | |
218 | {else} | |
219 | {$totalCount.year_owner.year_owner.count} | |
220 | {/if}] | |
221 | </td> | |
6a488035 | 222 | |
0370ad20 AH |
223 | <td class="label"> |
224 | {if $isCurrent} | |
225 | {if $row.total.total.url} | |
226 | <a href="{$row.total.total.url}" title="view details">{$totalCount.current.total.count}</a> | |
227 | {else} | |
228 | {$totalCount.current.total.count} | |
229 | {/if} [ | |
230 | {if $row.total_owner.total_owner.url} | |
231 | <a href="{$row.total_owner.total_owner.url}" title="view details">{$totalCount.current_owner.current_owner.count}</a> | |
232 | {else} | |
233 | {$totalCount.current_owner.current_owner.count} | |
234 | {/if} ] | |
235 | {else} | |
236 | {if $totalCount.total.url} | |
237 | <a href="{$totalCount.total.url}" title="view details">{$totalCount.total.total.count}</a> | |
238 | {else} | |
239 | {$totalCount.total.total.count} | |
240 | {/if} [ | |
241 | {if $totalCount.total_owner.total_owner.url} | |
242 | <a href="{$totalCount.total_owner.total_owner.url}" title="view details">{$totalCount.total_owner.total_owner.count}</a> | |
243 | {else} | |
244 | {$totalCount.total_owner.total_owner.count} | |
245 | {/if} ] | |
246 | {/if} | |
247 | </td> | |
6a488035 | 248 | |
6a488035 TO |
249 | </tr> |
250 | <tr><td colspan='11'> | |
7ccbe556 | 251 | {ts}Primary member counts (those who "own" the membership rather than receiving via relationship) are in [brackets].{/ts} |
6a488035 | 252 | </td></tr> |
e4068d5e | 253 | </table> |
46c91013 | 254 | {/if} |
6a488035 TO |
255 | <div class="spacer"></div> |
256 | ||
257 | {if $rows} | |
258 | {* if $pager->_totalItems *} | |
e4068d5e E |
259 | <h3>{ts}Recent Memberships{/ts}</h3> |
260 | <div class="form-item"> | |
261 | { include file="CRM/Member/Form/Selector.tpl" context="dashboard" } | |
262 | </div> | |
6a488035 TO |
263 | {* /if *} |
264 | {/if} |