Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
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 | <div class="view-content"> | |
27 | {if $activeMembers} | |
28 | <div id="memberships"> | |
29 | <div class="form-item"> | |
30 | {strip} | |
31 | <table> | |
32 | <tr class="columnheader"> | |
33 | <th>{ts}Membership{/ts}</th> | |
34 | <th>{ts}Member Since{/ts}</th> | |
35 | <th>{ts}Start Date{/ts}</th> | |
36 | <th>{ts}End Date{/ts}</th> | |
37 | <th>{ts}Status{/ts}</th> | |
38 | <th></th> | |
39 | </tr> | |
40 | {foreach from=$activeMembers item=activeMember} | |
41 | <tr class="{cycle values="odd-row,even-row"} {$activeMember.class}"> | |
42 | <td>{$activeMember.membership_type}</td> | |
43 | <td>{$activeMember.join_date|crmDate}</td> | |
44 | <td>{$activeMember.start_date|crmDate}</td> | |
45 | <td>{$activeMember.end_date|crmDate}</td> | |
46 | <td>{$activeMember.status}</td> | |
47 | <td>{if $activeMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$activeMember.renewPageId`&mid=`$activeMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td> | |
48 | </tr> | |
49 | {/foreach} | |
50 | </table> | |
51 | {/strip} | |
52 | ||
53 | </div> | |
54 | </div> | |
55 | {/if} | |
56 | ||
57 | {if $inActiveMembers} | |
58 | <div id="ltype"> | |
59 | <p></p> | |
60 | <div class="label font-red">{ts}Expired / Inactive Memberships{/ts}</div> | |
61 | <div class="form-item"> | |
62 | {strip} | |
63 | <table> | |
64 | <tr class="columnheader"> | |
65 | <th>{ts}Membership{/ts}</th> | |
66 | <th>{ts}Start Date{/ts}</th> | |
67 | <th>{ts}End Date{/ts}</th> | |
68 | <th>{ts}Status{/ts}</th> | |
69 | <th></th> | |
70 | </tr> | |
71 | {foreach from=$inActiveMembers item=inActiveMember} | |
72 | <tr class="{cycle values="odd-row,even-row"} {$inActiveMember.class}"> | |
73 | <td>{$inActiveMember.membership_type}</td> | |
74 | <td>{$inActiveMember.start_date|crmDate}</td> | |
75 | <td>{$inActiveMember.end_date|crmDate}</td> | |
76 | <td>{$inActiveMember.status}</td> | |
77 | <td>{if $inActiveMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$inActiveMember.renewPageId`&mid=`$inActiveMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td> | |
78 | ||
79 | </tr> | |
80 | {/foreach} | |
81 | </table> | |
82 | {/strip} | |
83 | ||
84 | </div> | |
85 | </div> | |
86 | {/if} | |
87 | ||
88 | {if NOT ($activeMembers or $inActiveMembers)} | |
89 | <div class="messages status no-popup"> | |
90 | <div class="icon inform-icon"></div></dt> | |
91 | {ts}There are no memberships on record for you.{/ts} | |
92 | </div> | |
93 | {/if} | |
232624b1 | 94 | </div> |