<style>
    .myresult
    {
        -webkit-print-color-adjust: exact;
    }
</style>


<div class="row">
    <div class="container">


        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="settlementstoreController.php?do=show">تسوية مخزن</a></li>
            <li class="active">عرض تسويات المخازن</li>
        </ol>




        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;">عرض تسويات المخازن</h3>
                <a href="{$youtubes[106]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <a href="settlementstoreController.php" class="hidden-print"><input type="button" style="margin-left: 12px" id="submit"  class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
            <div class="panel-body">





                <form class="form-inline hidden-print" action="settlementstoreController.php?do=show" method="post">

                    {if $searchinonestore neq 0}
                    <div class="form-group">
                        <label class="sr-only">المخزن</label>
                        <input type="hidden" name="storeid" id="storeid"  value="{$storeid}">
                       {$storedef->storeName}
                    </div>
                    {else}
                    <div class="form-group">
                        <label class="sr-only">المخزن</label>
                        <select class="select2 wdt300"  name="storeid" id="storeid" > 
                            <option value="-1">اختر مخزن</option>
                            {foreach $storeData as $store}
                            <option value="{$store->storeId}" {if $storeid == $store->storeId} selected="selected" {/if}>{$store->storeName}</option>
                            {/foreach}
                        </select>
                        </div>
                    </div>
                    {/if}




                    <div class="form-group">
                        <label class="sr-only">المنتج</label>
                        <input type="hidden" name="searchvalue" id="searchvalue" value="{$Programsettingdata->searchvalue}"/>

                        <input type="hidden" class="select2product wdt300"  name="productid" id="productid" data-placeholder="اختر منتج" /><!--onchange="this.form.submit();"-->


                    </div>


                    <br/>


                    <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" >

                    </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" >

                    </div>




                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>



            </div>


            


            <div class="panel panel-default panel-m">
                <!-- Default panel contents -->
                <div class="panel-heading">{$message}</div>
                <div class="panel-body">
                    <hr/>

                    {if !empty($storereportData)}
                    <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 $storereportData as $storereport}
                            {if {$storereport->storereporttype} eq 1}
                            <tr class="danger">
                                {elseif {$storereport->storereporttype} eq 0}
                            <tr>
                                {/if}

                                <td>{$storereport->storeName}</td>
                                <td>{$storereport->productName}/{$storereport->productCatName}</td>
                                <td>{$storereport->processname}</td>
                                <td>{$storereport->productbefore}</td>
                                <td>{$storereport->productquantity}</td>
                                <td>{$storereport->productafter}</td>
                                <td>{$storereport->storereportdate}</td>



                            </tr>
                            {/foreach}


                        </tbody>
                    </table>




                    <div class="clearfix"></div>


                    <hr />


                    <div  class="noprint">
                        <div class="col-lg-12">



                            <div class="form-group">
                                <div class="col-lg-4">
                                    <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
                                </div>
                            </div>


                        </div>

                        <div class="clearfix"></div>
                    </div>
                    {/if}


                    <div class="clearfix"></div>
                </div>







            </div>

        </div>



