| 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 | |
| 28 | {if $rows } |
| 29 | <div class="crm-submit-buttons"> |
| 30 | <span class="element-right">{include file="CRM/common/formButtons.tpl" location="top"}</span> |
| 31 | </div> |
| 32 | <div class="spacer"></div> |
| 33 | <br /> |
| 34 | <p> |
| 35 | <table> |
| 36 | <tr class="columnheader"> |
| 37 | <th>{ts}Name{/ts}</th> |
| 38 | <th>{ts}Event{/ts}</th> |
| 39 | <th>{ts}Fee Level{/ts}</th> |
| 40 | <th>{ts}Fee Amount{/ts}</th> |
| 41 | <th>{ts}Event Date{/ts}</th> |
| 42 | <th>{ts}Status{/ts}</th> |
| 43 | <th>{ts}Role{/ts}</th> |
| 44 | </tr> |
| 45 | {foreach from=$rows item=row} |
| 46 | <tr class="{cycle values="odd-row,even-row"}"> |
| 47 | <td class="crm-event-print-sort_name">{$row.sort_name}</td> |
| 48 | <td class="crm-event-print-event_title">{$row.event_title}</td> |
| 49 | {assign var="participant_id" value=$row.participant_id} |
| 50 | {if $lineItems.$participant_id} |
| 51 | <td> |
| 52 | {foreach from=$lineItems.$participant_id item=line name=lineItemsIter} |
| 53 | {$line.label}: {$line.qty} |
| 54 | {if ! $smarty.foreach.lineItemsIter.last}<br>{/if} |
| 55 | {/foreach} |
| 56 | </td> |
| 57 | {else} |
| 58 | <td>{if !$row.paid && !$row.participant_fee_level} {ts}(no fee){/ts}{else} {$row.participant_fee_level}{/if}</td> |
| 59 | {/if} |
| 60 | <td class="crm-event-print-event_participant_fee_amount">{$row.participant_fee_amount|crmMoney}</td> |
| 61 | <td class="crm-event-print-event_date">{$row.event_start_date|truncate:10:''|crmDate} |
| 62 | {if $row.event_end_date && $row.event_end_date|date_format:"%Y%m%d" NEQ $row.event_start_date|date_format:"%Y%m%d"} |
| 63 | <br/>- {$row.event_end_date|truncate:10:''|crmDate} |
| 64 | {/if} |
| 65 | </td> |
| 66 | <td class="crm-event-print-participant_status">{$row.participant_status}</td> |
| 67 | <td class="crm-event-print-participant_role_id">{$row.participant_role_id}</td> |
| 68 | </tr> |
| 69 | {/foreach} |
| 70 | </table> |
| 71 | |
| 72 | <div class="form-item"> |
| 73 | <span class="element-right">{include file="CRM/common/formButtons.tpl"}</span> |
| 74 | </div> |
| 75 | |
| 76 | {else} |
| 77 | <div class="messages status no-popup"> |
| 78 | <div class="icon inform-icon"></div> {ts}There are no records selected for Print.{/ts} |
| 79 | </div> |
| 80 | {/if} |