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 --- productedit.php | 108 ++++++++------------------------------------------------ 1 file changed, 14 insertions(+), 94 deletions(-) (limited to 'productedit.php') diff --git a/productedit.php b/productedit.php index 2005444..0fd33e6 100644 --- a/productedit.php +++ b/productedit.php @@ -1,5 +1,7 @@ findOneById($_GET['delete']); @@ -58,95 +58,15 @@ $product->save(); header("Location: products.php?id={$catid}"); } -?> - - - - -Production - - - -

getName(); ?>

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

Product

-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
 
- - -
-
-
- - - \ No newline at end of file + + $smarty = new Smarty; + + $smarty->assign('loggedin', isset($_SESSION['username'])); + $smarty->assign('catid', $catid); + $smarty->assign('product', $product); + $smarty->assign('allCategories', CategoryQuery::create()->find()); + $smarty->assign('type', $type); + + $smarty->display('productedit.tpl'); + +?> \ No newline at end of file -- cgit v1.2.3-70-g09d2