<div id="addproduct" style="display:none">
    {foreach $productData as $product}
    <option value="{$product->productid}">{$product->productName}</option>
    {/foreach}
</div>


<div id="imageClose" style="display:none"> <img alt="" src="{$path}/images/close.png" /> </div>



<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="storemovementController.php?do=show">التحويل بين المخازن</a></li>
            <li class="active">اضافة تحويل</li>
        </ol>
        <h3>اضافة تحويل بين المخازن</h3>
        <hr/>



        <form class="form-horizontal " role="form" action="storemovementController.php?do=add" method="post" id="sellbillForm">

            <div class="row">





                <div class="form-group">
                    <label class="col-lg-2 control-label">من المخزن</label>
                    <div class="col-lg-8">
                        <span id="spryselect1">
                            <select class="select2 wdt100" name="storeidfrom" id="storeidfrom" onChange="loadStoreTo(this.value);" >
                                <option value="-1">اختر مخزن</option>

                                {foreach $storeData as $store}

                                <option value="{$store->storeId}">{$store->storeName}</option>

                                {/foreach}


                            </select>

                            <span class="selectInvalidMsg">*</span></span>
                    </div>
                </div>



                <div class="form-group storeTo">
                    <label class="col-lg-2 control-label">إلى المخزن</label>
                    <div class="col-lg-8">

                        <select class="select2 wdt100" name="storeidto" id="storeidto"  >
                            <option value="-1">اختر مخزن</option>


                        </select>

                    </div>
                </div>





            </div><!-- end of frist row-->





            <div class="row">
                <div class="row">
                    <hr/>
                    <div class="col-lg-6">
                        <h4>المنتجات</h4>
                    </div>
                    <div class="col-lg-6">
                        <button type="button" name="addpro" id="addpro" class="btn btn-primary pull-left ft-nor"> اضافة جديد</button>
                    </div>
                </div><!-- end of title row-->
                <div class="table-responsive">
                    <table class="table billtable table-bordered table-black" id="containerpros">
                        <thead>
                            <tr>


                                <th class="wdt200">اسم المنتج</th>

                                <th class="wdt200">الكمية الحالية</th>

                                <th class="wdt200">الكمية المحولة</th>

                                <th>حذف</th>

                            </tr>
                        </thead>
                        <tbody>
                            <tr>





                                <td>
                                    <div class="products1">
                                        <!--div class="form-group">
                             <label class="sr-only">المنتج</label>

                              <input type="hidden" class="select2product wdt100"  name="productId" id="productId" data-placeholder="اختر منتج"  />


                           </div-->

                                        <select class="select2 wdt100" id="productid1" name="productid1" tabindex="7" onchange="getProductQuantity(this.value, 1);" onblur="anotherProduct(this.value, 1);" >


                                        </select>

                                    </div>
                                </td>




                                <td>
                                    <div id="quantity1">
                                        <input type="text" name="currentquantity1" id="currentquantity1"  class="form-control getprototal  numberinput txt-nonraduis" value="0" tabindex="7" readonly />
                                    </div>
                                </td>



                                <td>

                                    <input type="text" name="productamount1" id="productamount1"  class="form-control getprototal  numberinput txt-nonraduis" value="0" tabindex="7" onkeyup="checkquantity(1);"  />

                                </td>





                                <td id="1">
                                    <button id="remove1" type="button" class="close flt-none removeicon removeproduct" aria-hidden="true">&times;</button>
                                </td>


                            </tr>
                        </tbody>
                    </table>
                </div>

            </div>

            <!-- end of second row-->








            <input type="hidden" name="productitr" id="productitr" value="1"/>



            <div class="row">
                <button type="submit"  class="btn btn-primary">حفظ</button>


            </div><!-- end of fifth row-->


        </form>
    </div><!-- end of container-->
</div>

{literal}

<script type="text/javascript">
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {isRequired: false, invalidValue: "-1"});
</script>

{/literal}





