
<form method="post" action="productsParcodeController.php?do=add">
    <input name="buyBillId" id="buyBillId" type="hidden" value="{$buyBill_Id}" />
    <input name="billType" id="billType" type="hidden" value="{$billType}" />


    <table  cellpadding="5" cellspacing="1" border="0"  id="" class="table-black">
        <th><label>اسم المنتج</label></th>
        <th><label>الباركود</label></th>
        <th><label> الباركود الجديد </label></th>

        {assign var=j value=1}
        {foreach $productsData as $product}
        <tr>
            <td>{$product->productName}
                <input name="productId{$j}" id="productId{$j}" type="hidden" value="{$product->buybilldetailproductid}" />
            </td>
            <td>{$product->parcode}</td>
            <td><input name="newParcode{$j}" id="newParcode{$j}" type="text" value="{$product->oldSerial}"/></td>
        </tr>
        {capture assign=j}{$j+1}{/capture}
        {/foreach}

        <input name="itr" id="itr" type="hidden" value="{$numOfProducts}" />




    </table>
    <input type="submit" value="حفظ" />
</form>
