From f346967184885c842a61157fac7593de6b364464 Mon Sep 17 00:00:00 2001 From: Ryan Walberg Date: Sat, 17 Nov 2012 04:06:40 +0000 Subject: [PATCH] converted My Items --- src/mylist.php | 116 +++++++++------------------------------ src/templates/mylist.tpl | 93 +++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+), 91 deletions(-) create mode 100644 src/templates/mylist.tpl diff --git a/src/mylist.php b/src/mylist.php index 6724c45..e099bc9 100644 --- a/src/mylist.php +++ b/src/mylist.php @@ -26,37 +26,6 @@ else { $userid = $_SESSION["userid"]; } -echo "\r\n"; -?> - - - -Gift Registry - Shopping List - - - - -

Gift Registry - Wish List for

- -

-

- -
-

- 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('mylist.tpl'); ?> -

- - - - - - - - - - - "> - - - - - - - - "> - - - - - -
RankingSourceDescriptionCategoryPrice
- -
  - ",$row["comment"]); ?> -  
-

-

- -

- -

- Send to printer / Back to Main -

- - + diff --git a/src/templates/mylist.tpl b/src/templates/mylist.tpl new file mode 100644 index 0000000..e111e79 --- /dev/null +++ b/src/templates/mylist.tpl @@ -0,0 +1,93 @@ +{* +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 Items + + + + + + + + {include file='navbar.tpl' isadmin=$isadmin} + +
+ {if $opt.show_helptext} +
+
+
+
    +
  • You can click the column headers to sort by that attribute.
  • +
  • Once you've bought or decided not to buy an item, remember to return to the recipient's gift lists and mark it accordingly.
  • +
  • Please login to the Gift Registry site to get the most recent version of this list.
  • +
  • For better printing results, please change your print orientation to "Landscape" mode.
  • +
+
+
+
+ {/if} + +
+
+
+

My Items

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