Experimental: smarty template
This commit is contained in:
parent
53acecbf76
commit
ed55bd35f0
@ -21,10 +21,13 @@
|
|||||||
|
|
||||||
<!-- BEGIN SMARTY TEMPLATE -->
|
<!-- BEGIN SMARTY TEMPLATE -->
|
||||||
|
|
||||||
<table width="100%" border="0" class="notopnoleftnoright">
|
<table width="100%" border="0" class="notopnoleftnoright" style="margin-bottom: 2px;">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="notopnoleftnoright" valign="middle">
|
<td class="nobordernopadding" width="40" align="left" valign="middle">
|
||||||
<div class="titre">Liste des Livres</div>
|
{$title_picto}
|
||||||
|
</td>
|
||||||
|
<td class="nobordernopadding" valign="middle">
|
||||||
|
<div class="titre">{$title_text}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -202,6 +202,11 @@ if ($resql)
|
|||||||
$smarty->assign('url_root', $dolibarr_main_url_root);
|
$smarty->assign('url_root', $dolibarr_main_url_root);
|
||||||
$smarty->assign('theme', $conf->theme);
|
$smarty->assign('theme', $conf->theme);
|
||||||
$smarty->assign('langs', $langs);
|
$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');
|
$smarty->display('product/canvas/'.$_GET["canvas"].'/liste.tpl');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user