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

<body class="print" orientation="{$orientation}">
    <!-- PANIERS -->
    <div class="formLivraison">
        <table class="printHeader">
            <tr>
                <th class="titre">
                    LIVRAISON {$infos.paniers_groupe_nom|upper}<br/>
                    {$infos.date_long_print}
                </th>
                <th class="page">FEUILLE D'EMARGEMENT{if $lieu_ref>0}<br/>{$lieu_nom}{/if}</th>
                <th class="logo"><img src="{$logo}"></th>
            </tr>
        </table>
        <table class="emargement">
            <thead>
                <tr>
                    <th class="nom">NOM</th>
                    <th class="tel center">TELEPHONE</th>
                    <th class="type center">TYPE DE PANIER</th>
                    <th class="nb_paniers center">PANIERS DISTRIBUES</th>
                    <th class="complement center">COMPLEMENT<br/>A REGLER</th>
                    <th class="complement center">COMPLEMENT<br/>DU JOUR</th>
                    <th class="complement center">COMPLEMENT<br/>REGLE CE JOUR</th>
                    <th class="signature center">SIGNATURE</th>
                </tr>
            </thead>
            <tbody>
            {foreach from=$emargement_list item=c}
                <tr class="contrat{if !$c.present} absent{/if}">
                    <td class="nom">{$c.client_prenom} {$c.client_nom}</td>
                    <td class="tel center">{$c.client_tel}</td>
                    <td class="type center{if $c.paniers|@count>1} multi_paniers{/if}">
                        {foreach from=$c.paniers item=p name=paniers}
                        {if !$smarty.foreach.paniers.first}<br/>+ {/if}{$p.panier_type_nom}
                        {/foreach}
                    </td>
                    <td class="nb_paniers center multi_paniers{if $c.paniers|@count>1} multi_paniers{/if}">
                        {foreach from=$c.paniers item=p name=paniers}
                        {if !$smarty.foreach.paniers.first}<br/>{/if}{$p.nb_paniers_livres} / {$p.nb_paniers}
                        {/foreach}
                    </td>
                    <td class="complement center">{$c.complement_du_print}</td>
                    <td class="complement center">{$c.complement_print}</td>
                    <td class="complement center">{$c.complement_regle_print}</td>
                    <td class="signature center">{if !$c.present}ABSENT{/if}</td>
                </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
</body>