
<div class="container">
    <ol class="breadcrumb">
        <li><a href="#">التقارير</a></li>
        <li class="active">تقرير حركة صنف</li>
    </ol>
    <div class="row">
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">تقرير حركة صنف</div>
            <div class="panel-body">
                <form class="form-inline noprint" action="productReportsController.php" method="post">

                    <div class="form-group">
                        <label class="sr-only">من التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd"  name="from" id="datepicker_from" value="{$today}">
                    </div>
                    <div class="form-group">
                        <label class="sr-only">إلى التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd"  name="to" id="datepicker_to"  value="{$today}">
                    </div>
                    <br />
                    <div class="form-group">
                        <label class="sr-only">المخزن</label>
                        <select data-placeholder="اختر المخزن:" class="select2 wdt100" style="width:200px;" name="storeId" id="storeId">
                            <option value="-1"></option>


                            {foreach $storesData as $data }



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



                            {/foreach}



                        </select>
                    </div>
                    <br />
                    <div class="form-group">
                        <label class="sr-only">المنتج</label>
                        <select data-placeholder="اختر المنتج:" class="select2 wdt100" style="width:200px;" name="productId" id="productId">
                            <option value="-1"></option>


                            {foreach $productsData as $pro }



                            <option value="{$pro->productId}">{$pro->productName}</option>



                            {/foreach}



                        </select>
                    </div>
                    <br />
                    <button type="submit" class="btn btn-primary noprint"  onClick="getResult();">بحث</button>
                </form>
            </div>
            <hr/>

            <div id="resultDiv"></div>

            <div class="clearfix"></div>
        </div>
    </div>
</div>
      {literal}
        <script>
            $('.dataTableClass22').dataTable({
                "order"
                        : [
                            [4, "desc"]       // order by drug cat
                        ]
            });
           
        </script>
        {/literal}