diff --git a/src/shoplist.php b/src/shoplist.php index feb14a9..3b2caa6 100644 --- a/src/shoplist.php +++ b/src/shoplist.php @@ -26,31 +26,6 @@ else { $userid = $_SESSION["userid"]; } -echo "\r\n"; -?> - - - -Gift Registry - My Shopping List - - - - - -

- This is a list of all items you have reserved. Once you've bought or decided not to buy an item, remember to return to the recipient's gift lists and mark it accordingly. -

- -

Gift Registry - My Shopping List

-assign('shoplist', $shoplist); +$smarty->assign('totalprice', formatPrice($totalprice)); +$smarty->assign('itemcount', $itemcount); +$smarty->assign('userid', $userid); +$smarty->assign('isadmin', $_SESSION["admin"]); +$smarty->assign('opt', $OPT); +$smarty->display('shoplist.tpl'); ?> -

- - - - - - - - - - - - - "> - - - - - - - - "> - - - - - -
My Shopping List
RecipientDescriptionRankingSourcePrice
- -
  - ",$row["comment"]); ?> -  
-

-

- -

- -

- Send to printer / Back to main -

- - diff --git a/src/templates/shoplist.tpl b/src/templates/shoplist.tpl new file mode 100644 index 0000000..7473d5f --- /dev/null +++ b/src/templates/shoplist.tpl @@ -0,0 +1,88 @@ +{* +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 +*} + + + + + Gift Registry - My Shopping List + + + + + + + + {include file='navbar.tpl' isadmin=$isadmin} + +
+ {if $opt.show_helptext} +
+
+
+ This is a list of all items you have reserved. Once you've bought or decided not to buy an item, remember to return to the recipient's gift lists and mark it accordingly. +
+
+
+ {/if} + +
+
+
+

My Shopping List

+ + + + + + + + + + + + {foreach from=$shoplist item=row} + + + + + + + + {/foreach} + +
RecipientDescriptionRankingSourcePrice
{$row.fullname|escape:'htmlall'}{$row.description|escape:'htmlall'}{$row.rendered}{$row.source}{$row.price}
+
{$itemcount} item(s), {$totalprice} total.
+
+
+
+ +
+
+ +
+
+
+ + + + +