
<table class="table table-black">
    <thead>
        <tr>
            <th>م</th>
            <th>إسم المنتج</th>
            <th>التاريخ</th>
            <th>قبل</th>
            <th>العدد</th>
            <th>بعد</th>
            <th>إسم العملية </th>
        </tr>
    </thead>

    <tbody>

        {foreach from=$productsData item=data name=loop}
        {if $data->storereporttype eq 0}
        <tr class="gradeA" style="background-color:#e7fee4 !important;">
            {else}
        <tr class="gradeA" style="background-color:#fee4e4 !important;">
            {/if}

            <td>{$smarty.foreach.loop.iteration}</td>
            <td>{$data->productName}</td>
            <td>{$data->storereportdate}</td>
            <td>{$data->productbefore}</td>
            <td>{$data->productquantity}</td>
            <td>{$data->productafter}</td>
            <td>{$data->processname}</td>
        </tr>
        {/foreach}
    </tbody>

</table>

<div class="noprint">
    <input type="button" onclick="print_Custom('mycustomheader');" class="noprint" value="طباعة" />
</div>
