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 --- productdetails.php | 80 +++++++++--------------------------------------------- 1 file changed, 13 insertions(+), 67 deletions(-) (limited to 'productdetails.php') diff --git a/productdetails.php b/productdetails.php index 44f3e04..33fc6f5 100644 --- a/productdetails.php +++ b/productdetails.php @@ -1,5 +1,7 @@ findOneById($id); @@ -20,69 +21,14 @@ if ( !is_object($product) ) { header('Location: categories.php'); } -?> - - - - -Productdetails - - - -

getName(); ?>

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