| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 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 | <p> |
| 27 | {if $rows } |
| 28 | <div class="form-item"> |
| 29 | <span class="element-right">{include file="CRM/common/formButtons.tpl" location="top"}</span> |
| 30 | </div> |
| 31 | <div class="spacer"></div> |
| 32 | <br /> |
| 33 | <p> |
| 34 | <table> |
| 35 | <tr class="columnheader"> |
| 36 | <th>{ts}Name{/ts}</th> |
| 37 | <th>{ts}Type{/ts}</th> |
| 38 | <th>{ts}Member Since{/ts}</th> |
| 39 | <th>{ts}Start Date{/ts}</th> |
| 40 | <th>{ts}End Date{/ts}</th> |
| 41 | <th>{ts}Source{/ts}</th> |
| 42 | <th>{ts}Status{/ts}</th> |
| 43 | </tr> |
| 44 | {foreach from=$rows item=row} |
| 45 | <tr class="{cycle values="odd-row,even-row"} crm-membership"> |
| 46 | <td class="crm-membership-sort_name">{$row.sort_name}</td> |
| 47 | <td class="crm-membership-type crm-membership-type_{$row.membership_type}">{$row.membership_type}</td> |
| 48 | <td class="crm-membership-join_date">{$row.join_date|truncate:10:''|crmDate}</td> |
| 49 | <td class="crm-membership-start_date">{$row.membership_start_date|truncate:10:''|crmDate}</td> |
| 50 | <td class="crm-membership-membership_end_date">{$row.membership_end_date|truncate:10:''|crmDate}</td> |
| 51 | <td class="crm-membership-source">{$row.membership_source}</td> |
| 52 | <td class="crm-membership-status crm-membership-status_{$row.membership_status}">{$row.membership_status}</td> |
| 53 | </tr> |
| 54 | {/foreach} |
| 55 | </table> |
| 56 | |
| 57 | <div class="form-item"> |
| 58 | <span class="element-right">{include file="CRM/common/formButtons.tpl" location="bottom"}</span> |
| 59 | </div> |
| 60 | |
| 61 | {else} |
| 62 | <div class="messages status no-popup"> |
| 63 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"> |
| 64 | {ts}There are no records selected for Print.{/ts} |
| 65 | </div> |
| 66 | {/if} |