<head>
{foreach from=$cssFiles item=file}
    <link href="{$file}" rel="stylesheet" media="all">
{/foreach}
</head>

<body class="print legumes" orientation="portrait">
    <table class="printHeader">
        <tr>
            <th class="titre">{$date}<br/>{$time}</th>
            <th class="page">TARIF{if $groupes|@count>1}S{/if} LEGUMES</th>
            <th class="logo"><img src="{$logo}"></th>
        </tr>
    </table>
    <table class="table listPrint">
        <thead>
            <tr>
                <th class="nom">légume</th>
                {foreach from=$groupes item=g}<th class="tarif center">tarif {$g.nom}</th>{/foreach}
            </tr>
        </thead>
        <tbody>
        {foreach from=$list item=i}
            <tr>
                <td>{$i.nom}</td>
            {foreach from=$groupes item=g}
                <td class="tarif center">{if $i.tarifs[$g.ref].ref>0}{$i.tarifs[$g.ref].print}{else}.{/if}</td>
            {/foreach}
            </tr>
        {foreachelse}
            <tr>
                <td colspan="{$groupes|@count + 1}">aucun légume</td>
            </tr>
        {/foreach}
        </tbody>
    </table>
</body>