commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / tools / templates / CRM / Auction / Page / Item.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
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 {if $manageItemURL}<a accesskey="N" href="{$manageItemURL}" id="manageItem" class="button">
27 <span>&raquo; {ts}Manage Items{/ts}</span></a>
28 <br/>
29 <br/>
30 {/if}
31
32 {include file="CRM/Auction/Form/SearchItem.tpl"}
33
34 {if $rows}
35 <div id=item_status_id>
36 {strip}
37 {include file="CRM/common/pager.tpl" location="top"}
38 {include file="CRM/common/pagerAToZ.tpl}
39 <table class="selector">
40 <tr class="columnheader">
41 <th></th>
42 <th>{ts}Item{/ts}</th>
43 <th>{ts}Max Bid{/ts}</th>
44 <th>{ts}Buy Now Price{/ts}</th>
45 <th>{ts}Retail Value{/ts}</th>
46 <th>{ts}Bidding Ends On{/ts}</th>
47 </tr>
48 {foreach from=$rows item=row}
49 <tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
50 <td><img src="{$config->resourceBase}i/contribute/default_premium.jpg" width="70px" height="50px"/></td>
51 <td>{$row.title}</td>
52 <td>{$row.max_bid|crmMoney}</td>
53 <td>{if $row.buy_now_value}{$row.buy_now_value|crmMoney} &nbsp;&raquo; <a href="#">buy now</a>{/if}</td>
54 <td>{$row.retail_value|crmMoney}</td>
55 <td>{$row.bid_end_date|crmDate}</td>
56 </tr>
57 {/foreach}
58 </table>
59 {include file="CRM/common/pager.tpl" location="bottom"}
60 {/strip}
61
62 </div>
63 {else}
64 {if $isSearch eq 1}
65 <div class="status messages">
66 <dl>
67 <dt><div class="icon inform-icon"></div></dt>
68 {capture assign=browseURL}{crmURL p='civicrm/auction/manage' q="reset=1"}{/capture}
69 <dd>
70 {ts}No available Auctions match your search criteria. Suggestions:{/ts}
71 <div class="spacer"></div>
72 <ul>
73 <li>{ts}Check your spelling.{/ts}</li>
74 <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
75 <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
76 </ul>
77 {ts 1=$browseURL}Or you can <a href='%1'>browse all available Current Auctions</a>.{/ts}
78 </dd>
79 </dl>
80 </div>
81 {else}
82 <div class="messages status">
83 <dl>
84 <dt><div class="icon inform-icon"></div></dt>
85 <dd>{ts 1=$newAuctionURL}There are no auctions created yet. You can <a href='%1'>add one</a>.{/ts}</dd>
86 </dl>
87 </div>
88 {/if}
89 {/if}