From ed55bd35f02937455ea7c133a5dff6292ab534bb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 29 Jul 2009 19:46:25 +0000 Subject: [PATCH] Experimental: smarty template --- htdocs/product/canvas/livre/liste.tpl | 9 ++++++--- htdocs/product/liste.php | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/htdocs/product/canvas/livre/liste.tpl b/htdocs/product/canvas/livre/liste.tpl index 5c8a99ef6fe..86d9bdfe6fa 100644 --- a/htdocs/product/canvas/livre/liste.tpl +++ b/htdocs/product/canvas/livre/liste.tpl @@ -21,10 +21,13 @@ - +
- +
-
Liste des Livres
+
+ {$title_picto} + +
{$title_text}
diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index f3358d2bff0..a0f0cdfcc21 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -202,6 +202,11 @@ if ($resql) $smarty->assign('url_root', $dolibarr_main_url_root); $smarty->assign('theme', $conf->theme); $smarty->assign('langs', $langs); + $picto='title.png'; + if (empty($conf->browser->firefox)) $picto='title.gif'; + $smarty->assign('title_picto', img_picto('',$picto)); + if ($_GET["canvas"] != 'default') $texte = $langs->trans('Books'); + $smarty->assign('title_text', $texte); $smarty->display('product/canvas/'.$_GET["canvas"].'/liste.tpl'); } else