From af6dd5f8f9844596e85db25a8e97df9e08cb795c Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 1 Jun 2015 18:46:12 +0200 Subject: Port alls sites to smarty and use the inheritance model --- categories.php | 66 +++++++--------------------------------------------------- 1 file changed, 7 insertions(+), 59 deletions(-) (limited to 'categories.php') diff --git a/categories.php b/categories.php index 0425ec1..7760655 100644 --- a/categories.php +++ b/categories.php @@ -1,63 +1,11 @@ - - - - -Categories - - - -

Categories

- -
- -find(); +$smarty->assign('loggedin', isset($_SESSION['username'])); +$smarty->assign('categories', CategoryQuery::create()->find()); - foreach( $categories as $category ){ - echo ""; - echo ""; - echo ""; - if(isset($username)) - { - echo ""; - echo ""; - } - echo ""; - } - if(isset($username)) - { - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - } -?> -
getId()}\">{$category->getName()}{$category->getDescription()}getId()}\">EditgetId()}\" onClick=\"return confirm('Confirm deletion.')\">Delete
Add
-
-
- - - \ No newline at end of file +$smarty->display('categories.tpl'); +?> \ No newline at end of file -- cgit v1.2.3-70-g09d2