initial import to SVN
This commit is contained in:
commit
d2f3925fbb
209 changed files with 45450 additions and 0 deletions
181
src/templates/shop.tpl
Normal file
181
src/templates/shop.tpl
Normal file
|
@ -0,0 +1,181 @@
|
|||
{*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*}
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Script//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html lang="en" xml:lang="en" xmln="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Gift Registry - Shopping List for {$ufullname}</title>
|
||||
<link href="styles.css" type="text/css" rel="stylesheet" />
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function printPage() {
|
||||
window.print();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
{if $message != ''}
|
||||
<span class="message">{$message|escape:'htmlall'}</span>
|
||||
{/if}
|
||||
<p class="pagetitle">Gift Registry - Shopping List for {$ufullname|escape:'htmlall'}</p>
|
||||
{if $opt.show_helptext}
|
||||
<p>
|
||||
<div class="helptext">
|
||||
<ul>
|
||||
<li>If you intend to purchase a gift for this person, click the <img src="images/lock_co.gif"> icon. If you end up actually purchasing it, come back and click the <img src="images/step_done.gif"> icon. If you change your mind and don't want to buy it, come back and click the <img src="images/unlock_co.gif"> icon.</li>
|
||||
<li>If you return something you've purchased, come back and click the <img src="images/run_exc.gif"> icon. It will remain reserved for you.</li>
|
||||
<li>Just because an item has a URL listed doesn't mean you have to buy it from there (unless the comment says so).</li>
|
||||
<li>You can click the column headers to sort by that attribute.</li>
|
||||
<li>If you see something you'd like for yourself, click the <img src="images/toolbar_replace.gif"> icon to copy it to your own list.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</p>
|
||||
{/if}
|
||||
<div align="right">
|
||||
<img src="images/lock_co.gif" alt="Reserve" title="Reserve"> = Reserve, <img src="images/unlock_co.gif" alt="Release" title="Release"> = Release, <img src="images/step_done.gif" alt="Purchase" title="Purchase"> = Purchase, <img src="images/run_exc.gif" alt="Return" title="Return"> = Return, <img src="images/toolbar_replace.gif" alt="I Want This Too" title="I Want This Too"> = I Want This Too
|
||||
</div>
|
||||
<p>
|
||||
<table class="partbox" width="100%" cellpadding="3" cellspacing="0">
|
||||
<tr valign="top">
|
||||
<th class="colheader"><a href="shop.php?shopfor={$shopfor}&sort=ranking">Rank</a></th>
|
||||
<th class="colheader"><a href="shop.php?shopfor={$shopfor}&sort=description">Description</a></th>
|
||||
<th class="colheader"><a href="shop.php?shopfor={$shopfor}&sort=category">Category</a></th>
|
||||
<th class="rcolheader"><a href="shop.php?shopfor={$shopfor}&sort=price">Price</a></th>
|
||||
<th class="colheader"><a href="shop.php?shopfor={$shopfor}&sort=source">Store/Location</a></th>
|
||||
<th class="colheader"><a href="shop.php?shopfor={$shopfor}&sort=status">Status</a></th>
|
||||
<th class="rcolheader"> </th>
|
||||
<th class="rcolheader"> </th>
|
||||
</tr>
|
||||
{assign var="i" value=0}
|
||||
{foreach from=$shoprows item=row}
|
||||
{assign var="i" value=$i+1}
|
||||
{if $i % 2 == 0}
|
||||
{assign var="rowclass" value="evenrow"}
|
||||
{else}
|
||||
{assign var="rowclass" value="oddrow"}
|
||||
{/if}
|
||||
<tr valign="top" class="{$rowclass}">
|
||||
<td nowrap>{$row.rendered}</td>
|
||||
<td>
|
||||
{$row.description|escape:'htmlall'}
|
||||
{if $row.url != ''}
|
||||
<a href="{$row.url}" target="_blank"><img src="images/links_view.gif" border="0" alt="URL" title="URL"></a>
|
||||
{/if}
|
||||
{if $row.comment != ''}
|
||||
<img src="images/topic.gif" border="0" alt="{$row.comment|escape:'htmlall'}" />
|
||||
{/if}
|
||||
{if $row.image_filename != '' && $opt.allow_images}
|
||||
<img src="images/image_obj.gif" border="0" alt="Image" />
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$row.category|default:" "}</td>
|
||||
<td align="right">{$row.price}</td>
|
||||
<td>{$row.source|escape:'htmlall'}</td>
|
||||
{if $row.quantity > 1}
|
||||
<td>
|
||||
{foreach from=$row.allocs item=alloc}
|
||||
<b>{$alloc}</b><br />
|
||||
{/foreach}
|
||||
{$row.avail} remaining.<br />
|
||||
</td>
|
||||
<td nowrap align="right">
|
||||
{if $row.avail > 0 || $row.ireserved > 0 || $row.ibought > 0}
|
||||
{if $row.ireserved > 0}
|
||||
{assign var="reservetext" value="Reserve Another"}
|
||||
{else}
|
||||
{assign var="reservetext" value="Reserve Item"}
|
||||
{/if}
|
||||
{if $row.ibought > 0}
|
||||
{assign var="purchasetext" value="Purchase Another"}
|
||||
{elseif $row.ireserved > 0}
|
||||
{assign var="purchasetext" value="Convert Reserve to Purchase"}
|
||||
{else}
|
||||
{assign var="purchasetext" value="Purchase Item"}
|
||||
{/if}
|
||||
{if $row.avail > 0}
|
||||
<a href="shop.php?action=reserve&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="{$reservetext|escape:'htmlall'}" title="{$reservetext|escape:'htmlall'}" src="images/lock_co.gif" border="0" /></a>
|
||||
{/if}
|
||||
{if $row.avail > 0 || $row.ireserved > 0}
|
||||
<a href="shop.php?action=purchase&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="{$purchasetext|escape:'htmlall'}" title="{$purchasetext|escape:'htmlall'}" src="images/step_done.gif" border="0" /></a>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $row.ireserved > 0}
|
||||
<a href="shop.php?action=release&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="Release Item" title="Release Item" src="images/unlock_co.gif" border="0" /></a>
|
||||
{/if}
|
||||
{if $row.ibought > 0}
|
||||
<a href="shop.php?action=return&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="Return Item" title="Return Item" src="images/run_exc.gif" border="0" /></a>
|
||||
{/if}
|
||||
</td>
|
||||
{else}
|
||||
{if $row.rfullname == '' && $row.bfullname == ''}
|
||||
<td>
|
||||
<i>Available.</i>
|
||||
</td>
|
||||
<td nowrap align="right">
|
||||
<a href="shop.php?action=reserve&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="Reserve Item" title="Reserve Item" src="images/lock_co.gif" border="0" /></a> <a href="shop.php?action=purchase&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="Purchase Item" title="Purchase Item" src="images/step_done.gif" border="0" /></a>
|
||||
</td>
|
||||
{elseif $row.rfullname != ''}
|
||||
{if $row.reservedid == $userid}
|
||||
<td>
|
||||
<i><b>Reserved by you.</b></i>
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="shop.php?action=release&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="Release Item" title="Release Item" src="images/unlock_co.gif" border="0" /></a> <a href="shop.php?action=purchase&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="Purchase Item" title="Purchase Item" src="images/step_done.gif" border="0" /></a>
|
||||
</td>
|
||||
{else}
|
||||
<td>
|
||||
{if $opt.anonymous_purchasing}
|
||||
<i>Reserved.</i>
|
||||
{else}
|
||||
<i>Reserved by {$row.rfullname|escape:'htmlall'}.</i>
|
||||
{/if}
|
||||
</td>
|
||||
<td> </td>
|
||||
{/if}
|
||||
{elseif $row.bfullname != ''}
|
||||
{if $row.boughtid == $userid}
|
||||
<td>
|
||||
<i><b>Bought by you.</b></i>
|
||||
</td>
|
||||
<td align="right">
|
||||
<a href="shop.php?action=return&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="Return Item" title="Return Item" src="images/run_exc.gif" border="0" /></a>
|
||||
</td>
|
||||
{else}
|
||||
{if $opt.anonymous_purchasing}
|
||||
<td>
|
||||
<i>Bought.</i>
|
||||
</td>
|
||||
<td> </td>
|
||||
{else}
|
||||
<td>
|
||||
<i>Bought by {$row.bfullname|escape:'htmlall'}.</i>
|
||||
</td>
|
||||
<td> </td>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
<td>
|
||||
<a href="shop.php?action=copy&itemid={$row.itemid}&shopfor={$shopfor}"><img alt="I Want This Too" title="I Want This Too" src="images/toolbar_replace.gif" border="0" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</p>
|
||||
<p>
|
||||
<a onClick="printPage()" href="#">Send to printer</a> / <a href="index.php">Back to main</a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue