<script type="text/javascript" charset="utf-8"></script>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">المنتجات</a></li>
            <li><a href="#">المنتجات </a></li>
            <li class="active">عرض المنتجات</li>
        </ol>
        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">عرض المنتجات</h3>
                <a href="{$youtubes[52]->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">

                <!---------- start outputString alert ----------->
                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <p id="outputStringValue">{$outputString}</p>
                    <div class="clearfix"></div>
                </div>
                <!---------  end outputString alert ------------>
                <form class="form-inline hidden-print" action="productController.php?do=deleted" method="post">


                    <!--div class="form-group">
                        <label class="sr-only">اكتب العدد</label>


                        <input name="productnumber"  type="text" />

                        <span id="sprytextfield1">
                            <input name="productnumber"  type="text" />
                            <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">ادخل رقم صحيح.</span>
                        </span>




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


                    <br/>
                    <div class="form-group">
                        <!--label class="sr-only" style="">  اسم المنتج </label>
                        <select id="" name="">
                            <option value="-1">Choose..</option>
                            {foreach $allproductdata as $product}
                            <option value="{$product->productId}"> {$product->productName}</option>
                            {/foreach}
                        </select>-->

                    </div>

                    <div class="form-group">
                        <label class="sr-only">اسم المنتج </label>
                        <input name="product_deleted"  id="product_deleted" type="text" />

                    </div>

                    <div class="form-group">
                        <label class="sr-only">  الباركود </label>
                        <input name="parcode_deleted"  id="parcode_deleted" type="text" />

                    </div>

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



                            {*foreach $alldata as $data *}

                            <!--<option value="{$data->productCatId}">{$data->productCatName}</option>-->

                            {*/foreach*}


                            {for $j=0 to $itr}



                            <option value="{$parentId{$j}}"  {if {$productCatId} eq {$parentId{$j}}} selected="selected" {/if}>{$names{$j}} </option>




                            {/for}




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

                    <hr />

                    <div class="table-responsive" id="tableWrap">

                        <table class="display table-black" id="">
                            <tfoot>

                            </tfoot>
                            <thead>
                                <tr>


                                    <th>الباركود</th>
                                    <th>اسم المنتج</th>


                                    <th class="hidden-print">التعديل</th>
                                </tr>
                            </thead>
                            <tbody>

                                {foreach $productsData as $data}
                                {if {$data->conditions} eq 1}

                                <tr  style="background:#C99">
                                    {else}
                                <tr>
                                    {/if}
                                    <td> {$data->parcode} </td>
                                    <td> {$data->productName} </td>

                                    <td  class="hidden-print"><a href="productController.php?do=edit&id={$data->productId}" type="button" class="btn btn-default btn-lg editicon"></a></td>
                                </tr>
                                {/foreach}


                            </tbody>

                        </table>


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



                    <div  class="hidden-print">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <div class="col-lg-4">


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

                    <script type="text/javascript">
                        var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer");
                    </script>
