Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-07-14-13-42-39
[civicrm-core.git] / templates / CRM / Contact / Form / Task / Print.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 {if $rows}
27 <div class="crm-submit-buttons element-right">
28 {include file="CRM/common/formButtons.tpl" location="top"}
29 </div>
30 <div class="spacer"></div>
31 <div>
32 <br />
33 <table>
34 <tr class="columnheader">
35 {if $id}
36 {foreach from=$columnHeaders item=header}
37 <th>{$header}</th>
38 {/foreach}
39 {else}
40 <td>{ts}Name{/ts}</td>
41 {if !empty($columnHeaders.street_address)}
42 <td>{ts}Address{/ts}</td>
43 {/if}
44 {if !empty($columnHeaders.city)}
45 <td>{ts}City{/ts}</td>
46 {/if}
47 {if !empty($columnHeaders.state_province)}
48 <td>{ts}State{/ts}</td>
49 {/if}
50 {if !empty($columnHeaders.postal_code)}
51 <td>{ts}Postal{/ts}</td>
52 {/if}
53 {if !empty($columnHeaders.country)}
54 <td>{ts}Country{/ts}</td>
55 {/if}
56 <td>{ts}Email{/ts}</td>
57 <td>{ts}Phone{/ts}</td>
58 {/if}
59 </tr>
60 {foreach from=$rows item=row}
61 <tr class="{cycle values="odd-row,even-row"}">
62 {if $id}
63 <td>{$row.sort_name}</td>
64 {foreach from=$row item=value key=key}
65 {if ($key neq "checkbox") and ($key neq "action") and ($key neq "contact_type") and ($key neq "status") and ($key neq "contact_id") and ($key neq "sort_name")}
66 <td>{$value}</td>
67 {/if}
68 {/foreach}
69
70 {else}
71 <td>{$row.sort_name}</td>
72 {if !empty($columnHeaders.street_address)}
73 <td>{$row.street_address}</td>
74 {/if}
75 {if !empty($columnHeaders.city)}
76 <td>{$row.city}</td>
77 {/if}
78 {if !empty($columnHeaders.state_province)}
79 <td>{$row.state_province}</td>
80 {/if}
81 {if !empty($columnHeaders.postal_code)}
82 <td>{$row.postal_code}</td>
83 {/if}
84 {if !empty($columnHeaders.country)}
85 <td>{$row.country}</td>
86 {/if}
87 <td>{$row.email}</td>
88 <td>{$row.phone}</td>
89 {/if}
90 </tr>
91 {/foreach}
92 </table>
93 </div>
94
95 <div class="crm-submit-buttons element-right">
96 {include file="CRM/common/formButtons.tpl" location="bottom"}
97 </div>
98
99 {else}
100 <div class="messages status no-popup">
101 <div class="icon inform-icon"></div>
102 {ts}There are no records selected for Print.{/ts}
103 </div>
104 {/if}