<style>

    .myresult {
        -webkit-print-color-adjust: exact;
    }
    .magnify:hover {
        position:relative;
        transition: transform .3s; /* Animation */
        transform: scale(3.5);
        z-index:999;
        top:-25px;
        left:-35px;
        display:block;
    }
    @media print {
        p,h4,h3,h2,h1,span,label,td,th,div.dataTables_info,a,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
        div.dataTables_wrapper div.dataTables_info,.panel-heading, tr.odd td.sorting_1{
            color:#000!important
        }
        .table thead>tr>th, .table tbody>tr>th, .table tfoot>tr>th, .table thead>tr>td, .table tbody>tr>td, .table tfoot>tr>td{
            text-align: center!important
        }
    }


</style>

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">التقارير</a></li>
            <li class="active">تقرير   قائمة اسعار البضاعة</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">تقرير قائمة اسعار البضاعة
                <a href="{$youtubes[159]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
            </div>
            <div class="panel-body">
                <form class="form-inline hidden-print" action="storedetailpriceController.php?do=show" method="post">
                    <input type="hidden" name="searchvalue" id="searchvalue" value="{$Programsettingdata->searchvalue}"/>


                    <div class="form-group col-lg-3">
                        <label class="sr-only">تصنيف المنتج</label>
                        <select class="select2 wdt300 productCat" data-level="0"  name="productCatId0" id="productCatId0" >
                            <option value="-1">اختر تصنيف</option>
                            {foreach $catDataReport as $data}
                            <option value="{$data->productCatId}">{$data->productCatName}</option>
                            {/foreach}
                        </select>
                        <input type="hidden" id="level" name="level" value="0">
                    </div>

                    <div id="manyParents">

                    </div>
                    <div style="clear: both"></div>

                    <!--<div class="form-group">-->
                        <!--<label class="sr-only">تصنيف المنتج</label>-->
                        <!--<select class="select2 wdt300"  name="productCatId" id="productCatId" >-->
                            <!--<option value="-1">اختر تصنيف</option>-->



                            <!--{*foreach $productCatData as $cat*}-->



                            <!--&lt;!&ndash;          <option value="{$cat->productCatId}">{$cat->productCatName}</option>-->
                            <!--&ndash;&gt;-->
                            <!--{*/foreach*}-->
                            <!--{for $j=0 to $itr}-->




                            <!--<option value="{$parentId{$j}}">{$names{$j}}</option>-->





                            <!--{/for}-->



                        <!--</select>-->
                    <!--</div>-->
                    <!--div class="form-group">
                        <label class="sr-only">المنتج</label>
                        <input type="hidden" class="select2product wdt300"  name="productId" id="productId" data-placeholder="اختر منتج"  />
                    </div-->
                    <br />
                    <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}">{$store->storeName}</option>


                            {/foreach}



                        </select>
                    </div>


                    <div class="form-group">
                        <label class="sr-only">الترتيب</label>
                        <select class="select2 wdt300"  name="order" id="order" >



                            <option value="asc">تصاعدى</option>
                            <option value="desc">تنازلى</option>






                        </select>
                    </div>
                    <br />
                    <div class="form-group">
                        <label class="sr-only">الكمية اكبر من او يساوى</label>
                        <input type="number" class="form-control" name="quantityGreaterThan" autocomplete="off">
                    </div>
                    <div class="form-group">
                        <label class="sr-only">الكمية اقل من او يساوى</label>
                        <input type="number" class="form-control" name="quantityLessThan" autocomplete="off">
                    </div>
                    <br/>

                    <div class="form-group">
                        <label class="sr-only">اظهار  : </label>
                        <input name='cheak' id='chkall' type="hidden" value='{$array}'/>
                        <label>  <input name="selectall" type="checkbox" value="1" id="parent" {if $selectall eq 1 } checked {/if} />الكل</label>
                        <div id="checkboxlist">
                            <label>  <input name="productBuyPrice" type="checkbox" value="1" {if $productBuyPrice eq 1 } checked {/if} /> سعر الشراء</label>

                            <label>     <input name="productSellAllPrice" type="checkbox"  value="1" id="productSellAllPrice" {if $productSellAllPrice eq 1 } checked {/if}/> جمله</label>

                            <label>    <input name="productSellHalfPrice"  type="checkbox" value="1" {if $productSellHalfPrice eq 1 } checked {/if} /> نصف جمله</label>

                            <label>   <input name="productSellUnitPrice" type="checkbox" value="1" {if $productSellUnitPrice eq 1 } checked {/if} /> سعر التجزئة</label>
                            <label>  <input name="storename" type="checkbox" value="1"  {if $storename eq 1 } checked {/if}/> اسم المخزن</label>
                            <label>  <input name="amount" type="checkbox" value="1" {if $amount eq 1 } checked {/if} /> الكمية</label>
                            <label>  <input name="lastProcessDate" type="checkbox" value="1" {if $lastProcessDate eq 1 } checked {/if} /> تاريخ اخر عملية</label>
                            <label>  <input name="selldiscount" type="checkbox" value="1" {if $selldiscount eq 1 } checked {/if} /> خصم التصنيفات للبيع</label>
                            <label>  <input name="image" type="checkbox" value="1" {if $image eq 1 } checked {/if} /> صورة</label>
                            <label>  <input name="hideZeroQuantity" type="checkbox" value="1" {if $hideZeroQuantity eq 1 } checked {/if} />اخفاء المنتجات بكمية صفر</label>
                            <label>  <input name="description" type="checkbox" value="1" {if $description eq 1 } checked {/if} />الوصف</label>
                            <label>  <input name="parcodaz" type="checkbox" value="1" {if $parcodaz eq 1 } checked {/if} />الباركود</label>
                            <label>  <input name="dasta" type="checkbox" value="1" {if $dasta eq 1 } checked {/if} />سعر الدسته</label>
                            <label>  <input name="ro3dasta" type="checkbox" value="1" {if $ro3dasta eq 1 } checked {/if} />سعر الربع دسته</label>
                        </div>
                    </div>
                    <br />
                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
            </div>
            {if {count($storedetailData)} > 0}
            <div class="panel panel-default">
                <!-- Default panel contents -->
                <div class="panel-heading">{$message}</div>
                <div class="panel-body">
                    <hr/>
                    {if {count($storedetailData)} > 0}
                    <!--div class="col-lg-offset-8 col-lg-4">
                      <div class="well well-sm">
                        <h4 class="text-center">اجمالى سعر المنتجات {$sumValue} {$currency}</h4>
                      </div>
                    </div-->
                    {/if}
                    <table class="table table-black dataTableClass">
                        <thead>
                            <tr>
                                <th></th>
                                <th>الرقم</th>
                                {if {$storename} eq 1}

                                <th>اسم المخزن</th>
                                {/if}

                                <th>اسم المنتج</th>

                                {if {$amount} eq 1}
                                <th>الكمية</th>
                                {/if}

                                {if {$productBuyPrice} eq 1}
                                <th>سعر الشراء</th>
                                {/if}

                                {if {$productSellAllPrice} eq 1}
                                <th>سعر الجمله</th>
                                {/if}

                                {if {$productSellHalfPrice} eq 1}
                                <th>سعر نصف لجمله</th>
                                {/if}
                                {if {$productSellUnitPrice} eq 1}
                                <th>سعر التجزئة</th>
                                {/if}

                                {if {$lastProcessDate} eq 1}
                                <th>تاريخ اخر عملية</th>
                                {/if}

                                {if {$image} eq 1}
                                <th>صورة</th>
                                {/if}
                                {if {$description} eq 1}
                                <th>الوصف</th>
                                {/if}
                                {if {$parcodaz} eq 1}
                                <th>الباركود</th>
                                {/if}
                                {if {$dasta} eq 1}
                                <th>سعر الدسته</th>
                                {/if}
                                {if {$ro3dasta} eq 1}
                                <th>سعر ربع دسته</th>
                                {/if}

                            </tr>
                        </thead>
                        <tbody>
                            {assign var=x value=1}
                            {foreach $storedetailData as $storedetail}
                            {if {$storedetail->reviewType} eq 1}
                            <tr class="danger"> {elseif {$storedetail->reviewType} eq 0}
                            <tr>{/if}
                                <td><input type="checkbox" onclick='chkboxcolorrow(this);'/></td>
                                <td>{$x}</td>
                                {if {$storename} eq 1}
                                <td>{$storedetail->storeName}</td>
                                {/if}

                                <td>{$storedetail->productName}</td>

                                {if {$amount} eq 1}
                                <td>{$storedetail->productquantity}</td>
                                {/if}

                                {if {$productBuyPrice} eq 1}
                                <td>{$storedetail->productBuyPrice}</td>
                                {/if}

                                {if {$productSellAllPrice} eq 1}
                                <td>{$storedetail->productSellAllPrice}</td>
                                {/if}

                                {if {$productSellHalfPrice} eq 1}
                                <td>{$storedetail->productSellHalfPrice}</td>
                                {/if}

                                {if {$productSellUnitPrice} eq 1}
                                <td>{$storedetail->productSellUnitPrice}</td>
                                {/if}

                                {if {$lastProcessDate} eq 1}
                                <td>{$storedetail->storedetaildate}</td>
                                {/if}

                                {if {$image} eq 1}
                                <td>
                                    {if $storedetail->logo =="." || $storedetail->logo ==""}
                                    لا يوجد
                                    {else}
                                    <img src="../views/default/images/product_image/{$storedetail->logo}" class="moImg magnify" alt="" width="75" height="75">
                                    {/if}
                                </td>
                                {/if}

                                {if {$description} eq 1}
                                <td>{$storedetail->productDescription}</td>
                                {/if}

                                {if {$parcodaz} eq 1}
                                <td>{$storedetail->parcode}</td>
                                {/if}

                                {if {$dasta} eq 1}
                                <td>{$storedetail->productSellAllPrice*12}</td>
                                {/if}

                                {if {$ro3dasta} eq 1}
                                <td>{$storedetail->productSellAllPrice*3}</td>
                                {/if}

                            </tr>
                            {capture assign=x}{$x+1}{/capture}
                            {/foreach}

                        </tbody>

                    </table>
                    <div class="col-lg-offset-8 col-lg-4">
                        <div class="well well-sm">
                            <h4 class="text-center">اجمالي المنتجات : {$countproduct}</h4>
                        </div>
                    </div>
                    {/if}
                    <div class="clearfix"></div>
                    <hr />
                    {if {count($storedetailData)} > 0}
                    <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 hidden-print">طباعة</button>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    {/if}
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
