Experimental: smarty template

This commit is contained in:
Regis Houssin 2009-07-29 19:46:25 +00:00
parent 53acecbf76
commit ed55bd35f0
2 changed files with 11 additions and 3 deletions

View File

@ -21,10 +21,13 @@
<!-- BEGIN SMARTY TEMPLATE -->
<table width="100%" border="0" class="notopnoleftnoright">
<table width="100%" border="0" class="notopnoleftnoright" style="margin-bottom: 2px;">
<tr>
<td class="notopnoleftnoright" valign="middle">
<div class="titre">Liste des Livres</div>
<td class="nobordernopadding" width="40" align="left" valign="middle">
{$title_picto}
</td>
<td class="nobordernopadding" valign="middle">
<div class="titre">{$title_text}</div>
</td>
</tr>
</table>

View File

@ -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