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 --- categoryedit.php | 71 +++++++++----------------------------------------------- 1 file changed, 11 insertions(+), 60 deletions(-) (limited to 'categoryedit.php') diff --git a/categoryedit.php b/categoryedit.php index 6d83ee7..a3fb140 100644 --- a/categoryedit.php +++ b/categoryedit.php @@ -1,12 +1,12 @@ findOneById($_GET['delete']); @@ -37,61 +37,12 @@ $category->save(); header('Location: categories.php'); } -?> - - - - -Category - - - -

getName(); ?>

- -
-
getId()}" ?>" method="post"> -

Category

-
- -
-
- - -
-
-   -
- - -
-
-
- - - \ No newline at end of file + + $smarty = new Smarty; + + $smarty->assign('loggedin', isset($_SESSION['username'])); + $smarty->assign('category', $category); + $smarty->assign('type', $type); + + $smarty->display('categoryedit.tpl'); +?> \ No newline at end of file -- cgit v1.2.3-70-g09d2